Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/strands/multiagent/a2a/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,15 @@ async def _handle_agent_result(self, result: SAAgentResult | None, updater: Task
if self.enable_a2a_compliant_streaming:
if self._is_first_chunk:
final_content = str(result) if result else ""
parts = [Part(root=TextPart(text=final_content))] if final_content else []
await updater.add_artifact(
parts,
[Part(root=TextPart(text=final_content))],
artifact_id=self._current_artifact_id,
name="agent_response",
last_chunk=True,
)
else:
await updater.add_artifact(
[],
[Part(root=TextPart(text=""))],
artifact_id=self._current_artifact_id,
name="agent_response",
append=True,
Expand Down
Loading