BotSharp/src/Infrastructure/BotSharp.Abstraction/MLTasks/ITextCompletion.cs
Haiping Chen 3caa7a5499 HFPlanner
2023-10-30 11:48:18 -05:00

18 lines
478 B
C#

namespace BotSharp.Abstraction.MLTasks;
public interface ITextCompletion
{
/// <summary>
/// The LLM provider like Microsoft Azure, OpenAI, ClaudAI
/// </summary>
string Provider { 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);
}