AI-Studio/app/MindWork AI Studio/Tools/ToolCallingSystem/Harness/ToolCallingRequestedCall.cs
Peer Hogeterp 4d8d30e15e
Added tool calling support (#731)
Co-authored-by: krut_ni <nils.kruthoff@dlr.de>
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
2026-09-04 15:48:07 +02:00

17 lines
904 B
C#

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);