bc25dc7b07
Implement the core application server as an ASP.NET web host with: - SignalR ChatHub for real-time client communication - Session management with token estimation for context windowing - Extensible tool system with attribute-based tool discovery - Chat stream update builder for streaming AI responses - App configuration with appsettings for development and production
12 lines
321 B
C#
12 lines
321 B
C#
using Luna.Shared;
|
|
|
|
namespace Luna.Core.Abstractions;
|
|
|
|
public interface ISessionManager
|
|
{
|
|
IAsyncEnumerable<ChatStreamUpdate> RouteMessagesAsync(string content,
|
|
string conversationId,
|
|
string connectionId,
|
|
CancellationToken ct = default);
|
|
Task ClientDisconnectedAsync(string connectionId);
|
|
} |