We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab634aa commit cfa6475Copy full SHA for cfa6475
1 file changed
src/a2a/contrib/tasks/vertex_task_converter.py
@@ -87,7 +87,7 @@ def to_sdk_part(stored_part: genai_types.Part) -> Part:
87
if stored_part.text:
88
return Part(root=TextPart(text=stored_part.text))
89
if stored_part.inline_data:
90
- encoded_bytes = base64.b64encode(stored_part.inline_data.data).decode(
+ encoded_bytes = base64.b64encode(stored_part.inline_data.data or b'').decode(
91
'utf-8'
92
)
93
return Part(
0 commit comments