mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-07 14:09:40 +00:00
Add per-answer thinking disclosure
This commit is contained in:
1 parent
c7b42bee96
commit
bbbcdddc91
29 files changed
+360
-37
No files matched your search
@@ -4,13 +4,18 @@ namespace AIStudio.Provider;
|
||||
/// A chunk of content from a content stream, along with its associated sources.
|
||||
/// </summary>
|
||||
/// <param name="Content">The text content of the chunk.</param>
|
||||
/// <param name="Thinking">The provider-exposed thinking content of the chunk.</param>
|
||||
/// <param name="Sources">The list of sources associated with the chunk.</param>
|
||||
public sealed record ContentStreamChunk(string Content, IList<ISource> Sources)
|
||||
public sealed record ContentStreamChunk(string Content, string Thinking, IList<ISource> Sources)
|
||||
{
|
||||
public ContentStreamChunk(string content, IList<ISource> sources) : this(content, string.Empty, sources)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Implicit conversion to string.
|
||||
/// </summary>
|
||||
/// <param name="chunk">The content stream chunk.</param>
|
||||
/// <returns>The text content of the chunk.</returns>
|
||||
public static implicit operator string(ContentStreamChunk chunk) => chunk.Content;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user