Interface: IAdapterConfigFactory<TConfig, TBus>
Makaio Framework / ai-adapters-core / IAdapterConfigFactory
Interface: IAdapterConfigFactory<TConfig, TBus>
Section titled “Interface: IAdapterConfigFactory<TConfig, TBus>”Defined in: ../../../adapters/core/src/adapter/ai-adapter-config.ts:104
Interface for adapter-specific configuration factories.
Transforms partial ConfigFactoryInput into full adapter-specific config. The key responsibility is applying adapter defaults (especially model).
Example
Section titled “Example”const OpenAIConfigFactory: IAdapterConfigFactory<OpenAINodeAgentConfig> = { getConfig: async (input) => ({ ...input, model: input.model ?? 'gpt-4o', providerConfig: { debugMode: true }, }),};Type Parameters
Section titled “Type Parameters”TConfig
Section titled “TConfig”TConfig extends BaseAgentConnectorConfig
TBus extends ScopedBus<string> = ScopedBus<string>
Methods
Section titled “Methods”getConfig()
Section titled “getConfig()”getConfig(
input):Promise<TConfig>
Defined in: ../../../adapters/core/src/adapter/ai-adapter-config.ts:108
Parameters
Section titled “Parameters”ConfigFactoryInput<TBus>
Returns
Section titled “Returns”Promise<TConfig>