Make the three CV match weights a per-agent setting, applied when a role is served
cv_skills, cv_experience and cv_career live in agents.weights (30, 25, 30 by default), edited on the Search agents page beside fit and recency. cv_score is worked out at read time in the feed order, the row and the reader, so changing them asks the model for nothing and leaves the judge's input_key alone. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5df707148
commit
585c332d74
8 files changed
+147
-28
No files matched your search
+2
-1
@@ -1084,7 +1084,8 @@ def test_agents_are_created_updated_listed_and_deleted(client: TestClient) -> No
|
||||
created = client.post("/api/agents", json=body)
|
||||
assert created.status_code == 200
|
||||
agent = created.json()
|
||||
assert agent["weights"] == {"fit": 0.6, "recency": 0.2, "affinity": 0.2, "taste": 0.2}
|
||||
assert agent["weights"] == {"fit": 0.6, "recency": 0.2, "affinity": 0.2, "taste": 0.2,
|
||||
"cv_skills": 30, "cv_experience": 25, "cv_career": 30}
|
||||
assert agent["gates"][0]["weight"] == 1.0
|
||||
|
||||
updated = client.post("/api/agents", json={**body, "id": agent["id"], "enabled": False,
|
||||
|
||||
Reference in new issue
Block a user