Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add agent notebook and documentation #1052

Merged
merged 27 commits into from
May 28, 2023
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
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
4 changes: 2 additions & 2 deletions flaml/autogen/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def _send(self, message, recipient):

def _receive(self, message, sender):
"""Receive a message from another agent."""
print("\n****", self.name, "received message from", sender.name, "****\n")
print(message)
print("\n****", self.name, "received message from", sender.name, "****\n", flush=True)
print(message, flush=True)
self._conversations[sender.name].append({"content": message, "role": "user"})

def receive(self, message, sender):
Expand Down
1 change: 1 addition & 0 deletions flaml/autogen/agent/user_proxy_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,5 @@ def receive(self, message, sender):
return

self._consecutive_auto_reply_counter[sender.name] += 1
print("\n>>>>>>>> NO HUMAN INPUT RECEIVED. USING AUTO REPLY FOR THE USER...", flush=True)
self.auto_reply(message, sender, default_reply=reply)
Loading