submit_tool_outputs_to_run | R Documentation |
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.
submit_tool_outputs_to_run(
run_id,
thread_id,
tool_outputs,
return_response = F
)
run_id |
(string) The ID of the run that requires the tool output submission. Required |
thread_id |
(string) The ID of the thread to which this run belongs. Required |
tool_outputs |
(array) A list of tools for which the outputs are being submitted. Required |
return_response |
(boolean) Whether to return the API response or parse the contents of the response. Defaults to FALSE (parse the response). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.