Added a way to read what the AI received from your sources (#1100)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
Paul KoudelkaandThorsten Sommer authored and GitHub committed 2026-10-26 10:00:01 +01:00
1 parent e0d8e18f34
commit cbc4ce5413
229 files changed
+12739 -1269

No files matched your search

@@ -4,6 +4,7 @@ using System.Text.Json.Nodes;
using AIStudio.Provider;
using AIStudio.Settings.DataModel;
using AIStudio.Tools.RAG;
namespace AIStudio.Tools.ToolCallingSystem;
@@ -28,6 +29,16 @@ public sealed class ToolExecutionResult
public IReadOnlyList<Source> Sources { get; init; } = [];
/// <summary>
/// The passages of the sources, exactly as the model reads them in this result.
/// </summary>
/// <remarks>
/// The result itself is not stored with the chat, see ToolInvocationTrace.Result. The passages
/// are, so the user can still read what the answer rests on after the chat was reloaded. A
/// passage belongs to one of the Sources, see SourcePassageExtensions.GetPassagesOf.
/// </remarks>
public IReadOnlyList<SourcePassage> Passages { get; init; } = [];
public ConfidenceLevel RequiredProviderConfidence { get; init; } = ConfidenceLevel.NONE;
/// <summary>