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.4.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.4.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for agentforge_guard_llamaguard-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d8ee27a02ef048ef8062555266b3da542b6b697daaa3b72e50d0be8e9b55278d
MD5 67295417d43e974401eee41b5d20d7c7
BLAKE2b-256 a851c3fdfaefb04fe6c652e3baee59ebec701927b17cdc4c6c318521b32b9d1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_guard_llamaguard-0.4.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.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_guard_llamaguard-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 170c11f6f5312cde2d7cb9131b18d189380574526060f9dbe1fdeb7c9b482f20
MD5 c5317f6b9b19a3361494b480b2157a15
BLAKE2b-256 4df3758e137dcd3d01b52f03643633623096522461446f21eca14a1a5ce9943f

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_guard_llamaguard-0.4.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