Observation & diagnostics
Kit · Optional business libraries · Back to layer index
| Symbol | Kind | Purpose |
|---|---|---|
AgentOutputEvent | type | One output event of a delivered reply. |
publishReplyEvents | function | Stream one reply as paced text chunks and bubble separators. Publish a validated reply without exposing its internal boundary to consumers. The pacing options are upper bounds, not exact timings: the pause and interval are clamped against maxDurationMs, so added delay never exceeds the budget while every chunk is still emitted. |
REPLY_BUBBLE_BOUNDARY | constant | |
ReplyBubbleInput | interface | Reply pieces accepted by the bubble helpers; non-string entries are ignored. |
replyBubbleTexts | function | Collect the non-empty-text parts of a reply. |
ReplyDeliveryOptions | interface | Host-controlled delivery of already validated text; not upstream model generation. |
serializeOutputEvents | function | Serialize the event protocol for callers using a text stream. preview events are dropped because they are not final text; bubbles become the boundary character again, so a consumer can re-split the stream. |
textOutputEvents | function | Wrap already-chunked text as text events. |