Skip to main content

diff_tool_calls

Function diff_tool_calls 

Source
pub fn diff_tool_calls(a: &[RunEvent], b: &[RunEvent]) -> ToolCallDiff
Expand description

Diff two ordered RunEvent sequences, producing a ToolCallDiff.

Uses Longest Common Subsequence (LCS) alignment on tool names to detect added, removed, and reordered tool calls accurately.