Skip to main content

instrumentToolCall

@forge/monorepo


@forge/monorepo / backend/src / instrumentToolCall

Function: instrumentToolCall()

instrumentToolCall<T>(deps, input, call): Promise<T>

Defined in: backend/src/telemetry/instrument.ts:224

Time a tool call. Same shape, and the same deliberate absence of arguments and results.

Type Parameters

T

T

Parameters

deps

metrics

RunMetrics

now?

() => number

telemetry

Telemetry

input

runId?

string

tenantId

string

toolName

string

call

() => Promise<T>

Returns

Promise<T>