Skip to content

Commit 7b4d09b

Browse files
committed
fix typo
1 parent 65701a9 commit 7b4d09b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

02-use-cases/beginner/a2a_simple/local_client.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,8 @@ async def create_task(self, agent_url: str, message: str) -> str:
7777
responses.append(response)
7878

7979
# The response is a tuple - get the first element (Task object)
80-
if (
81-
responses
82-
and isinstance(responses[0], tuple)
83-
and len(responses[0]) > 0
84-
):
80+
if responses and isinstance(responses[0], tuple) and len(responses[0]) > 0:
8581
task = responses[0][0] # First element of the tuple
86-
8782
# Extract text: task.artifacts[0].parts[0].root.text
8883
try:
8984
return task.artifacts[0].parts[0].root.text

0 commit comments

Comments
 (0)