(self, workers, prefix=DEFAULT_PREFIX, suffix=DEFAULT_SUFFIX, fewshot=DEFAULT_FEWSHOT,
model_name="text-davinci-003", stop=None)
| 6 | |
| 7 | class Planner(LLMNode): |
| 8 | def __init__(self, workers, prefix=DEFAULT_PREFIX, suffix=DEFAULT_SUFFIX, fewshot=DEFAULT_FEWSHOT, |
| 9 | model_name="text-davinci-003", stop=None): |
| 10 | super().__init__("Planner", model_name, stop, input_type=str, output_type=str) |
| 11 | self.workers = workers |
| 12 | self.prefix = prefix |
| 13 | self.worker_prompt = self._generate_worker_prompt() |
| 14 | self.suffix = suffix |
| 15 | self.fewshot = fewshot |
| 16 | |
| 17 | def run(self, input, log=False): |
| 18 | assert isinstance(input, self.input_type) |
nothing calls this directly
no test coverage detected