mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-06 15:49:40 +00:00
Let tools tailor what they offer to each request
This commit is contained in:
12 files changed
+452
-126
No files matched your search
@@ -2,7 +2,14 @@ using System.Text.Json;
|
||||
|
||||
namespace AIStudio.Tools.ToolCallingSystem;
|
||||
|
||||
public sealed class ToolFunctionDefinition
|
||||
/// <summary>
|
||||
/// The function a tool offers the model: its name, what it does, and the arguments it takes.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// A record, so that a tool tailoring its function to a request changes only what it has to, e.g.
|
||||
/// definition.Function with { DescriptionForLLM = … }, see IToolImplementation.ResolveFunctionAsync.
|
||||
/// </remarks>
|
||||
public sealed record ToolFunctionDefinition
|
||||
{
|
||||
public string Name { get; init; } = string.Empty;
|
||||
|
||||
|
||||
Reference in new issue
Block a user