mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 13:34:17 +02:00
Update Readme Example
Update result printing in README example
This commit is contained in:
commit
f3922423f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue