namespace AIStudio.Provider.Anthropic; /// /// One piece of a streamed content block. /// /// /// 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. /// /// What kind of piece this is. /// The piece of text, for a text delta. /// The fragment of the tool arguments, for an input JSON delta. /// The piece of thinking, for a thinking delta. /// The signature of a thinking block, for a signature delta. /// Why the model stopped, for the message delta. public readonly record struct AnthropicStreamDelta(string? Type, string? Text, string? PartialJson, string? Thinking, string? Signature, string? StopReason);