2023-10-27 20:36:26 +00:00
|
|
|
using BotSharp.Abstraction.Functions.Models;
|
2023-11-03 14:16:16 +00:00
|
|
|
using BotSharp.Abstraction.Instructs.Models;
|
2023-10-30 16:48:18 +00:00
|
|
|
using System.Text.Json.Serialization;
|
2023-10-27 15:18:48 +00:00
|
|
|
|
2023-08-19 00:15:02 +00:00
|
|
|
namespace BotSharp.OpenAPI.ViewModels.Conversations;
|
|
|
|
|
|
2023-11-03 14:16:16 +00:00
|
|
|
public class MessageResponseModel : InstructResult
|
2023-08-19 00:15:02 +00:00
|
|
|
{
|
2023-08-20 20:20:16 +00:00
|
|
|
public string Function { get; set; }
|
2023-11-03 14:16:16 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Planner instruction
|
|
|
|
|
/// </summary>
|
2023-10-30 16:48:18 +00:00
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
2023-10-27 20:36:26 +00:00
|
|
|
public FunctionCallFromLlm Instruction { get; set; }
|
2023-11-03 14:16:16 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Rich message for UI rendering
|
|
|
|
|
/// </summary>
|
2023-10-30 16:48:18 +00:00
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
2023-10-27 22:16:53 +00:00
|
|
|
public object? RichContent { get; set; }
|
2023-08-19 00:15:02 +00:00
|
|
|
}
|