Expand description
HTTP server and AG-UI protocol support for mixtape agents.
This crate provides HTTP endpoints for running mixtape agents via web services, with optional support for the AG-UI protocol used by CopilotKit.
§Features
agui- Enable AG-UI protocol support for CopilotKit integration
§Example
use mixtape_server::MixtapeRouter;
use mixtape_core::Agent;
// Create your agent (requires provider feature in mixtape-core)
// Build the router with AG-UI support
let app = MixtapeRouter::new(agent)
.with_agui("/api/copilotkit")
.build()?;
// Serve with axum
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await?;
axum::serve(listener, app).await?;Re-exports§
pub use error::BuildError;pub use error::ServerError;pub use error::ServerResult;pub use router::MixtapeRouter;