Interface DynamicToolInput<RunOutput>

Interface for the input parameters of the DynamicTool class.

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

Type Parameters

  • RunOutput = any

Hierarchy (view full)

Properties

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

Type declaration

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

Generated using TypeDoc