Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
6 changes: 4 additions & 2 deletions samples/python/agents/helloworld/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ async def main() -> None:
)

response = await client.send_message(request)
print(response.model_dump(mode='json', exclude_none=True))
#print(response.model_dump(mode='json', exclude_none=True)) ### Using logger wth additional text to understand the flow.
logger.info(f"Send Message : {response.model_dump(mode='json', exclude_none=True)}")
# --8<-- [end:send_message]

# --8<-- [start:send_message_streaming]
Expand All @@ -133,7 +134,8 @@ async def main() -> None:
stream_response = client.send_message_streaming(streaming_request)

async for chunk in stream_response:
print(chunk.model_dump(mode='json', exclude_none=True))
# print(chunk.model_dump(mode='json', exclude_none=True)) ### Using logger wth additional text to understand the flow.
logger.info(f"Streaming Request : {chunk.model_dump(mode='json', exclude_none=True)}")
# --8<-- [end:send_message_streaming]


Expand Down
2 changes: 2 additions & 0 deletions samples/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
a2a-sdk
uvicorn
python-dotenv
starlette
sse-starlette