mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-09-02 01:29:23 +00:00
Wiring more
This commit is contained in:
@@ -411,6 +411,7 @@ fn get_json_path<'a>(value: &'a serde_json::Value, path: &str) -> Option<&'a ser
|
||||
}
|
||||
|
||||
/// Generate basic test cases for a tool based on its schema.
|
||||
#[allow(dead_code)] // Public API for auto-generating test cases
|
||||
pub fn generate_basic_tests(name: &str, input_schema: &serde_json::Value) -> TestSuite {
|
||||
let mut suite = TestSuite::new(format!("{}_basic_tests", name));
|
||||
suite.description = Some("Auto-generated basic tests".to_string());
|
||||
|
||||
@@ -51,6 +51,7 @@ pub struct SandboxResult {
|
||||
|
||||
/// Sandbox for executing untrusted code.
|
||||
pub struct ToolSandbox {
|
||||
#[allow(dead_code)] // Will be used when sandbox execution is implemented
|
||||
config: SandboxConfig,
|
||||
}
|
||||
|
||||
|
||||
@@ -68,10 +68,12 @@ pub struct WasmResourceLimiter {
|
||||
/// Maximum tables allowed.
|
||||
max_tables: u32,
|
||||
/// Current table count.
|
||||
#[allow(dead_code)] // Reserved for table limit enforcement
|
||||
tables_created: u32,
|
||||
/// Maximum instances allowed.
|
||||
max_instances: u32,
|
||||
/// Current instance count.
|
||||
#[allow(dead_code)] // Reserved for instance limit enforcement
|
||||
instances_created: u32,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user