Skip to main content

robit_chatbot/
lib.rs

1//! robit-chatbot: Multi-session Bot infrastructure for the Robit framework.
2//!
3//! Provides the platform-agnostic `PlatformAdapter` trait, `ChatbotManager`
4//! (multi-session orchestration), `ChatbotFrontend` (per-session Frontend
5//! implementation with streaming), `Confirmer` (inline tool confirmation),
6//! and a Markdown sanitizer. Platform crates (e.g. `robit-qq`) implement
7//! `PlatformAdapter` and reuse everything else.
8
9pub mod adapter;
10pub mod confirmer;
11pub mod extensions;
12pub mod frontend;
13pub mod manager;
14pub mod markdown;
15pub mod tool;
16
17pub use adapter::{
18    ChatMessage, ChatType, MarkdownFeatures, MediaAttachment, PlatformAdapter, PlatformCaps,
19    PlatformEvent, SendResult, SenderInfo, UploadResult,
20};
21pub use confirmer::{ConfirmKeywords, Confirmer};
22pub use extensions::PlatformExtWrapper;
23pub use frontend::{ChatbotFrontend, PlatformExt, PlatformSender};
24pub use manager::{AgentHandle, ChatbotManager, ManagerError};