Web search restrictions after internal content (#1074)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
Peer HogeterpandThorsten Sommer authored and GitHub committed 2026-10-18 19:39:55 +02:00
1 parent f38c4aa563
commit 1f8d72aa45
42 files changed
+1654 -228

No files matched your search

@@ -139,8 +139,16 @@ public abstract class ToolRegistryTestBase
return ValueTask.FromResult(resolve is null ? registeredDefinition.Function : resolve(registeredDefinition));
}
public ValueTask<string> ResolveSystemPromptInstructionsAsync(ToolDefinition registeredDefinition, ToolResolutionContext context, CancellationToken token = default) =>
ValueTask.FromResult(resolveInstructions is null ? registeredDefinition.SystemPromptInstructions : resolveInstructions(registeredDefinition));
/// <summary>
/// The context the tool was last asked for its instructions in, or null before that.
/// </summary>
public ToolResolutionContext? LastInstructionsContext { get; private set; }
public ValueTask<string> ResolveSystemPromptInstructionsAsync(ToolDefinition registeredDefinition, ToolResolutionContext context, CancellationToken token = default)
{
this.LastInstructionsContext = context;
return ValueTask.FromResult(resolveInstructions is null ? registeredDefinition.SystemPromptInstructions : resolveInstructions(registeredDefinition));
}
public IReadOnlySet<string> SensitiveTraceArgumentNames { get; } = new HashSet<string>(StringComparer.Ordinal);