auto-sync: 2026-05-17 06:08:12
This commit is contained in:
+4
-10
@@ -307,14 +307,8 @@ class RebuttalManager:
|
||||
try:
|
||||
self.bb.add_observation(
|
||||
task_id=task_id,
|
||||
agent=agent_id,
|
||||
obs_type="rebuttal",
|
||||
content=f"Rebuttal round {round_num}: {reason[:200]}",
|
||||
detail=json.dumps({
|
||||
"round": round_num,
|
||||
"reason": reason,
|
||||
"evidence": evidence,
|
||||
}),
|
||||
observer=agent_id,
|
||||
body=f"Rebuttal round {round_num}: {reason[:200]}",
|
||||
)
|
||||
except Exception:
|
||||
logger.exception("Failed to record rebuttal")
|
||||
@@ -334,7 +328,7 @@ class RebuttalManager:
|
||||
if not self.bb:
|
||||
return 0
|
||||
try:
|
||||
observations = self.bb.list_observations(task_id=task_id)
|
||||
return sum(1 for o in observations if o.get("obs_type") == "rebuttal")
|
||||
observations = self.bb.get_observations(task_id=task_id)
|
||||
return sum(1 for o in observations if "Rebuttal round" in (o.body or ""))
|
||||
except Exception:
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user