Interface IAzureCosmosDBFileService
- Namespace
 - FoundationaLLM.Context.Interfaces
 
- Assembly
 - FoundationaLLM.ContextEngine.dll
 
Defines the interface for the Azure Cosmos DB service that services the Context API File service.
public interface IAzureCosmosDBFileService
  - Extension Methods
 
Methods
DeleteFileRecord(string, string, string)
Deletes the file record for a specified file identifier.
Task DeleteFileRecord(string instanceId, string fileId, string userPrincipalName)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
fileIdstringThe idenfier of the file.
userPrincipalNamestringThe user principal name of the user associated with the file record.
Returns
GetFileRecord(string, string, string, bool)
Gets the file record for a specified file identifier.
Task<ContextFileRecord> GetFileRecord(string instanceId, string fileId, string userPrincipalName, bool bypassOwnerCheck)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
fileIdstringThe idenfier of the file.
userPrincipalNamestringThe user principal name of the user associated with the file record.
bypassOwnerCheckboolIndicates whether to bypass the owner check for the file record.
Returns
GetFileRecords(string, string, string, string, bool)
Gets the file records matching the specified criteria.
Task<List<ContextFileRecord>> GetFileRecords(string instanceId, string conversationId, string fileName, string userPrincipalName, bool bypassOwnerCheck)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
conversationIdstringThe idenfier of the conversation to which the file is associated.
fileNamestringThe name of the file.
userPrincipalNamestringThe user principal name of the user associated with the file record.
bypassOwnerCheckboolIndicates whether to bypass the owner check for the file records.
Returns
UpsertFileRecord(ContextFileRecord)
Upserts a file record in the Azure Cosmos DB.
Task UpsertFileRecord(ContextFileRecord fileRecord)
  Parameters
fileRecordContextFileRecordThe file record to be upserted.