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;
17pub mod one_or_many;
18pub mod protocol;
19pub mod readers;
20pub mod tool;
21pub mod utils;
22pub mod vector_store;
23
24#[cfg(test)]
25mod tests;
26
27// Re-export ractor only for non-WASM targets
28#[cfg(not(target_arch = "wasm32"))]
29pub mod ractor {
30    pub use ractor::*;
31}