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

Function load_agents

eval_heldout/hotpotQA/src/utils.py:151–158  ·  view source on GitHub ↗
(dir:str)

Source from the content-addressed store, hash-verified

149 joblib.dump(agent, os.path.join(dir, f'{i}.joblib'))
150
151def load_agents(dir:str):
152 import tiktoken
153 agents = []
154 for f in os.listdir(dir):
155 agent = joblib.load(os.path.join(dir, f))
156 agent.enc = tiktoken.encoding_for_model("text-davinci-003")
157 agents.append(agent)
158 return agents

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected