AIAgentEnvironment

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.

Inheritors

Functions

Link copied to clipboard

Executes a single tool call and retrieves the result.

Link copied to clipboard
abstract suspend fun executeTools(toolCalls: List<Message.Tool.Call>): List<ReceivedToolResult>

Executes a list of tool calls and returns their corresponding results.

Link copied to clipboard
abstract suspend fun reportProblem(exception: Throwable)

Reports a problem that occurred within the environment.