Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: How to create custom tools? #185

Open
0xgirish opened this issue Mar 2, 2025 · 1 comment
Open

Documentation: How to create custom tools? #185

0xgirish opened this issue Mar 2, 2025 · 1 comment

Comments

@0xgirish
Copy link

0xgirish commented Mar 2, 2025

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
@JeanKaddour
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants