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

    Returns APIPromise<ThreadDeleted>