liteFlow/liteflow-react-agent
everywhere.z dd08efc5b3 feat(agent): AgentEventBridge 恢复流式(streamEvents→FlowEvent)+ 流式路径 ChatUsage 线程安全
Task 6.1:恢复 process() 流式路径。当 slot 有 FlowEvent 监听者(ExecuteOption.eventListener)
时走 ReActAgent.streamEvents → AgentEventBridge 映射成 FlowEvent 发布;否则仍 call()。

- 新增 AgentEventBridge.streamAndPublish:TEXT_BLOCK_DELTA→agent.reasoning、
  TOOL_RESULT_*→agent.tool_result、HINT_BLOCK→agent.summary、AGENT_RESULT→agent.result(last=true),
  HITL(RequireUserConfirm/RequireExternalExecution)可选透传。
- ChatUsage 线程安全(findings R-stream):真实 vendor 模型下 onModelCall 在 boundedElastic
  调度线程执行,ThreadLocal 读不到 bind 的累加器。改用 reactor Context 双源(Context 优先、
  ThreadLocal 回退),process() 经 bindToContext 注入;保留 void bind() 二进制兼容,
  新增 bindAndReturn()。流式/非流式两路径都注入 Context。
- StreamingBridgeTest:mock 模型流式回放,断言 reasoning 增量 + 末尾 agent.result(last=true) +
  流式下 getChatUsage() 正确(验证 Context 传播)。
- findings 追加 R-stream 节(streamEvents/call 线程模型 + Context 方案)。

Tests run: 21, Failures: 0, Errors: 0(StreamingBridge/ChatUsageMiddleware/ProcessIntegration/
ShellPermissionBehavior/SkillLoading/SkillTracking)。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-20 11:35:33 +08:00
..
liteflow-react-agent-anthropic liteflow-react-agent pom 添加 name 2026-06-05 00:15:33 +08:00
liteflow-react-agent-core feat(agent): AgentEventBridge 恢复流式(streamEvents→FlowEvent)+ 流式路径 ChatUsage 线程安全 2026-06-20 11:35:33 +08:00
liteflow-react-agent-dashscope liteflow-react-agent pom 添加 name 2026-06-05 00:15:33 +08:00
liteflow-react-agent-gemini liteflow-react-agent pom 添加 name 2026-06-05 00:15:33 +08:00
liteflow-react-agent-openai liteflow-react-agent pom 添加 name 2026-06-05 00:15:33 +08:00
pom.xml liteflow react agent pom adjust 2026-04-30 23:52:19 +08:00