Skip to main content

Module agent

Module agent 

Source
Expand description

Agent orchestrator implementing the Think → Act → Observe event loop.

The Agent struct ties together the Brain, ToolRegistry, Memory, and Safety Guardian to autonomously execute tasks through LLM-powered reasoning.

Structs§

Agent
The Agent orchestrator running the Think → Act → Observe loop.
NoOpCallback
A no-op callback for testing.
RecordingCallback
A callback that records all events for test assertions.
RegisteredTool
A registered tool with its definition and executor.
TaskResult
The result of a completed task.

Enums§

AgentMessage
Messages sent to the agent loop via the handle.
BudgetSeverity
Severity of a budget warning or exceeded condition.
ContextHealthEvent
Event emitted for context window health monitoring.

Traits§

AgentCallback
Callback trait for user interaction (approval, display).

Type Aliases§

ToolExecutor
A tool executor function type. The agent holds tool executors and their definitions.