Package-level declarations
Types
Link copied to clipboard
open class AIAgent(val promptExecutor: PromptExecutor, strategy: AIAgentStrategy, val agentConfig: AIAgentConfigBase, val toolRegistry: ToolRegistry = ToolRegistry.EMPTY, installFeatures: AIAgent.FeatureContext.() -> Unit = {}) : AIAgentBase, AIAgentEnvironment, Closeable
Represents an implementation of an AI agent that provides functionalities to execute prompts, manage tools, handle agent pipelines, and interact with various configurable strategies and features.
Link copied to clipboard
interface AIAgentBase
Represents a basic interface for AI agent.
Link copied to clipboard
Represents a custom exception class for use in AI Agent-related processes.
Link copied to clipboard
class AIAgentTool(agent: AIAgentBase, agentName: String, agentDescription: String, requestDescription: String = "Input for the task") : Tool<AIAgentTool.AgentToolArgs, AIAgentTool.AgentToolResult>
AIAgentTool is a specialized tool that integrates an AI agent for processing tasks by leveraging input arguments and producing corresponding results.
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.