mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 23:07:23 +00:00
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:
1 parent
e0d8e18f34
commit
cbc4ce5413
229 files changed
+12739
-1269
No files matched your search
@@ -292,6 +292,25 @@ public sealed class SearchMailsToolTests : ToolRegistryTestBase
|
||||
Assert.That(issues.Single()!.GetValue<string>(), Does.Contain("no folder with the path given in 'folder'").And.Contain("The first 2 of its 120 folders").And.Not.Contain("special_folder"));
|
||||
}
|
||||
|
||||
/// <remarks>
|
||||
/// A mail found by a passage of its attachment names that attachment, so the user knows where
|
||||
/// in the mail the answer comes from. It stays the same source as the mail itself.
|
||||
/// </remarks>
|
||||
[Test]
|
||||
public void AMailFoundByAnAttachmentNamesItInItsSource()
|
||||
{
|
||||
var receivedAtUtc = new DateTimeOffset(2026, 10, 23, 9, 0, 0, TimeSpan.Zero);
|
||||
var mail = MailToolResults.CreateSource(WORK, "mail-id", "Budget", "Anna", receivedAtUtc, TimeZoneInfo.Utc);
|
||||
var attachment = MailToolResults.CreateSource(WORK, "mail-id", "Budget", "Anna", receivedAtUtc, TimeZoneInfo.Utc, "board-report.pdf, page 3");
|
||||
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.That(mail.Title, Is.EqualTo("Mail: Budget — Anna, 2026-10-23"));
|
||||
Assert.That(attachment.Title, Is.EqualTo("Mail: Budget — Anna, 2026-10-23 (board-report.pdf, page 3)"));
|
||||
Assert.That(attachment.URL, Is.EqualTo(mail.URL));
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SemanticSearchNeverSeesAMailbox()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user