Lilith.cscsharp

Documentation

Lilith (Version 3)

Version 3 Lilith agent library. Entry point: Lilith.cs with partials under Boot/, Chat/, Ollama/, and SystemPrompt/.

Build the solution or run python ../Build-v3.py from this tree.

using Agent.Core;using Agent.Core.Logging;namespace Lilith.Agent;public record LilithCredentials(    string Model = "gemma4",    string SystemPrompt = Lilith.DefaultSystemPrompt,    string AgentName = "Lilith");public partial class Lilith(Action<LogEntry> onLog, LilithCredentials? credentials = null){    private readonly LilithCredentials _credentials = credentials ?? new();    public LilithCredentials Credentials => _credentials;    public Logger Logger { get; } = new(onLog);    public Workspace? Workspace { get; set; }    public string Name => _client?.AgentName ?? "Lilith";    public Action<string>? OnVoiceChanged { get; set; }}