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

Function save_agents

eval_heldout/hotpotQA/src/utils.py:145–149  ·  view source on GitHub ↗
(agents, dir: str)

Source from the content-addressed store, hash-verified

143 return log
144
145def save_agents(agents, dir: str):
146 os.makedirs(dir, exist_ok=True)
147 for i, agent in enumerate(agents):
148 agent.enc = None
149 joblib.dump(agent, os.path.join(dir, f'{i}.joblib'))
150
151def load_agents(dir:str):
152 import tiktoken

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected