namespace AIStudio.Provider.Anthropic; /// /// What one line of a streamed Anthropic messages call has to show to the user. /// /// /// Only text ever shows. Thinking does not: neither of the two paths has ever put it on screen, /// and doing so would be a feature of its own rather than a side effect of streaming. /// /// The text this line carried, empty when it carried none. public readonly record struct AnthropicStreamPart(string TextDelta) { /// /// The part of a line that says nothing to the user, such as an opening or closing block. /// public static AnthropicStreamPart Nothing => new(string.Empty); /// /// Whether this part has anything to show at all. /// public bool HasContent => this.TextDelta.Length > 0; }