mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-10 19:07:21 +00:00
17 lines
453 B
C#
17 lines
453 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace AIStudio.Provider.OpenAI;
|
|
|
|
public sealed record AssistantToolCallMessage : IMessageBase
|
|
{
|
|
public string Role { get; set; } = "assistant";
|
|
|
|
public JsonElement? Content { get; set; }
|
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public string? ReasoningContent { get; set; }
|
|
|
|
public IList<ChatCompletionToolCall> ToolCalls { get; set; } = [];
|
|
}
|