chore: add #[non_exhaustive] and mutation methods to improve compatibility (#715)
* chore: add #[non_exhaustive] to reduce backwards-incompatible changes going forward * fix: remove ProtocolVersion import * fix: add a few more with_ mutator methods --------- Co-authored-by: Alex Hancock <alexhancock@block.xyz>
This commit is contained in:
parent
79834b6211
commit
f63718d202
1 changed files with 1568 additions and 1110 deletions
|
|
@ -57,15 +57,11 @@ impl Tool for McpToolAdapter {
|
|||
_ => None,
|
||||
};
|
||||
println!("arguments: {:?}", arguments);
|
||||
let call_result = self
|
||||
.server
|
||||
.call_tool(CallToolRequestParams {
|
||||
meta: None,
|
||||
name: self.tool.name.clone(),
|
||||
arguments,
|
||||
task: None,
|
||||
})
|
||||
.await?;
|
||||
let mut params = CallToolRequestParams::new(self.tool.name.clone());
|
||||
if let Some(args) = arguments {
|
||||
params = params.with_arguments(args);
|
||||
}
|
||||
let call_result = self.server.call_tool(params).await?;
|
||||
|
||||
Ok(call_result)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue