ChatWatsonxConstructor: {
    authenticator?: undefined | string;
    cache?: undefined | boolean | BaseCache<Generation[]>;
    callbackManager?: undefined | CallbackManager;
    callbacks?: undefined | Callbacks;
    disableStreaming?: undefined | boolean;
    frequencyPenalty: undefined | number;
    idOrName?: undefined | string;
    logprobs: undefined | boolean;
    maxConcurrency?: undefined | number;
    maxRetries?: undefined | number;
    maxTokens: undefined | number;
    metadata?: undefined | Record<string, unknown>;
    model: undefined | string;
    n: undefined | number;
    onFailedAttempt?: undefined | FailedAttemptHandler;
    presencePenalty: undefined | number;
    projectId?: undefined | string;
    responseFormat: undefined | TextChatResponseFormat;
    serviceUrl: string;
    spaceId?: undefined | string;
    streaming?: undefined | boolean;
    tags?: undefined | string[];
    temperature: undefined | number;
    timeLimit: undefined | number;
    toolChoiceOption: undefined | string;
    tools: undefined | TextChatParameterTools[];
    topLogprobs: undefined | number;
    topP: undefined | number;
    verbose?: undefined | boolean;
    version: string;
    watsonxCallbacks?: undefined | RequestCallbacks<any>;
}

Type declaration

  • Optionalauthenticator?: undefined | string
  • Optionalcache?: undefined | boolean | BaseCache<Generation[]>
  • OptionalcallbackManager?: undefined | CallbackManager

    Use callbacks instead

  • Optionalcallbacks?: undefined | Callbacks
  • OptionaldisableStreaming?: undefined | boolean

    Whether to disable streaming.

    If streaming is bypassed, then stream() will defer to invoke().

    • If true, will always bypass streaming case.
    • If false (default), will always use streaming case if available.
  • frequencyPenalty: undefined | number
  • OptionalidOrName?: undefined | string
  • logprobs: undefined | boolean
  • OptionalmaxConcurrency?: undefined | number

    The maximum number of concurrent calls that can be made. Defaults to Infinity, which means no limit.

  • OptionalmaxRetries?: undefined | number

    The maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.

  • maxTokens: undefined | number
  • Optionalmetadata?: undefined | Record<string, unknown>
  • model: undefined | string
  • n: undefined | number
  • OptionalonFailedAttempt?: undefined | FailedAttemptHandler

    Custom handler to handle failed attempts. Takes the originally thrown error object as input, and should itself throw an error if the input error is not retryable.

  • presencePenalty: undefined | number
  • OptionalprojectId?: undefined | string
  • responseFormat: undefined | TextChatResponseFormat
  • serviceUrl: string
  • OptionalspaceId?: undefined | string
  • Optionalstreaming?: undefined | boolean
  • Optionaltags?: undefined | string[]
  • temperature: undefined | number
  • timeLimit: undefined | number
  • toolChoiceOption: undefined | string
  • tools: undefined | TextChatParameterTools[]
  • topLogprobs: undefined | number
  • topP: undefined | number
  • Optionalverbose?: undefined | boolean
  • version: string
  • OptionalwatsonxCallbacks?: undefined | RequestCallbacks<any>