MCPcopy Index your code
hub / github.com/simstudioai/sim / hasRealCostData

Function hasRealCostData

apps/sim/lib/tokenization/utils.ts:70–77  ·  view source on GitHub ↗
(cost?: {
  total?: number
  input?: number
  output?: number
})

Source from the content-addressed store, hash-verified

68 * Checks if cost data is meaningful (non-zero)
69 */
70export function hasRealCostData(cost?: {
71 total?: number
72 input?: number
73 output?: number
74}): boolean {
75 if (!cost) return false
76 return (cost.total || 0) > 0 || (cost.input || 0) > 0 || (cost.output || 0) > 0
77}
78
79/**
80 * Safely extracts text content from various input formats

Callers 1

processStreamingBlockLogFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected