Skip to main content
Version: 1.0.0

Touba tutorials

Choose a path for your needs. Each tutorial presents the program, required integrations and expected result.

Download runnable examples​

Archives include the published tutorial, its source files and a validation runner. After extraction, read README.txt and run node validate.mjs. Requirements: Touba, Node.js 24 and a POSIX shell. Python examples also require Python 3.11+. The crash exercise runs on macOS/Linux.

ExampleDownload
Package and consumerArchive
JavaScript engineArchive
Python engineArchive
Role-based approval and resumeArchive
Lost HTTP response and process crashArchive
Compensation handler contractArchive

Each run uses a fresh temporary directory. validation.json records the installed Touba version/build and assertions completed; provenance.json identifies the documentation and files. All six examples run locally.

Choose your SDK​

PathJavaScriptPython
Call ToubaEngineEngine
Write a handlerHandlersHandlers
Connect a modelProviderProvider

Touba programs and contracts are shared by both SDKs. Install Touba and your chosen SDK before starting. Each walkthrough specifies its additional dependencies.

Language basics​

Agents and models​

SDKs and integrations​

Context and memory​

Decisions and control​

Audit and complete projects​