Enviar saídas da ferramenta para executar (v1)
POST
https://api.openai.com/v1/threads/thread_123/runs/run_123/submit_tool_outputs
status: "requires_action"
e required_action.type
é submit_tool_outputs
, este endpoint pode ser utilizado para enviar as saídas das chamadas de ferramentas assim que todas estiverem concluídas. Todas as saídas devem ser enviadas numa única solicitação.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/threads/thread_123/runs/run_123/submit_tool_outputs' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
{
"id": "string",
"object": "string",
"created_at": 0,
"assistant_id": "string",
"thread_id": "string",
"status": "string",
"started_at": 0,
"expires_at": 0,
"cancelled_at": null,
"failed_at": null,
"completed_at": null,
"last_error": null,
"model": "string",
"instructions": null,
"incomplete_details": null,
"tools": [
{
"type": "string",
"function": {
"name": "string",
"description": "string",
"parameters": {
"type": "string",
"properties": {
"location": {
"type": "string",
"description": "string"
},
"unit": {
"type": "string",
"enum": [
"string"
]
}
},
"required": [
"string"
]
}
}
}
],
"file_ids": [
"string"
],
"metadata": {},
"usage": null,
"temperature": 0,
"top_p": 0,
"max_prompt_tokens": 0,
"max_completion_tokens": 0,
"truncation_strategy": {
"type": "string",
"last_messages": null
},
"response_format": "string",
"tool_choice": "string"
}
Request
Body Params application/json
Responses
Modified at 2025-01-26 08:57:35