Type Alias ToolRunnableConfig<ConfigurableFieldType>

ToolRunnableConfig<ConfigurableFieldType>: {
    callbacks?: undefined | Callbacks;
    configurable: undefined | ConfigurableFieldType;
    maxConcurrency?: undefined | number;
    metadata?: undefined | Record<string, unknown>;
    recursionLimit?: undefined | number;
    runId?: undefined | string;
    runName?: undefined | string;
    signal?: undefined | AbortSignal;
    tags?: undefined | string[];
    timeout?: undefined | number;
    toolCall?: undefined | ToolCall;
}

Type Parameters

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

Type declaration

  • Optionalcallbacks?: undefined | Callbacks

    Callbacks for this call and any sub-calls (eg. a Chain calling an LLM). Tags are passed to all callbacks, metadata is passed to handle*Start callbacks.

  • configurable: undefined | ConfigurableFieldType
  • OptionalmaxConcurrency?: undefined | number

    Maximum number of parallel calls to make.

  • Optionalmetadata?: undefined | Record<string, unknown>

    Metadata for this call and any sub-calls (eg. a Chain calling an LLM). Keys should be strings, values should be JSON-serializable.

  • OptionalrecursionLimit?: undefined | number

    Maximum number of times a call can recurse. If not provided, defaults to 25.

  • OptionalrunId?: undefined | string

    Unique identifier for the tracer run for this call. If not provided, a new UUID will be generated.

  • OptionalrunName?: undefined | string

    Name for the tracer run for this call. Defaults to the name of the class.

  • Optionalsignal?: undefined | AbortSignal

    Abort signal for this call. If provided, the call will be aborted when the signal is aborted.

  • Optionaltags?: undefined | string[]

    Tags for this call and any sub-calls (eg. a Chain calling an LLM). You can use these to filter calls.

  • Optionaltimeout?: undefined | number

    Timeout for this call in milliseconds.

  • OptionaltoolCall?: undefined | ToolCall