Class ChatContext<Settings>Abstract

Type Parameters

  • Settings = any

Hierarchy (view full)

Implements

Constructors

Methods

Constructors

  • Type Parameters

    • Settings = any

    Parameters

    • Optional options: EventEmitterOptions

    Returns ChatContext<Settings>

Methods

  • Prompt the model and stream the response

    Parameters

    • prompt: string
    • Optional overrideSettings: Partial<Settings>

    Returns Promise<null | string>

  • Parameters

    • prompt: string
    • Optional onToken: ((token) => void)
        • (token): void
        • Parameters

          • token: string

          Returns void

    • Optional overrideSettings: Partial<Settings>

    Returns Promise<null | string>