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

Method __init__

eval_heldout/rewoo/algos/notool.py:7–12  ·  view source on GitHub ↗
(self, fewshot="\n", model_name="text-davinci-003")

Source from the content-addressed store, hash-verified

5
6class IO:
7 def __init__(self, fewshot="\n", model_name="text-davinci-003"):
8 self.fewshot = fewshot
9 self.model_name = model_name
10 self.llm = LLMNode("CoT", model_name, input_type=str, output_type=str)
11 self.context_prompt = "Answer following questions. Respond directly with no extra words.\n"
12 self.token_unit_price = get_token_unit_price(model_name)
13
14 def run(self, input):
15 result = {}

Callers

nothing calls this directly

Calls 2

LLMNodeClass · 0.85
get_token_unit_priceFunction · 0.85

Tested by

no test coverage detected