Skip to main content

Llama Guard 3 classifier for AgentForge guardrails

Project description

agentforge-guard-llamaguard

Meta Llama Guard 3 classifier for AgentForge guardrails (feat-018).

Adds the llamaguard validator to both input and output sections of modules.guardrails. Unlike the other guard modules, this one needs an LLMClient — Llama Guard runs as a chat model producing one of safe / unsafe S1..S14 for each turn:

modules:
  guardrails:
    input:
      - llamaguard:
          model: "bedrock:meta.llama3-guard-3-8b-instruct-v1:0"
    output:
      - llamaguard:
          model: "bedrock:meta.llama3-guard-3-8b-instruct-v1:0"
agentforge add module guard-llamaguard

The validator constructs an LLMClient lazily from the model string via the framework's resolver, so any provider that implements LLMClient (Bedrock, local Ollama via a custom provider, etc.) can host the guard model.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentforge_guard_llamaguard-0.3.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentforge_guard_llamaguard-0.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_guard_llamaguard-0.3.0.tar.gz.

File metadata

File hashes

Hashes for agentforge_guard_llamaguard-0.3.0.tar.gz
Algorithm Hash digest
SHA256 30540e3e53f00dd8b995f4cdbb7f44cd691dab55a7b3cb7160655b3f68693c35
MD5 04a8ac39baaffd4975e3a8f29245eb9b
BLAKE2b-256 046b5af904781875436eeb3a006ceba3329fa7f8114937a19ab46d6601edc29f

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_guard_llamaguard-0.3.0.tar.gz:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentforge_guard_llamaguard-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_guard_llamaguard-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 611b12dde665f4dab29e990098d2839672d00feb473d50fbdf82530c297ab14e
MD5 fda05da6c2ec8b83dbe2d7232fd85590
BLAKE2b-256 e7125ebe45ad6191a54838b553f3ee66ec526cc6f16510e5d0fb4e2e28a16770

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_guard_llamaguard-0.3.0-py3-none-any.whl:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page