We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfa6475 commit d839af0Copy full SHA for d839af0
1 file changed
src/a2a/contrib/tasks/vertex_task_converter.py
@@ -87,9 +87,9 @@ 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 or b'').decode(
91
- 'utf-8'
92
- )
+ encoded_bytes = base64.b64encode(
+ stored_part.inline_data.data or b''
+ ).decode('utf-8')
93
return Part(
94
root=FilePart(
95
file=FileWithBytes(
0 commit comments