Files
langgraph/libs
Nick Hollon 22d4ccaa3b feat(langgraph): expose tool_call_id on lifecycle.started.cause
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.
2026-05-07 23:47:52 -04:00
..
2026-05-07 17:29:13 +01:00