Structs§
- Base
Chat Model Caller - Wraps a
ChatModelinto aModelCaller. - Callback
Middleware - Adapts a
CallbackHandlerinto anAgentMiddleware. - Circuit
Breaker Config - Configuration for the circuit breaker.
- Circuit
Breaker Middleware - Middleware that implements the circuit breaker pattern for tool calls.
- Command
Op - Describes a shell command intercepted by middleware.
- Command
Result - Result of a command execution.
- Context
Editing Middleware - Manages conversation context by trimming or filtering messages before each model invocation.
- FileOp
- Describes a file operation intercepted by middleware.
- File
OpResult - Result of a file operation.
- Human
InThe Loop Middleware - Pauses tool execution to request human approval.
- Middleware
Chain - A chain of middlewares that executes them in order.
- Model
Call Limit Middleware - Limits the number of model invocations during a single agent run.
- Model
Fallback Middleware - Falls back to alternative models when the primary model fails.
- Model
Request - A model invocation request visible to middleware.
- Model
Response - A model invocation response visible to middleware.
- Rule
Based Analyzer - Rule-based security analyzer that maps tool names and argument patterns to risk levels.
- Security
Middleware - Middleware that assesses tool call risk and optionally requires confirmation.
- Ssrf
Guard Config - Configuration for SSRF protection.
- Ssrf
Guard Middleware - Middleware that prevents SSRF (Server-Side Request Forgery) attacks.
- Summarization
Middleware - Automatically summarizes conversation history when it exceeds a token limit.
- Threshold
Confirmation Policy - Confirms tool calls that meet or exceed a risk threshold.
- Todo
List Middleware - Adds task-planning capability to an agent by injecting a todo list into the system prompt.
- Tool
Call Limit Middleware - Limits the number of tool invocations during a single agent run.
- Tool
Call Request - A single tool call request visible to middleware.
- Tool
Retry Middleware - Retries failed tool calls with configurable attempts and backoff.
Enums§
- Circuit
State - Circuit breaker state machine states.
- Command
Decision - Decision for a command execution.
- Context
Strategy - Strategy for editing context before model calls.
- File
OpDecision - Decision for a file operation.
- File
OpKind - The kind of file operation.
- Risk
Level - Risk level for a tool call.
Traits§
- Agent
Middleware - Middleware that can intercept and modify agent lifecycle events.
- Approval
Callback - A callback that decides whether a tool call should proceed.
- Confirmation
Policy - Determines whether a tool call at a given risk level requires confirmation.
- Model
Caller - Trait representing the next step in the model call chain.
- Security
Analyzer - Assesses the risk level of a tool call.
- Security
Confirmation Callback - Callback for obtaining user confirmation before executing a risky tool call.
- Tool
Caller - Trait representing the next step in the tool call chain.