Description

Self improve verify sandbox tool

Builds sandbox and runs tool-calling design tests; checks tool_name exists in source.

Included in Version 9

Dynamically extracted tool implementation.
How to register SelfImprovementToolscsharp
registry.Register(new AgentTool(            "self_improve_verify_sandbox_tool",            "Builds sandbox and runs tool-calling design tests; checks tool_name exists in source.",            InvokeVerifySandbox,            new            {                type = "object",                properties = new                {                    tool_name = new { type = "string", description = "Tool to verify." },                },                required = new[] { "tool_name" },            },            ToolCategory.Self));
Helper classes for SelfImprovementToolscsharp
    private string InvokeVerifySandbox(string argumentsJson)    {        var paths = RequirePaths();        if (!Directory.Exists(paths.Sandbox))            return "Error: sandbox does not exist.";        using var doc = JsonDocument.Parse(string.IsNullOrWhiteSpace(argumentsJson) ? "{}" : argumentsJson);        string toolName = doc.RootElement.GetProperty("tool_name").GetString() ?? "";        return SandboxVerificationService.VerifyTool(paths, toolName);    }