Interface: AIAdapterConstructorConfig<TBus, TConnector, TAgent>
Makaio Framework / ai-adapters-core / AIAdapterConstructorConfig
Interface: AIAdapterConstructorConfig<TBus, TConnector, TAgent>
Section titled “Interface: AIAdapterConstructorConfig<TBus, TConnector, TAgent>”Defined in: ../../../adapters/core/src/adapter/types.ts:118
Full constructor config including factory injections.
Replaces the inline intersection type previously used in AIAdapter’s
constructor signature.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”TBus extends ScopedBus<string>
Scoped bus type for adapter-specific events
TConnector
Section titled “TConnector”TConnector extends AIAgentConnector<TBus>
Connector type bridging to the AI SDK
TAgent
Section titled “TAgent”TAgent extends AIAgent<TBus, TConnector>
Agent implementation type (must extend AIAgent)
Properties
Section titled “Properties”adapterId?
Section titled “adapterId?”
optionaladapterId?:string
Defined in: ../../../adapters/core/src/adapter/types.ts:94
Optional pre-generated adapter ID. Defaults to UUID.
Inherited from
Section titled “Inherited from”agentFactory
Section titled “agentFactory”agentFactory: (
agentConfig) =>TAgent
Defined in: ../../../adapters/core/src/adapter/types.ts:129
Factory to create agent instances from config.
Parameters
Section titled “Parameters”agentConfig
Section titled “agentConfig”AIAgentConfig<TBus, TConnector>
Returns
Section titled “Returns”TAgent
capabilities
Section titled “capabilities”capabilities:
string[]
Defined in: ../../../adapters/core/src/adapter/types.ts:88
Adapter capabilities (e.g., [‘streaming’, ‘tools’, ‘vision’]).
Inherited from
Section titled “Inherited from”clientId?
Section titled “clientId?”
optionalclientId?:string
Defined in: ../../../adapters/core/src/adapter/types.ts:106
Client identifier for the application this adapter belongs to (e.g., ‘claude-code’, ‘codex’). Omit for API-only adapters.
Inherited from
Section titled “Inherited from”configFactory
Section titled “configFactory”configFactory: (
input) =>Promise<BaseAgentConnectorConfig<TBus,object> &object>
Defined in: ../../../adapters/core/src/adapter/types.ts:131
Config factory — transforms partial input into full adapter-specific config (includes adapterId).
Parameters
Section titled “Parameters”ConfigFactoryInput<TBus>
Returns
Section titled “Returns”Promise<BaseAgentConnectorConfig<TBus, object> & object>
connectorFactory
Section titled “connectorFactory”connectorFactory: (
config) =>TConnector|Promise<TConnector>
Defined in: ../../../adapters/core/src/adapter/types.ts:133
Connector factory — creates connector from full config (includes adapterId).
Parameters
Section titled “Parameters”config
Section titled “config”BaseAgentConnectorConfig<TBus, object> & object
Returns
Section titled “Returns”TConnector | Promise<TConnector>
definitionProviders?
Section titled “definitionProviders?”
optionaldefinitionProviders?: readonlyAdapterProviderDefinition[]
Defined in: ../../../adapters/core/src/adapter/types.ts:139
Provider definitions for model lookup. Injected by runtime.
Overrides
Section titled “Overrides”AIAdapterConfig.definitionProviders
globalBus?
Section titled “globalBus?”
optionalglobalBus?:IMakaioBus
Defined in: ../../../adapters/core/src/adapter/types.ts:96
Optional global bus override. Defaults to MakaioBus singleton.
Inherited from
Section titled “Inherited from”logImport?
Section titled “logImport?”
optionallogImport?:LogImportConfig
Defined in: ../../../adapters/core/src/adapter/types.ts:102
Optional log import configuration. When enabled, the adapter will watch for external session logs and import them as Makaio events.
Inherited from
Section titled “Inherited from”name:
string
Defined in: ../../../adapters/core/src/adapter/types.ts:86
Unique adapter name (e.g., ‘openai-node’, ‘claude-code’).
Inherited from
Section titled “Inherited from”namespace
Section titled “namespace”namespace:
AdapterNamespace
Defined in: ../../../adapters/core/src/adapter/types.ts:92
Adapter namespace for creating scoped bus. Bus created lazily in init().
Inherited from
Section titled “Inherited from”nativeTools?
Section titled “nativeTools?”
optionalnativeTools?:string[]
Defined in: ../../../adapters/core/src/adapter/types.ts:90
Native tools built into the adapter (e.g., [‘shell_command’, ‘apply_patch’]).
Inherited from
Section titled “Inherited from”platformDefaults?
Section titled “platformDefaults?”
optionalplatformDefaults?:PlatformDefaults
Defined in: ../../../adapters/core/src/adapter/types.ts:137
Platform-provided defaults (cwd, env). Injected by runtime.
scopedBus?
Section titled “scopedBus?”
optionalscopedBus?:ScopedBus<string>
Defined in: ../../../adapters/core/src/adapter/types.ts:97