Tool reply meta (#6074)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2025-12-11 19:43:36 -05:00
committed by GitHub
parent 7dd244eff6
commit cdab2fc3a6
52 changed files with 1852 additions and 1083 deletions
+9 -2
View File
@@ -37,8 +37,15 @@ async fn main() -> Result<()> {
arguments: Some(object!({"path": "./test_image.png"})),
}),
),
Message::user()
.with_tool_response("000", Ok(vec![Content::image(base64_image, "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,
}),
),
];
// Get a response from the model about the image