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

Method __init__

eval_heldout/rewoo/nodes/Worker.py:42–49  ·  view source on GitHub ↗
(self, name="Wikipedia", docstore=None)

Source from the content-addressed store, hash-verified

40
41class WikipediaWorker(Node):
42 def __init__(self, name="Wikipedia", docstore=None):
43 super().__init__(name, input_type=str, output_type=str)
44 self.isLLMBased = False
45 self.description = "Worker that search for similar page contents from Wikipedia. Useful when you need to " \
46 "get holistic knowledge about people, places, companies, historical events, " \
47 "or other subjects. The response are long and might contain some irrelevant information. " \
48 "Input should be a search query."
49 self.docstore = docstore
50
51 def run(self, input, log=False):
52 if not self.docstore:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected