Skip to main content

autoagents_core/
lib.rs

1// Runtime-dependent modules (not available in WASM)
2#[cfg(not(target_arch = "wasm32"))]
3pub mod actor;
4#[cfg(not(target_arch = "wasm32"))]
5pub mod environment;
6#[cfg(not(target_arch = "wasm32"))]
7pub mod runtime;
8
9// Agent module with conditional compilation
10pub mod agent;
11
12// Common modules available on all platforms
13mod channel;
14pub mod document;
15pub mod embeddings;
16pub mod error;
17#[cfg(not(target_arch = "wasm32"))]
18mod event_fanout;
19pub mod one_or_many;
20pub mod readers;
21pub mod tool;
22pub mod utils;
23pub mod vector_store;
24
25#[cfg(test)]
26mod tests;
27
28// Re-export ractor only for non-WASM targets
29#[cfg(not(target_arch = "wasm32"))]
30pub mod ractor {
31    pub use ractor::*;
32}