Skip to content

Commit

Permalink
Refactor getting agent names
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Jan 3, 2025
1 parent 207114a commit 5bcf0ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autogen/messages/agent_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def __init__(self, *, uuid: Optional[UUID] = None, chat_info: dict[str, Any]):
message = chat_info.get("message")
verbose = chat_info.get("verbose", False)

sender_name = chat_info.get("sender").name # type: ignore [union-attr]
recipient_name = chat_info.get("recipient").name # type: ignore [union-attr]
sender_name = chat_info["sender"].name
recipient_name = chat_info["recipient"].name
summary_args = chat_info.get("summary_args", None)
max_turns = chat_info.get("max_turns", None)

Expand Down

0 comments on commit 5bcf0ae

Please sign in to comment.