forked from sirgawain0x/creative-director
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheval_config.yaml
More file actions
27 lines (26 loc) · 958 Bytes
/
Copy patheval_config.yaml
File metadata and controls
27 lines (26 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Planning-mode Creative Director: research + storyboard, no production claims.
metrics_to_run:
- multi_turn_task_success
- no_fake_asset_urls
custom_metrics:
- name: no_fake_asset_urls
custom_function: |
def evaluate(instance: dict) -> dict:
response = instance.get("response") or {}
text = "".join(
p.get("text", "") for p in (response.get("parts") or []) if p.get("text")
)
lowered = text.lower()
banned = (
"storage.googleapis.com" in lowered
or "mock_cut" in lowered
or "c2pa" in lowered and "signed" in lowered
)
return {
"score": 0.0 if banned else 1.0,
"explanation": (
"Planning replies must not invent GCS URLs or claim C2PA signing."
if banned
else "No invented asset URLs or signing claims."
),
}