(cg: &TraceDecay, tool: &str, mut args: Value)
| 117 | } |
| 118 | |
| 119 | async fn call(cg: &TraceDecay, tool: &str, mut args: Value) -> Value { |
| 120 | if let Some(obj) = args.as_object_mut() { |
| 121 | obj.entry("format".to_string()) |
| 122 | .or_insert_with(|| json!("json")); |
| 123 | } |
| 124 | let result = tracedecay::mcp::handle_tool_call(cg, tool, args, None, None) |
| 125 | .await |
| 126 | .unwrap_or_else(|e| panic!("{tool} should succeed: {e}")); |
| 127 | extract_json(&result) |
| 128 | } |
| 129 | |
| 130 | fn session_ids(payload: &Value) -> Vec<String> { |
| 131 | payload["results"] |
no test coverage detected