langchain.js
    Preparing search index...

    Parameters for the Tool classes.

    interface FakeToolParams<T extends InteropZodObject = InteropZodObject> {
        callbacks?: Callbacks;
        defaultConfig?: ToolRunnableConfig<Record<string, any>, any>;
        description: string;
        metadata?: Record<string, unknown>;
        name: string;
        responseFormat?: string;
        schema: T;
        tags?: string[];
        verbose?: boolean;
        verboseParsingErrors?: boolean;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    callbacks?: Callbacks
    defaultConfig?: ToolRunnableConfig<Record<string, any>, any>

    Default config object for the tool runnable.

    description: string
    metadata?: Record<string, unknown>
    name: string
    responseFormat?: string

    The tool response format.

    If "content" then the output of the tool is interpreted as the contents of a ToolMessage. If "content_and_artifact" then the output is expected to be a two-tuple corresponding to the (content, artifact) of a ToolMessage.

    "content"
    
    schema: T
    tags?: string[]
    verbose?: boolean
    verboseParsingErrors?: boolean

    Whether to show full details in the thrown parsing errors.

    false