BotSharp/src/Infrastructure/BotSharp.Abstraction/Functions/Models/FunctionCallingResponse.cs
2023-11-29 20:56:23 -06:00

22 lines
547 B
C#

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; }
}