export function isTerminalStatus(status) {
    return status === 'completed' || status === 'failed' || status === 'cancelled';
}
export function accumulateTokenUsage(current, addition) {
    return {
        promptTokens: current.promptTokens + addition.promptTokens,
        completionTokens: current.completionTokens + addition.completionTokens,
        totalTokens: current.totalTokens + addition.totalTokens,
        cachedTokens: current.cachedTokens + addition.cachedTokens,
        cacheWriteTokens: current.cacheWriteTokens + addition.cacheWriteTokens,
    };
}
//# sourceMappingURL=index.js.map