diff --git a/src/google/adk/agents/remote_a2a_agent.py b/src/google/adk/agents/remote_a2a_agent.py index f2a2730e92..10de7c14d3 100644 --- a/src/google/adk/agents/remote_a2a_agent.py +++ b/src/google/adk/agents/remote_a2a_agent.py @@ -420,6 +420,8 @@ async def _handle_a2a_response( TaskState.submitted, TaskState.working, ) + and event.content is not None + and event.content.parts ): event.content.parts[0].thought = True elif ( @@ -431,7 +433,7 @@ async def _handle_a2a_response( event = convert_a2a_message_to_event( update.status.message, self.name, ctx, self._a2a_part_converter ) - if event.content and update.status.state in ( + if event.content is not None and update.status.state in ( TaskState.submitted, TaskState.working, ): diff --git a/src/google/adk/cli/browser/index.html b/src/google/adk/cli/browser/index.html index 4b2557aa53..8e2e84c33f 100644 --- a/src/google/adk/cli/browser/index.html +++ b/src/google/adk/cli/browser/index.html @@ -26,9 +26,9 @@ - - + +