Skip to main content

Module engine

Module engine 

Source

Re-exports§

pub use crate::types::AgentResult;
pub use crate::types::ApprovalDecision;
pub use crate::types::ApprovalRequest;
pub use crate::types::RiskLevel;
pub use crate::types::SessionId;

Structs§

AgentBuilder
AgentRuntime
AgentSession
AllowAllApprovalHandler
CircuitBreaker
A circuit breaker that tracks consecutive failures and temporarily disables execution when a threshold is exceeded.
ConsecutiveFailureRecovery
Recovery strategy that tracks consecutive failures per tool and stops after a limit.
ContextWindowManager
DefaultPipeline
Default pipeline: ToolPolicy hooks + timeout + output truncation.
DenyAllApprovalHandler
InMemorySessionStore
PostLlmCtx
PreLlmCtx
RetryOnError
Continue on tool failure, feeding the error back to the model
StopOnError
Default strategy: stop on tool failure.
ToolEnforcementConfig
ToolEnforcementMiddleware
TurnFactMiddleware
Turn fact summary middleware — injects structured facts from the previous turn’s tool results into the next user message.
TurnToolLimitMiddleware
Middleware that enforces a hard limit on tool calls per turn.
UserMessageCtx

Enums§

CircuitState
Circuit breaker states.
ToolErrorAction
Action taken by the runtime after a tool execution failure

Traits§

ApprovalHandler
Trait for handling tool approval requests.
Middleware
SessionStore
Session Persistence Adapter
ToolErrorRecovery
Recovery strategy after a tool execution failure
ToolExecutionPipeline
Pure execution pipeline — cares about how to safely execute a tool.