Table of Contents

Interface IAzureCosmosDBFileService

Namespace
FoundationaLLM.Context.Interfaces
Assembly
FoundationaLLM.Context.dll

Defines the interface for the Azure Cosmos DB service that services the Context API File service.

public interface IAzureCosmosDBFileService
Extension Methods

Methods

GetFileRecord(string, string, string)

Gets the file record for a specified file identifier.

Task<ContextFileRecord> GetFileRecord(string instanceId, string fileId, string userPrincipalName)

Parameters

instanceId string

The FoundationaLLM instance identifier.

fileId string

The idenfier of the file.

userPrincipalName string

The user principal name of the user associated with the code session.

Returns

Task<ContextFileRecord>

GetFileRecords(string, string, string, string)

Gets the file records matching the specified criteria.

Task<List<ContextFileRecord>> GetFileRecords(string instanceId, string conversationId, string fileName, string userPrincipalName)

Parameters

instanceId string

The FoundationaLLM instance identifier.

conversationId string

The idenfier of the conversation to which the file is associated.

fileName string

The name of the file.

userPrincipalName string

The user principal name of the user associated with the code session.

Returns

Task<List<ContextFileRecord>>

UpsertFileRecord(ContextFileRecord)

Upserts a file record in the Azure Cosmos DB.

Task UpsertFileRecord(ContextFileRecord fileRecord)

Parameters

fileRecord ContextFileRecord

The file record to be upserted.

Returns

Task