Private
Public Access
1
0
Files
Purrse/src/Purrse.Core/Interfaces/Services/IAiCategorizationService.cs
T
Catherine Renelle 1c7abb7ffc Add AI categorization with Ollama: settings, auto-classify on sync/import, and manual classify from Transactions
Adds local LLM-based transaction categorization using Ollama:
- Settings UI to configure Ollama URL, model, confidence threshold
- Auto-categorization during bank sync and file import
- Manual "Classify Uncategorized" button on Transactions screen that respects active filters
- Payee default category learning loop for classified transactions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 18:41:12 -05:00

14 lines
658 B
C#

using Purrse.Core.DTOs;
using Purrse.Core.Models;
namespace Purrse.Core.Interfaces.Services;
public interface IAiCategorizationService
{
Task<AiCategorizationSettingsResponse> GetSettingsAsync(Guid userId);
Task<AiCategorizationSettingsResponse> UpdateSettingsAsync(Guid userId, UpdateAiCategorizationSettingsRequest request);
Task<OllamaConnectionTestResponse> TestConnectionAsync(Guid userId);
Task<List<TransactionClassification>> ClassifyTransactionsAsync(Guid userId, List<Transaction> uncategorizedTransactions);
Task<ClassifyUncategorizedResponse> ClassifyUncategorizedAsync(Guid userId, ClassifyUncategorizedRequest request);
}