Catalog PyPI
PACKAGE EXPLORERView in registry

agent-safety-bench-envs

PyPI

Tool environments for the Agent Safety Bench (ASB) benchmark

agentbenchmarkllmsafetytools
Versions collected1
Direct dependencies3From release 0.1.0
Last observed20 Oct, 23:16 UTC

README

Version 0.1.0 documentation

agent-safety-bench-envs

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.

Install

pip install agent-safety-bench-envs

Quickstart

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.

Schema

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.

Citation

If you use these environments, please cite the ASB paper (ICML 2026):

@inproceedings{asb2026,
  title={...},
  author={...},
  booktitle={ICML},
  year={2026}
}

License

Apache 2.0. The vendored functions_runtime.py is from agentdojo and is MIT-licensed — see NOTICE.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.03 May 20263

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
aradhyeagarwal/asb-envs

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:16 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7692e9605ab8b0658aafed60eca6fe169113297b2c363078b07284d36fc20bfe