Skip to main content

mentra/
lib.rs

1#![doc = include_str!("../README.md")]
2
3mod default_paths;
4
5/// Agent configuration, lifecycle, and event handling.
6pub mod agent;
7/// Optional OAuth helpers for provider authentication.
8#[cfg(feature = "openai-oauth")]
9pub mod auth;
10/// Background task coordination types and services.
11pub mod background;
12/// Working-memory journal and long-term memory services.
13pub mod memory;
14/// Provider integrations and transport-neutral request/response types.
15pub mod provider;
16/// Runtime orchestration, persistence, policies, and agent APIs.
17pub mod runtime;
18/// Team coordination types and collaboration services.
19pub mod team;
20/// Optional test helpers for deterministic scripted runtimes.
21#[cfg(any(test, feature = "test-utils"))]
22pub mod test;
23/// Tool traits, metadata, and builtin tools.
24pub mod tool;
25
26pub use provider::{
27    BuiltinProvider, ContentBlock, ImageSource, Message, ModelInfo, ModelSelector,
28    ProviderDescriptor, ProviderId, Role,
29};
30
31pub use agent::{Agent, AgentConfig};
32pub use background::{BackgroundNotification, BackgroundTaskStatus, BackgroundTaskSummary};
33pub use runtime::{
34    AgentStore, AuditStore, HybridRuntimeStore, LeaseStore, RunStore, Runtime, RuntimePolicy,
35    TaskStore,
36};
37pub use team::{
38    TeamDispatch, TeamMemberStatus, TeamMemberSummary, TeamMessage, TeamMessageKind,
39    TeamProtocolRequestSummary, TeamProtocolStatus,
40};
41
42pub mod error {
43    pub use crate::provider::ProviderError;
44    pub use crate::runtime::RuntimeError;
45}