mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +02:00
Update client.py
This commit is contained in:
parent
a19a84e7a8
commit
993f3d7979
1 changed files with 3 additions and 1 deletions
|
|
@ -533,7 +533,9 @@ class Client(Generic[ClientTransportT]):
|
|||
serialized_arguments[key] = value
|
||||
else:
|
||||
# Use pydantic_core.to_json for consistent serialization
|
||||
serialized_arguments[key] = pydantic_core.to_json(value).decode('utf-8')
|
||||
serialized_arguments[key] = pydantic_core.to_json(value).decode(
|
||||
"utf-8"
|
||||
)
|
||||
|
||||
result = await self.session.get_prompt(
|
||||
name=name, arguments=serialized_arguments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue