Observe Tool Execution

GET/api/v1/threads/{thread_id}/tool-executions/{execution_id}/observation

Authorization

AuthorizationBearer <token>

A workspace API key (a13n_...)

In: header

Path Parameters

thread_id*Thread Id
execution_id*Execution Id

Header Parameters

X-Workspace-ID?|

The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/threads/string/tool-executions/string/observation"
{  "execution": {    "attempt_id": "string",    "cancel_requested_at": "2019-08-24T14:15:22Z",    "completed_at": "2019-08-24T14:15:22Z",    "created_at": "2019-08-24T14:15:22Z",    "delivery_acknowledged": false,    "error": "string",    "execution_id": "string",    "expires_at": "2019-08-24T14:15:22Z",    "first_delivered_at": "2019-08-24T14:15:22Z",    "foreground_released": false,    "result_available": false,    "run_id": "string",    "status": "queued",    "thread_id": "string",    "tool_call_id": "string",    "tool_name": "string",    "worker_id": "string"  },  "shell": {    "status": {      "cleanup": "string",      "exit_code": 0,      "phase": "string",      "signal": "string",      "termination_reason": "string"    },    "stderr": {      "observation_closed": true,      "produced_bytes": 0,      "text": "string",      "truncated": true    },    "stdout": {      "observation_closed": true,      "produced_bytes": 0,      "text": "string",      "truncated": true    }  },  "source": "live"}