mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-12 19:53:48 +00:00
Read Web Page is now opened automatically when the confluence tool is selected
This commit is contained in:
1 parent
5c867a9b23
commit
243dc34a34
8 files changed
+35
-6
No files matched your search
@@ -11,7 +11,13 @@ public static class ToolSelectionRules
|
||||
public const string SEARCH_CONFLUENCE_TOOL_ID = "search_confluence";
|
||||
|
||||
public static HashSet<string> NormalizeSelection(IEnumerable<string> selectedToolIds)
|
||||
=> selectedToolIds.ToHashSet(StringComparer.Ordinal);
|
||||
{
|
||||
var normalized = selectedToolIds.ToHashSet(StringComparer.Ordinal);
|
||||
if (normalized.Contains(SEARCH_CONFLUENCE_TOOL_ID))
|
||||
normalized.Add(READ_WEB_PAGE_TOOL_ID);
|
||||
|
||||
return normalized;
|
||||
}
|
||||
|
||||
public static string GetMaxToolCallsFinalResponseInstruction() => $"The maximum of {MAX_TOOL_CALLS} tool calls has been reached. No more tools are available. Provide the best possible final answer to the user based on the tool results already available.";
|
||||
|
||||
|
||||
Reference in new issue
Block a user