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.2.4.tar.gz (7.7 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.2.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for agentforge_guard_llamaguard-0.2.4.tar.gz
Algorithm Hash digest
SHA256 dbbd693b6dbf4357eaac2b459d3a33107d91a53550d36af9ca4a5e19abe87c3d
MD5 fa6681ede5282d1cf248845d330f74be
BLAKE2b-256 7aed0eca1070af43d068c231e1ec66a8afe5e5e361aaad45ce54449085cf9eee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentforge_guard_llamaguard-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8a2e62ca38b2da984c98de7e4c09681beac4ac437e1b22e7ae4ef0d8c3d57cca
MD5 442e3f53cef1681ed5084a9b6d33f4d3
BLAKE2b-256 a8068a193a48e16da2daf6a1cebea1d0b584048adddb82a163ed81600155e012

See more details on using hashes here.

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