AIAgentBase
Functions
Link copied to clipboard
fun AIAgentBase.asTool(agentDescription: String, name: String? = null, requestDescription: String = "Input for the task"): Tool<AIAgentTool.AgentToolArgs, AIAgentTool.AgentToolResult>
Converts the current AI agent into a tool that can be utilized with the specified parameters.
Link copied to clipboard
Executes the AI agent with the given prompt and retrieves the resulting output.