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

Running "Who should read this paper" TypeError: set.pop() takes no arguments (2 given) #228

Closed
affibox opened this issue Oct 13, 2023 · 1 comment

Comments

@affibox
Copy link

affibox commented Oct 13, 2023

Can anyone please help. I'm starting the "web" script tutorial from this page: https://github.com/microsoft/autogen/blob/main/notebook/agentchat_web_info.ipynb
But after the agent reply's back I run into this error and I have no Idea why or how to fix it:

(autogen) PS C:\Users\affibox\Desktop\affibox\autogen> python .\app.py
user_proxy (to assistant):

Who should read this paper: https://arxiv.org/abs/2308.08155

assistant (to user_proxy):

To determine who should read a paper, we can look at the title, abstract, and keywords of the paper. However, since I am an AI assistant and cannot browse the web directly, I am unable to access the content of the paper at the provided link.

To find out who should read the paper, you can follow these steps:

  1. Open the link to the paper in a web browser.
  2. Read the title, abstract, and keywords of the paper.
  3. Based on the information provided, determine the target audience or the specific group of people who would benefit from reading the paper.

If you have any specific questions about the paper or need further assistance, please let me know.


USING AUTO REPLY...
Traceback (most recent call last):
File "C:\Users\affibox\Desktop\affibox\autogen\app.py", line 38, in
user_proxy.initiate_chat(
File "C:\Users\affibox\miniconda3\envs\autogen\Lib\site-packages\autogen\agentchat\conversable_agent.py", line 531, in initiate_chat
self.send(self.generate_init_message(**context), recipient, silent=silent)
File "C:\Users\affibox\miniconda3\envs\autogen\Lib\site-packages\autogen\agentchat\conversable_agent.py", line 334, in send
recipient.receive(message, self, request_reply, silent)
File "C:\Users\affibox\miniconda3\envs\autogen\Lib\site-packages\autogen\agentchat\conversable_agent.py", line 464, in receive
self.send(reply, sender, silent=silent)
File "C:\Users\affibox\miniconda3\envs\autogen\Lib\site-packages\autogen\agentchat\conversable_agent.py", line 334, in send
recipient.receive(message, self, request_reply, silent)
File "C:\Users\affibox\miniconda3\envs\autogen\Lib\site-packages\autogen\agentchat\conversable_agent.py", line 462, in receive
reply = self.generate_reply(messages=self.chat_messages[sender], sender=sender)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\affibox\miniconda3\envs\autogen\Lib\site-packages\autogen\agentchat\conversable_agent.py", line 779, in generate_reply
final, reply = reply_func(self, messages=messages, sender=sender, config=reply_func_tuple["config"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\affibox\miniconda3\envs\autogen\Lib\site-packages\autogen\agentchat\conversable_agent.py", line 623, in generate_code_execution_reply
last_n_messages = code_execution_config.pop("last_n_messages", 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: set.pop() takes no arguments (2 given)

@affibox
Copy link
Author

affibox commented Oct 13, 2023

Found the issue: I was an error on my script

@affibox affibox closed this as completed Oct 13, 2023
jackgerrits pushed a commit that referenced this issue Oct 2, 2024
Update team one readme with information on how logging works.

Related to #228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant