mojentic/
lib.rs

1pub mod agents;
2pub mod async_dispatcher;
3pub mod context;
4pub mod error;
5pub mod event;
6pub mod llm;
7pub mod router;
8pub mod tracer;
9
10// Example implementations (for documentation and reference)
11pub mod examples;
12
13pub use error::{MojenticError, Result};
14
15/// Prelude module for common imports
16pub mod prelude {
17    pub use crate::agents::{
18        AsyncAggregatorAgent, AsyncLlmAgent, BaseAsyncAgent, IterativeProblemSolver,
19    };
20    pub use crate::async_dispatcher::AsyncDispatcher;
21    pub use crate::context::SharedWorkingMemory;
22    pub use crate::error::{MojenticError, Result};
23    pub use crate::event::{Event, TerminateEvent};
24    pub use crate::llm::gateways::OllamaGateway;
25    pub use crate::llm::tools::{FunctionDescriptor, LlmTool, ToolDescriptor};
26    pub use crate::llm::{CompletionConfig, LlmBroker, LlmGateway, LlmMessage, MessageRole};
27    pub use crate::router::Router;
28}