Interface BaseLanguageModelInterface<RunOutput, CallOptions>

Base interface implemented by all runnables. Used for cross-compatibility between different versions of LangChain core.

Should not change on patch releases.

Type Parameters

Hierarchy

Implemented by

Properties

CallOptions: CallOptions

Accessors

  • get callKeys(): string[]
  • Returns string[]

Methods

  • Parameters

    Returns Promise<RunOutput[]>

  • Parameters

    Returns Promise<(Error | RunOutput)[]>

  • Parameters

    Returns Promise<(Error | RunOutput)[]>

  • Parameters

    Returns Promise<(Error | RunOutput)[]>

  • Parameters

    • promptValues: BasePromptValueInterface[]
    • Optional options: string[] | CallOptions
    • Optional callbacks: Callbacks

    Returns Promise<LLMResult>

  • Parameters

    Returns Promise<number>

  • Parameters

    Returns Promise<RunOutput>

  • Parameters

    • text: string
    • Optional options: string[] | CallOptions
    • Optional callbacks: Callbacks

    Returns Promise<string>

  • Parameters

    Returns Promise<BaseMessage>

  • Parameters

    Returns Promise<IterableReadableStreamInterface<RunOutput>>

  • Parameters

    Returns AsyncGenerator<RunOutput, any, unknown>

Generated using TypeDoc