Implement SEP-1319: Decouple Request Payload from RPC Methods (#617)
* feat: implement SEP-1319 Decouple Request Payload from RPC Methods * test: update tests * fix: update handler trait methods to use new types * fix: update examples * fix: correct deprecation version * fix: update wrapper macros to use new *Params type names
This commit is contained in:
parent
48e989b711
commit
9e881a645b
1 changed files with 913 additions and 278 deletions
|
|
@ -104,7 +104,7 @@
|
|||
//!
|
||||
//! ```rust
|
||||
//! use anyhow::Result;
|
||||
//! use rmcp::{model::CallToolRequestParam, service::ServiceExt};
|
||||
//! use rmcp::{model::CallToolRequestParams, service::ServiceExt};
|
||||
//! #[cfg(feature = "transport-child-process")]
|
||||
//! #[cfg_attr(docsrs, doc(cfg(feature = "transport-child-process")))]
|
||||
//! use rmcp::transport::{TokioChildProcess, ConfigureCommandExt};
|
||||
|
|
@ -127,7 +127,8 @@
|
|||
//!
|
||||
//! // Call tool 'git_status' with arguments = {"repo_path": "."}
|
||||
//! let tool_result = service
|
||||
//! .call_tool(CallToolRequestParam {
|
||||
//! .call_tool(CallToolRequestParams {
|
||||
//! meta: None,
|
||||
//! name: "git_status".into(),
|
||||
//! arguments: serde_json::json!({ "repo_path": "." }).as_object().cloned(),
|
||||
//! task: None,
|
||||
|
|
|
|||
Loading…
Reference in a new issue