(self, response)
| 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): |