mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-24 08:32:24 +02:00
Capture the model-side tool_call_id alongside subagent_type/description when mining per-call envelopes (both ToolCallWithContext dict and the single-element list shape), and surface it under cause['tool_call_id']. Identity-level correlation across lifecycle events still uses trigger_call_id (the pregel task id, unique per-call); tool_call_id is purely anchoring metadata so UI consumers can map a lifecycle event back to the AI message tool call that dispatched it. The per-call Send fan-out makes tool_call_id ↔ trigger_call_id 1:1, so re-introducing it here doesn't reintroduce the parallel-call conflation that motivated its earlier removal.