ToolChoiceRow
Interface: ToolChoiceRow
Defined in: src/core/agent/toolChoice/types.ts:61
The classifier's pick for one model call, filed BEFORE the call from the
tools slot (buildToolsSlot · composeStage), so the record holds what was
offered, what the classifier ranked and what was actually served — in
that order, on one row.
Properties
chosen?
readonlyoptionalchosen?:string
Defined in: src/core/agent/toolChoice/types.ts:72
The provider's own pick; absent when it named nothing offered.
classifier
readonlyclassifier:object
Defined in: src/core/agent/toolChoice/types.ts:66
The port name and the provider's resolved model string.
model
readonlymodel:string
name
readonlyname:string
confidence
readonlyconfidence:number
Defined in: src/core/agent/toolChoice/types.ts:73
iteration
readonlyiteration:number
Defined in: src/core/agent/toolChoice/types.ts:63
kind
readonlykind:"pick"
Defined in: src/core/agent/toolChoice/types.ts:62
latencyMs
readonlylatencyMs:number
Defined in: src/core/agent/toolChoice/types.ts:76
Wall-clock milliseconds around the classifier call.
narrowed
readonlynarrowed:boolean
Defined in: src/core/agent/toolChoice/types.ts:80
Whether served is the top-N plus the doors (true) or the full merged wire (false).
narrowedSkipped?
readonlyoptionalnarrowedSkipped?:NarrowSkipReason
Defined in: src/core/agent/toolChoice/types.ts:82
Present exactly when a serve: { top } agent served the full set anyway, and why.
offered
readonlyoffered: readonlystring[]
Defined in: src/core/agent/toolChoice/types.ts:68
The candidates the classifier was asked about: the merged wire MINUS the always-served doors, in offered order.
ranked
readonlyranked: readonlyToolChoiceScore[]
Defined in: src/core/agent/toolChoice/types.ts:70
The provider's distribution, highest first (ties keep offered order); an unscored name is absent.
served
readonlyserved: readonlystring[]
Defined in: src/core/agent/toolChoice/types.ts:78
The names the slot COMMITTED for this call — the list the receipt hashes and servedView rebuilds.
source
readonlysource:"classifier"
Defined in: src/core/agent/toolChoice/types.ts:64
usage?
readonlyoptionalusage?:object
Defined in: src/core/agent/toolChoice/types.ts:74
inputTokens
readonlyinputTokens:number
outputTokens
readonlyoutputTokens:number
