mirror of
https://gitcode.com/JianFeeeee/homeagent-sdk.git
synced 2026-09-20 00:48:12 +00:00
feat(sdk): 补齐流式增量事件常量 EventReasoningDelta/EventContentDelta
外置 SDK 缺失流式 delta 事件常量——外部插件无法订阅 token 级增量。 - 常量值与内核 internal/events/bus.go 完全对齐 - 向后兼容:旧插件不订阅即无影响;聚合事件仍照常发布
This commit is contained in:
@ -127,6 +127,11 @@ const (
|
|||||||
EventReasoning EventType = "reasoning"
|
EventReasoning EventType = "reasoning"
|
||||||
EventStage EventType = "stage"
|
EventStage EventType = "stage"
|
||||||
EventSystem EventType = "system"
|
EventSystem EventType = "system"
|
||||||
|
|
||||||
|
// 流式增量事件(token 级):核心 process() 流式化后每收到一个增量块发布。
|
||||||
|
// 客户端可选订做真逐 token 渲染;聚合事件仍照常发布,旧订阅者不受影响。
|
||||||
|
EventReasoningDelta EventType = "reasoning_delta"
|
||||||
|
EventContentDelta EventType = "content_delta"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Event represents a system event published by the kernel.
|
// Event represents a system event published by the kernel.
|
||||||
|
|||||||
Reference in New Issue
Block a user