Spaces:
Running
Running
Jeremiah Lowin Copilot commited on
Update src/fastmcp/client/client.py
Browse filesCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
src/fastmcp/client/client.py
CHANGED
|
@@ -533,7 +533,7 @@ class Client(Generic[ClientTransportT]):
|
|
| 533 |
serialized_arguments[key] = value
|
| 534 |
else:
|
| 535 |
# Use pydantic_core.to_json for consistent serialization
|
| 536 |
-
serialized_arguments[key] = pydantic_core.to_json(value).decode()
|
| 537 |
|
| 538 |
result = await self.session.get_prompt(
|
| 539 |
name=name, arguments=serialized_arguments
|
|
|
|
| 533 |
serialized_arguments[key] = value
|
| 534 |
else:
|
| 535 |
# Use pydantic_core.to_json for consistent serialization
|
| 536 |
+
serialized_arguments[key] = pydantic_core.to_json(value).decode('utf-8')
|
| 537 |
|
| 538 |
result = await self.session.get_prompt(
|
| 539 |
name=name, arguments=serialized_arguments
|