mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-12 01:33:48 +00:00
Add brave mode for Read Web Page tool
This commit is contained in:
1 parent
e9ebc02a96
commit
672abb4082
9 files changed
+70
-17
No files matched your search
@@ -29,7 +29,7 @@ public static class ToolSelectionRules
|
||||
public static string BuildToolPolicyPrompt(IEnumerable<ToolDefinition> definitions)
|
||||
{
|
||||
var policySections = definitions
|
||||
.Select(x => (ToolName: x.Function.Name, PolicyLines: x.SystemPromptInstructions.Trim()))
|
||||
.Select(x => (ToolName: x.Function.Name, PolicyLines: x.GetSystemPromptInstructions().Trim()))
|
||||
.Where(x => !string.IsNullOrWhiteSpace(x.PolicyLines))
|
||||
.Select(x => $"## Tool `{x.ToolName}`{Environment.NewLine}{x.PolicyLines}")
|
||||
.Distinct(StringComparer.Ordinal)
|
||||
|
||||
Reference in new issue
Block a user