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

22 lines
432 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; }
2023-07-21 20:15:09 +00:00
public string Content { get; set; }
2023-06-27 18:31:13 +00:00
public RoleDialogModel(string role, string text)
{
Role = role;
2023-07-21 20:15:09 +00:00
Content = text;
}
2023-06-27 18:31:13 +00:00
public override string ToString()
{
2023-07-21 20:15:09 +00:00
return $"{Role}: {Content}";
2023-06-27 18:31:13 +00:00
}
}