Added tool calling support (#731)

Co-authored-by: krut_ni <nils.kruthoff@dlr.de>
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-09-04 15:48:07 +02:00
1 parent b00c3f9ab3
commit 4d8d30e15e
266 files changed
+11186 -740

No files matched your search

@@ -0,0 +1,34 @@
using AIStudio.Provider;
namespace AIStudio.Tools.Web;
public sealed class WebPageRetrievalOptions
{
public required int TimeoutSeconds { get; init; }
/// <summary>
/// Whether the user named this exact URL, as opposed to a model asking for it.
/// </summary>
/// <remarks>
/// Lifts the restrictions on which targets may be reached — private networks, loopback, and
/// hosts named localhost — because those exist to keep a model from reaching into the user's
/// network, and the user is not a model. The network-level protections stay: the connection
/// is still bound to validated addresses, redirects are still checked, the response size is
/// still capped, and only HTML is still accepted.<br/><br/>
/// Never set this for a URL that reached AI Studio through a model, however plausible it
/// looks.
/// </remarks>
public bool TargetChosenByUser { get; init; }
public bool PublicTargetsOnly { get; init; }
public ConfidenceLevel ProviderConfidence { get; init; } = ConfidenceLevel.NONE;
public bool ProviderIsTrustedByConfiguration { get; init; }
public bool UseOsSso { get; init; }
public Func<string, bool>? IsPrivateHostAllowed { get; init; }
public Func<Uri, ConfidenceLevel, Task>? OnPrivateHostProviderBlockAsync { get; init; }
}