Interface: ProviderResolution
Makaio Framework / ai-adapters-core/config / ProviderResolution
Interface: ProviderResolution
Section titled “Interface: 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.
Properties
Section titled “Properties”baseUrl
Section titled “baseUrl”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
Section titled “config”config:
object
Defined in: ../../../adapters/core/src/config/resolve-provider-resolution.ts:17
Bus-safe provider config read model from the adapter subsystem.
definitionId
Section titled “definitionId”definitionId:
string
enabled
Section titled “enabled”enabled:
boolean
endpointOverrides?
Section titled “endpointOverrides?”
optionalendpointOverrides?:Record<string,string>
hasCredentials
Section titled “hasCredentials”hasCredentials:
boolean
id:
string
isDefault
Section titled “isDefault”isDefault:
boolean
isSentinel
Section titled “isSentinel”isSentinel:
boolean
modelFilterMode
Section titled “modelFilterMode”modelFilterMode:
"allowlist"|"show-all"=ModelFilterModeSchema
modelVisibility?
Section titled “modelVisibility?”
optionalmodelVisibility?:Record<string,"enabled"|"disabled"|"visible">
name:
string
sourceRef?
Section titled “sourceRef?”
optionalsourceRef?:string
credentials
Section titled “credentials”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
Section titled “definition”definition:
object
Defined in: ../../../adapters/core/src/config/resolve-provider-resolution.ts:19
The ProviderDefinition record referenced by the config.
availableModels
Section titled “availableModels”availableModels:
object[]
Static model catalog declared by the provider package.
createdAt
Section titled “createdAt”createdAt:
number
Timestamp when record was created (Unix milliseconds).
credentialEnvVars?
Section titled “credentialEnvVars?”
optionalcredentialEnvVars?:Record<string,string>
Credential environment variable names — maps field names to env var names.
defaultModel?
Section titled “defaultModel?”
optionaldefaultModel?:string
Default model identifier for general-purpose tasks.
defaultModelFilterMode
Section titled “defaultModelFilterMode”defaultModelFilterMode:
"allowlist"|"show-all"=ModelFilterModeSchema
Default model filter mode applied when a provider record is first created.
description?
Section titled “description?”
optionaldescription?:string
Short human-readable description of the provider.
enabled
Section titled “enabled”enabled:
boolean
Whether this provider is enabled.
endpoints?
Section titled “endpoints?”
optionalendpoints?:object
Wire protocol endpoint URLs — maps protocol ids to base URLs.
endpoints.anthropic?
Section titled “endpoints.anthropic?”
optionalanthropic?:string
endpoints.openai?
Section titled “endpoints.openai?”
optionalopenai?:string
fastModel?
Section titled “fastModel?”
optionalfastModel?: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
Section titled “packageName”packageName:
string
npm package name that contributed this provider (e.g., '@makaio/provider-anthropic').
updatedAt
Section titled “updatedAt”updatedAt:
number
Timestamp when record was last updated (Unix milliseconds).