submit_tool_outputs_to_run: Submit Tool Outputs To Run - Beta

View source: R/functions.R

submit_tool_outputs_to_runR Documentation

Submit Tool Outputs To Run - Beta

Description

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.

Usage

submit_tool_outputs_to_run(
  run_id,
  thread_id,
  tool_outputs,
  return_response = F
)

Arguments

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).

See Also

Open AI Documentation


samterfa/openai documentation built on Oct. 9, 2024, 5:18 p.m.