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

+15
View File
@@ -244,6 +244,21 @@ public sealed class SourceExtensionsTests
});
}
[Test]
public void WhatOnlyADataSourceKnowsIsNamedWithoutALink()
{
IList<Source> sources = [new("handbook.pdf", SourceExtensions.CreateRetrievalSourceUrl("handbook.pdf", "docs/handbook.pdf"), SourceOrigin.RAG)];
var entries = EntriesOf(sources.ToMarkdown());
Assert.Multiple(() =>
{
Assert.That(sources[0].HasNoLink(), Is.True);
Assert.That(sources[0].IsMailSource(), Is.False);
Assert.That(entries[0], Is.EqualTo("- [1] handbook.pdf"), "Exported or copied, an address only AI Studio understands would be a link nobody can follow.");
});
}
[Test]
public void AMailIsNamedWithoutALinkThatLeadsNowhere()
{