MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / get_error_tasks

Function get_error_tasks

eval_heldout/hotpotQA/src/utils.py:80–87  ·  view source on GitHub ↗
(sessions)

Source from the content-addressed store, hash-verified

78 return sessions
79
80def get_error_tasks(sessions):
81 error_tasks = []
82 for sess in sessions:
83 if sess["error"]:
84 task = (sess["question"], sess["answer"])
85 error_tasks.append(task)
86 error_tasks = list(set(error_tasks))
87 return error_tasks
88
89def get_non_error_tasks(sessions):
90 tasks = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected