2026-09-04 15:48:07 +02:00
|
|
|
using System.Text.Json;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace AIStudio.Provider.OpenAI;
|
|
|
|
|
|
|
|
|
|
public sealed record AssistantToolCallMessage : IMessageBase
|
|
|
|
|
{
|
2026-11-03 07:59:30 +01:00
|
|
|
public string Role { get; set; } = "assistant";
|
2026-09-04 15:48:07 +02:00
|
|
|
|
2026-11-03 07:59:30 +01:00
|
|
|
public JsonElement? Content { get; set; }
|
2026-09-04 15:48:07 +02:00
|
|
|
|
|
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
2026-11-03 07:59:30 +01:00
|
|
|
public string? ReasoningContent { get; set; }
|
2026-09-04 15:48:07 +02:00
|
|
|
|
2026-11-03 07:59:30 +01:00
|
|
|
public IList<ChatCompletionToolCall> ToolCalls { get; set; } = [];
|
2026-09-04 15:48:07 +02:00
|
|
|
}
|