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; }
|
|
|
|
|
|
2023-07-21 01:55:40 +00:00
|
|
|
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}";
|
|
|
|
|
}
|
|
|
|
|
}
|