Update candle to 0.9 (#6913)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user