Skip to main content

aagt_core/
lib.rs

1//! # AAGT Core - AI Agent for Trading
2//!
3//! Core types, traits, and abstractions for the AAGT framework.
4//!
5//! This crate provides:
6//! - Agent system (`agent`) - AI agent with tool calling
7//! - Tool definitions (`tool`) - Define callable tools
8//! - Message types (`message`) - Conversation messages
9//! - Streaming (`streaming`) - Stream response handling
10//! - Memory (`memory`) - Short and long-term memory
11//! - Strategy (`strategy`) - Automated trading pipelines
12//! - Risk control (`risk`) - Trading safeguards
13//! - Simulation (`simulation`) - Trade simulation
14//! - Multi-agent (`multi_agent`) - Agent coordination
15
16#![warn(missing_docs)]
17
18pub mod agent;
19pub mod error;
20pub mod logging;
21pub mod memory;
22pub mod message;
23pub mod multi_agent;
24pub mod notifications;
25pub mod pipeline;
26pub mod provider;
27pub mod rag;
28pub mod risk;
29pub mod simulation;
30pub mod store;
31pub mod strategy;
32pub mod streaming;
33pub mod tool;
34
35/// Prelude - commonly used types
36pub mod prelude {
37    pub use crate::agent::{Agent, AgentBuilder, AgentConfig};
38    pub use crate::error::{Error, Result};
39    pub use crate::memory::{LongTermMemory, Memory, MemoryManager, ShortTermMemory};
40    pub use crate::message::{Content, Message, Role, ToolCall};
41    pub use crate::multi_agent::{AgentRole, Coordinator, MultiAgent};
42    pub use crate::provider::Provider;
43    pub use crate::risk::{RiskConfig, RiskManager, TradeContext};
44    pub use crate::simulation::{SimulationRequest, SimulationResult, Simulator};
45    pub use crate::strategy::{Action, Condition, Pipeline, Strategy};
46    pub use crate::streaming::{StreamingChoice, StreamingResponse};
47    pub use crate::tool::{Tool, ToolDefinition, ToolSet};
48}