mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-12 19:32:10 +00:00
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; }
|
|
}
|