Skip to content

@sqlrooms/ai-core / computeComputationTimeMs

Function: computeComputationTimeMs()

computeComputationTimeMs(toolCallIds, toolTimings): number | undefined

Compute the enclosing duration of the supplied recorded tool calls.

Parameters

ParameterType
toolCallIdsIterable<string>
toolTimingsRecord<string, { startedAt?: number; completedAt?: number; }>

Returns

number | undefined