#![deny(missing_docs)]
pub mod core {
pub use brainwires_core::*;
}
#[cfg(feature = "tools")]
pub mod tools {
pub use brainwires_tools::*;
}
#[cfg(feature = "agents")]
pub mod agents {
pub use brainwires_agents::*;
}
#[cfg(feature = "storage")]
pub mod storage {
pub use brainwires_storage::*;
}
#[cfg(feature = "mcp")]
pub mod mcp {
pub use brainwires_mcp::*;
}
#[cfg(feature = "mdap")]
pub mod mdap {
pub use brainwires_agents::mdap::*;
}
#[cfg(feature = "prompting")]
pub mod prompting {
pub use brainwires_knowledge::prompting::*;
}
#[cfg(feature = "permissions")]
pub mod permissions {
pub use brainwires_permissions::*;
}
#[cfg(feature = "providers")]
pub mod providers {
pub use brainwires_providers::*;
}
#[cfg(feature = "chat")]
pub mod chat {
pub use brainwires_providers::{
AnthropicChatProvider, ChatProviderFactory, GoogleChatProvider, OllamaChatProvider,
OpenAiChatProvider, OpenAiResponsesProvider,
};
}
#[cfg(feature = "seal")]
pub mod seal {
pub use brainwires_agents::seal::*;
}
#[cfg(feature = "rag")]
pub mod rag {
pub use brainwires_knowledge::rag::*;
}
#[cfg(feature = "interpreters")]
pub mod interpreters {
pub use brainwires_tools::interpreters::*;
}
#[cfg(feature = "agent-network")]
pub mod agent_network {
pub use brainwires_network::*;
}
#[cfg(feature = "mcp-server-framework")]
pub mod mcp_server_framework {
pub use brainwires_mcp_server::*;
}
#[cfg(feature = "skills")]
pub mod skills {
pub use brainwires_agents::skills::*;
}
#[cfg(feature = "eval")]
pub mod eval {
pub use brainwires_agents::eval::*;
}
#[cfg(feature = "a2a")]
pub mod a2a {
pub use brainwires_a2a::*;
}
#[cfg(feature = "mesh")]
pub mod mesh {
pub use brainwires_network::mesh::*;
}
#[cfg(any(
feature = "audio",
feature = "gpio",
feature = "bluetooth",
feature = "network-hardware",
feature = "camera",
feature = "usb",
feature = "vad",
feature = "wake-word",
feature = "voice-assistant"
))]
pub mod hardware {
pub use brainwires_hardware::*;
}
#[cfg(feature = "audio")]
pub mod audio {
pub use brainwires_hardware::audio::*;
}
#[cfg(feature = "camera")]
pub mod camera {
pub use brainwires_hardware::camera::*;
}
#[cfg(feature = "usb")]
pub mod usb {
pub use brainwires_hardware::usb::*;
}
#[cfg(feature = "vad")]
pub mod vad {
pub use brainwires_hardware::audio::vad::*;
}
#[cfg(any(feature = "wake-word", feature = "wake-word-porcupine"))]
pub mod wake_word {
pub use brainwires_hardware::audio::wake_word::*;
}
#[cfg(feature = "voice-assistant")]
pub mod voice_assistant {
pub use brainwires_hardware::audio::assistant::*;
}
#[cfg(feature = "datasets")]
pub mod datasets {
pub use brainwires_training::datasets::*;
}
#[cfg(feature = "training")]
pub mod training {
pub use brainwires_training::*;
}
#[cfg(feature = "system")]
pub mod system {
pub use brainwires_tools::system::*;
}
#[cfg(feature = "dream")]
pub mod dream {
pub use brainwires_knowledge::dream::*;
}
#[cfg(feature = "telemetry")]
pub mod telemetry {
pub use brainwires_telemetry::*;
}
#[cfg(feature = "brain")]
pub mod brain {
pub use brainwires_knowledge::knowledge::*;
}
#[cfg(feature = "mcp-server")]
pub mod mcp_server_support {
pub use rmcp;
pub use schemars;
pub use tokio_util::sync::CancellationToken;
}
pub mod prelude {
pub use brainwires_core::{
AgentResponse,
ChatOptions,
ChatResponse,
ContentBlock,
EdgeType,
EmbeddingProvider,
EntityStoreT,
EntityType,
FrameworkError,
FrameworkResult,
GraphEdge,
GraphNode,
ImageSource,
Message,
MessageContent,
PermissionMode,
PlanMetadata,
PlanStatus,
Provider,
RelationshipGraphT,
Role,
StreamChunk,
Task,
TaskPriority,
TaskStatus,
Tool,
ToolCaller,
ToolContext,
ToolInputSchema,
ToolMode,
ToolResult,
ToolUse,
Usage,
VectorSearchResult,
VectorStore,
WorkingSet,
WorkingSetConfig,
serialize_messages_to_stateless_history,
};
#[cfg(feature = "tools")]
pub use brainwires_tools::{
BashTool, FileOpsTool, GitTool, RetryStrategy, SearchTool, ToolCategory, ToolErrorCategory,
ToolOutcome, ToolRegistry, ToolSearchTool, ValidationTool, WebTool, classify_error,
};
#[cfg(feature = "agents")]
pub use brainwires_agents::{
AccessControlManager,
AgentExecutionResult,
AgentRuntime,
CommunicationHub,
ContentionStrategy,
ExecutionApprovalMode,
FileLockManager,
GitCoordinator,
LockPersistence,
PlanExecutionConfig,
PlanExecutionStatus,
PlanExecutorAgent,
TaskManager,
TaskQueue,
ValidationCheck,
ValidationConfig,
ValidationSeverity,
run_agent_loop,
};
#[cfg(feature = "storage")]
pub use brainwires_storage::{EmbeddingProvider as StorageEmbeddingProvider, TieredMemory};
#[cfg(feature = "mcp")]
pub use brainwires_mcp::{McpClient, McpConfigManager, McpServerConfig};
#[cfg(feature = "mdap")]
pub use brainwires_agents::mdap::{
Composer, FirstToAheadByKVoter, MdapError, MdapEstimate, MdapResult, MicroagentConfig,
StandardRedFlagValidator,
};
#[cfg(feature = "knowledge")]
pub use brainwires_knowledge::knowledge::bks_pks::{
BehavioralKnowledgeCache, BehavioralTruth, PersonalKnowledgeCache, TruthCategory,
};
#[cfg(feature = "prompting")]
pub use brainwires_knowledge::prompting::{
GeneratedPrompt, PromptGenerator, PromptingTechnique, TaskClusterManager, TechniqueLibrary,
TemperatureOptimizer,
};
#[cfg(feature = "permissions")]
pub use brainwires_permissions::{
AgentCapabilities, ApprovalAction, ApprovalResponse, ApprovalSeverity, AuditLogger,
CapabilityProfile, PermissionsConfig, PolicyEngine, TrustLevel, TrustManager,
};
#[cfg(feature = "audio")]
pub use brainwires_hardware::{
AudioBuffer, AudioCapture, AudioConfig, AudioDevice, AudioError, AudioPlayback,
AudioResult, SpeechToText, SttOptions, TextToSpeech, Transcript, TtsOptions, Voice,
};
}