Skip to main content

cortexai_agents/
lib.rs

1//! # Agent Implementation
2//!
3//! High-performance agent execution with ReACT loop (Reasoning + Acting)
4
5#![allow(clippy::type_complexity)]
6#![allow(clippy::too_many_arguments)]
7#![allow(clippy::field_reassign_with_default)]
8#![allow(clippy::if_same_then_else)]
9#![allow(clippy::should_implement_trait)]
10//!
11//! ## Features
12//!
13//! - **ReACT Loop**: Reason -> Act -> Observe cycle for intelligent task execution
14//! - **Planning Mode**: Optional planning before execution for complex tasks
15//! - **Stop Words**: Configurable termination triggers
16//! - **Tool Execution**: Parallel tool execution with timeout handling
17//! - **Memory**: Conversation history and context management
18//! - **Discovery**: Dynamic agent discovery via heartbeat/capabilities
19//! - **Handoff**: Capability-based routing between agents
20//! - **Guardrails**: Input/output validation with tripwire functionality
21//! - **Checkpointing**: State persistence for recovery and time-travel
22//! - **Multi-Memory**: Hierarchical memory (short-term, long-term, entity)
23//! - **Agent-as-Tool**: Compose agents as callable tools
24//! - **Self-Correcting**: LLM-as-Judge pattern for automatic quality improvement
25//! - **Agent Factory**: Runtime agent instantiation and configuration
26//! - **Durable Execution**: Fault-tolerant execution with recovery
27//! - **Structured Sessions**: Conversation memory and session management
28//! - **Approvals**: Human-in-the-loop approval for dangerous operations
29
30pub mod agent_tool;
31pub mod approval;
32pub mod approvals;
33#[cfg(feature = "audit")]
34pub mod audited_executor;
35pub mod checkpoint;
36pub mod discovery;
37pub mod durable;
38#[cfg(feature = "encryption")]
39pub mod encrypted_stores;
40#[cfg(feature = "engram")]
41pub mod engram_memory;
42pub mod engine;
43#[cfg(test)]
44mod engine_integration_tests;
45pub mod executor;
46pub mod factory;
47pub mod guardrails;
48pub mod handoff;
49pub mod memory;
50pub mod multi_memory;
51pub mod persistence;
52pub mod planning;
53pub mod scope_guard;
54pub mod self_correct;
55pub mod session;
56pub mod sqlite_store;
57pub mod trace;
58pub mod trajectory;
59pub mod vector_store;
60
61pub use agent_tool::*;
62pub use approval::*;
63#[cfg(feature = "audit")]
64pub use audited_executor::*;
65pub use checkpoint::*;
66pub use discovery::*;
67pub use durable::*;
68#[cfg(feature = "encryption")]
69pub use encrypted_stores::*;
70#[cfg(feature = "engram")]
71pub use engram_memory::*;
72pub use engine::*;
73pub use executor::*;
74pub use factory::*;
75pub use guardrails::*;
76pub use handoff::*;
77pub use memory::*;
78pub use multi_memory::*;
79pub use persistence::*;
80pub use planning::*;
81pub use scope_guard::*;
82pub use self_correct::*;
83pub use session::*;
84pub use sqlite_store::*;
85pub use trace::*;
86pub use trajectory::*;
87pub use vector_store::*;