Skip to content

Latest commit

 

History

History

examples

README.md

DecimalAI Examples & Cookbook

Open In Colab

Runnable examples demonstrating how to use DecimalAI: a registry of agent skills with test results.

The tutorial's agent, in your own code

order-support, the agent the docs tutorial runs on its own page, as Part 3 has you run it: one notebook per SDK, the same program the docs show. With your DECIMAL_API_KEY it runs your copy (your saved prompt and skills, traced to your dashboard); without one it runs keyless. Your own model key. Built by tutorial/_build.py.

Notebook SDK Colab
order_support_openai_agents OpenAI Agents SDK Open In Colab
order_support_claude_agent_sdk Claude Agent SDK Open In Colab
order_support_openai OpenAI SDK (Responses API) Open In Colab
order_support_anthropic Anthropic API (Tool Runner) Open In Colab
order_support_langchain LangChain (create_agent) Open In Colab

Start here — no account, no install

Notebook Description Colab
Support agent from a skill Pull one skill into a LangChain agent and watch it stop announcing a deletion it never performed — with the controls that show it was the skill's content and not just extra prompt text. Anonymous pull; one free Google AI Studio key to run the model cells. Open In Colab
Measure a skill Audit a registry benchmark end to end — the claim, the per-case transcripts, the safety scan, and what we refuse to show you. Zero credentials, runs in about a second. Open In Colab
Reproduce the benchmark Re-run that same ablation on your model against a prompt you write, blind-judged, and see how far your number lands from ours. One free Google AI Studio key, no framework. Open In Colab
Route and trace Splice three registry skills into one prompt, watch the token bill multiply, then route instead — and record which skill actually changed an answer. Model key first; the DecimalAI key is asked for at cell 2.1, after the numbers. Open In Colab

Every other notebook below calls decimalai.init() in its second code cell and needs a DECIMAL_API_KEY to get past it. Start with the four above if you do not have one yet — each runs to the end with no key at all, skipping only the cells that need one.

Quickstart

Notebook Description Colab
Quickstart Your first traces + the version-aware loop in 5 minutes. No LLM key needed. Open In Colab
LangChain Quickstart Instrument a LangChain ReAct agent with 2 lines of code Open In Colab
OpenAI Agents Quickstart Instrument an OpenAI Agents SDK application Open In Colab

New to DecimalAI? Start with the Quickstart notebook — it demonstrates the full version-aware loop (trace → manifest change → impact report) with zero external dependencies.

Version-Aware Loop (What Makes DecimalAI Different)

Notebook Description Colab
Manifest Changes Deep-dive: tool renames, additions, removals, schema changes → impact reports Open In Colab

Evaluations

Notebook Description Colab
Built-in Evaluators Deterministic checks, custom @eval decorator, LLM judges, batch eval Open In Colab

Datasets & Training

Notebook / Script Description Colab
Build SFT Dataset Convert agent traces to OpenAI fine-tuning format, continuous improvement loop Open In Colab
Pull & Push Pull datasets locally, push to HuggingFace Hub for Axolotl/Unsloth/TRL —

What You'll Learn

The notebooks are organized as a learning path:

1. Quickstart          → Get traces in your dashboard
2. Version-Aware Loop  → Understand manifest changes and impact reports
3. Evaluations         → Score your traces (deterministic + LLM)
4. Datasets            → Build clean training data from scored, version-filtered traces
5. Pull & Push         → Download datasets, push to HF Hub for open-source training

Reference Application

Project Description
SupportBot Complete end-to-end sample app with 4 runnable scenarios: generate traces → update agent → evaluate → build dataset. make demo runs everything.

Skills

Skills (auto-discovery of SKILL.md files + registry search/install) are shipped today — see Support agent from a skill above for the shortest end-to-end path (pull a skill, wire it into LangChain, watch it change an answer), the Skills section of the main README, the decimalai skills CLI, and docs.decimal.ai/sdk/python.

Coming Soon

  • Framework Guides — LlamaIndex and CrewAI integration notebooks

Requirements

pip install decimalai          # Core SDK
pip install 'decimalai[evals]' # With LLM evaluators

Get your API key at app.decimal.ai/settings.

Documentation