AWorld
AWorld copied to clipboard
'AgentConfig' object has no attribute 'llm_model_name'-gaia-reasoning-mcp
这里有一个bug
root@839fd2e04390 /w/AWorld (main)# python examples/gaia/mcp_collections/intelligence/think.py (aworld-gaia)
An error occurred: 'AgentConfig' object has no attribute 'llm_model_name': Traceback (most recent call last):
File "/workspace/AWorld/examples/gaia/mcp_collections/intelligence/think.py", line 234, in <module>
service = ThinkCollection(args)
^^^^^^^^^^^^^^^^^^^^^
File "/workspace/AWorld/examples/gaia/mcp_collections/intelligence/think.py", line 40, in __init__
self._color_log(f"Using model: {self._llm_config.llm_model_name}", Color.blue, "debug")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/aworld-gaia/lib/python3.12/site-packages/pydantic/main.py", line 991, in __getattr__
raise AttributeError(f'{type(self).__name__!r} object has no attribute {item!r}')
AttributeError: 'AgentConfig' object has no attribute 'llm_model_name'
AgentConfig似乎初始化已经不带这个llm_model_name这个属性了,这个属性在ModelConfig里面,请问这里是没有修改嘛
mcp 文件路径:examples/gaia/mcp_collections/intelligence/think.py
You're absolutely right.
The ModelConfig encapsulates the llm config attributes (which are originally duplicated in AgentConfig) in a major update, but the accessors haven't been handled properly.
Thanks for pointing out the broken pieces!