Update candle to 0.9 (#6913)

This commit is contained in:
jh-block
2026-02-03 14:59:52 +01:00
committed by GitHub
parent 0f334dbd45
commit a3f93ad532
8 changed files with 270 additions and 239 deletions
@@ -201,7 +201,7 @@ struct ToolInfo {
impl ToolInfo {
fn from_mcp_tool(tool: &McpTool) -> Option<Self> {
let (server_name, tool_name) = tool.name.as_ref().split_once("__")?;
let (server_name, tool_name) = tool.name.split_once("__")?;
let param_names = get_parameter_names(tool);
let mut schema_value = Value::Object(tool.input_schema.as_ref().clone());
@@ -235,11 +235,11 @@ impl ToolInfo {
Some(Self {
server_name: server_name.to_string(),
tool_name: tool_name.to_string(),
full_name: tool.name.as_ref().to_string(),
full_name: tool.name.to_string(),
description: tool
.description
.as_ref()
.map(|d| d.as_ref().to_string())
.map(|d| d.to_string())
.unwrap_or_default(),
params,
return_type,
+1 -1
View File
@@ -791,7 +791,7 @@ impl ExtensionManager {
tools
.iter()
.filter(|tool| {
let tool_prefix = tool.name.as_ref().split("__").next().unwrap_or("");
let tool_prefix = tool.name.split("__").next().unwrap_or("");
if let Some(ref excluded) = exclude_normalized {
if tool_prefix == excluded {