Expand description
Agent + Loop trait + shipped loops.
Shipped loops are feature-gated:
react(default):ReactLoop— thought → action → observation.conversation: [ConversationLoop] — alternates agent + user simulator.reflexion: [run_reflexion] helper (not aLoopimpl).
Re-exports§
pub use agent::Agent;pub use agent::AgentBuilder;pub use config::AgentConfig;pub use loop_trait::Loop;pub use loop_trait::LoopContext;pub use user_simulator::LlmUserSimulator;pub use user_simulator::ScriptedUserSimulator;pub use user_simulator::UserAction;pub use user_simulator::UserError;pub use user_simulator::UserSimulator;pub use react::ReactLoop;
Modules§
- agent
Agentassembly +AgentBuilder(§12.5).- config
- Agent-level configuration knobs. Many correspond to fields on
LoopContext. - loop_
trait - The
Looptrait +LoopContext(§12.1). - react
- The default ReAct-style loop: thought → action → observation.
- user_
simulator UserSimulatortrait and shipped simulator implementations (plan §12.3, §12.4).
Enums§
- Agent
Error - Top-level error for “couldn’t start the run.” Mid-run failures are reported via
Termination::Failedon a successfulOk(RunOutcome).