mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
use result.object otherwise CallToolResult not scriptable (#3753)
This commit is contained in:
parent
a52ab0e92d
commit
927a03bee1
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ async def main():
|
|||
|
||||
# Test the protected tool
|
||||
result = await client.call_tool("get_user_info")
|
||||
print(f"GitHub user: {result['github_user']}")
|
||||
print(f"GitHub user: {result.data['github_user']}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue