Function: buildProviderContext()
Makaio Framework / services-core / buildProviderContext
Function: buildProviderContext()
Section titled “Function: buildProviderContext()”buildProviderContext(
bus,providerConfigId):Promise<{credentialEnvVars?:Record<string,string>;credentialRefs:Record<string,string&$brand<"CredentialRef">>;definitionId:string;endpointOverrides?: {anthropic?:string;openai?:string; };providerConfigId:string; }>
Defined in: ../../../packages/services/core/src/provider-context/build-provider-context.ts:16
Resolve the bus-safe provider context via the adapter subsystem subject.
The adapter subsystem owns the canonical provider-context assembly. This helper keeps framework consumers on that seam while preserving the local error contract for missing provider configs.
Parameters
Section titled “Parameters”Bus instance used to request the subsystem subject
providerConfigId
Section titled “providerConfigId”string
Provider config identifier to resolve
Returns
Section titled “Returns”Promise<{ credentialEnvVars?: Record<string, string>; credentialRefs: Record<string, string & $brand<"CredentialRef">>; definitionId: string; endpointOverrides?: { anthropic?: string; openai?: string; }; providerConfigId: string; }>
Unresolved provider context with credential refs
Throws
Section titled “Throws”Error when the config cannot be found