Skip to content

Interface: AgentRuntimeMutationManagerConfig

Makaio Framework


Makaio Framework / ai-adapters-core / AgentRuntimeMutationManagerConfig

Interface: AgentRuntimeMutationManagerConfig

Section titled “Interface: AgentRuntimeMutationManagerConfig”

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:28

Dependencies for runtime mutation handling.

agentId: string

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:30

Stable agent identifier.


emitCwdChanged: (payload) => Promise<void>

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:42

Emit cwd.changed payload.

Omit<ExtractSubjectPayload<typeof AgentSubjects.cwd.changed>, "agentId" | "adapterId" | "adapterName" | "adapterSessionId">

Promise<void>


emitModelChanged: (payload) => Promise<void>

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:49

Emit model.changed payload.

Omit<ExtractSubjectPayload<typeof AgentSubjects.model.changed>, "agentId" | "adapterId" | "adapterName" | "adapterSessionId">

Promise<void>


getConnector: () => AIAgentConnector

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:36

Read current connector.

AIAgentConnector


getProviderContext: () => { credentialEnvVars?: Record<string, string>; credentialRefs: Record<string, string & $brand<"CredentialRef">>; definitionId: string; endpointOverrides?: { anthropic?: string; openai?: string; }; providerConfigId: string; } | undefined

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:60

Read the agent’s current provider context for no-op detection. Returns undefined during rehydration or when the orchestrator has not yet resolved credentials for this agent.

{ credentialEnvVars?: Record<string, string>; credentialRefs: Record<string, string & $brand<"CredentialRef">>; definitionId: string; endpointOverrides?: { anthropic?: string; openai?: string; }; providerConfigId: string; }

optional credentialEnvVars?: Record<string, string>

Maps credential keys to environment variable names for subprocess adapters. E.g., { apiKey: 'ANTHROPIC_API_KEY' }.

credentialRefs: Record<string, string & $brand<"CredentialRef">>

Credential references resolved at the connector layer, not on the bus.

definitionId: string

Provider definition ID (e.g., 'anthropic', 'alibaba').

optional endpointOverrides?: object

Endpoint URL overrides keyed by protocol.

optional anthropic?: string

optional openai?: string

providerConfigId: string

Provider config UUID. Links back to the ProviderConfig that produced this context.


undefined


globalBus: IMakaioBus

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:34

Global bus for persistence and events.


resolveSupportedReasoningLevels: (model) => { extra-high?: string | number; high?: string | number; low?: string | number; medium?: string | number; none?: string | number; } | undefined

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:70

Resolve supported reasoning levels for a model from the agent’s available models.

string

{ extra-high?: string | number; high?: string | number; low?: string | number; medium?: string | number; none?: string | number; } | undefined


optional sessionId?: string

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:32

Optional Makaio session identifier.


setProviderContext: (providerContext) => void

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:66

Persist provider context changes on agent config for sequential swaps. Called after a connector swap driven by a provider change so subsequent buildConfigInput calls carry the updated context.

Record<string, string> = ...

Maps credential keys to environment variable names for subprocess adapters. E.g., { apiKey: 'ANTHROPIC_API_KEY' }.

Record<string, string & $brand<"CredentialRef">> = ...

Credential references resolved at the connector layer, not on the bus.

string = ...

Provider definition ID (e.g., 'anthropic', 'alibaba').

{ anthropic?: string; openai?: string; } = ...

Endpoint URL overrides keyed by protocol.

string = ...

string = ...

string = ...

Provider config UUID. Links back to the ProviderConfig that produced this context.

void


setReasoningEffort: (reasoningEffort) => void

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:68

Persist reasoning effort changes on agent config for sequential swaps.

"none" | "low" | "medium" | "high" | "extra-high" | undefined

void


swapConnector: (configOverrides?) => Promise<void>

Defined in: ../../../adapters/core/src/agent/agent-runtime-mutation-manager.ts:38

Swap connector with runtime overrides.

Partial<{ cwd: string; model: string; providerContext: { credentialEnvVars?: Record<string, string>; credentialRefs: Record<string, string & $brand<"CredentialRef">>; definitionId: string; endpointOverrides?: { anthropic?: string; openai?: string; }; providerConfigId: string; }; }>

Promise<void>