Hierarchy

  • APIResource
    • Runs

Constructors

  • Parameters

    Returns Runs

Properties

_client: openai.OpenAI
steps: Steps

Methods

  • Cancels a run that is in_progress.

    Parameters

    • threadId: string
    • runId: string
    • Optional options: RequestOptions<unknown>

    Returns APIPromise<Run>

  • Create a run.

    Parameters

    Returns APIPromise<Run>

  • Returns a list of runs belonging to a thread.

    Parameters

    Returns PagePromise<RunsPage, Run>

  • Parameters

    Returns PagePromise<RunsPage, Run>

  • Retrieves a run.

    Parameters

    • threadId: string
    • runId: string
    • Optional options: RequestOptions<unknown>

    Returns APIPromise<Run>

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

    Parameters

    Returns APIPromise<Run>

  • Modifies a run.

    Parameters

    Returns APIPromise<Run>

Generated using TypeDoc