This commit is contained in:
h z
2025-05-04 15:21:01 +01:00
commit 619ddc6ddf
70 changed files with 60624 additions and 0 deletions

10
Models/ChatMessage.cs Normal file
View File

@@ -0,0 +1,10 @@
namespace Alchegos.HCI.Models;
public class ChatMessage
{
public bool IsUser { get; set; }
public string Content { get; set; } = string.Empty;
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
}
;

9
Models/ChatSession.cs Normal file
View File

@@ -0,0 +1,9 @@
namespace Alchegos.HCI.Models;
public class ChatSession
{
public string SessionId { get; set; } = string.Empty;
public List<ChatMessage> Messages { get; set; } = new List<ChatMessage>();
public bool IsWaitingForResponse { get; set; } = false;
public Func<ChatMessage, Task>? NotifyMessageReceived { get; set; }
public Func<Task>? NotifySessionClosed { get; set; }
}

15
Models/WebhookPayload.cs Normal file
View File

@@ -0,0 +1,15 @@
using System.Text.Json.Serialization;
namespace Alchegos.HCI.Models;
public class WebhookPayload
{
[JsonPropertyName("sessionId")]
public string SessionId { get; set; } = string.Empty;
[JsonPropertyName("output")]
public string? Output { get; set; }
[JsonPropertyName("action")]
public string? Action { get; set; }
}