AgentNetwork into an HTTP API. Built-in adapters: NextEndpoint (Next.js) and ExpressEndpoint (Express).
Exposing a Network
registerSSEStream() Options
NextEndpoint
ExposedAPI to Next.js App Router handlers. Handles Request, auth, payload extraction, SSE response.
ExpressEndpoint
express.json() (or body-parser) for POST. Handles client disconnect and res.flush() when available.
Response Format
Events are streamed as SSE:Full Example: Next.js Streaming API
Migration
Custom Proxies
UsedefineProxyKind() when an app needs to build its own transport around the shared event stream machinery.
plane and publish directly:

