mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-13 16:53:36 +00:00
Co-authored-by: krut_ni <nils.kruthoff@dlr.de> Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
20 lines
511 B
C#
20 lines
511 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace AIStudio.Provider.OpenAI;
|
|
|
|
public sealed record ChatCompletionResponseMessage
|
|
{
|
|
public string Role { get; init; } = string.Empty;
|
|
|
|
[JsonPropertyName("content")]
|
|
public JsonElement? RawContent { get; init; }
|
|
|
|
[JsonIgnore]
|
|
public string? Content => ChatCompletionContent.GetText(this.RawContent);
|
|
|
|
public string? ReasoningContent { get; init; }
|
|
|
|
public IList<ChatCompletionToolCall?>? ToolCalls { get; init; }
|
|
}
|