| Description | : Submits outputs from tools as requested by tool calls in a run. |
| Reference | : Link ¶ |
⚶ Changes
{
"#id": "Runs_SubmitToolOutputsToRun",
"$parameters": {
"body": {
"$properties": {
"tool_outputs": {
"$properties": {
"@added_0342661207c549cbb4216d6a69940b28": {
"#name": "type",
"Description": "The object type for the tool output. Defaults to `function_call_output` if not provided.",
"Required": true,
"Type": "string"
},
"@removed_1504bbb73c014f5fba0596ab41502092": {
"#name": "output",
"Description": "The output from the tool to be submitted.",
"Required": false,
"Type": "string"
}
}
}
}
}
}
}
⚼ Request
POST:
/threads/{threadId}/runs/{runId}/submit_tool_outputs
{
api-version:
string
,
threadId:
string
,
runId:
string
,
body:
}
{
,
tool_outputs:
[
]
,
{
,
type:
string
,
tool_call_id:
string
,
}
stream:
boolean
,
}
⚐ Response (200)
{
id:
string
,
object:
enum
,
thread_id:
string
,
assistant_id:
string
,
status:
enum
,
required_action:
{
,
type:
string
,
}
last_error:
{
,
code:
string
,
message:
string
,
}
model:
string
,
instructions:
string
,
tools:
[
]
,
{
,
type:
string
,
}
created_at:
integer
,
expires_at:
integer
,
started_at:
integer
,
completed_at:
integer
,
cancelled_at:
integer
,
failed_at:
integer
,
incomplete_details:
{
,
reason:
enum
,
}
usage:
{
,
completion_tokens:
integer
,
prompt_tokens:
integer
,
total_tokens:
integer
,
}
temperature:
number
,
top_p:
number
,
max_prompt_tokens:
integer
,
max_completion_tokens:
integer
,
truncation_strategy:
{
,
type:
enum
,
last_messages:
integer
,
}
tool_choice:
string
,
response_format:
string
,
metadata:
object
,
tool_resources:
{
,
code_interpreter:
{
,
file_ids:
[
,
string
,
]
data_sources:
}
[
]
,
{
,
uri:
string
,
type:
enum
,
}
file_search:
{
,
vector_store_ids:
[
,
string
,
]
vector_stores:
}
[
]
,
{
,
name:
string
,
configuration:
}
{
,
data_sources:
}
[
]
,
{
,
uri:
string
,
type:
enum
,
}
azure_ai_search:
}
{
,
indexes:
}
[
]
,
{
,
index_connection_id:
string
,
index_name:
string
,
query_type:
enum
,
top_k:
integer
,
filter:
string
,
index_asset_id:
string
,
}
parallel_tool_calls:
boolean
,
}
⚐ Response (default)
{
error:
}
{
,
message:
string
,
type:
string
,
param:
string
,
code:
string
,
}