AIAgentTool

constructor(agent: AIAgentBase, agentName: String, agentDescription: String, requestDescription: String = "Input for the task")(source)

Creates an instance of AIAgentTool with the specified AI agent, its name, description, and an optional description for the request parameter.

Parameters

agent

The AI agent that implements the AIAgentBase interface and handles task execution.

agentName

A name assigned to the tool that helps identify it.

agentDescription

A brief description of what the tool does.

requestDescription

An optional description of the input to the tool, defaulting to "Input for the task".