Skip to content

Function: resolveModelCapabilities()

Makaio Framework


Makaio Framework / services-core / resolveModelCapabilities

resolveModelCapabilities(bus, providerConfigId, model): Promise<{ supportedReasoningLevels?: { extra-high?: string | number; high?: string | number; low?: string | number; medium?: string | number; none?: string | number; }; } | undefined>

Defined in: ../../../packages/services/core/src/session/utils/resolution.ts:37

Resolve supported reasoning levels for a model from provider definitions.

Looks up the provider config by ID, finds the provider definition it belongs to, then finds the model’s supportedReasoningLevels in the provider’s availableModels catalog.

IMakaioBus

Bus instance for RPC calls

string | undefined

Canonical provider config ID (ProviderConfigRecord.id)

string | undefined

Model identifier to look up in the provider’s catalog

Promise<{ supportedReasoningLevels?: { extra-high?: string | number; high?: string | number; low?: string | number; medium?: string | number; none?: string | number; }; } | undefined>

Object with supportedReasoningLevels when found, or undefined when not resolvable