13 lines
580 B
C#
13 lines
580 B
C#
using Api.Responses;
|
|
|
|
namespace Api.Services.Contracts;
|
|
|
|
public interface IMatcherRepository
|
|
{
|
|
Task InitializeAsync(CancellationToken ct);
|
|
Task<JobMatchResponse?> GetMatchAsync(string cvDocumentId, string jobDocumentId, CancellationToken ct);
|
|
Task SaveMatchAsync(string cvDocumentId, string jobDocumentId, JobMatchResponse response, CancellationToken ct);
|
|
Task<string?> GetChatCompletionAsync(string cacheKey, CancellationToken ct);
|
|
Task SaveChatCompletionAsync(string cacheKey, string model, decimal temperature, string responseText, CancellationToken ct);
|
|
}
|