Expand description
§Agent Loop
High-level orchestration loop that unifies slash command routing, tape recording, and LLM pipeline execution.
§Architecture
┌─────────────┐ ┌────────────┐ ┌─────────────────┐
│ Channel │ ───→ │ AgentLoop │ ───→ │ AgentRuntime │
│ (transport) │ ←─── │ (routing) │ ←─── │ (LLM pipeline) │
└─────────────┘ └────────────┘ └─────────────────┘
│
├─→ Router (slash commands)
├─→ TapeStorePort (recording)
└─→ ToolPort (tool listing for /tools)The AgentLoop wraps an AgentRuntime and adds:
- Slash command routing — deterministic commands bypass the LLM
- Tape recording — conversation history is persisted to the tape
- System prompt override — load custom system prompts from workspace files
Re-exports§
pub use crate::router::help_text;
Structs§
- Agent
Loop - High-level agent orchestration loop.
Enums§
- Agent
Loop Output - Output from the agent loop after processing a single input.