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<(RunOutput | Error)[]>

  • Parameters

    Returns Promise<(RunOutput | Error)[]>

  • Parameters

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

    Returns Promise<LLMResult>

  • Parameters

    Returns Promise<number>

  • Parameters

    Returns Promise<RunOutput>

  • Parameters

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

    Returns Promise<string>

    ⚠️ Deprecated ⚠️

    Use .invoke() instead. Will be removed in 0.2.0.

    This feature is deprecated and will be removed in the future.

    It is not recommended for use.

  • Parameters

    • messages: BaseMessage[]
    • Optional options: CallOptions | string[]
    • Optional callbacks: Callbacks

    Returns Promise<BaseMessage>

    Deprecated

    Use .invoke() instead. Will be removed in 0.2.0.

  • Parameters

    Returns Promise<IterableReadableStreamInterface<RunOutput>>

  • Parameters

    Returns AsyncGenerator<RunOutput, any, unknown>

Generated using TypeDoc