CLI

Training data

From production traces to a fine-tuned open-weight model: train on what went well, fix what failed, export, and hand the file to Fireworks, Together or OpenAI.

Supervised fine-tuning teaches a model to produce the outputs you want. Your evals already say which of your agent's outputs those are. So the order is:

See what you have

trodo evals list --table
trodo traces count --kind spans --since 30d --eval any:passed --eval any:not-failed
trodo traces count --kind spans --since 30d --eval "Refund policy:failed"

Keep what went well

Rows whose evals all passed are training data as they are: their own Output is the target, nothing to label.

trodo datasets create "Refunds that went well" --kind spans --since 30d \
  --agent support --eval any:passed --eval any:not-failed --live

--live keeps adding new good traffic. For a multi-step agent, use --kind runs --include-trace to keep the whole run.

Fix what failed

Rows an eval failed need a better answer, Expected, before they teach anything. Choose who writes it:

  • People, in the dataset page or with the thumbs on a verdict.
  • A labeling agent in Trodo: three models that must agree, a model with your rules, or a stronger model rewriting the failures. See Labeling.
  • Your own script, with the CLI: export, label, datasets update --label derived (see Datasets).

Export

trodo datasets export "Refunds that went well" --rows passed --format openai --target output -o good.jsonl
trodo datasets export "Refund failures" --rows expected --format openai --target expected -o fixed.jsonl
cat good.jsonl fixed.jsonl > train.jsonl

Pin --version N when the run has to be reproducible. --format dpo writes preference pairs (Expected preferred over Output) for a DPO run.

Train

Fireworks takes the file as it is:

firectl dataset create refunds train.jsonl
firectl sftj create --base-model accounts/fireworks/models/qwen3-8b --dataset refunds --output-model refunds-v1

Together and OpenAI take the same JSONL. Send the new model's traffic to Trodo, and the same evals tell you whether it is better.

On this page