#![deny(missing_docs)]
pub use rullama_core::{
CommitResult, IdempotencyRecord, IdempotencyRegistry, StagedWrite, StagingBackend, Tool,
ToolContext, ToolInputSchema, ToolResult,
};
pub mod error;
pub mod executor;
pub mod registry;
pub mod sanitization;
pub mod smart_router;
pub mod tool_search;
#[cfg(feature = "native")]
pub mod transaction;
#[cfg(feature = "native")]
pub mod validation;
#[cfg(any(feature = "orchestrator", feature = "orchestrator-wasm"))]
pub mod orchestrator;
#[cfg(feature = "oauth")]
pub mod oauth;
#[cfg(feature = "openapi")]
pub mod openapi;
#[cfg(feature = "sandbox")]
pub mod sandbox_executor;
#[cfg(feature = "sessions")]
pub mod sessions;
#[cfg(feature = "rag")]
pub mod tool_embedding;
pub use error::{ResourceType, RetryStrategy, ToolErrorCategory, ToolOutcome, classify_error};
pub use executor::{PreHookDecision, ToolExecutor, ToolPreHook};
pub use registry::{ToolCategory, ToolRegistry};
pub use sanitization::{
contains_pii, contains_sensitive_data, filter_tool_output, is_injection_attempt, redact_pii,
redact_sensitive_data, sanitize_external_content, wrap_with_content_source,
wrap_with_content_source_with_pii,
};
pub use smart_router::{
analyze_messages, analyze_query, get_context_for_analysis, get_smart_tools,
get_smart_tools_with_mcp, get_tools_for_categories,
};
pub use tool_search::ToolSearchTool;
#[cfg(feature = "native")]
pub use transaction::TransactionManager;
#[cfg(feature = "native")]
pub use validation::{ValidationTool, get_validation_tools};
#[cfg(any(feature = "orchestrator", feature = "orchestrator-wasm"))]
pub use orchestrator::OrchestratorTool;
#[cfg(feature = "openapi")]
pub use openapi::{
HttpMethod, OpenApiAuth, OpenApiEndpoint, OpenApiParam, OpenApiTool, execute_openapi_tool,
openapi_to_tools,
};
#[cfg(feature = "sandbox")]
pub use sandbox_executor::SandboxedToolExecutor;
#[cfg(feature = "sessions")]
pub use sessions::SessionsTool;
#[cfg(feature = "rag")]
pub use tool_embedding::ToolEmbeddingIndex;