ResolvedModelInfo
@forge/monorepo / backend/src / ResolvedModelInfo
Type Alias: ResolvedModelInfo
ResolvedModelInfo =
object
Defined in: backend/src/agents/engine.ts:71
A model resolved for a turn: the opaque handle plus what the engine needs to attribute usage.
Properties
currency?
readonlyoptionalcurrency?:string
Defined in: backend/src/agents/engine.ts:74
definition?
readonlyoptionaldefinition?:ModelDefinition
Defined in: backend/src/agents/engine.ts:83
The definition this model resolved from, so its declared limits can actually be applied (#160).
Optional for compatibility with existing resolvers, and absent means "no declared ceiling" rather than "unbounded by policy" — the agent's own limit still applies.
model
readonlymodel:ResolvedModel
Defined in: backend/src/agents/engine.ts:72
modelId
readonlymodelId:string
Defined in: backend/src/agents/engine.ts:73
price?
readonlyoptionalprice?: (usage) =>number
Defined in: backend/src/agents/engine.ts:76
Optional cost function (minor units) from the model's pricing, used to bill each turn.
Parameters
usage
Returns
number