(cost?: {
total?: number
input?: number
output?: number
})
| 68 | * Checks if cost data is meaningful (non-zero) |
| 69 | */ |
| 70 | export 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 |
no outgoing calls
no test coverage detected