Hierarchy

  • APIResource
    • Threads

Constructors

  • Parameters

    • client: OpenAI

    Returns Threads

Properties

messages: Messages
runs: Runs

Methods

  • Create a thread and stream the run back

    Parameters

    • body: ThreadCreateAndRunParamsBaseStream
    • Optionaloptions: RequestOptions<unknown>

    Returns AssistantStream

  • Delete a thread.

    Parameters

    • threadId: string
    • Optionaloptions: RequestOptions<unknown>

    Returns APIPromise<ThreadDeleted>

  • Retrieves a thread.

    Parameters

    • threadId: string
    • Optionaloptions: RequestOptions<unknown>

    Returns APIPromise<OpenAIClient.Beta.Threads.Thread>