Skip to content

Class: CanonicalModelResolver

Makaio Framework


Makaio Framework / services-core / CanonicalModelResolver

Defined in: ../../../packages/services/core/src/canonical-model/resolver.ts:19

Resolves a framework-resolvable canonical model to a concrete adapter selection.

Uses the dependency interface for all lookups - bus wiring lives in the service, not here.

new CanonicalModelResolver(deps): CanonicalModelResolver

Defined in: ../../../packages/services/core/src/canonical-model/resolver.ts:24

Creates a new resolver with the given dependency implementations.

CanonicalModelResolverDeps

Lookup functions wired to bus RPCs or test stubs

CanonicalModelResolver

resolve(parsed, _context?): Promise<{[key: string]: unknown; adapterId?: string; adapterName: string; allowedDirectories?: string[]; allowedTools?: string[]; cwd?: string; disallowedTools?: string[]; kind: "adapter"; model: string; providerConfigId: string; reasoningEffort?: "none" | "low" | "medium" | "high" | "extra-high"; systemPrompt?: string | { content: string; mode: "append"; }; }>

Defined in: ../../../packages/services/core/src/canonical-model/resolver.ts:33

Resolve a parsed canonical model to a concrete adapter selection.

ResolvableCanonicalModel

The parsed canonical model ref

Optional resolution context reserved for future framework seams

string = ...

Project scope for persona/profile/virtualModel entity resolution.

string = ...

User prompt text for VirtualModel intent classification.

unknown = ...

Session context with history, injected context, etc.

string = ...

Session ID for correlation and VirtualModel resolution.

Promise<{[key: string]: unknown; adapterId?: string; adapterName: string; allowedDirectories?: string[]; allowedTools?: string[]; cwd?: string; disallowedTools?: string[]; kind: "adapter"; model: string; providerConfigId: string; reasoningEffort?: "none" | "low" | "medium" | "high" | "extra-high"; systemPrompt?: string | { content: string; mode: "append"; }; }>

Resolved adapter selection

CanonicalModelResolutionError when resolution fails