-
Notifications
You must be signed in to change notification settings - Fork 6.7k
version0.5.1 -> 0.5.6 : assistantagent use mcp tools as arg output garbled text,workbench is normal. Is version 0.5.6 of the tools incompatible with the old version? #6496
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
Comments
Thanks for reporting this @zhangwei668. Just to clarify — in v0.5.6, some internal handling of tool arguments may have changed when used via AssistantAgent versus Workbench. Before we dig deeper:
pip show autogen-core
pip show autogen-agentchat
pip show autogen-ext
Happy to help once we can reproduce it. Thanks! |
The model is the qwen2.5 model deployed with vllm import asyncio async def main() -> None:
agent = AssistantAgent(
if name == "main": |
Are you using FastMCP? We could fix it -ad-hoc- with change this code. autogen/python/packages/autogen-ext/src/autogen_ext/tools/mcp/_workbench.py Lines 214 to 224 in 6427c07
to
however, I could not agree that change. Cause, I have worry about that there is no comparison between when MCP intentionally sends such a form and when it does not. |
I discovered the reason for the json return: return json.dumps([serialize_item(item) for item in value], ensure_ascii=False)
|
Looks like a serialization issue. Do you specifically do not want unicode encoding? I can see scenarios when this is useful though. |
What happened?
version0.5.1 -> 0.5.6 : assistant use tools as arg output garbled text,workbench is normal. 是否0.5.6 tools不兼容旧版本
Which packages was the bug in?
Python AgentChat (autogen-agentchat>=0.4.0)
AutoGen library version.
Python dev (main branch)
Other library version.
No response
Model used
No response
Model provider
None
Other model provider
No response
Python version
None
.NET version
None
Operating system
None
The text was updated successfully, but these errors were encountered: