Interface DynamicStructuredToolInput<T>

Interface for the input parameters of the DynamicStructuredTool class.

interface DynamicStructuredToolInput<T> {
    description: string;
    func: ((input: TypeOf<T>, runManager?: CallbackManagerForToolRun, config?: RunnableConfig) => Promise<string>);
    name: string;
    schema: T;
    callbacks?: Callbacks;
    metadata?: Record<string, unknown>;
    returnDirect?: boolean;
    tags?: string[];
    verbose?: boolean;
}

Type Parameters

  • T extends ZodAny = ZodAny

Hierarchy (view full)

Properties

description: string
func: ((input: TypeOf<T>, runManager?: CallbackManagerForToolRun, config?: RunnableConfig) => Promise<string>)
name: string
schema: T
callbacks?: Callbacks
metadata?: Record<string, unknown>
returnDirect?: boolean
tags?: string[]
verbose?: boolean