Skip to content

Interface: BaseAgentConnectorConfig<TBus, TProviderConfig>

Makaio Framework


Makaio Framework / ai-adapters-core / BaseAgentConnectorConfig

Interface: BaseAgentConnectorConfig<TBus, TProviderConfig>

Section titled “Interface: BaseAgentConnectorConfig<TBus, TProviderConfig>”

Defined in: ../../../adapters/core/src/agent/types.ts:79

Base configuration for AI agent connector instances.

  • MinimalAgentConnectorConfig<TBus>.Omit<AgentIdentity, "adapterId">.AgentRuntimeOptions

TBus extends ScopedBus<string> = ScopedBus<string>

TProviderConfig extends object = object

adapterName: string

Defined in: ../../../adapters/core/src/agent/types.ts:28

Adapter type name (e.g., ‘claude-code’, ‘gemini-sdk’)

AgentIdentity.adapterName


optional adapterSessionId?: string

Defined in: ../../../adapters/core/src/agent/types.ts:30

Session identifier for multi-turn conversations

AgentIdentity.adapterSessionId


agentId: string

Defined in: ../../../adapters/core/src/agent/types.ts:24

Unique agent identifier

AgentIdentity.agentId


optional allowedDirectories?: string[]

Defined in: ../../../adapters/core/src/agent/types.ts:137

Directory restrictions for file-system tool execution. When set, forwarded as constraints.allowedDirectories in every tool call. Empty array means no restriction; undefined means no restriction.


bus: TBus

Defined in: ../../../adapters/core/src/agent/types.ts:73

MinimalAgentConnectorConfig.bus


optional clientId?: string

Defined in: ../../../adapters/core/src/agent/types.ts:127

Client identifier for the application this adapter belongs to (e.g., ‘claude-code’, ‘gemini’).


cwd: string

Defined in: ../../../adapters/core/src/agent/types.ts:40

Working directory for agent execution (optional - platform provides default)

AIAgentConfig.cwd


optional env?: Record<string, string>

Defined in: ../../../adapters/core/src/agent/types.ts:42

Environment variables to pass to agent execution

AIAgentConfig.env


optional errorHandler?: (error, terminate) => void

Defined in: ../../../adapters/core/src/agent/types.ts:86

Error

boolean

void


optional harnessId?: string

Defined in: ../../../adapters/core/src/agent/types.ts:124

Resolved harness ID for tool policy lookup.


optional mcpSessionContext?: LedgerSessionContext

Defined in: ../../../adapters/core/src/agent/types.ts:149

MCP session context resolved by the orchestrator. Provides the direct and discoverable tool sets for the current session. When present, enables MCP tool injection and ledger tracking.

Intentionally narrowed to LedgerSessionContext — the minimal shape the ledger needs. Adapters requiring the full McpSessionContext (with resolution keys / servers) re-declare this field via Omit + intersection in their own config types (e.g. BaseStreamConnectorConfig, ClaudeAgentConfig).


model: string

Defined in: ../../../adapters/core/src/agent/types.ts:38

Model to use (optional - adapter provides default)

AIAgentConfig.model


optional onMessageSent?: (messageHandle) => void

Defined in: ../../../adapters/core/src/agent/types.ts:130

Callback when a user message is enqueued

MessageHandle

void


optional providerConfig?: TProviderConfig

Defined in: ../../../adapters/core/src/agent/types.ts:110


optional providerConfigId?: string

Defined in: ../../../adapters/core/src/agent/types.ts:98

UUID of the ProviderConfig entity used during agent creation. Carried on the connector config for runtime introspection and dynamic provider switching.


optional providerContext?: object

Defined in: ../../../adapters/core/src/agent/types.ts:108

Unresolved provider context (credential refs, not plaintext).

Passed through from the factory input so connectors can call resolveConnectorCredentials() locally during initialization. Connectors must NOT read plaintext credentials from this field — they must resolve refs via resolveConnectorCredentials().

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.


optional reasoningEffort?: "none" | "low" | "medium" | "high" | "extra-high"

Defined in: ../../../adapters/core/src/agent/types.ts:44

Reasoning effort for supporting adapters

AIAgentConfig.reasoningEffort


optional resumeAdapterSessionId?: string

Defined in: ../../../adapters/core/src/agent/types.ts:121

Previous adapter session ID for resume attempts.


optional sessionId?: string

Defined in: ../../../adapters/core/src/agent/types.ts:85

Makaio session ID for tool execution context and multi-session correlation


optional supportedReasoningLevels?: object

Defined in: ../../../adapters/core/src/agent/types.ts:118

Maps supported reasoning levels to provider-native values for the active model.

Populated by the config factory when the resolved model declares reasoning support. Absent when the model does not support extended thinking.

optional extra-high?: string | number = reasoningLevelValue

optional high?: string | number = reasoningLevelValue

optional low?: string | number = reasoningLevelValue

optional medium?: string | number = reasoningLevelValue

optional none?: string | number = reasoningLevelValue


optional timeouts?: TrackedTimeoutConfig

Defined in: ../../../adapters/core/src/agent/types.ts:92

Resolved timeout configuration with provenance tracking. Set by configFactory after merging all timeout layers.


optional toolLedger?: ISessionToolLedger

Defined in: ../../../adapters/core/src/agent/types.ts:155

Session-scoped tool ledger for tracking injection, discovery, and call history. When present, the connector records tool events into this ledger.