Package-level declarations
Types
AIAgentEnvironment provides a mechanism for AI agents to interface with an external environment. It offers methods for tool execution, error reporting, and sending termination messages.
Represents base agent environment with generic abstractions.
Represents the result or response received from a tool operation.
A wrapper class designed to safely execute a tool within a given AI agent environment. It provides mechanisms for handling tool execution results and differentiating between success and failure cases.
A wrapper class that creates a safer abstraction for executing a tool function alongside an associated environment. The tool function is backed by a callable in the form of a KFunction and interacts with the AIAgentEnvironment to perform operations and exchange data.
Provides constants related to the termination tool functionality in an AI agent environment.
Represents the possible result types for a tool operation.
Functions
Executes a batch of tool calls within the AI agent environment and processes their results.
Adds a tool result to the prompt.
Converts a ReceivedToolResult instance into a SafeTool.Result for safer result handling.