using System.Text.Json.Serialization; namespace Yi.Framework.AiHub.Domain.Shared.Dtos.OpenAi; /// /// 工具调用对象定义 /// public class ThorToolCall { public ThorToolCall() { Id = Guid.NewGuid().ToString("N"); } /// /// 工具调用序号值 /// [JsonPropertyName("index")] public int Index { get; set; } /// /// 工具调用的 ID /// [JsonPropertyName("id")] public string? Id { get; set; } /// /// 工具的类型。目前仅支持 function /// [JsonPropertyName("type")] public string? Type { get; set; } = "function"; /// /// 模型调用的函数。 /// [JsonPropertyName("function")] public ThorChatMessageFunction? Function { get; set; } }