mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-10 19:26:54 +08:00
Add ChatUsageTrackingHook that accumulates ChatUsage from every PostReasoningEvent within a single process() call, expose it via ReActAgentContext#getChatUsage(), and emit a per-step usage line in ReActLoggingHook. The hook is cached on AgentSession and reset at the start of each process() so the snapshot reflects the full invocation (not just the last reasoning step). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>