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,17 @@
namespace AIStudio.Tools.ToolCallingSystem.Harness;
/// <summary>
/// One tool call a model requested.
/// </summary>
/// <remarks>
/// Invalid calls are carried through rather than dropped: the model has to learn that its call
/// was rejected, otherwise it waits for a result that never arrives.
/// </remarks>
/// <param name="CallId">
/// The ID correlating this call with its result. Empty when the provider did not supply one and
/// the adapter cannot invent one, which makes the call unanswerable.
/// </param>
/// <param name="ToolName">The name of the tool the model asked for.</param>
/// <param name="ArgumentsJson">The arguments as the model wrote them, to be treated as untrusted input.</param>
/// <param name="IsValid">Whether name and arguments are usable at all.</param>
public sealed record ToolCallingRequestedCall(string CallId, string ToolName, string ArgumentsJson, bool IsValid);