We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
json_format.ParseDict
1 parent 6259bea commit cb3c237Copy full SHA for cb3c237
src/a2a/utils/proto_utils.py
@@ -27,6 +27,10 @@
27
def dict_to_struct(dictionary: dict[str, Any]) -> struct_pb2.Struct:
28
"""Converts a Python dict to a Struct proto.
29
30
+ Unfortunately, using `json_format.ParseDict` does not work because this
31
+ wants the dictionary to be an exact match of the Struct proto with fields
32
+ and keys and values, not the traditional Python dict structure.
33
+
34
Args:
35
dictionary: The Python dict to convert.
36
0 commit comments