2026-09-04 15:48:07 +02:00
|
|
|
using System.Text.Json;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace AIStudio.Provider.OpenAI;
|
|
|
|
|
|
|
|
|
|
public sealed record ChatCompletionToolCall
|
|
|
|
|
{
|
2026-11-03 07:59:30 +01:00
|
|
|
public string? Id { get; set; }
|
2026-09-04 15:48:07 +02:00
|
|
|
|
2026-11-03 07:59:30 +01:00
|
|
|
public string? Type { get; set; } = "function";
|
2026-09-04 15:48:07 +02:00
|
|
|
|
2026-11-03 07:59:30 +01:00
|
|
|
public ChatCompletionToolFunction? Function { get; set; }
|
2026-09-04 15:48:07 +02:00
|
|
|
|
|
|
|
|
[JsonExtensionData]
|
2026-11-03 07:59:30 +01:00
|
|
|
public IDictionary<string, JsonElement> AdditionalMetadata { get; set; } = new Dictionary<string, JsonElement>();
|
2026-09-04 15:48:07 +02:00
|
|
|
}
|