Skip to content

Interface: IAdapterConfigFactory<TConfig, TBus>

Makaio Framework


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).

const OpenAIConfigFactory: IAdapterConfigFactory<OpenAINodeAgentConfig> = {
getConfig: async (input) => ({
...input,
model: input.model ?? 'gpt-4o',
providerConfig: { debugMode: true },
}),
};

TConfig extends BaseAgentConnectorConfig

TBus extends ScopedBus<string> = ScopedBus<string>

getConfig(input): Promise<TConfig>

Defined in: ../../../adapters/core/src/adapter/ai-adapter-config.ts:108

ConfigFactoryInput<TBus>

Promise<TConfig>