Read the task output of a single agent {"task_id": str, "task": str, "output": "long output", "answer": "short answer", "usage": List[int], }
(self)
| 321 | return 0.5 * ((usages[0]*1 + usages[1]*1) / 1000) |
| 322 | |
| 323 | def load_cache(self) -> Dict[str, Dict[str, Any]]: |
| 324 | """ |
| 325 | Read the task output of a single agent |
| 326 | {"task_id": str, "task": str, "output": "long output", "answer": "short answer", "usage": List[int], } |
| 327 | """ |
| 328 | |
| 329 | return json.load(open(self.cache_file, 'r')) |
| 330 | |
| 331 | def look_up_cache(self, task_id, agent_name) -> Response: |
| 332 | """ |