Initial commit to new repository

This commit is contained in:
2026-04-03 18:22:19 +09:00
commit 4458bb0f52
7672 changed files with 452440 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
namespace AxCopilot.Services.Agent;
public class ToolResult
{
public bool Success { get; init; }
public string Output { get; init; } = "";
public string? FilePath { get; init; }
public string? Error { get; init; }
public static ToolResult Ok(string output, string? filePath = null)
{
return new ToolResult
{
Success = true,
Output = output,
FilePath = filePath
};
}
public static ToolResult Fail(string error)
{
return new ToolResult
{
Success = false,
Output = error,
Error = error
};
}
}