-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I tried email-management and financial-analysis, all has this issue.
Got error running this app.
ag2==0.9.1.post0
Fetched email - Subject: xxxxxx
/Users/yzhai/workspace/ag2ai/build-with-ag2/email-management/main.py:115: DeprecationWarning: SwarmAgent is deprecated and has been incorporated into ConversableAgent, use ConversableAgent instead. SwarmAgent will be removed in a future version (TBD).
filter_agent = SwarmAgent(
Traceback (most recent call last):
File "/Users/yzhai/workspace/ag2ai/build-with-ag2/email-management/main.py", line 115, in <module>
filter_agent = SwarmAgent(
^^^^^^^^^^^
File "/Users/yzhai/anaconda3/envs/test/lib/python3.11/site-packages/autogen/agentchat/contrib/swarm_agent.py", line 1425, in __init__
super().__init__(*args, **kwargs)
File "/Users/yzhai/anaconda3/envs/test/lib/python3.11/site-packages/autogen/agentchat/conversable_agent.py", line 260, in __init__
self.llm_config = self._validate_llm_config(llm_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/yzhai/anaconda3/envs/test/lib/python3.11/site-packages/autogen/agentchat/conversable_agent.py", line 496, in _validate_llm_config
llm_config = LLMConfig(**llm_config)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/yzhai/anaconda3/envs/test/lib/python3.11/site-packages/autogen/llm_config.py", line 84, in __init__
self._model = self._get_base_model_class()(**modified_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/yzhai/anaconda3/envs/test/lib/python3.11/site-packages/pydantic/main.py", line 214, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for _LLMConfig
config_list
List should have at least 1 item after validation, not 0 [type=too_short, input_value=[], input_type=list]
For further information visit https://errors.pydantic.dev/2.10/v/too_short
Steps to reproduce
No response
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response
sonichi
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working