Skip to main content

mojentic/
lib.rs

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