AIAgent
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.
The agent operates within a coroutine scope and leverages a tool registry and feature context to enable dynamic additions or configurations during its lifecycle. Its behavior is driven by a local agent strategy and executed via a prompt executor.
Constructors
Initializes the AI agent instance and prepares the feature context and pipeline for use.
Types
The context for adding and configuring features in a Kotlin AI Agent instance.
Properties
Functions
Converts the current AI agent into a tool that can be utilized with the specified parameters.
Executes the AI agent with the given prompt and retrieves the resulting output.