Functions
Link copied to clipboard
abstract suspend fun cancel(threadId: ThreadId, runId: RunId, requestOptions: RequestOptions? = null): Run
Cancels a run that is Status.InProgress.
Link copied to clipboard
abstract suspend fun createRun(threadId: ThreadId, request: RunRequest, requestOptions: RequestOptions? = null): Run
Create a run.
Link copied to clipboard
abstract suspend fun createThreadRun(request: ThreadRunRequest, requestOptions: RequestOptions? = null): Run
Create a thread and run it in one request.
Link copied to clipboard
abstract suspend fun submitToolOutput(threadId: ThreadId, runId: RunId, output: List<ToolOutput>, requestOptions: RequestOptions? = null): Run
When a run has the status: Status.RequiresAction and required action is RequiredAction.SubmitToolOutputs, 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.