Comments (4)
有,这里是添加工具的模版 tools.py,对应工具也可以实现在这个目录下,然后将你的tool入口加到call_plugin函数,之后就可以调用了
@tuhahaha 我们需要先把代码架构稳定下来,然后写个step-by-step的文档说明下如何加新工具。
from qwen-agent.
from qwen-agent.
您好,我看您说那个开源数据集的写法在https://github.com/QwenLM/Qwen/blob/main/examples/function_call_finetune_examples.py请问是用这个文件生成对应的调用工具开源数据集,然后用您说的在tool里加入自己的类的call调用,再训练就可以了吗?有对应的每个步骤吗?
from qwen-agent.
您好,我看您说那个开源数据集的写法在https://github.com/QwenLM/Qwen/blob/main/examples/function_call_finetune_examples.py请问是用这个文件生成对应的调用工具开源数据集,然后用您说的在tool里加入自己的类的call调用,再训练就可以了吗?有对应的每个步骤吗?
您贴的这个链接是和“微调”相关的。但是只是想让模型使用自定义新工具的话,通常不需要微调,只需要提供下工具的描述和输入参数描述(描述是否清楚非常重要,这个描述会作为输入给模型的prompt的一部分,相当于是在做prompt engineering)。如果你在使用qwen-max,可以参考本repo的readme添加自定义工具(后续开源的新模型版本也将支持);如果是在使用之前开源的模型,可以参考Qwen主仓库的 openai_api.py 或 examples 下的 function_call_examples.py
from qwen-agent.
Related Issues (20)
- 模型判断不用调用工具,但依然进行调用工具的函数 HOT 4
- 请问Tools的每个parameter的type目前都支持什么类型 HOT 1
- 请问本项目的function call/agent能力与langchain框架中的流程区别大吗? HOT 3
- 增加异步调用支持 HOT 1
- 如何将一次对话的session_id传给工具使用呢? HOT 1
- lang参数设置语言无效 HOT 6
- 给出的例子大部分是qwen max接口的例子,能否对应本地运行的LLM给出一些例子。
- 本地文档浏览器打开添加后服务端无法读取文件 HOT 5
- 上下文如何把默认的readme去掉? HOT 1
- 调用Agent最终结果打印问题 HOT 2
- 可否考虑加入对GBNF Grammar 的支持? HOT 1
- FnCallAgent工具调用效果不如ReActChat HOT 5
- 为什么我的mac m1运行example的时候会报错 HOT 1
- 如何修改code interpreter工具生成图片的结果地址 HOT 1
- Tools should respect language as well HOT 4
- Reac调用本地部署的千问1.5与灵积API结果不一样 HOT 5
- FileNotFoundError: [Errno 2] No such file or directory: 'workspace/popup_url.jsonl' HOT 1
- 怎么把自己写的agent用run_server.py启动? HOT 5
- function call怎么添加system prompt和few-shot HOT 1
- 是否考虑将 function_call 的判断修改为官方文档提供的 function_call? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qwen-agent.