Skip to content

Interface: AIAdapterContext<Scope>

Makaio Framework


Makaio Framework / ai-adapters-core / AIAdapterContext

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

Scope extends ScopedBus<string>

adapterBus: Scope

Defined in: ../../../adapters/core/src/factory/adapter-context.ts:22

Scoped bus for adapter-level events.


adapterId: string

Defined in: ../../../adapters/core/src/factory/adapter-context.ts:13

Unique adapter instance identifier.


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