MCPcopy Create free account
hub / github.com/ChenWu98/agent-attack / get_base_example_dir

Function get_base_example_dir

agent_attack/data/attack_data.py:17–20  ·  view source on GitHub ↗
(example_dir: str)

Source from the content-addressed store, hash-verified

15
16
17def get_base_example_dir(example_dir: str) -> str:
18 name = os.path.basename(example_dir)
19 name = "_".join(name.split("_")[:2])
20 return os.path.join("exp_data", "agent_clean", name)
21
22
23def get_examples(traj_root):

Callers 1

get_examplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected