BotSharp/src/Infrastructure/BotSharp.Abstraction/Conversations/Models/RoleDialogModel.cs

22 lines
423 B
C#
Raw Normal View History

2023-06-27 18:31:13 +00:00
namespace BotSharp.Abstraction.Conversations.Models;
public class RoleDialogModel
{
/// <summary>
/// user, system, assistant
/// </summary>
public string Role { get; set; }
public string Text { get; set; }
public RoleDialogModel(string role, string text)
{
Role = role;
Text = text;
}
2023-06-27 18:31:13 +00:00
public override string ToString()
{
return $"{Role}: {Text}";
}
}