Include memo field in AI chat transaction summaries
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -593,7 +593,8 @@ public class ChatService : IChatService
|
||||
summary.AppendLine($"Found {result.TotalCount} transaction(s).");
|
||||
foreach (var txn in result.Items.Take(25))
|
||||
{
|
||||
summary.AppendLine($"- {txn.Date:yyyy-MM-dd} | {txn.PayeeName ?? "Unknown"} | {txn.Amount:C} | {txn.CategoryName ?? "Uncategorized"} (ID: {txn.Id})");
|
||||
var memo = string.IsNullOrWhiteSpace(txn.Memo) ? "" : $" | \"{txn.Memo}\"";
|
||||
summary.AppendLine($"- {txn.Date:yyyy-MM-dd} | {txn.PayeeName ?? "Unknown"} | {txn.Amount:C} | {txn.CategoryName ?? "Uncategorized"}{memo} (ID: {txn.Id})");
|
||||
}
|
||||
|
||||
return ("transactions", result, summary.ToString());
|
||||
|
||||
Reference in New Issue
Block a user