Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
425 B
Raw Blame
import type { NormalizedGcpBillingRow } from './contracts.js'
import { parseNormalizedGcpBillingRows } from './normalizedGcpBillingRows.js'

export function adaptNormalizedGcpBillingFixture(input: {
  enabled: boolean
  rows: readonly unknown[]
}): NormalizedGcpBillingRow[] {
  if (!input.enabled) return []
  return parseNormalizedGcpBillingRows({
    rows: input.rows,
    source: 'normalized GCP billing fixture',
  })
}