Interface: BaseAgentConnectorConfig<TBus, TProviderConfig>
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.
Extends
Section titled “Extends”MinimalAgentConnectorConfig<TBus>.Omit<AgentIdentity,"adapterId">.AgentRuntimeOptions
Type Parameters
Section titled “Type Parameters”TBus extends ScopedBus<string> = ScopedBus<string>
TProviderConfig
Section titled “TProviderConfig”TProviderConfig extends object = object
Properties
Section titled “Properties”adapterName
Section titled “adapterName”adapterName:
string
Defined in: ../../../adapters/core/src/agent/types.ts:28
Adapter type name (e.g., ‘claude-code’, ‘gemini-sdk’)
Inherited from
Section titled “Inherited from”adapterSessionId?
Section titled “adapterSessionId?”
optionaladapterSessionId?:string
Defined in: ../../../adapters/core/src/agent/types.ts:30
Session identifier for multi-turn conversations
Inherited from
Section titled “Inherited from”AgentIdentity.adapterSessionId
agentId
Section titled “agentId”agentId:
string
Defined in: ../../../adapters/core/src/agent/types.ts:24
Unique agent identifier
Inherited from
Section titled “Inherited from”allowedDirectories?
Section titled “allowedDirectories?”
optionalallowedDirectories?: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
Inherited from
Section titled “Inherited from”MinimalAgentConnectorConfig.bus
clientId?
Section titled “clientId?”
optionalclientId?: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)
Inherited from
Section titled “Inherited from”
optionalenv?:Record<string,string>
Defined in: ../../../adapters/core/src/agent/types.ts:42
Environment variables to pass to agent execution
Inherited from
Section titled “Inherited from”errorHandler?
Section titled “errorHandler?”
optionalerrorHandler?: (error,terminate) =>void
Defined in: ../../../adapters/core/src/agent/types.ts:86
Parameters
Section titled “Parameters”Error
terminate
Section titled “terminate”boolean
Returns
Section titled “Returns”void
harnessId?
Section titled “harnessId?”
optionalharnessId?:string
Defined in: ../../../adapters/core/src/agent/types.ts:124
Resolved harness ID for tool policy lookup.
mcpSessionContext?
Section titled “mcpSessionContext?”
optionalmcpSessionContext?: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)
Inherited from
Section titled “Inherited from”onMessageSent?
Section titled “onMessageSent?”
optionalonMessageSent?: (messageHandle) =>void
Defined in: ../../../adapters/core/src/agent/types.ts:130
Callback when a user message is enqueued
Parameters
Section titled “Parameters”messageHandle
Section titled “messageHandle”Returns
Section titled “Returns”void
providerConfig?
Section titled “providerConfig?”
optionalproviderConfig?:TProviderConfig
Defined in: ../../../adapters/core/src/agent/types.ts:110
providerConfigId?
Section titled “providerConfigId?”
optionalproviderConfigId?: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.
providerContext?
Section titled “providerContext?”
optionalproviderContext?: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().
credentialEnvVars?
Section titled “credentialEnvVars?”
optionalcredentialEnvVars?:Record<string,string>
Maps credential keys to environment variable names for subprocess adapters.
E.g., { apiKey: 'ANTHROPIC_API_KEY' }.
credentialRefs
Section titled “credentialRefs”credentialRefs:
Record<string,string&$brand<"CredentialRef">>
Credential references resolved at the connector layer, not on the bus.
definitionId
Section titled “definitionId”definitionId:
string
Provider definition ID (e.g., 'anthropic', 'alibaba').
endpointOverrides?
Section titled “endpointOverrides?”
optionalendpointOverrides?:object
Endpoint URL overrides keyed by protocol.
endpointOverrides.anthropic?
Section titled “endpointOverrides.anthropic?”
optionalanthropic?:string
endpointOverrides.openai?
Section titled “endpointOverrides.openai?”
optionalopenai?:string
providerConfigId
Section titled “providerConfigId”providerConfigId:
string
Provider config UUID. Links back to the ProviderConfig that produced this context.
reasoningEffort?
Section titled “reasoningEffort?”
optionalreasoningEffort?:"none"|"low"|"medium"|"high"|"extra-high"
Defined in: ../../../adapters/core/src/agent/types.ts:44
Reasoning effort for supporting adapters
Inherited from
Section titled “Inherited from”resumeAdapterSessionId?
Section titled “resumeAdapterSessionId?”
optionalresumeAdapterSessionId?:string
Defined in: ../../../adapters/core/src/agent/types.ts:121
Previous adapter session ID for resume attempts.
sessionId?
Section titled “sessionId?”
optionalsessionId?:string
Defined in: ../../../adapters/core/src/agent/types.ts:85
Makaio session ID for tool execution context and multi-session correlation
supportedReasoningLevels?
Section titled “supportedReasoningLevels?”
optionalsupportedReasoningLevels?: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.
extra-high?
Section titled “extra-high?”
optionalextra-high?:string|number=reasoningLevelValue
optionalhigh?:string|number=reasoningLevelValue
optionallow?:string|number=reasoningLevelValue
medium?
Section titled “medium?”
optionalmedium?:string|number=reasoningLevelValue
optionalnone?:string|number=reasoningLevelValue
timeouts?
Section titled “timeouts?”
optionaltimeouts?:TrackedTimeoutConfig
Defined in: ../../../adapters/core/src/agent/types.ts:92
Resolved timeout configuration with provenance tracking. Set by configFactory after merging all timeout layers.
toolLedger?
Section titled “toolLedger?”
optionaltoolLedger?: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.