Expand description
ReAct agent loop with self-correction.
Minimal v0.0.1 implementation:
- Applies guides once at the start.
- Sends
Context(withtools) to the model. - Dispatches each returned tool call via
ToolRegistry. - Runs
Sensor::SelfCorrectsensors after each action; auto-fix patches are applied directly to the world, blocking signals are fed back to the model. - Stops when the model returns no tool calls, or when
policy.max_itersis hit.
Re-exports§
Modules§
- registry
- A tiny name-keyed tool registry used by
AgentLoop. - replay
- Session record + replay (DESIGN.md §15 v0.2+).
- subagent
- Subagent: an isolated agent loop spawned from a parent.
Structs§
- Agent
Loop - The agent loop.
Enums§
- Outcome
- Where a run finished.
Functions§
- apply_
patches - Apply auto-fix patches; return short descriptions of those that succeeded.