mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-13 20:13:36 +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; } = [];
|
||
|
|
}
|