From d0468a28a8be63a91843d064f2810bf96fbac4ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Romero?= Date: Sun, 22 Mar 2026 23:02:33 +0100 Subject: [PATCH] fix: Example clients_everything_stdio (#769) --- examples/clients/src/everything_stdio.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/clients/src/everything_stdio.rs b/examples/clients/src/everything_stdio.rs index 8a7fce7de..15c7ddf2d 100644 --- a/examples/clients/src/everything_stdio.rs +++ b/examples/clients/src/everything_stdio.rs @@ -59,7 +59,9 @@ async fn main() -> Result<()> { // Read resource let resource = client - .read_resource(ReadResourceRequestParams::new("test://static/resource/3")) + .read_resource(ReadResourceRequestParams::new( + "demo://resource/static/document/architecture.md", + )) .await?; tracing::info!("Resource: {resource:#?}"); @@ -69,18 +71,18 @@ async fn main() -> Result<()> { // Get simple prompt let prompt = client - .get_prompt(GetPromptRequestParams::new("simple_prompt")) + .get_prompt(GetPromptRequestParams::new("simple-prompt")) .await?; tracing::info!("Prompt - simple: {prompt:#?}"); // Get complex prompt (returns text & image) let prompt = client .get_prompt( - GetPromptRequestParams::new("complex_prompt") - .with_arguments(object!({ "temperature": "0.5", "style": "formal" })), + GetPromptRequestParams::new("args-prompt") + .with_arguments(object!({ "city": "Dallas", "state": "Texas" })), ) .await?; - tracing::info!("Prompt - complex: {prompt:#?}"); + tracing::info!("Prompt - args: {prompt:#?}"); // List resource templates let resource_templates = client.list_all_resource_templates().await?;