Step-by-step guide for creating and implementing custom tools in Praison Labs, including examples and configuration instructions
praisonai
Package
First, you need to install the praisonai
package.
Open your terminal and run the following command:
InternetSearchTool
Next, create a file named tools.py
and add the
following code to define the InternetSearchTool
:
Create a file named agents.yaml
and add the
following content to configure the agent:
To run the Praison Labs tool, simply type the following command in your terminal:
If you want to run the AG2 framework (Formerly AutoGen), use:
Ensure you have the duckduckgo_search
package
installed. If not, you can install it using:
That’s it! You should now have the Praison Labs tool installed and configured.
- InternetSearchTool
in the agents.yaml
file in the tools section.
agents.yaml
file should be present in the current
directory.
If it doesn’t exist, create it by running the command
praisonai --init research about the latest AI News and
prepare a detailed report
.
Create a file called tools.py in the same directory as the agents.yaml file.
Add the tool to the agents.yaml file as show below under the
tools section - InternetSearchTool
.