Skip to main content

ResolvedModelInfo

@retinue/monorepo


@retinue/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?​

readonly optional currency?: string

Defined in: backend/src/agents/engine.ts:74


definition?​

readonly optional definition?: 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​

readonly model: ResolvedModel

Defined in: backend/src/agents/engine.ts:72


modelId​

readonly modelId: string

Defined in: backend/src/agents/engine.ts:73


price?​

readonly optional price?: (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​

NeutralUsage

Returns​

number