mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-05-20 17:32:15 +00:00
15 lines
435 B
C#
15 lines
435 B
C#
using System.Text.Json;
|
|
|
|
namespace AIStudio.Tools.ToolCallingSystem;
|
|
|
|
public interface IToolImplementation
|
|
{
|
|
public string ImplementationKey { get; }
|
|
|
|
public IReadOnlySet<string> SensitiveTraceArgumentNames { get; }
|
|
|
|
public Task<ToolExecutionResult> ExecuteAsync(JsonElement arguments, ToolExecutionContext context, CancellationToken token = default);
|
|
|
|
public string FormatTraceResult(string rawResult) => rawResult;
|
|
}
|