mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-13 19:53:37 +00:00
Co-authored-by: krut_ni <nils.kruthoff@dlr.de> Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
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; } = [];
|
|
}
|