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