V16 / 6df58cd3ed86
ITurnResultTool.cs
Lilith/Core/Tools/ITurnResultTool.cs
Unchanged from the preceding versionCS
using System.Text.Json;
namespace Lilith.Core.Tools;
/// <summary>A tool can return an exact final reply, without another model rewriting it.</summary>
public interface ITurnResultTool : ILilithTool
{
TimeSpan ExecutionTimeout { get; }
Task<ToolExecutionResult> ExecuteResultAsync(JsonElement arguments, CancellationToken cancellationToken);
}
public sealed record ToolExecutionResult(string Content, string? ExactReply = null);