Skip to main content
You’ll run the agent from Part 1 on your own machine: first with no account, then with a DecimalAI key. Pick your SDK in step 1 and the tabs below follow it. You need Python 3.10 or later and an API key for that SDK’s model. Parts 3 and 4 work on every tab. Part 5’s evaluate() takes OpenAI Agents SDK agents only, so choose that tab to run Part 5 as written.
Do step 1, then save the program from step 3 as main.py and add this line to .env. It’s filled in if you signed in on Part 1 in this tab:Run python main.py. The reply follows your saved prompt and your copy of the skills: agent_config("order-support") reads them from DecimalAI, so you can skip decimalai skills add. The run shows up in your dashboard, and the next time you change the prompt or a skill, this program picks it up with no redeploy. Then go on to Part 3.
Each notebook is this part’s program for one SDK: OpenAI Agents SDK, Claude Agent SDK, OpenAI SDK, Anthropic API. Add your keys as Colab Secrets (the key icon in its sidebar): your provider key, and DECIMAL_API_KEY to run your copy. Leave DECIMAL_API_KEY out and it runs with no account. LangChain has no notebook yet: use the steps below.

1. Install

Then install your tab’s packages, and replace sk-... with your model provider’s key:
decimalai reads .env when it is imported.

2. Add the four skills

These are the skills Part 1 showed: billing-dispute-resolution, account-deletion-verification-policy, diagnostic-triage-questions and acme-returns-policy. No account is needed:
Each one writes the skill’s files to .agents/skills/ and lists it in .decimal/skills.toml. Each also prints a “Now try it” block, for someone adding one skill on its own, with an example agent called my-agent. You can skip it: step 3 has your program. Commit both, so your code and its skills stay together:

3. Run it with no DecimalAI account

Save this as main.py:
Real output (the model’s wording varies from run to run):
The same answer as Part 1, on your machine. Nothing here was sent to DecimalAI:
  • The prompt is your fallback= text.
  • The skills come from .agents/skills/. The model saw a menu of four and opened the one this question needed.
  • Your tools are yours. lookup_order reads a dictionary here and your database in your app. The other three stand in for actions the skills call for: they report what they would do and change nothing.
Ask something else and the model picks again. Set question to "Please delete my account and all my data today." and it opens account-deletion-verification-policy. A model can say it did something without doing it, so don’t take its word for an action: Part 5 checks what the tools really returned. Set question back to the kettle question before you go on.

4. Add a DecimalAI key

Sign up at app.decimal.ai, get a key from Settings → API keys, and add it to the same .env:
Run main.py again, unchanged. Its first run connects the project (example output):
From now on:
  • The agent is in your workspace, at app.decimal.ai/agents/order-support.
  • Its skills live on DecimalAI. You change them there, not in .decimal/skills.toml.
  • Every run is traced: the model calls, your tools’ calls, the skills it opened, and the versions it ran on. Part 4 reads them.
  • .decimal/link.toml records the connection. With it committed, a deploy that lost its key fails at startup instead of running without its saved prompt.

5. Change the prompt without redeploying

Open the agent in the dashboard. On its Prompt & skills page, write a prompt and save it:
Run main.py again. The reply is signed, and you changed no code: agent_config() reads the saved prompt each time a program starts, and a program that stays running picks up a change within about a minute. fallback= still matters: it’s what runs if the agent has no saved prompt, or DecimalAI can’t be reached at startup.

Next: 3. Add skills from the registry

Find a skill in the registry and read its test results, add a whole pack, then make one skill your own.