AIAgentTool

constructor(agentService: AIAgentService<Input, Output, *>, agentName: String, agentDescription: String, inputDescription: String? = null, inputSerializer: KSerializer<Input>, outputSerializer: KSerializer<Output>, json: Json = Json.Default, parentAgentId: String? = null)(source)

Parameters

Input

The type of input expected by the AI agent.

Output

The type of output produced by the AI agent.

parentAgentId

Optional ID of the parent AI agent. Tool agent IDs will be generated as "parentAgentId."