Skip to content

rulvar API reference


rulvar API reference / @rulvar/rulvar / resolveModelInvocation

Function: resolveModelInvocation()

ts
function resolveModelInvocation(options): ResolvedInvocation;

Defined in: packages/core/dist/index.d.ts

Resolution runs on every model invocation, not once per agent: a layered merge of { model, effort, providerOptions, fallbacks } in the order call override > agent profile > workflow defaults > engine defaults, with the invocation role attached as a tag. After resolution the router reads ModelCaps and scrubs illegal parameters visibly: unsupported effort is removed from the wire but kept in identity; sampling params rejected by the model are removed from the adapter's namespace, never silently sent.

Parameters

ParameterType
options{ call?: ResolutionLayer; capsOf: (ref) => ModelCaps; engine?: ResolutionLayer; floors?: QualityFloors; profile?: ResolutionLayer; role: InvocationRole; taskClass?: string; workflow?: ResolutionLayer; }
options.call?ResolutionLayer
options.capsOf(ref) => ModelCaps
options.engine?ResolutionLayer
options.floors?QualityFloors
options.profile?ResolutionLayer
options.roleInvocationRole
options.taskClass?string
options.workflow?ResolutionLayer

Returns

ResolvedInvocation