Package-level declarations
Types
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.
Functions
Adds a tool result to the prompt.
Converts an instance of AIAgentEnvironmentToolResultToAgentContent
to a ReceivedToolResult
.
Converts an instance of AIAgentEnvironmentToolResultToAgentContent to a ReceivedToolResult.
Converts a ReceivedToolResult instance into a SafeTool.Result for safer result handling.