Interface DynamicToolInput<RunOutput>

Interface for the input parameters of the DynamicTool class.

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

Type Parameters

Hierarchy (view full)

Properties

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