pub fn extract_correlation_id(
msg: &Message,
format: AgentFormat,
) -> Option<String>Expand description
Extract correlation ID from a message for tool call/result matching.
Different formats use different correlation mechanisms:
- Claude Code: tool_use_id in content blocks
- Codex: function call name
- Generic: message index fallback