Skip to main content

orphaned_tool_uses

Function orphaned_tool_uses 

Source
pub fn orphaned_tool_uses(messages: &[Message]) -> Vec<String>
Expand description

Every tool_use id in the transcript that has no matching tool_result.

The invariant compaction must never break, exposed so it can be asserted on rather than assumed.