Update Readme Example

Update result printing in README example
This commit is contained in:
William Easton 2025-09-06 10:07:07 -05:00 committed by GitHub
commit f3922423f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: