Skip to content

Interface: AgentBusHandlerRegistrarConfig

Makaio Framework


Makaio Framework / ai-adapters-core / AgentBusHandlerRegistrarConfig

Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:19

Handler bundle required to register all agent.* request handlers.

agentId: string

Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:23

Target agent identity for filter scoping.


getCapabilities: () => object

Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:27

Provider for agent.getCapabilities response payload.

capabilities: string[]

Effective capabilities for this agent’s current model

optional model?: string

Current model (informational)

nativeTools: string[]

Native tools available to this agent


globalBus: IMakaioBus

Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:21

Global bus instance where handlers are registered.


onCredentialChange: (ctx) => Promise<void>

Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:35

Handler for agent.credential.change.

RequestContext<{ adapterId: string; adapterName: string; adapterSessionId?: string; agentId: string; changeSequence: number; clientId?: string; credentialRefs: Record<string, string>; definitionId: string; messageId?: string; occurredAt?: number; providerConfigId: string; sessionId?: string; turnId?: string; }, { success: true; swapped: true; } | { reason: string; success: false; }>

Promise<void>


onCwdChange: (ctx) => Promise<void>

Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:29

Handler for agent.cwd.change.

RequestContext<{ adapterId: string; adapterName: string; adapterSessionId: string; agentId: string; clientId?: string; messageId?: string; newCwd: string; occurredAt?: number; providerConfigId?: string; sessionId?: string; skipWarning?: boolean; turnId?: string; }, { previousCwd?: string; reason?: string; success: boolean; }>

Promise<void>


onModelChange: (ctx) => Promise<void>

Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:31

Handler for agent.model.change.

RequestContext<{ adapterId: string; adapterName: string; adapterSessionId: string; agentId: string; clientId?: string; messageId?: string; newModel?: string; occurredAt?: number; providerConfigId?: string; providerContext?: { credentialEnvVars?: Record<string, string>; credentialRefs: Record<string, string>; definitionId: string; endpointOverrides?: { anthropic?: string; openai?: string; }; providerConfigId: string; }; reasoningEffort?: "none" | "low" | "medium" | "high" | "extra-high"; sessionId?: string; skipWarning?: boolean; turnId?: string; }, { appliedReasoningEffort?: "none" | "low" | "medium" | "high" | "extra-high"; model?: string; reason?: string; success: boolean; supportedReasoningLevels?: { extra-high?: string | number; high?: string | number; low?: string | number; medium?: string | number; none?: string | number; }; swapped?: boolean; }>

Promise<void>


onSendMessage: (ctx) => Promise<void>

Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:25

Handler for agent.sendMessage.

RequestContext<{ adapterId: string; agentId: string; deliveryMode?: "enqueue" | "immediate"; message: string | { blocks: { content: string; type: "text"; } | { source: { data: string; mimeType: string; type: "base64"; } | { mimeType?: string; type: "url"; url: string; }; type: "image"; } | { source: { data: string; mimeType: string; type: "base64"; } | { mimeType?: string; type: "url"; url: string; }; type: "document"; } | { attachmentType: "file" | "directory"; displayName?: string; fileName: string; filePath: string; source: { data: string; mimeType: string; type: "base64"; } | { mimeType?: string; type: "url"; url: string; }; type: "attachment"; } | { content: string; metadata?: Record<string, unknown>; type: "reasoning"; } | { args: Record<string, unknown>; name: string; toolCallId: string; type: "tool_call"; } | { isError?: boolean; output: string; toolCallId: string; type: "tool_output"; } | ({ content: string; type: "text"; } | { source: { data: …; mimeType: …; type: …; } | { mimeType?: …; type: …; url: …; }; type: "image"; } | { source: { data: …; mimeType: …; type: …; } | { mimeType?: …; type: …; url: …; }; type: "document"; } | { attachmentType: "file" | "directory"; displayName?: string; fileName: string; filePath: string; source: { data: …; mimeType: …; type: …; } | { mimeType?: …; type: …; url: …; }; type: "attachment"; } | { content: string; metadata?: Record<…, …>; type: "reasoning"; } | { args: Record<string, unknown>; name: string; toolCallId: string; type: "tool_call"; } | { isError?: boolean; output: string; toolCallId: string; type: "tool_output"; })[]; role?: "user" | "assistant" | "system"; }; messageId?: string; responseSchema?: Record<string, unknown>; sessionContext?: { extractedContext?: unknown; hasCompression?: boolean; hasConnectorSwap?: boolean; hasNewTransforms?: boolean; isFirstTurn?: boolean; messageHistory?: object[]; turnContext?: Record<string, unknown>; }; sessionId?: string; turnId?: string; }, { messageId: string; }>

Promise<void>