Re-exports§
pub use react_loop_guard::NoopGuard;pub use react_loop_guard::ReactLoopGuard;pub use crate::types::AgentResult;pub use auto_continue::AutoContinueMiddleware;pub use max_turns_nudge::MaxTurnsNudgeConfig;pub use max_turns_nudge::MaxTurnsNudgeMiddleware;
Modules§
Structs§
- Agent
Builder - Agent
Runtime - Agent
Session - Stable identity + rolling state of a single chat thread.
- Allow
AllApproval Handler - Approval
Request - Consecutive
Failure Recovery - Recovery strategy that tracks consecutive failures per tool and stops after a limit.
- Context
Window Manager - Default
Pipeline - Default pipeline: ToolPolicy hooks + timeout + output size limit.
- Deny
AllApproval Handler - Guard
Ctx - Guard context information — built by runtime, passed to guard.
- InMemory
Session Store - Post
LlmCtx - PreLlm
Ctx - Retry
OnError - Continue on tool failure, feeding the error back to the model
- Session
Id - Unique identifier for an agent session.
- Session
Manager - Stop
OnError - Default strategy: stop on tool failure.
- Tool
Enforcement Config - Tool
Enforcement Middleware - Turn
Fact Middleware - Turn fact summary middleware — injects structured facts from the previous turn’s tool results into the next user message.
- Turn
Tool Limit Middleware - Middleware that enforces a hard limit on tool calls per turn.
- User
Message Ctx
Enums§
- Approval
Decision - Guard
Decision - Guard decision — returned by guard, executed by base loop.
- Queue
Mode - Controls how queued messages are drained each turn.
- Risk
Level - Tool
Error Action - Action taken by the runtime after a tool execution failure
Traits§
- Approval
Handler - Trait for handling tool approval requests.
- Context
Compaction - Trait for inline context compaction within the react loop.
- Middleware
- Session
Store - Session Persistence Adapter
- Tool
Error Recovery - Recovery strategy after a tool execution failure
- Tool
Execution Pipeline - Pure execution pipeline — cares about how to safely execute a tool.
Functions§
- estimate_
messages_ tokens - Estimate total tokens across a message list using
ContextWindowManager::message_tokens. - first_
system_ prompt - Find the first non-ephemeral System message (the system prompt).