File size: 2,557 Bytes
91cf229 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | {
"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"
}
}
|