@tool_function
decorator. This allows you to integrate custom logic into your PySpur workflows seamlessly.
pyspur init
command.tools
directory in your PySpur project. This directory is created automatically when you initialize your project.
my_custom_tool.py
.
tool_function
decorator from the appropriate module.
@tool_function
decorator to register your function as a tool. You can specify optional parameters such as name
, description
, category
, and output_model
.
True
.bar
will now appear in the tools panel in the app under the Custom
section.
This tool can be used in your Spur workflows just like any other built-in tool.