Commit 97f9aff
committed
Add VLM-judge creative critique tools
Close the generate → look → critique → revise loop with five agent tools
built entirely on existing vision-capable chat providers — no dedicated
scorer models:
- critique_image: directional defect list (what/where/fix) against the
brief with a pass/revise verdict; forbids "add more detail" advice.
- compare_images: pairwise knockout tournament; every match judged twice
with presentation order swapped to cancel position bias, plus a
tiebreak call on disagreement.
- score_image_adherence: decomposes the brief into binary yes/no checks
and answers each with the VLM — an explainable adherence score.
- record_style_preference / get_style_profile: persist aesthetic
preferences via LongTermMemory and return them as a taste-profile
block for generation prompts and judge rubrics.
Judging tools take provider+model params (pair with find_model) and run
through runProviderPrediction's generate_message capability at
temperature 0, so asset:// image sources resolve like everywhere else.
All five register as built-ins.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SGdnz8JAsc4p3SyUUY3sAc1 parent 50060c3 commit 97f9aff
4 files changed
Lines changed: 1112 additions & 0 deletions
File tree
- packages/agents
- src
- tools
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
212 | 220 | | |
213 | 221 | | |
214 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
| |||
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
107 | 121 | | |
108 | 122 | | |
109 | 123 | | |
| |||
0 commit comments