We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a356eb6 commit 736b4a1Copy full SHA for 736b4a1
1 file changed
src/adk_agui_middleware/utils/translate/function_calls.py
@@ -21,6 +21,8 @@
21
)
22
from google.genai import types
23
24
+from ...tools.json_encoder import PydanticJsonEncoder
25
+
26
27
class FunctionCallEventUtil:
28
"""Utility class for converting function calls to AGUI tool call events.
@@ -49,7 +51,7 @@ def create_function_result_event(
49
51
message_id=str(uuid.uuid4()),
50
52
type=EventType.TOOL_CALL_RESULT,
53
tool_call_id=tool_call_id,
- content=json.dumps(content) if content else "",
54
+ content=json.dumps(content, cls=PydanticJsonEncoder) if content else "",
55
56
57
@staticmethod
0 commit comments