mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 07:33:48 +00:00
Added status texts for prompt processing and reasoning to the chat (#1205)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
6cdb0bc551
commit
28b88580a9
29 files changed
+504
-30
No files matched your search
@@ -13,6 +13,11 @@ public readonly record struct ResponsesStreamPart(string TextDelta, IList<ISourc
|
||||
/// </summary>
|
||||
public static ResponsesStreamPart Nothing => new(string.Empty, []);
|
||||
|
||||
/// <summary>
|
||||
/// The part of a line which says that the model reasons, and nothing else.
|
||||
/// </summary>
|
||||
public static ResponsesStreamPart Reasoning => new(string.Empty, []) { IsReasoning = true };
|
||||
|
||||
/// <summary>
|
||||
/// Whether this part has anything to show at all.
|
||||
/// </summary>
|
||||
@@ -21,4 +26,9 @@ public readonly record struct ResponsesStreamPart(string TextDelta, IList<ISourc
|
||||
/// all is the tool calling loop's decision, which knows which round this is.
|
||||
/// </remarks>
|
||||
public bool HasContent => this.TextDelta.Length > 0 || this.Sources.Count > 0;
|
||||
|
||||
/// <summary>
|
||||
/// Whether this line says that the model reasons, see ContentStreamChunk.IsReasoning.
|
||||
/// </summary>
|
||||
public bool IsReasoning { get; init; }
|
||||
}
|
||||
Reference in new issue
Block a user