Interface DynamicStructuredToolInput<T, RunOutput>

Interface for the input parameters of the DynamicStructuredTool class.

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

Type Parameters

  • T extends ZodAny = ZodAny

  • RunOutput extends string | Record<string, any> = string

Hierarchy (view full)

Properties

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

Type declaration

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

Generated using TypeDoc