Skip to content
中文

Observation & diagnostics ​

Kit · Optional business libraries · Back to layer index

SymbolKindPurpose
AgentOutputEventtypeOne output event of a delivered reply.
publishReplyEventsfunctionStream 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_BOUNDARYconstant
ReplyBubbleInputinterfaceReply pieces accepted by the bubble helpers; non-string entries are ignored.
replyBubbleTextsfunctionCollect the non-empty-text parts of a reply.
ReplyDeliveryOptionsinterfaceHost-controlled delivery of already validated text; not upstream model generation.
serializeOutputEventsfunctionSerialize 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.
textOutputEventsfunctionWrap already-chunked text as text events.

API reference, usage examples and developer guides.