Interface: CompletionResolution
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:105
A hop that is ready to serve: its provider is initialised and its window is known.
Properties
capabilities
capabilities:
string[]
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:110
chain
readonlychain: readonlyCompletionHop[]
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:124
The hop list fixed by the route's first resolve(); later calls walk it.
healthId?
optionalhealthId:string
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:120
The id the hop's health is recorded under: for the first hop on a key or
base URL of the route's own that differs from the provider's, the
provider id with a digest of them (see providerHealthKey). Absent
means the provider id.
hop
hop:
number
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:108
maxContextTokens
maxContextTokens:
number
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:109
modelId
modelId:
string
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:107
optionOverrides
optionOverrides:
Partial<ModelCompletionOptions>
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:122
Per-hop effort, cache and output budget from fallbackHopOverrides; merged over the caller's options.
pendingSkips?
readonlyoptionalpendingSkips: readonlyCompletionHopSkip[]
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:141
Internal
The entries the chain's one-time resolution passed over (an excluded model, a missing capability, the policy chain's entry for the first model), held on the first hop until a walk starts, as the walkers log theirs only when they walk.
providerId
providerId:
string
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:106
providerManager
providerManager:
AIModelProviderManager
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:113
toolFormat
toolFormat:
"openai_functions"|"anthropic_tools"|"google_function_calling"
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:112
Same strings as ModelTargetInfo.toolSupport.format.
walk?
readonlyoptionalwalk:FallbackWalkState
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:132
Internal
What the route's walk had seen before this hop ran: standing legs owed a
refill, and whether a model refused. resolve() reads it from the hop it
is handed.