typing & docstr update (#59)

* typing & docstr update

* bump version to 0.1.5
This commit is contained in:
Chi Wang 2023-10-01 04:57:21 -07:00 committed by GitHub
parent e4eb7aed97
commit c39bfcaa6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,8 +210,8 @@ class ConversableAgent(Agent):
return self._max_consecutive_auto_reply if sender is None else self._max_consecutive_auto_reply_dict[sender]
@property
def chat_messages(self) -> Dict[str, List[Dict]]:
"""A dictionary of conversations from name to list of ChatCompletion messages."""
def chat_messages(self) -> Dict[Agent, List[Dict]]:
"""A dictionary of conversations from agent to list of messages."""
return self._oai_messages
def last_message(self, agent: Optional[Agent] = None) -> Dict: