summaryrefslogtreecommitdiff
path: root/src/Agent.Core/Prompts/FixedPrompt.cs
blob: 6995bd4377cc77f2d2610b3c046578a0c0df041a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System.Reflection;

namespace Agent.Core.Prompts;

public static class FixedPrompt
{
    private const string ResourceName = "Agent.Core.Prompts.FixedSystemPrompt.md";

    public static string Load()
    {
        using Stream stream = typeof(FixedPrompt).Assembly.GetManifestResourceStream(ResourceName)
            ?? throw new InvalidOperationException($"Embedded resource '{ResourceName}' was not found.");
        using var reader = new StreamReader(stream);
        return reader.ReadToEnd();
    }
}