Interface IAzureCosmosDBCodeSessionService
- Namespace
 - FoundationaLLM.Context.Interfaces
 
- Assembly
 - FoundationaLLM.ContextEngine.dll
 
Defines the interface for the Azure Cosmos DB service that services the Context API Code Session service.
public interface IAzureCosmosDBCodeSessionService
  - Extension Methods
 
Methods
GetCodeSessionFileUploadRecord(string, string, string, string)
Gets a code session file upload record from the Azure Cosmos DB.
Task<ContextCodeSessionFileUploadRecord?> GetCodeSessionFileUploadRecord(string instanceId, string sessionId, string operationId, string userPrincipalName)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
sessionIdstringThe identifier of the code session.
operationIdstringThe identifier of the code session file upload record.
userPrincipalNamestringThe user principal name of the user associated with the code session file upload.
Returns
- Task<ContextCodeSessionFileUploadRecord>
 The requested code session file upload record.
GetCodeSessionRecord(string, string, string)
Gets a code session record from the Azure Cosmos DB.
Task<ContextCodeSessionRecord?> GetCodeSessionRecord(string instanceId, string sessionId, string userPrincipalName)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
sessionIdstringThe identifier of the code session.
userPrincipalNamestringThe user principal name of the user associated with the code session.
Returns
- Task<ContextCodeSessionRecord>
 The requests code session record.
UpsertCodeSessionFileUploadRecord(ContextCodeSessionFileUploadRecord)
Upserts a code session file upload record in the Azure Cosmos DB.
Task UpsertCodeSessionFileUploadRecord(ContextCodeSessionFileUploadRecord codeSessionFileUploadRecord)
  Parameters
codeSessionFileUploadRecordContextCodeSessionFileUploadRecordThe code session file upload record to be upserted.
Returns
UpsertCodeSessionRecord(ContextCodeSessionRecord)
Upserts a code session record in the Azure Cosmos DB.
Task UpsertCodeSessionRecord(ContextCodeSessionRecord codeSessionRecord)
  Parameters
codeSessionRecordContextCodeSessionRecordThe code session record to be upserted.