Added a free address choice to the Read Web Page tool (#997)
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Verify (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
Peer HogeterpandThorsten Sommer authored and GitHub committed 2026-09-27 21:46:16 +02:00
1 parent 8dbe459a53
commit 7cedd03adb
22 files changed
+484 -81

No files matched your search

@@ -44,6 +44,27 @@ public interface IToolImplementation
public ValueTask<ToolFunctionDefinition?> ResolveFunctionAsync(ToolDefinition definition, ToolResolutionContext context, CancellationToken token = default) =>
ValueTask.FromResult<ToolFunctionDefinition?>(definition.Function);
/// <summary>
/// The instructions this tool adds to the system prompt of the request being prepared.
/// </summary>
/// <remarks>
/// Most tools always say the same, which is what this returns unless a tool says otherwise. A
/// tool whose rules follow one of its settings words them here instead: Read Web Page tells the
/// model whether it may choose web addresses itself, depending on its free address choice.
/// Everything outside a request keeps reading the registered instructions, the token count
/// below the message field among them, so those should describe the tool's default.<br/><br/>
/// Asked the way ResolveFunctionAsync is: for every request, after every check of ToolRegistry
/// has passed, and only when the tool has a function to offer. A tool which throws is left out
/// of the request. Keep the result stable while the chat and the settings stay the same: the
/// providers cache a request from its beginning, and the system prompt is that beginning.
/// </remarks>
/// <param name="definition">The definition as registered.</param>
/// <param name="context">The request being prepared.</param>
/// <param name="token">The cancellation token of the request.</param>
/// <returns>The instructions to add to the system prompt, or an empty text for none.</returns>
public ValueTask<string> ResolveSystemPromptInstructionsAsync(ToolDefinition definition, ToolResolutionContext context, CancellationToken token = default) =>
ValueTask.FromResult(definition.SystemPromptInstructions);
public string Icon => Icons.Material.Filled.Build;
public IReadOnlySet<string> SensitiveTraceArgumentNames { get; }