提交工具输出到运行

When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.

post
Authorizations
x-portkey-api-keystringRequired
x-portkey-virtual-keystringRequired
Path parameters
thread_idstringRequired

The ID of the thread to which this run belongs.

run_idstringRequired

The ID of the run that requires the tool output submission.

Body
streamboolean | nullableOptional

If true, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a data: [DONE] message.

Responses
200

OK

application/json
post
/threads/{thread_id}/runs/{run_id}/submit_tool_outputs
200

OK

Last updated