Skip to main content

Crate harness_rs_loop

Crate harness_rs_loop 

Source
Expand description

ReAct agent loop with self-correction.

Minimal v0.0.1 implementation:

  • Applies guides once at the start.
  • Sends Context (with tools) to the model.
  • Dispatches each returned tool call via ToolRegistry.
  • Runs Sensor::SelfCorrect sensors 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_iters is hit.

Re-exports§

pub use registry::*;
pub use replay::*;
pub use subagent::*;

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§

AgentLoop
The agent loop.

Enums§

Outcome
Where a run finished.

Functions§

apply_patches
Apply auto-fix patches; return short descriptions of those that succeeded.