2026-09-10 13:37:43 +00:00
|
|
|
using System.Text.Json;
|
|
|
|
|
|
|
|
|
|
using AIStudio.Provider.OpenAI;
|
|
|
|
|
|
2026-09-04 13:48:07 +00:00
|
|
|
namespace AIStudio.Provider.Fireworks;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The delta text of a choice.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="Content">The content of the delta text.</param>
|
2026-09-10 13:37:43 +00:00
|
|
|
/// <param name="ReasoningContent">OpenAI-compatible reasoning content.</param>
|
|
|
|
|
/// <param name="Reasoning">OpenRouter-compatible reasoning content.</param>
|
|
|
|
|
/// <param name="ReasoningDetails">Structured reasoning details.</param>
|
|
|
|
|
public readonly record struct Delta(string Content, string? ReasoningContent, string? Reasoning, IList<JsonElement>? ReasoningDetails)
|
|
|
|
|
{
|
|
|
|
|
public string Thinking => ThinkingContent.Get(this.ReasoningContent, this.Reasoning, this.ReasoningDetails);
|
|
|
|
|
}
|