namespace AIStudio.Provider; /// /// A chunk of content from a content stream, along with its associated sources. /// /// The text content of the chunk. /// The provider-exposed thinking content of the chunk. /// The list of sources associated with the chunk. public sealed record ContentStreamChunk(string Content, string Thinking, IList Sources) { public ContentStreamChunk(string content, IList sources) : this(content, string.Empty, sources) { } /// /// Implicit conversion to string. /// /// The content stream chunk. /// The text content of the chunk. public static implicit operator string(ContentStreamChunk chunk) => chunk.Content; }