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

Function get_non_error_tasks

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

Source from the content-addressed store, hash-verified

87 return error_tasks
88
89def get_non_error_tasks(sessions):
90 tasks = []
91 for sess in sessions:
92 if not sess["error"]:
93 task = (sess["question"], sess["answer"])
94 tasks.append(task)
95 tasks = list(set(tasks))
96 return tasks
97
98def delete_error(file_name):
99 sessions = get_all_agent_sessions(file_name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected