Skip to content

Interface: ProviderResolution

Makaio Framework


Makaio Framework / ai-adapters-core/config / ProviderResolution

Defined in: ../../../adapters/core/src/config/resolve-provider-resolution.ts:15

Fully resolved provider data returned by resolveProviderResolution.

Callers use this to build protocol-specific outputs (e.g. adapter config, HTTP endpoint) without duplicating the lookup chain.

baseUrl: string | null

Defined in: ../../../adapters/core/src/config/resolve-provider-resolution.ts:25

Resolved base URL for the requested protocol. null when neither the config override nor the definition declares an endpoint for the requested protocol.


config: object

Defined in: ../../../adapters/core/src/config/resolve-provider-resolution.ts:17

Bus-safe provider config read model from the adapter subsystem.

definitionId: string

enabled: boolean

optional endpointOverrides?: Record<string, string>

hasCredentials: boolean

id: string

isDefault: boolean

isSentinel: boolean

modelFilterMode: "allowlist" | "show-all" = ModelFilterModeSchema

optional modelVisibility?: Record<string, "enabled" | "disabled" | "visible">

name: string

optional sourceRef?: string


credentials: Record<string, string>

Defined in: ../../../adapters/core/src/config/resolve-provider-resolution.ts:30

Plaintext credentials resolved from the config’s credential refs. Empty object when no credentials are configured or none resolve.


definition: object

Defined in: ../../../adapters/core/src/config/resolve-provider-resolution.ts:19

The ProviderDefinition record referenced by the config.

availableModels: object[]

Static model catalog declared by the provider package.

createdAt: number

Timestamp when record was created (Unix milliseconds).

optional credentialEnvVars?: Record<string, string>

Credential environment variable names — maps field names to env var names.

optional defaultModel?: string

Default model identifier for general-purpose tasks.

defaultModelFilterMode: "allowlist" | "show-all" = ModelFilterModeSchema

Default model filter mode applied when a provider record is first created.

optional description?: string

Short human-readable description of the provider.

enabled: boolean

Whether this provider is enabled.

optional endpoints?: object

Wire protocol endpoint URLs — maps protocol ids to base URLs.

optional anthropic?: string

optional openai?: string

optional fastModel?: string

Fast/cheap model identifier for cost-sensitive operations.

id: string

Stable provider identifier (e.g., 'anthropic', 'z-ai').

name: string

Display name for the provider (e.g., 'Anthropic').

packageName: string

npm package name that contributed this provider (e.g., '@makaio/provider-anthropic').

updatedAt: number

Timestamp when record was last updated (Unix milliseconds).