Abstract Class: BaseConnectorSession<TConfig>
Makaio Framework / ai-adapters-core / BaseConnectorSession
Abstract Class: BaseConnectorSession<TConfig>
Section titled “Abstract Class: BaseConnectorSession<TConfig>”Defined in: ../../../adapters/core/src/connector/base-connector-session.ts:35
Base abstract class for connector session implementations.
Sessions manage SDK query lifecycle across multiple turns:
- SDK connection management
- Turn creation and coordination
- Session ID management
Each adapter implements its own session subclass.
Type Parameters
Section titled “Type Parameters”TConfig
Section titled “TConfig”TConfig extends ConnectorSessionConfig = ConnectorSessionConfig
Configuration type extending ConnectorSessionConfig
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BaseConnectorSession<
TConfig>(config):BaseConnectorSession<TConfig>
Defined in: ../../../adapters/core/src/connector/base-connector-session.ts:41
Parameters
Section titled “Parameters”config
Section titled “config”TConfig
Returns
Section titled “Returns”BaseConnectorSession<TConfig>
Properties
Section titled “Properties”
protectedreadonlybus:TConfig["bus"]
Defined in: ../../../adapters/core/src/connector/base-connector-session.ts:37
config
Section titled “config”
protectedreadonlyconfig:TConfig
Defined in: ../../../adapters/core/src/connector/base-connector-session.ts:36
currentTurn?
Section titled “currentTurn?”
protectedoptionalcurrentTurn?:PausableTurn
Defined in: ../../../adapters/core/src/connector/base-connector-session.ts:39
sessionId?
Section titled “sessionId?”
protectedoptionalsessionId?:string
Defined in: ../../../adapters/core/src/connector/base-connector-session.ts:38
Methods
Section titled “Methods”abort()
Section titled “abort()”abort():
Promise<void>
Defined in: ../../../adapters/core/src/connector/base-connector-session.ts:50
Abort the session and cleanup resources. Pauses the current turn if one is active.
Returns
Section titled “Returns”Promise<void>
getAdapterSessionId()
Section titled “getAdapterSessionId()”getAdapterSessionId():
Promise<string>
Defined in: ../../../adapters/core/src/connector/base-connector-session.ts:68
Get the adapter session ID.
Returns
Section titled “Returns”Promise<string>
The session ID from the provider
sendMessage()
Section titled “sendMessage()”sendMessage(
_message,_options?):Promise<void>
Defined in: ../../../adapters/core/src/connector/base-connector-session.ts:60
Send a message to the provider. Not used - subclasses should implement processQueue instead.
Parameters
Section titled “Parameters”_message
Section titled “_message”unknown
Unused message parameter
_options?
Section titled “_options?”unknown
Unused options parameter
Returns
Section titled “Returns”Promise<void>