Read Web Page is now opened automatically when the confluence tool is selected

This commit is contained in:
Peer Hogeterp committed 2026-09-23 11:32:25 +02:00
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.";