Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fine tuning

Improve an agent with reviewed production feedback and regression testing.

Fine tuning improves an agent after you observe real behavior. It exists to turn a verified gap into a targeted configuration change, then prove the change works before release.

Fine tuning changes the agent's configuration. It does not automatically train a model or accept unreviewed feedback.

Use fine tuning after a production review identifies a repeatable issue. Start with a clear example of the expected behavior.

Make the smallest change that addresses an observed gap. Then test that case again.

What it uses

  • A production execution or evaluation result

  • A clear expected response or action

  • A reviewed correction

What it protects

  • Existing agent behavior

  • Safety-sensitive rules

  • Future releases from known regressions

Choose the right improvement

If the agent needs to…
Improve this
Validate with

Follow a rule, procedure, or response format

Instructions

Regression Evals

Answer from missing or outdated material

Knowledge

Regression Evals

Take an unavailable action

Skills or integrations

Regression Evals and an execution trace

Handle a safety-sensitive case

Guardrails

Regression Evals and a trace review

Avoid changing several areas for one issue. Make the smallest change that addresses the observed gap.

Gather evidence

Use Monitor to inspect the execution that exposed the gap. Capture the input, actual response, and expected response.

Use Regression Evals to retain the corrected case as a test. This protects the behavior in future changes.

Fine-tuning workflow

1

Capture the gap

Review the production execution in Monitor or its evaluation result. Record the user input, the actual response, and the response you expected.

2

Review the correction

Turn the finding into a learning case in Reinforcement Learnings. A person must review and approve each case before it enters memory.

3

Apply a targeted change

Update the relevant instructions, knowledge, skill, or guardrail. Keep the original case as a regression test.

4

Verify before release

Run Regression Evals against the changed agent. Review failures and traces before you deploy.

Use feedback safely

Learning cases preserve approved corrections from production. They are not added automatically. This prevents inaccurate, malicious, or one-off feedback from changing future behavior.

When you review feedback:

  • Separate facts from preferences.

  • Add durable business rules to instructions or knowledge.

  • Keep personal preferences in user persona memory when appropriate.

Last updated

Was this helpful?