Interface: AgentBusHandlerRegistrarConfig
Makaio Framework / ai-adapters-core / AgentBusHandlerRegistrarConfig
Interface: AgentBusHandlerRegistrarConfig
Section titled “Interface: AgentBusHandlerRegistrarConfig”Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:19
Handler bundle required to register all agent.* request handlers.
Properties
Section titled “Properties”agentId
Section titled “agentId”agentId:
string
Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:23
Target agent identity for filter scoping.
getCapabilities
Section titled “getCapabilities”getCapabilities: () =>
object
Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:27
Provider for agent.getCapabilities response payload.
Returns
Section titled “Returns”capabilities
Section titled “capabilities”capabilities:
string[]
Effective capabilities for this agent’s current model
model?
Section titled “model?”
optionalmodel?:string
Current model (informational)
nativeTools
Section titled “nativeTools”nativeTools:
string[]
Native tools available to this agent
globalBus
Section titled “globalBus”globalBus:
IMakaioBus
Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:21
Global bus instance where handlers are registered.
onCredentialChange
Section titled “onCredentialChange”onCredentialChange: (
ctx) =>Promise<void>
Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:35
Handler for agent.credential.change.
Parameters
Section titled “Parameters”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; }>
Returns
Section titled “Returns”Promise<void>
onCwdChange
Section titled “onCwdChange”onCwdChange: (
ctx) =>Promise<void>
Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:29
Handler for agent.cwd.change.
Parameters
Section titled “Parameters”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; }>
Returns
Section titled “Returns”Promise<void>
onModelChange
Section titled “onModelChange”onModelChange: (
ctx) =>Promise<void>
Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:31
Handler for agent.model.change.
Parameters
Section titled “Parameters”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; }>
Returns
Section titled “Returns”Promise<void>
onSendMessage
Section titled “onSendMessage”onSendMessage: (
ctx) =>Promise<void>
Defined in: ../../../adapters/core/src/agent/agent-bus-handler-registrar.ts:25
Handler for agent.sendMessage.
Parameters
Section titled “Parameters”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; }>
Returns
Section titled “Returns”Promise<void>