{ "action": { "additionalProperties": false, "properties": { "action_type": { "description": "exec: run a bash command in the working directory and see its output. write_file: write a whole file. evaluate: end the episode; the hidden tests grade your file.", "enum": [ "exec", "write_file", "evaluate" ], "title": "Action Type", "type": "string" }, "command": { "default": "", "description": "exec: the bash command.", "title": "Command", "type": "string" }, "content": { "default": "", "description": "write_file: the complete new file content.", "title": "Content", "type": "string" }, "file_path": { "default": "", "description": "write_file: the file to write, relative to the working directory.", "title": "File Path", "type": "string" }, "metadata": { "additionalProperties": true, "description": "Additional metadata for the action", "title": "Metadata", "type": "object" } }, "required": [ "action_type" ], "title": "TerminalAction", "type": "object" }, "observation": { "additionalProperties": false, "properties": { "done": { "default": false, "description": "Whether the episode has terminated", "title": "Done", "type": "boolean" }, "error": { "default": "", "title": "Error", "type": "string" }, "instruction": { "default": "", "title": "Instruction", "type": "string" }, "metadata": { "additionalProperties": true, "description": "Additional metadata for the observation", "title": "Metadata", "type": "object" }, "output": { "default": "", "title": "Output", "type": "string" }, "reward": { "anyOf": [ { "type": "boolean" }, { "type": "integer" }, { "type": "number" }, { "type": "null" } ], "default": null, "description": "Reward signal from the last action", "title": "Reward" }, "success": { "default": false, "title": "Success", "type": "boolean" } }, "title": "TerminalObservation", "type": "object" } }