fix
All checks were successful
/ upload (release) Successful in 1m46s

This commit is contained in:
pavel 2026-02-11 17:55:09 +01:00
commit 006836b03c

View file

@ -96,17 +96,6 @@ pub fn get_tools() -> Vec<Tool> {
}), }),
}, },
}, },
Tool {
tool_type: "function".to_string(),
function: FunctionDefinition {
name: "get_current_time".to_string(),
description: "Get the current date and time in ISO 8601 format".to_string(),
parameters: serde_json::json!({
"type": "object",
"properties": {},
}),
},
},
] ]
} }
@ -209,8 +198,6 @@ pub async fn handle_tool_call(
)); ));
} }
(out, false) (out, false)
} else if name == "get_current_time" {
(chrono::Utc::now().to_rfc3339(), false)
} else { } else {
(format!("Error: Unknown tool {}", name), false) (format!("Error: Unknown tool {}", name), false)
}; };