Manages runs on threads. A run executes an assistant's logic against
a thread's messages and produces a response.
Access via client$threads$runs.
"queued" → "in_progress" → "completed" (success)
or → "requires_action" (tool call needed) → "in_progress" (after submitting outputs)
or → "failed" / "cancelled" / "expired"
new()RunsClient$new(parent)
create()RunsClient$create(
thread_id,
assistant_id,
model = NULL,
instructions = NULL,
additional_instructions = NULL,
additional_messages = NULL,
tools = NULL,
metadata = NULL,
temperature = NULL,
top_p = NULL,
max_prompt_tokens = NULL,
max_completion_tokens = NULL,
truncation_strategy = NULL,
tool_choice = NULL,
parallel_tool_calls = NULL,
response_format = NULL,
stream = NULL,
callback = NULL
)
list()RunsClient$list(
thread_id,
limit = NULL,
order = NULL,
after = NULL,
before = NULL
)
retrieve()RunsClient$retrieve(thread_id, run_id)
update()RunsClient$update(thread_id, run_id, metadata = NULL)
cancel()RunsClient$cancel(thread_id, run_id)
submit_tool_outputs()RunsClient$submit_tool_outputs(
thread_id,
run_id,
tool_outputs,
stream = NULL,
callback = NULL
)
clone()The objects of this class are cloneable with this method.
RunsClient$clone(deep = FALSE)deepWhether to make a deep clone.