AIAgent
Types
Functions
Link copied to clipboard
inline fun <Input, Output> AIAgent<Input, Output>.asTool(agentName: String, agentDescription: String, inputDescription: String? = null, inputSerializer: KSerializer<Input> = serializer(), outputSerializer: KSerializer<Output> = serializer(), json: Json = Json.Default): Tool<AIAgentTool.AgentToolArgs, AIAgentTool.AgentToolResult>
Converts the current AI agent into a tool to allow using it in other agents as a tool.
Link copied to clipboard
Retrieves the current state of the AI agent during its lifecycle.
Link copied to clipboard
Checks whether the AI agent has reached a finished state.