Observed since 20 Oct, 23:16 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Tool environments for the Agent Safety Bench (ASB) benchmark
Tool environments for the Agent Safety Bench (ASB) benchmark. Each environment exposes a small set of mock tools (Python callables described by JSON schemas) that an LLM agent can call. ASB pairs these environments with prompts to evaluate agent safety under prompt-injection and other adversarial conditions.
The companion prompt dataset lives on the Hugging Face Hub:
aradhye/asb.
pip install agent-safety-bench-envs
from asb_envs import EnvManager
mgr = EnvManager()
env = mgr.init_env("AccessControl_1", env_params=None)
print(env.tool_list)
print(env.get_tool_descs(["list_access_attempts"]))
result = env.call_tool("list_access_attempts", {})
print(result)
init_env(name, env_params) dynamically imports the env class and instantiates it.
Each env is a subclass of BaseEnv whose tools are auto-validated against the
{ClassName}.json schema shipped with the package.
Every env class has a sibling JSON file declaring its tools:
[
{
"name": "tool_name",
"description": "...",
"parameters": {
"type": "object",
"properties": { "...": { "type": "string" } },
"required": ["..."]
}
}
]
BaseEnv.call_tool(name, args) validates required params, coerces basic types, and
dispatches to the matching method on the env class.
If you use these environments, please cite the ASB paper (ICML 2026):
@inproceedings{asb2026,
title={...},
author={...},
booktitle={ICML},
year={2026}
}
Apache 2.0. The vendored functions_runtime.py is from
agentdojo and is MIT-licensed —
see NOTICE.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 3 May 2026 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 23:16 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7692e9605ab8b0658aafed60eca6fe169113297b2c363078b07284d36fc20bfe