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

Method __init__

eval_heldout/rewoo/nodes/Planner.py:8–15  ·  view source on GitHub ↗
(self, workers, prefix=DEFAULT_PREFIX, suffix=DEFAULT_SUFFIX, fewshot=DEFAULT_FEWSHOT,
                 model_name="text-davinci-003", stop=None)

Source from the content-addressed store, hash-verified

6
7class 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)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected