MCPcopy Index your code
hub / github.com/THUDM/AgentBench / get_handler

Method get_handler

src/analysis.py:155–160  ·  view source on GitHub ↗
(task_name)

Source from the content-addressed store, hash-verified

153
154 @staticmethod
155 def get_handler(task_name) -> "TaskHandler":
156 handlers = [DCG(), HH(), OS(), DB(), KG(), LTP(), WB(), WS()]
157 for handler in handlers:
158 if handler.match(task_name):
159 return handler
160 raise ValueError(f"Unknown task: {task_name}")
161
162
163class DCG(TaskHandler):

Callers 1

mainFunction · 0.80

Calls 9

DCGClass · 0.85
HHClass · 0.85
OSClass · 0.85
DBClass · 0.85
KGClass · 0.85
LTPClass · 0.85
WBClass · 0.85
WSClass · 0.85
matchMethod · 0.45

Tested by

no test coverage detected