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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for agentforge_guard_llamaguard-0.3.1.tar.gz
Algorithm Hash digest
SHA256 aa5c9c58371cc344f000c69752769428e88952c7e4431b38166f8c0ad379f15c
MD5 e0a38bb44f690266d7cd72b93994f207
BLAKE2b-256 d47ed3dddd4683f4689499d2b875b05d733170946a4ce8f7361b29d949023767

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for agentforge_guard_llamaguard-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a69a0bf786e7c3add6d36baabe59f57b96d034868be9cb8050688e3b8d05b51
MD5 559232b92ba2fa1e6f9682431d5748bc
BLAKE2b-256 772ea7397eede70c72d7cf4e320ace22a1f7144f5560fad87c3a8458e5b21638

See more details on using hashes here.

Provenance

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