Interface DynamicStructuredToolInput<T>

Interface for the input parameters of the DynamicStructuredTool class.

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

Type Parameters

  • T extends ZodAny = ZodAny

Hierarchy (view full)

Properties

description: string
func: ((input, runManager?, config?) => Promise<string>)

Type declaration

name: string
schema: T
callbacks?: CallbackManager | (BaseCallbackHandlerMethodsClass | BaseCallbackHandler)[]
metadata?: Record<string, unknown>
returnDirect?: boolean
tags?: string[]
verbose?: boolean

Generated using TypeDoc