Skip to content
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

Agent添加新的tools #4309

Open
XiaoTongDeng opened this issue Jun 24, 2024 · 2 comments
Open

Agent添加新的tools #4309

XiaoTongDeng opened this issue Jun 24, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@XiaoTongDeng
Copy link

请问如何为Agent添加新的tools,能出具相应的教程吗,如何更改源代码。感谢

@XiaoTongDeng XiaoTongDeng added the bug Something isn't working label Jun 24, 2024
@glide-the
Copy link
Collaborator

glide-the commented Jun 25, 2024

目前pip安装的无法拓展,如果你愿意拓展tools模块,增加AgentTIK的一些工程化能力,请参考redeme中的参与贡献

#2427

@XiaoTongDeng
Copy link
Author

目前pip安装的无法拓展,如果你愿意拓展tools模块,增加AgentTIK的一些工程化能力,请参考redeme中的参与贡献

#2427

我研究了一下源代码。似乎我在tools_factory目录下新增函数工具随后使用@regist_tool注册一下就可以了。然后工具函数的传入参数Field(description="xxxx")是作为描述工具内容的,只需要写好description就可以使用Agent识别到相应的tool了。随后在workspace_config.json添加一下TOOL_CONFIG的字典就ok。我是这么完成的。

@imClumsyPanda imClumsyPanda added enhancement New feature or request and removed bug Something isn't working labels Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants