import { Runs } from "https://deno.land/x/openai@v4.31.0/resources/beta/threads/runs/mod.ts";
import { Runs } from "https://deno.land/x/openai@v4.31.0/resources/beta/threads/runs/mod.ts";
Methods
Cancels a run that is in_progress
.
create(): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>
createAndStream(): AssistantStream
threadId: string,
body: RunCreateParamsBaseStream,
options?: Core.RequestOptions,
Create a Run stream
Retrieves a run.
submitToolOutputs(): APIPromise<Run>
threadId: string,
runId: string,
options?: Core.RequestOptions,
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.
submitToolOutputs(): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>
threadId: string,
runId: string,
options?: Core.RequestOptions,
submitToolOutputs(): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent> | Run>
threadId: string,
runId: string,
body: RunSubmitToolOutputsParamsBase,
options?: Core.RequestOptions,
submitToolOutputsStream(): AssistantStream
threadId: string,
runId: string,
body: RunSubmitToolOutputsParamsStream,
options?: Core.RequestOptions,
Submit the tool outputs from a previous run and stream the run to a terminal state.