[Bug]: AgentOptimizer
error when using LLMConfig
#1780
Labels
10000
AgentOptimizer
error when using LLMConfig
#1780
Describe the bug
When an
LLMConfig
object is passed as argument of theAgentOptimizer
constructor, it is not accessed. This is because the constructor handlesLLMConfig
as a dict:This issue is related to #1774, and to address both I think that
ConversableAgent
's_validate_llm_config
method should be classmethod ofLLMConfig
in order to generalize it for use cases outside agents.Steps to reproduce
Raises:
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: