Skip to content

Conversation

wxw-123
Copy link

@wxw-123 wxw-123 commented Aug 11, 2025

#635
并且可以不用指定'use_raw_api': True 这个参数了
适配了以下的风格:
<|tool▁calls▁begin|><|tool▁call▁begin|>function<|tool▁sep|>mcp_server_mysql-mysql_query

{"sql": "SELECT COUNT(*) AS table_count FROM information_schema.tables WHERE table_schema = DATABASE()"}
```<|tool▁call▁end|><|tool▁calls▁end|>

结论:通过测试,目前采用Qwen-Agent调用官方的DeepSeek和自己企业部署的DeepSeek都可以调用外部工具函数,都可以唤起,请官方作者审核

QwenLM#635
并且可以不用指定'use_raw_api': True 这个参数了
适配了以下的风格:
<|tool▁calls▁begin|><|tool▁call▁begin|>function<|tool▁sep|>mcp_server_mysql-mysql_query
```json
{"sql": "SELECT COUNT(*) AS table_count FROM information_schema.tables WHERE table_schema = DATABASE()"}
```<|tool▁call▁end|><|tool▁calls▁end|>

结论:通过测试,目前采用Qwen-Agent调用官方的DeepSeek和自己企业部署的DeepSeek都可以调用外部工具函数,都可以唤起,请官方作者审核
@256785
Copy link

256785 commented Aug 12, 2025

请问下 llm_cfg那里应该怎么写呢

@wxw-123
Copy link
Author

wxw-123 commented Aug 12, 2025

请问下 llm_cfg那里应该怎么写呢

默认的就可以

@tuhahaha
Copy link
Collaborator

您好,非常感谢PR,不过这个改动可能存在的问题为:tool-call template一直在变,一旦ds格式变了,就不再兼容。另外qwen-agent默认的tool-call parser也会变,目前默认是nous,之后随着model发展,可能变。因此为了好维护,我们还是推荐外部模型使用use_raw_api参数哈。这个PR不会关闭,方便需要的朋友找到 :)

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

Successfully merging this pull request may close these issues.

3 participants