agent-base 0.1.10

A lightweight Agent Runtime Kernel for building AI agents in Rust
Documentation
mod approval;
mod builder;
mod circuit_breaker;
mod context;
mod middleware;
mod pipeline;

mod recovery;
mod runtime;
mod safety;
mod session;
mod session_store;
mod tool_enforcement;
mod turn_facts;

pub use approval::{AllowAllApprovalHandler, ApprovalHandler, DenyAllApprovalHandler};
pub use builder::AgentBuilder;
pub use circuit_breaker::{CircuitBreaker, CircuitState};
pub use context::ContextWindowManager;
pub use middleware::{Middleware, PostLlmCtx, PreLlmCtx, UserMessageCtx};
pub use pipeline::{DefaultPipeline, ToolExecutionPipeline};
pub(crate) use runtime::EventBus;

pub use crate::types::{AgentResult, ApprovalDecision, ApprovalRequest, RiskLevel, SessionId};
pub use recovery::{
    ConsecutiveFailureRecovery, RetryOnError, StopOnError, ToolErrorAction, ToolErrorRecovery,
};
pub use runtime::AgentRuntime;
pub use safety::TurnToolLimitMiddleware;
pub use session::AgentSession;
pub use session_store::{InMemorySessionStore, SessionStore};
pub use tool_enforcement::{ToolEnforcementConfig, ToolEnforcementMiddleware};
pub use turn_facts::TurnFactMiddleware;