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

Method __init__

eval_heldout/rewoo/algos/react.py:100–111  ·  view source on GitHub ↗
(self, model_name="text-davinci-003", available_tools=["Google", "Calculator"], fewshot="\n",
                 verbose=True)

Source from the content-addressed store, hash-verified

98
99class ReactExtraTool(ReactBase):
100 def __init__(self, model_name="text-davinci-003", available_tools=["Google", "Calculator"], fewshot="\n",
101 verbose=True):
102 self.model_name = model_name
103 self.verbose = verbose
104 self.fewshot = fewshot
105 self.available_tools = available_tools
106 self.tools = self._load_tools()
107 self.agent = initialize_agent(self.tools,
108 OpenAI(temperature=0, model_name=self.model_name),
109 agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
110 verbose=self.verbose,
111 return_intermediate_steps=True)
112
113 def run(self, prompt):
114 self.reset()

Callers

nothing calls this directly

Calls 1

_load_toolsMethod · 0.95

Tested by

no test coverage detected