Skip to main content

syncable_ag_ui_server/
lib.rs

1//! AG-UI Server SDK
2//!
3//! This crate provides server-side functionality for producing AG-UI protocol events.
4//! It enables Rust agents to stream events to frontend applications via various
5//! transports (SSE, WebSocket, etc.).
6//!
7//! # Overview
8//!
9//! The AG-UI Server SDK includes:
10//!
11//! - **Event Producer**: High-level API for emitting AG-UI events from agent code
12//! - **Transport Layer**: SSE and WebSocket implementations for streaming events
13//! - **Error Handling**: Server-specific error types
14//!
15//! # Usage
16//!
17//! ```rust,ignore
18//! use ag_ui_server::{EventProducer, Result};
19//! ```
20//!
21//! # Integration
22//!
23//! This crate is designed to integrate with the Syncable CLI agent, enabling
24//! any frontend to connect and receive real-time agent events.
25
26pub mod error;
27pub mod producer;
28pub mod transport;
29
30// Re-export ag-ui-core types for convenience
31pub use syncable_ag_ui_core::*;
32
33// Re-export server-specific types
34pub use error::{Result, ServerError};
35
36// Re-export transport types
37pub use transport::{SseHandler, SseSender};
38
39// Re-export producer types
40pub use producer::{
41    AgentSession, EventProducer, MessageStream, ThinkingMessageStream, ThinkingStep,
42    ToolCallStream,
43};