Package-level declarations
Types
Link copied to clipboard
interface AIAgentEnvironment
Link copied to clipboard
data class ReceivedToolResult(val id: String?, val tool: String, val content: String, val result: ToolResult?)
Link copied to clipboard
data class SafeTool<TArgs : Tool.Args, TResult : ToolResult>(tool: Tool<TArgs, TResult>, environment: AIAgentEnvironment)
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.
Link copied to clipboard
data class SafeToolFromCallable<TResult>(val toolFunction: KFunction<TResult>, environment: AIAgentEnvironment)
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.
Link copied to clipboard
object TerminationTool
Provides constants related to the termination tool functionality in an AI agent environment.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Converts a ReceivedToolResult instance into a SafeTool.Result for safer result handling.