// ReSharper disable NotAccessedPositionalProperty.Global namespace AIStudio.Provider.Anthropic; /// /// Represents a response stream line. /// /// The type of the response line. /// The index of the response line. /// The delta of the response line. public readonly record struct ResponseStreamLine(string Type, int Index, Delta Delta) : IResponseStreamLine { /// public bool ContainsContent() => this != default && !string.IsNullOrWhiteSpace(this.Delta.Text); /// public string GetContent() => this.Delta.Text; } /// /// The delta object of a response line. /// /// The type of the delta. /// The text of the delta. public readonly record struct Delta(string Type, string Text);