Interface: AIAdapterContext<Scope>
Makaio Framework / ai-adapters-core / AIAdapterContext
Interface: AIAdapterContext<Scope>
Section titled “Interface: AIAdapterContext<Scope>”Defined in: ../../../adapters/core/src/factory/adapter-context.ts:11
Context provided to adapter implementations.
Contains shared infrastructure and configuration that all adapters need:
- Adapter name and capabilities from config
- Local event bus for emitting events
Type Parameters
Section titled “Type Parameters”Scope extends ScopedBus<string>
Properties
Section titled “Properties”adapterBus
Section titled “adapterBus”adapterBus:
Scope
Defined in: ../../../adapters/core/src/factory/adapter-context.ts:22
Scoped bus for adapter-level events.
adapterId
Section titled “adapterId”adapterId:
string
Defined in: ../../../adapters/core/src/factory/adapter-context.ts:13
Unique adapter instance identifier.
capabilities
Section titled “capabilities”capabilities: (
"systemPrompt"|"vision"|"structuredOutput"|"streaming"|"session"|"tools"|"chat"|"modelSwitchInSession"|"systemPromptOverride"|"systemPromptAppend"|"sessionFork"|"sessionResume"|"chatInTurnMessages")[]
Defined in: ../../../adapters/core/src/factory/adapter-context.ts:19
Adapter capabilities (unparsed). Use parseAIAdapterCapabilities() to parse.
globalBus
Section titled “globalBus”globalBus:
IMakaioBus
Defined in: ../../../adapters/core/src/factory/adapter-context.ts:25
Global event bus.
name:
string
Defined in: ../../../adapters/core/src/factory/adapter-context.ts:16
Unique adapter name (kebab-case).