ag-ui-rust
A Rust SDK for the AG-UI protocol — build agent backends and agent clients in Rust.
Serve an agentImplement one trait and the endpoint speaks AG-UI. Protocol misuse is a compile error: event ordering is enforced by typestate handles that borrow the run context.
Consume an agentServer and client live in one workspace — ag-ui, ag_ui::server, ag_ui::client, ag_ui::axum and ag-ui-a2ui — so both ends of a run are written against the same types.
Runs anywhereExecutor-agnostic below the web binding. Core, server and client build for wasm32-unknown-unknown, and CI asserts that tokio is absent from their dependency graphs.
Tracks the specA drift check compares the Rust types against a vendored snapshot of the upstream TypeScript schemas on every pull request.