The Assistants API is deprecated in favor of the Responses API

Hierarchy

  • APIResource
    • Threads

Constructors

  • Parameters

    Returns Threads

Properties

Methods

  • Create a thread and stream the run back

    Parameters

    • body: ThreadCreateAndRunParamsBaseStream
    • Optionaloptions: RequestOptions

    Returns AssistantStream

  • Delete a thread.

    Parameters

    • threadID: string
    • Optionaloptions: RequestOptions

    Returns APIPromise<ThreadDeleted>

    The Assistants API is deprecated in favor of the Responses API

  • Retrieves a thread.

    Parameters

    • threadID: string
    • Optionaloptions: RequestOptions

    Returns APIPromise<OpenAIClient.Beta.Threads.Thread>

    The Assistants API is deprecated in favor of the Responses API