How to register SelfImprovementToolscsharp
registry.Register(new AgentTool( "self_improve_invoke_sandbox_tool", "Invokes the generated tool from the built sandbox DLL and compares output to the saved spec expected result.", InvokeInvokeSandboxTool, new { type = "object", properties = new { tool_name = new { type = "string", description = "Optional if set_tool_spec was called." }, arguments_json = new { type = "string", description = "Optional JSON string to pass to the tool (default {})." }, expected_result = new { type = "string", description = "Optional expected result override (otherwise uses saved spec expected result)." }, }, }, ToolCategory.Self));