effect-uai-modify-output-stream
Installation
SKILL.md
effect-uai modify-output-stream
The loop emits a Stream<TurnEvent>. To serve it as
text/event-stream for a browser or as JSONL for a pipe, map a single
function over the stream. Both helpers ship in
@effect-uai/core/Turn.
Reach for this when the user says any of:
- "Stream the agent output as Server-Sent Events"
- "Pipe my agent output as JSONL / NDJSON"
- "Format the model stream for the wire"
The whole thing
import { Stream } from "effect"
import * as SSE from "@effect-uai/core/SSE"
import * as Turn from "@effect-uai/core/Turn"