langchain.js
    Preparing search index...

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    frequencyPenalty?: number
    idOrName?: string
    lc_serializable: boolean = true
    logprobs?: boolean
    maxCompletionTokens?: number
    maxConcurrency?: number
    maxRetries: number = 0
    maxTokens?: number
    model?: string
    n?: number
    presencePenalty?: number
    projectId?: string
    responseFormat?: TextChatResponseFormat
    service: WatsonxAiMlVml_v1
    serviceUrl: string
    spaceId?: string
    streaming: boolean
    temperature?: number
    timeLimit?: number
    topLogprobs?: number
    topP?: number
    version: string = "2024-05-31"
    watsonxCallbacks?: RequestCallbacks<any>

    Accessors

    • get lc_aliases(): { [key: string]: string }

      Returns { [key: string]: string }

    • get lc_secrets(): { [key: string]: string }

      Returns { [key: string]: string }

    Methods

    • Parameters

      • messages: BaseMessage[]
      • options: unknown
      • OptionalrunManager: any

      Returns Promise<ChatResult>

    • Returns string

    • Parameters

      • messages: BaseMessage[]
      • options: unknown
      • Optional_runManager: any

      Returns AsyncGenerator<ChatGenerationChunk>

    • Parameters

      Returns Runnable<BaseLanguageModelInput, AIMessageChunk, CallOptions>

    • Type Parameters

      • T

      Parameters

      • callback: () => T
      • Optionaloptions: unknown

      Returns Promise<any>

    • Parameters

      • options: unknown

      Returns LangSmithParams

    • Parameters

      • options: unknown

      Returns any

    • Parameters

      • options: unknown

      Returns {
          frequencyPenalty: any;
          logprobs: any;
          maxCompletionTokens: any;
          maxTokens: any;
          n: any;
          presencePenalty: any;
          responseFormat: any;
          temperature: any;
          timeLimit: any;
          tools: undefined | TextChatParameterTools[];
          topLogprobs: any;
          topP: any;
      }

    • Returns
          | { idOrName: string }
          | { modelId: string; projectId: string }
          | { modelId: string; spaceId: string }
          | { modelId: string }

    • Type Parameters

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

      Parameters

      • outputSchema: any
      • Optionalconfig: any

      Returns Runnable<BaseLanguageModelInput, RunOutput>

    • Type Parameters

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

      Parameters

      • outputSchema: any
      • Optionalconfig: any

      Returns Runnable<BaseLanguageModelInput, { parsed: RunOutput; raw: BaseMessage }>

    • Returns string