Skip to main content
Ready-to-use code patterns for common production scenarios. Each recipe is self-contained — copy, paste, and adapt.

Recipe 1: Protected chatbot

A customer-facing chatbot with full monitoring and input/output firewall protection:

Recipe 2: RAG pipeline with tracing

A retrieval-augmented generation pipeline where every step is traced:
Trace output:

Recipe 3: Multi-agent system

An agent that delegates to specialized sub-agents, with full tracing and safety:
Trace output:

Recipe 4: Strict enterprise setup

Maximum security — block everything suspicious, log everything, cap costs:

Recipe 5: Development / debugging

Verbose logging for a dev environment — see everything in the console:

Recipe 6: Express.js middleware

Wrap your Express API routes with per-request tracing: