Add Luna.Configuration with TOML-based agent and provider config

Implement configuration system with embedded TOML resources for agent
and provider definitions, custom IConfigurationSource/Provider for
agent and provider options, and DI extension methods. Includes config
models for agents, providers, sessions, and Telegram integration.
This commit is contained in:
2026-04-04 04:09:57 +02:00
parent dcdd77b5ae
commit a4ed65e452
18 changed files with 456 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
namespace Luna.Configuration;
public class AgentOptions
{
public required string Name { get; set; }
public string? DisplayName { get; init; }
public string? Description { get; init; }
public required string Provider { get; init; }
public required string ModelId { get; init; }
public required string Instructions { get; init; }
public required int MaxContextTokens { get; init; }
}