Documentation: How to create custom tools?
0xgirish opened this issue · comments
Hi Girish! Great question, we will update our docs soon to explain this better
It's fairly simple, here's an example: https://github.com/PySpur-Dev/pyspur/blob/main/backend/pyspur/nodes/integrations/firecrawl/firecrawl_scrape.py
- You define an input, output, and config class with the relevant attributes
- You add the node registry decorator. Currently, the registry assumes that your node is inside Pyspur's node folder, but you can also work around this if you want to keep your node file elsewhere.
- Your node should appear in the UI's "add nodes" panel
where is the button of "add nodes"? I can not find it in UI
