Tools
Writing your own Toolkit
Many advanced use-cases will require writing custom Toolkits. Here’s the general flow:
- Create a class inheriting the
phi.tools.Toolkit
class. - Add your functions to the class.
- Important: Register the functions using
self.register(function_name)
Now your Toolkit is ready to use with an Agent. For example:
shell_toolkit.py