Skip to content

Custom Tools Tutorials

Step-by-step guides for building custom Spin components that add domain-specific tools to DeepFabric's Tool Execution framework.

Choose Your Language

Workflow Overview

Each tutorial follows the same pattern:

  1. Create a Spin component - Implement tool handlers in your language of choice
  2. Register in spin.toml - Add your component to the main Spin configuration
  3. Build and run - Compile to WASM and start the Spin server
  4. Configure DeepFabric - Define your tools in the YAML config with component: routing
  5. Generate datasets - Run DeepFabric to create training data using your tools

Prerequisites

All tutorials assume you have:

  • Spin CLI installed
  • Language-specific toolchain (Rust/TinyGo/Python/Node.js)
  • DeepFabric CLI installed