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

Method call_wrap

AgentBench.old/src/task.py:115–124  ·  view source on GitHub ↗
(data_item, index)

Source from the content-addressed store, hash-verified

113 results = [None] * len(inputs)
114
115 def call_wrap(data_item, index):
116 try:
117 session = agent.create_session()
118 result = self.predict_single(session, data_item)
119 self.save_single(index, data_item, result, session)
120 except Exception as e:
121 import traceback
122 traceback.print_exc()
123 pass
124 results[index] = result
125
126 for idx, item in enumerate(inputs):
127 if already_runs is not None and already_runs[idx] is not None:

Callers

nothing calls this directly

Calls 3

predict_singleMethod · 0.95
save_singleMethod · 0.95
create_sessionMethod · 0.80

Tested by

no test coverage detected