namespace BotSharp.Abstraction.Conversations.Models;
public class RoleDialogModel
{
///
/// user, system, assistant, function
///
public string Role { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public string Content { get; set; }
public string CurrentAgentId { get; set; }
///
/// Function name if LLM response function call
///
public string? FunctionName { get; set; }
public string? FunctionArgs { get; set; }
///
/// Function execution result
///
public string? ExecutionResult { get; set; }
public bool IsConversationEnd { get; set; }
public bool NeedReloadAgent { get; set; }
public bool StopPropagate { get; set; }
///
/// Channel name
///
public string Channel { get; set; }
public RoleDialogModel(string role, string text)
{
Role = role;
Content = text;
}
public override string ToString()
{
return $"{Role}: {Content}";
}
}