Add Luna.Shared library with shared DTOs and models

Introduce ChannelMessage and ChatStreamUpdate types used across the
solution for inter-project communication between channels, core, and
the web interface.
This commit is contained in:
2026-04-04 04:09:42 +02:00
parent 8b2679582e
commit dcdd77b5ae
3 changed files with 39 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
namespace Luna.Shared;
public enum ChatStreamUpdateType
{
Thinking,
Text,
ToolCall,
ToolResult,
Usage,
Complete
}
public record ChatStreamUpdate(
ChatStreamUpdateType Type,
string? Content,
string? Role,
bool IsComplete,
string? MessageId = null
);