Reduce Agent Summary call

This commit is contained in:
2025-09-15 00:19:21 +07:00
parent 37d57a1bb8
commit b0d2dcc6b9
10 changed files with 402 additions and 36 deletions

View File

@@ -0,0 +1,26 @@
using Orleans;
using static Managing.Common.Enums;
namespace Managing.Application.Abstractions.Models;
/// <summary>
/// Event sent to AgentGrain to trigger summary updates
/// </summary>
[GenerateSerializer]
public class AgentSummaryUpdateEvent
{
[Id(0)]
public int UserId { get; set; }
[Id(1)]
public Guid BotId { get; set; }
[Id(2)]
public AgentSummaryEventType EventType { get; set; }
[Id(3)]
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
[Id(4)]
public string? AdditionalData { get; set; } // Optional additional context
}