fix(core): remove all unwraps, fix unpolled futures, and fix search index memory leak on restart
This commit is contained in:
1 parent
ae0ea9ab22
commit
7dc0c329ad
9 files changed
+45
-59
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ pub fn error(id: serde_json::Value, code: i32, message: &str) -> serde_json::Val
|
||||
|
||||
pub fn tool_def<T: JsonSchema>(name: &str, description: &str) -> serde_json::Value {
|
||||
let schema = schemars::schema_for!(T);
|
||||
let schema_val = serde_json::to_value(&schema).unwrap();
|
||||
let schema_val = serde_json::to_value(&schema).unwrap_or_default();
|
||||
// MCP expects standard JSON schema. Schemars returns draft-07.
|
||||
json!({
|
||||
"name": name,
|
||||
|
||||
Reference in new issue
Block a user