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.
Parameters
Type of agent input.
Type of agent output.
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
Configuration details for the local agent that define its operational parameters.
Executor used to manage and execute prompt strings.
Registry of tools the agent can interact with, defaulting to an empty registry.
Functions
Converts the current AI agent into a tool to allow using it in other agents as a tool.
Executes a single tool call and retrieves the result.
Executes a list of tool calls and returns their corresponding results.
Reports a problem that occurred within the environment.