Skip to main content

tool_fold_identity

Function tool_fold_identity 

Source
pub fn tool_fold_identity(tool_call_id: &str) -> u64
Expand description

Stable identity for a tool-call fold, keyed on the wire tool_call_id (not the line range) so the fold’s expansion state survives a transcript that grows above it. Namespaced with "ai:tool" so it never collides with a primary provider’s hash for the same span.