Skip to content
English

过程观察与诊断 ​

Kit · 可选业务库 · 返回本层目录

符号类别用途
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.

接口参考、使用示例与开发指南。