PySpur-Dev / pyspur

A visual playground for agentic workflows: Iterate over your agents 10x faster

Home Page:https://pyspur.dev

Repository from Github https://github.comPySpur-Dev/pyspurRepository from Github https://github.comPySpur-Dev/pyspur

Documentation: How to create custom tools?

0xgirish opened this issue · comments

On the website, it is mentioned that we can create our own tools, but I am unable to find anything on documentation or examples.

Image

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

  1. You define an input, output, and config class with the relevant attributes
  2. 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.
  3. 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