Related Models: Citation.cs
Related Interfaces:
ICitationService.cs
Fields
Constructor
Properties
CitationService does not have any properties.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Handles logic related to the Citation model.
ICitationService.cs
| Field Name | Type | Description |
|---|---|---|
_dbContextFactory | IDbContextFactory<NumaContext> | DbContextFactory for instantiating instances of NumaContext on-demand |
public CitationService( IDbContextFactory<NumaContext> dbContextFactory )
{
_dbContextFactory = dbContextFactory ?? throw new ArgumentNullException( nameof( dbContextFactory ) );
}
CitationService does not have any properties.
| Method Name | Description | Parameters | Return Type |
|---|---|---|---|
AddNewCitationsAsync | Adds multiple citations to the Cosmos DB | List<Citation> | Task |
GetCitationsByConversdationIdAsync | Gets the citations associated with each Message in a Conversation | string,List<Message> | Task<Dictionary<string, List<Citation>>> |
using Numa.Models;
namespace Numa.Interfaces
{
public interface ICitationService
{
Task AddNewCitationsAsync( List<Citation> citations );
Task<Dictionary<string, List<Citation>>> GetCitationsByConversdationIdAsync( string conversationId, List<Message> messages );
}
}
