agent-client-protocol-http
HTTP/WebSocket transport for ACP agents.
- Server:
AcpHttpServerexposes agents over HTTP + SSE with optional WebSocket upgrade - Client:
HttpClientconnects to remote agents over HTTP + SSE
The crate does not enable either transport side by default. Opt into the surface you need:
= { = "...", = ["client"] }
= { = "...", = ["server"] }
Cross-origin browser access is disabled by default. Configure ServerOptions
with CorsOptions::allow_origins(...) to allow specific browser origins.
Enable the unstable_cancel_request feature to forward core SDK request
cancellation support through this transport.
See the documentation for usage examples.