Hierarchy

  • APIResource
    • Runs

Constructors

  • Parameters

    • client: OpenAI

    Returns Runs

Properties

steps: Steps

Methods

  • Cancels a run that is in_progress.

    Parameters

    • threadId: string
    • runId: string
    • Optionaloptions: RequestOptions<unknown>

    Returns APIPromise<OpenAIClient.Beta.Threads.Runs.Run>

  • Create a Run stream

    Parameters

    • threadId: string
    • body: RunCreateParamsBaseStream
    • Optionaloptions: RequestOptions<unknown>

    Returns AssistantStream

    use stream instead

  • Retrieves a run.

    Parameters

    • threadId: string
    • runId: string
    • Optionaloptions: RequestOptions<unknown>

    Returns APIPromise<OpenAIClient.Beta.Threads.Runs.Run>

  • Create a Run stream

    Parameters

    • threadId: string
    • body: RunCreateParamsBaseStream
    • Optionaloptions: RequestOptions<unknown>

    Returns AssistantStream

  • Submit the tool outputs from a previous run and stream the run to a terminal state. More information on Run lifecycles can be found here: https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps

    Parameters

    • threadId: string
    • runId: string
    • body: RunSubmitToolOutputsParamsStream
    • Optionaloptions: RequestOptions<unknown>

    Returns AssistantStream