MCPcopy Create free account
hub / github.com/TanStack/ai / estimateRoundTripTimeMs

Function estimateRoundTripTimeMs

examples/ts-code-mode-web/src/lib/efficiency.ts:205–208  ·  view source on GitHub ↗
(calls: number)

Source from the content-addressed store, hash-verified

203}
204
205export function estimateRoundTripTimeMs(calls: number): number {
206 const safeCalls = Math.max(0, calls)
207 return safeCalls * EFFICIENCY_CONSTANTS.AVG_ROUND_TRIP_MS
208}
209
210export function estimateCostFromBytes(bytes: number, model?: string): number {
211 const pricingKey = model ? MODEL_MAPPING[model] || model : 'claude-haiku-4.5'

Callers 1

NoCodeMetricsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected