import { buildReqInboundToolOutputSnapshotWithNative, collectReqInboundToolOutputsWithNative } from '../../../../../../router/virtual-router/engine-selection/native-hub-pipeline-req-inbound-semantics.js';
export function buildToolOutputSnapshot(payload, providerProtocol) {
    return buildReqInboundToolOutputSnapshotWithNative(payload, providerProtocol);
}
export function collectToolOutputs(payload) {
    return collectReqInboundToolOutputsWithNative(payload).map((entry) => ({
        tool_call_id: entry.tool_call_id,
        call_id: entry.call_id,
        ...(typeof entry.output === 'string' ? { output: entry.output } : {}),
        ...(typeof entry.name === 'string' ? { name: entry.name } : {})
    }));
}
