init
This commit is contained in:
10
Models/ChatMessage.cs
Normal file
10
Models/ChatMessage.cs
Normal 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
9
Models/ChatSession.cs
Normal 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
15
Models/WebhookPayload.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user