Parameters for the Tool classes.

interface FakeToolParams<T> {
    description: string;
    name: string;
    schema: T;
    callbacks?: Callbacks;
    metadata?: Record<string, unknown>;
    responseFormat?: string;
    tags?: string[];
    verbose?: boolean;
}

Type Parameters

  • T extends z.ZodObject<any, any, any, any> = z.ZodObject<any, any, any, any>

Hierarchy (view full)

Properties

description: string
name: string
schema: T
callbacks?: Callbacks
metadata?: Record<string, unknown>
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"
tags?: string[]
verbose?: boolean