import { deriveToolCallKeyWithNative, mergeToolCallsWithNative } from '../../router/virtual-router/engine-selection/native-shared-conversion-semantics.js';
/**
 * Derive a deterministic key for a tool call by combining the normalized
 * function name and serialized arguments. Used to deduplicate inferred calls.
 */
export function deriveToolCallKey(call) {
    return deriveToolCallKeyWithNative(call);
}
/**
 * Merge tool call entries with deduplication (by derived key). Returns the new array.
 */
export function mergeToolCalls(existing, additions) {
    return mergeToolCallsWithNative(existing, additions);
}
