Prompts

Overview

Keep your agent's prompts in Trodo: version them, mark the live one with a label, and let your app fetch it by name, so a prompt change ships without a deploy.

Prompts keeps your agent's prompts out of your code. You write and version a prompt in Trodo, mark the live version with a label such as production, and your app fetches it by name at run time. Shipping a change, or rolling one back, is moving that label: no build, no deploy.

It is where you act on what the rest of Trodo finds. Every model call in your traces records the exact prompt version it ran. Evals score those runs, and failures, issues and Lucid point at what went wrong. You fix the prompt here (Lucid can propose the edit for you to approve), try it in the Playground, move production, and the next traces show whether the fix worked.

Develop → Prompts: one row per prompt with its name, description, owner, labels, newest version's hash and last update, and the New prompt button.

What a prompt holds

A prompt has a name, which is the key your code fetches it by. Each save makes a new version, and a version holds everything the model call needs:

MessagesA list of system, user and assistant messages, with {{variables}} filled in at run time.
VariablesFound in the messages. Each can have a default for when your code leaves it out.
Model configProvider, model, temperature, max tokens and any other setting, stored as you write it.
ToolsTool definitions in your provider's format.
Output formatText, JSON, or a JSON schema the answer must follow.

Versions never change. A label points at one version, and your app follows the label:

prompt: refund-agent
├── 59aaaa...a937aa
├── a7fbbb...e581e1   ← staging
└── f25a4d...0b437c   ← production     trodo.prompts.get('refund-agent') returns this one

How you use it

  • In the app, under Develop → Prompts: write and test prompts, save versions, compare them, move labels, and see each version's traffic. See Concepts & versions.
  • In your code, with the SDK: get fetches a prompt by name and compile fills in its variables. Fetches are cached, and a fallback keeps your app running if Trodo can't be reached. See Fetch in production.
  • From a terminal or an assistant: the CLI and MCP read prompts, push new versions and move labels, with the same permissions as the app.

New here? The Quickstart takes five minutes.

On this page