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; }
///
/// Function name if LLM response function call
///
public string? FunctionName { get; set; }
///
/// Function execution result
///
public string? ExecutionResult { get; set; }
///
/// When function callback has been executed, system will pass result to LLM again,
/// Set this property to True to stop calling LLM.
///
public bool StopSubsequentInteraction { 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}";
}
}