agui-rs-server 0.1.1

Server SDK for the AG-UI protocol
Documentation
//! Axum-oriented server helpers for implementing AG-UI agents.
//!
//! This crate provides:
//! - [`RunHandler`] for converting [`agui_rs_core::RunAgentInput`] into a stream of AG-UI events.
//! - [`EventEmitter`] channel helpers for producing typed event streams.
//! - [`sse_body`] for turning AG-UI event streams into SSE bodies.
//! - [`proto_body`] for turning AG-UI event streams into length-prefixed protobuf bodies.
//! - [`agui_route`] / [`agui_router`] for axum integration.

pub mod axum;
pub mod emit;
pub mod error;
pub mod handler;
pub mod sse;

pub use crate::axum::{agui_route, agui_router, serve};
pub use crate::emit::{channel, EventEmitter, EventSink};
pub use crate::error::{AgUiError, Result};
pub use crate::handler::{RunContext, RunHandler};
pub use crate::sse::{proto_body, sse_body};