Skip to content

Commit

Permalink
additional docstring fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lspinheiro committed Jan 11, 2025
1 parent f34eb8f commit 07ed135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def main():
response_stream = assistant_agent.run_stream(task=query)
async for msg in response_stream:
if hasattr(msg, "content"):
if isinstance(msg, TextMessage) and hasattr(msg, "content"):
print(f"Agent response: {msg.content}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def main():
query = "What does the station-master say about Dr. Becher?"
response_stream = assistant_agent.run_stream(task=query)
async for msg in response_stream:
if hasattr(msg, "content"):
if isinstance(msg, TextMessage) and hasattr(msg, "content"):
print(f"Agent response: {msg.content}")
Expand Down

0 comments on commit 07ed135

Please sign in to comment.