Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

agent-client-protocol-http

HTTP/WebSocket transport for ACP agents.

  • Server: AcpHttpServer exposes agents over HTTP + SSE with optional WebSocket upgrade
  • Client: HttpClient connects to remote agents over HTTP + SSE

The crate does not enable either transport side by default. Opt into the surface you need:

agent-client-protocol-http = { version = "...", features = ["client"] }
agent-client-protocol-http = { version = "...", features = ["server"] }

Cross-origin browser access is disabled by default. Configure ServerOptions with CorsOptions::allow_origins(...) to allow specific browser origins.

Core SDK request cancellation support is forwarded through this transport.

See the documentation for usage examples.