Configuration for AgentTool

interface AgentToolConfig {
    name: string;
    description?: string;
    agent: BaseAgentType;
    functionDeclaration?: FunctionDeclaration;
    outputKey?: string;
    skipSummarization?: boolean;
    isLongRunning?: boolean;
    shouldRetryOnFailure?: boolean;
    maxRetryAttempts?: number;
}

Properties

name: string

Name of the tool

description?: string

Description of the tool

The agent that will be used as a tool

functionDeclaration?: FunctionDeclaration

Optional function declaration schema override

outputKey?: string

Optional key to store the tool output in the state

skipSummarization?: boolean

Optional flag to skip summarization of the agent's response

isLongRunning?: boolean

Whether the tool is a long running operation

shouldRetryOnFailure?: boolean

Whether the tool execution should be retried on failure

maxRetryAttempts?: number

Maximum retry attempts