Update to rmcp 1.1.0 (#7619)

Co-authored-by: Alex Hancock <alexhancock@block.xyz>
This commit is contained in:
Jack Amadeo
2026-03-05 21:40:52 -05:00
committed by GitHub
parent abadb87892
commit 325bf396af
61 changed files with 729 additions and 1757 deletions
+6 -12
View File
@@ -32,21 +32,15 @@ async fn main() -> Result<()> {
Message::user().with_text("Read the image at ./test_image.png please"),
Message::assistant().with_tool_request(
"000",
Ok(CallToolRequestParams {
meta: None,
task: None,
name: "view_image".into(),
arguments: Some(object!({"path": "./test_image.png"})),
}),
Ok(CallToolRequestParams::new("view_image")
.with_arguments(object!({"path": "./test_image.png"}))),
),
Message::user().with_tool_response(
"000",
Ok(rmcp::model::CallToolResult {
content: vec![Content::image(base64_image, "image/png")],
structured_content: None,
is_error: Some(false),
meta: None,
}),
Ok(rmcp::model::CallToolResult::success(vec![Content::image(
base64_image,
"image/png",
)])),
),
];