AIAgentTool

constructor(agentService: AIAgentService<Input, Output, *>, agentName: String, agentDescription: String, inputDescription: String? = null, inputType: TypeToken, outputType: TypeToken, parentAgentId: String? = null)(source)

Parameters

agentService

The AI agent service to create the agent.

agentName

A unique name for the agent.

agentDescription

A brief description of the agent's functionality. If not specified for a primitive input type (ex: String, Int, ...), an empty input description will be sent to LLM. Does not have any effect for non-primitive Input type with @LLMDescription annotations.

inputType

Type token representing input type.

outputType

Type token representing output type.

parentAgentId

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

Type Parameters

Input

The type of input expected by the AI agent.

Output

The type of output produced by the AI agent.


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

Deprecated

Use constructor with TypeToken instead of KSerializer