File size: 2,880 Bytes
3e63a0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
  "action": {
    "additionalProperties": false,
    "properties": {
      "metadata": {
        "additionalProperties": true,
        "description": "Additional metadata for the action",
        "title": "Metadata",
        "type": "object"
      },
      "operation": {
        "description": "Run a bash command or finish and grade the repository.",
        "enum": [
          "shell",
          "finish"
        ],
        "title": "Operation",
        "type": "string"
      },
      "command": {
        "default": "",
        "description": "Bash command; each call starts in the task repository.",
        "maxLength": 16000,
        "title": "Command",
        "type": "string"
      }
    },
    "required": [
      "operation"
    ],
    "title": "ShellAction",
    "type": "object"
  },
  "observation": {
    "additionalProperties": false,
    "properties": {
      "done": {
        "default": false,
        "description": "Whether the episode has terminated",
        "title": "Done",
        "type": "boolean"
      },
      "reward": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "integer"
          },
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "Reward signal from the last action",
        "title": "Reward"
      },
      "metadata": {
        "additionalProperties": true,
        "description": "Additional metadata for the observation",
        "title": "Metadata",
        "type": "object"
      },
      "task_id": {
        "title": "Task Id",
        "type": "string"
      },
      "output": {
        "maxLength": 16000,
        "title": "Output",
        "type": "string"
      },
      "exit_code": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "title": "Exit Code"
      }
    },
    "required": [
      "task_id",
      "output"
    ],
    "title": "ShellObservation",
    "type": "object"
  },
  "state": {
    "additionalProperties": true,
    "description": "Base class for environment state.\n\nRepresents internal environment state, separate from observations.",
    "properties": {
      "episode_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "Unique identifier for the current episode",
        "title": "Episode Id"
      },
      "step_count": {
        "default": 0,
        "description": "Number of steps taken in the current episode",
        "minimum": 0,
        "title": "Step Count",
        "type": "integer"
      }
    },
    "title": "State",
    "type": "object"
  }
}