Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Runs

Build Assistants that can call models and use tools.

Cancel a run
Deprecated
POST
/threads/{thread_id}/runs/{run_id}/cancel
Create run
Deprecated
POST
/threads/{thread_id}/runs
List runs
Deprecated
GET
/threads/{thread_id}/runs
Retrieve run
Deprecated
GET
/threads/{thread_id}/runs/{run_id}
Submit tool outputs to run
Deprecated
POST
/threads/{thread_id}/runs/{run_id}/submit_tool_outputs
Modify run
Deprecated
POST
/threads/{thread_id}/runs/{run_id}
Models
RequiredActionFunctionToolCall object { id, function, type }

Tool call objects

Run object { id, assistant_id, cancelled_at, 24 more }

Represents an execution run on a thread.

RunsSteps

Build Assistants that can call models and use tools.

List run steps
Deprecated
GET
/threads/{thread_id}/runs/{run_id}/steps
Retrieve run step
Deprecated
GET
/threads/{thread_id}/runs/{run_id}/steps/{step_id}
Models
CodeInterpreterLogs object { index, type, logs }

Text output from the Code Interpreter tool call as part of a run step.

CodeInterpreterOutputImage object { index, type, image }
CodeInterpreterToolCall object { id, code_interpreter, type }

Details of the Code Interpreter tool call the run step was involved in.

CodeInterpreterToolCallDelta object { index, type, id, code_interpreter }

Details of the Code Interpreter tool call the run step was involved in.

FileSearchToolCall object { id, file_search, type }
FileSearchToolCallDelta object { file_search, index, type, id }
FunctionToolCall object { id, function, type }
FunctionToolCallDelta object { index, type, id, function }
MessageCreationStepDetails object { message_creation, type }

Details of the message creation by the run step.

RunStep object { id, assistant_id, cancelled_at, 13 more }

Represents a step in execution of a run.

RunStepDeltaEvent object { id, delta, object }

Represents a run step delta i.e. any changed fields on a run step during streaming.

RunStepDeltaMessageDelta object { type, message_creation }

Details of the message creation by the run step.

RunStepInclude = "step_details.tool_calls[*].file_search.results[*].content"
ToolCallDeltaObject object { type, tool_calls }

Details of the tool call.

ToolCallsStepDetails object { tool_calls, type }

Details of the tool call.