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
8 lines
131 B
C#
8 lines
131 B
C#
using Microsoft.Extensions.AI;
|
|
|
|
namespace Luna.Core.Tools;
|
|
|
|
public interface IToolsProvider
|
|
{
|
|
IEnumerable<AITool> GetTools();
|
|
} |