KwaiKEG/KwaiAgents

hello,How to customize a tool and invoke it, similar to langchain? Or directly use langchain.

Closed this issue · 2 comments

hello,How to customize a tool and invoke it, similar to langchain? Or directly use langchain.

You can create a new custom tool in the kwaiagents/tools directory. Refer to the code in base.py and other tools, and inherit the implementations of BaseToo and BaseResultl to build your own tool. When used, kwaiagents will automatically include it in the prompts for the Agent to select!

Hi, thanks for your concerns. Here we just add a custom tool-use example: https://github.com/KwaiKEG/KwaiAgents/blob/main/examples/custom_tool_example.py