mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 20:47:22 +00:00
Added a Send to menu to every chat message and kept restrictions when sending content on (#1124)
This commit is contained in:
1 parent
d06688ca08
commit
bf54b8cd0d
73 files changed
+1923
-390
No files matched your search
@@ -214,6 +214,19 @@ public sealed class ToolOutboundDataTests : ToolRegistryTestBase
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EveryMessageSpeaksOfTheContentTheChatHolds([Values] OutboundDataOrigin origin)
|
||||
{
|
||||
var requirement = new OutboundDataRequirement(OutboundDataRestriction.ONLY_CONFIGURED_SERVICES, origin, "intranet.example.org");
|
||||
var message = requirement.GetToolBlockedMessage(new Data());
|
||||
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.That(message, Does.StartWith("This chat holds"), "Content sent here from another chat or an assistant was never read by this chat.");
|
||||
Assert.That(message, Does.EndWith("A new chat without this content can use it again."), "A new chat which gets the same content sent to it is restricted just the same.");
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task ACallTurnedDownByTheWikiNamesTheWiki()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user