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

Method _parse_planner_evidences

eval_heldout/rewoo/algos/PWS.py:81–91  ·  view source on GitHub ↗
(self, response)

Source from the content-addressed store, hash-verified

79 return plans
80
81 def _parse_planner_evidences(self, response):
82 evidences = {}
83 for line in response.splitlines():
84 if line.startswith("#") and line[1] == "E" and line[2].isdigit():
85 e, tool_call = line.split("=", 1)
86 e, tool_call = e.strip(), tool_call.strip()
87 if len(e) == 3:
88 evidences[e] = tool_call
89 else:
90 evidences[e] = "No evidence found"
91 return evidences
92
93 # use planner evidences to assign tasks to respective workers.
94 def _get_worker_evidences(self):

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected