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