mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-17 19:19:12 +02:00
Update src/fastmcp/client/client.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
32269f5140
commit
a19a84e7a8
1 changed files with 1 additions and 1 deletions
|
|
@ -533,7 +533,7 @@ 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()
|
||||
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