AIAgentTool
AIAgentTool is a generic tool that wraps an AI agent to facilitate integration with the context of a tool execution framework. It enables the serialization, deserialization, and execution of an AI agent's operations.
Parameters
The AI agent service to create the agent.
A unique name for the agent.
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.
Type token representing input type.
Type token representing output type.
Optional ID of the parent AI agent. Tool agent IDs will be generated as "parentAgentId.
Type Parameters
The type of input expected by the AI agent.
The type of output produced by the AI agent.
Constructors
Types
Represents the input for AIAgent used as Tool (see AIAgent.asTool)
Represents the result of executing an agent tool operation.