Class OpenAIAssistantRunnable<AsAgent, RunInput>

Type Parameters

  • AsAgent extends boolean | undefined

  • RunInput extends Record<string, any> = Record<string, any>

Hierarchy

  • Runnable<RunInput, ExtractRunOutput<AsAgent>>
    • OpenAIAssistantRunnable

Constructors

  • Type Parameters

    • AsAgent extends undefined | boolean

    • RunInput extends Record<string, any> = Record<string, any>

    Parameters

    Returns OpenAIAssistantRunnable<AsAgent, RunInput>

Properties

assistantId: string
pollIntervalMs: number = 1000
asAgent?: AsAgent

Methods

  • Delete an assistant.

    Returns Promise<AssistantDeleted>

    Link

  • Retrieves an assistant.

    Returns Promise<Assistant>

    Link

  • Parameters

    • input: RunInput
    • Optional _options: BaseCallbackConfig

    Returns Promise<ExtractRunOutput<AsAgent>>

  • Modifies an assistant.

    Type Parameters

    • AsAgent extends boolean

    Parameters

    • __namedParameters: Omit<OpenAIAssistantRunnableInput<AsAgent>, "tools" | "assistantId"> & {
          fileIds?: string[];
          instructions?: string;
          model?: string;
          name?: string;
      }

    Returns Promise<Assistant>

    Link

  • Type Parameters

    • AsAgent extends boolean

    Parameters

    • __namedParameters: Omit<OpenAIAssistantRunnableInput<AsAgent>, "assistantId"> & {
          model: string;
          fileIds?: string[];
          instructions?: string;
          name?: string;
          tools?: StructuredTool<ZodObject<any, any, any, any, {}>>[] | OpenAIToolType;
      }

    Returns Promise<OpenAIAssistantRunnable<AsAgent, Record<string, any>>>

Generated using TypeDoc