Back to Prompt Library
testing

Gentrace Integration for Evaluation

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: AI Policy Argument Generation Agent

Format
Code-aware
Lines
1
Sections
1
Linked challenge
AI Policy Argument Generation Agent

Prompt source

Original prompt text with formatting preserved for inspection.

1 lines
1 sections
No variables
0 checklist items
Integrate Gentrace into your agent workflow. After an argument is generated, log the input prompt, the generated argument, and any intermediate steps from the Claude Agents SDK to Gentrace. Configure custom metrics in Gentrace (e.g., 'LogicalCoherence_Score', 'Persuasiveness_Rating') and implement a simple function to calculate these for initial evaluation. The goal is to track and improve the argument quality over iterations.

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Preserve the rubric, target behavior, and pass-fail criteria as the baseline for evaluation.

Tune next

Adjust fixtures, mocks, and thresholds to the system under test instead of weakening the assertions.

Verify after

Make sure the prompt catches regressions instead of just mirroring the happy-path examples.