BotSharp/src/Infrastructure/BotSharp.Abstraction/Functions/Models/FunctionCallingResponse.cs

22 lines
547 B
C#
Raw Normal View History

2023-11-30 02:56:23 +00:00
using System.Text.Json;
namespace BotSharp.Abstraction.Functions.Models;
/// <summary>
/// This class defines the LLM response output if function call needed
/// </summary>
public class FunctionCallingResponse
{
[JsonPropertyName("role")]
public string Role { get; set; } = AgentRole.Assistant;
[JsonPropertyName("content")]
public string? Content { get; set; }
[JsonPropertyName("function_name")]
public string? FunctionName { get; set; }
[JsonPropertyName("args")]
public JsonDocument? Args { get; set; }
}