From f1a9778a2910c11282312d557cfe304a518442f9 Mon Sep 17 00:00:00 2001 From: "Wei Han (Henry)" Date: Fri, 5 Sep 2025 18:15:42 +0800 Subject: [PATCH] Update result printing in README example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 179fe641a..33260f67a 100644 --- a/README.md +++ b/README.md @@ -242,7 +242,7 @@ async def main(): tools = await client.list_tools() print(f"Available tools: {tools}") result = await client.call_tool("add", {"a": 5, "b": 3}) - print(f"Result: {result.text}") + print(f"Result: {result.content[0].text}") # Connect via SSE async with Client("http://localhost:8000/sse") as client: