Module
ai.mssql
Module ai.mssql
maryamm/ai.mssql
0.5.0
Overview
Setup guide
Quickstart
Examples
The MSSQL-backed short-term chat message store connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:
Classes
ai.mssql: ShortTermMemoryStore
Isolated
getChatSystemMessage
Isolated Function
function getChatSystemMessage(string key) returns ChatSystemMessage|Error?Parameters
- key string -
getChatInteractiveMessages
Isolated Function
function getChatInteractiveMessages(string key) returns ChatInteractiveMessage[]|ErrorParameters
- key string -
getAll
Isolated Function
function getAll(string key) returns [ChatSystemMessage, ai:ChatInteractiveMessage...]|ChatInteractiveMessage[]|ErrorParameters
- key string -
isFull
Isolated Function
Parameters
- key string -
put
Isolated Function
function put(string key, ChatMessage message) returns Error?removeChatSystemMessage
Isolated Function
Parameters
- key string -
removeChatInteractiveMessages
Isolated Function
removeAll
Isolated Function
Parameters
- key string -
Records
ai.mssql: ChatSystemMessageDatabaseMessage
Closed record
Fields
- role SYSTEM -
- name? string -
ai.mssql: ChatUserMessageDatabaseMessage
Closed record
Fields
- role USER -
- name? string -
ai.mssql: Configuration
Closed record
Fields
- host string(default "localhost") -
- user string(default "sa") -
- password? string -
- database string -
- port int(default 1433) -
- instance? string -
- options? Options -
- connectionPool? ConnectionPool -
Union types
ai.mssql: ChatMessageDatabaseMessage
ChatMessageDatabaseMessage
ai.mssql: ChatInteractiveMessageDatabaseMessage
ChatInteractiveMessageDatabaseMessage
Import
import maryamm/ai.mssql;Other versions
0.5.0
Metadata
Released date: 12 days ago
Version: 0.5.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.12.0-20250310-080700-94702e9e
GraalVM compatible: Yes
Pull count
Total: 0
Current verison: 0
Weekly downloads
Keywords
ai
agent
memory
Contributors