GenericAgentEnvironment

class GenericAgentEnvironment(agentId: String, logger: KLogger, toolRegistry: ToolRegistry) : AIAgentEnvironment(source)

Represents base agent environment with generic abstractions.

Constructors

Link copied to clipboard
constructor(agentId: String, logger: KLogger, toolRegistry: ToolRegistry)

Functions

Link copied to clipboard
open suspend override fun executeTool(toolCall: Message.Tool.Call): ReceivedToolResult

Executes a tool call and returns its result.

Link copied to clipboard

Executes a batch of tool calls within the AI agent environment and processes their results.

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

Reports a problem that occurred within the environment.