BotSharp/src/Infrastructure/BotSharp.Abstraction/MLTasks/ITextCompletion.cs
2025-03-05 17:22:46 -06:00

19 lines
504 B
C#

namespace BotSharp.Abstraction.MLTasks;
public interface ITextCompletion
{
/// <summary>
/// The LLM provider like Microsoft Azure, OpenAI, ClaudAI
/// </summary>
string Provider { get; }
string Model { get; }
/// <summary>
/// Set model name, one provider can consume different model or version(s)
/// </summary>
/// <param name="model"></param>
void SetModelName(string model);
Task<string> GetCompletion(string text, string agentId, string messageId);
}