mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-21 23:13:36 +00:00
Some checks failed
Build and Release / Determine run mode (push) Has been cancelled
Build and Release / Verify (push) Has been cancelled
Build and Release / Read metadata (push) Has been cancelled
Build and Release / Sync Flatpak repo (push) Has been cancelled
Build and Release / Collect Flatpak artifacts (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Has been cancelled
Build and Release / Prepare & create release (push) Has been cancelled
Build and Release / Publish release (push) Has been cancelled
18 lines
1.1 KiB
C#
18 lines
1.1 KiB
C#
namespace AIStudio.Provider.Anthropic;
|
|
|
|
/// <summary>
|
|
/// One piece of a streamed content block.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Which of the fields is set depends on what the block is made of: text arrives as text, tool
|
|
/// arguments as fragments of JSON, and a thinking block brings its signature in one piece at the
|
|
/// end. The stop reason belongs to the message rather than to a block, and shares this shape
|
|
/// because the API sends it in a delta of its own.
|
|
/// </remarks>
|
|
/// <param name="Type">What kind of piece this is.</param>
|
|
/// <param name="Text">The piece of text, for a text delta.</param>
|
|
/// <param name="PartialJson">The fragment of the tool arguments, for an input JSON delta.</param>
|
|
/// <param name="Thinking">The piece of thinking, for a thinking delta.</param>
|
|
/// <param name="Signature">The signature of a thinking block, for a signature delta.</param>
|
|
/// <param name="StopReason">Why the model stopped, for the message delta.</param>
|
|
public readonly record struct AnthropicStreamDelta(string? Type, string? Text, string? PartialJson, string? Thinking, string? Signature, string? StopReason); |