Streaming API
Live streams for work, not only tokens.
Provide live streams for file processing, agentic updates, database logs, build and tooling updates, and deployment updates. Support bidirectional input for operations and guides, or monodirectional input when the client should only observe.
| Stream kind | Direction | Typical use |
|---|---|---|
| File processing | Mono or bi | Ingest, extract, summarize, route artifacts |
| Agentic updates | Bidirectional | Tool calls, approvals, mid-flight corrections |
| Database logs | Monodirectional | Tail operational events into a chat layout |
| Build and tooling | Mono or bi | CI output with optional command injection |
| Deployment updates | Bidirectional | Rollouts, runbooks, guided recovery |
const stream = await essenize.stream.open({ kind: "deploy", flow: "bidirectional", topic: "payments-api.prod" }); stream.on("event", (frame) => render(frame)); stream.send({ type: "guide", step: "rollback" });