mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-03 10:47:21 +00:00
Fixed CI building with a newer .NET SDK than the metadata names (#1107)
This commit is contained in:
1 parent
6eb23ebbcb
commit
8d9b15bd5f
2 files changed
+29
-2
No files matched your search
@@ -68,10 +68,13 @@ public sealed class ClassicRagOutboundDataRestrictionTests : ToolRegistryTestBas
|
||||
{
|
||||
//
|
||||
// Semantic Search offers the data sources in a fixed order, while the selection agent of the
|
||||
// classic process may return them in any order. Both have to name the same data source:
|
||||
// classic process may return them in any order. Both have to name the same data source.
|
||||
//
|
||||
// AsEnumerable() keeps Reverse() a reversed copy: from C# 14 on, Reverse() on an array
|
||||
// reverses the array in place and returns nothing.
|
||||
//
|
||||
var classicChat = new ChatThread();
|
||||
AISrcSelWithRetCtxVal.RequireOutboundDataRestriction(classicChat, dataSources.Reverse().ToArray(), passageCounts.Reverse().ToArray(), organizationMinimum);
|
||||
AISrcSelWithRetCtxVal.RequireOutboundDataRestriction(classicChat, [..dataSources.AsEnumerable().Reverse()], [..passageCounts.AsEnumerable().Reverse()], organizationMinimum);
|
||||
|
||||
var semanticSearchChat = new ChatThread();
|
||||
semanticSearchChat.RequireOutboundDataRestriction(SemanticSearchTool.GetRequirements(dataSources, passageCounts, organizationMinimum).OutboundData);
|
||||
|
||||
Reference in new issue
Block a user