namespace ClawdDotNet.Core.Tools; public sealed record ToolResult( bool Success, string Content, string? ErrorMessage = null ) { public static ToolResult Ok(string content) => new(true, content); public static ToolResult Fail(string error) => new(false, "", error); /// #720: Refused because it would have lost another write — audited as a conflict, not as an error. public bool IsConflict { get; init; } public static ToolResult Conflict(string error) => new(false, "", error) { IsConflict = true }; }