mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-15 21:48:27 +00:00
Added the research on individual participants to the BeyondFacts Lab (#1207)
This commit is contained in:
1 parent
3ca4b3878b
commit
92d0ff68f4
69 files changed
+3869
-186
No files matched your search
@@ -43,6 +43,17 @@ public sealed class ContentText : IContent
|
||||
[JsonIgnore]
|
||||
public bool IsStreaming { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tells whether the model ended its turn without an answer, so that the text holds a notice of the app rather
|
||||
/// than a word of the model, see ContentStreamChunk.EndsWithoutAnswer.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Only for whoever uses the answer right away, such as an agent which stores it as a result. A stored chat no
|
||||
/// longer knows it, and shows the notice like any other text.
|
||||
/// </remarks>
|
||||
[JsonIgnore]
|
||||
public bool EndedWithoutAnswer { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
[JsonIgnore]
|
||||
public Func<Task> StreamingDone { get; set; } = IContent.NO_STREAMING_HANDLER;
|
||||
@@ -377,6 +388,9 @@ public sealed class ContentText : IContent
|
||||
this.IsStreaming = true;
|
||||
|
||||
this.Text += chunk;
|
||||
if (chunk.EndsWithoutAnswer)
|
||||
this.EndedWithoutAnswer = true;
|
||||
|
||||
if (chunk.Sources.Count > 0 || chunk.Passages.Count > 0)
|
||||
this.AddSources(chunk.Sources, chunk.Passages);
|
||||
|
||||
@@ -631,6 +645,7 @@ public sealed class ContentText : IContent
|
||||
Text = this.Text,
|
||||
InitialRemoteWait = this.InitialRemoteWait,
|
||||
IsStreaming = this.IsStreaming,
|
||||
EndedWithoutAnswer = this.EndedWithoutAnswer,
|
||||
Sources = [..this.Sources],
|
||||
SourcePassages = [..this.SourcePassages],
|
||||
FileAttachments = [..this.FileAttachments],
|
||||
|
||||
Reference in new issue
Block a user