export function sanitizeAgentMetadata(meta) {
    try {
        if (!meta)
            return meta;
        const clean = { ...meta };
        delete clean.costLimit;
        delete clean.CostLimit;
        delete clean.initialCostLimit;
        delete clean.InitialCostLimit;
        if (clean.additionalData && typeof clean.additionalData === "object") {
            const additionalData = { ...clean.additionalData };
            delete additionalData.costLimit;
            delete additionalData.CostLimit;
            delete additionalData.initialCostLimit;
            delete additionalData.InitialCostLimit;
            clean.additionalData = additionalData;
        }
        return clean;
    }
    catch {
        return meta;
    }
}
//# sourceMappingURL=agentSessionMetadata.js.map