AIAgentTool

constructor(agent: AIAgentBase<Input, Output>, agentName: String, agentDescription: String, inputDescriptor: ToolParameterDescriptor, inputSerializer: KSerializer<Input>, outputSerializer: KSerializer<Output>, json: Json = Json.Default)(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.