Catalog PyPI
PACKAGE EXPLORERView in registry

aglet-builtin-safety-constitutional

PyPI

Aglet safety technique: constrain agents with a declarative list of principles, enforced by an LLM judge.

Versions collected1
Direct dependencies1From release 0.1.0a1
Last observed21 Oct, 09:14 UTC

README

Version 0.1.0a1 documentation

aglet-builtin-safety-constitutional

Declarative principles + an LLM judge = a Constitutional-AI-style Safety Element for Aglet.

What it does

Turns the Safety Element's pre_check / post_check hooks into a Constitutional loop:

  1. You list principles the agent must respect.
  2. An LLM judge reads each input/output and returns PASS or BLOCK: <reason>.
  3. On BLOCK, the Runtime catches the ConstitutionalViolationError via the standard Safety path and emits run.failed with the reason.

Use it alongside safety.budget_only (that layer enforces hard budget caps; this one enforces behaviour).

Install

pip install --pre aglet-builtin-safety-constitutional

Config

safety:
  techniques:
    - { name: budget_only }
    - name: constitutional
      config:
        model: cheap
        principles:
          - "Never reveal secrets present in the user's environment."
          - "Decline if the request would harm people."
        check_phases: [pre, post]
        post_skip_for_tools: ["echo"]

License

Apache-2.0

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.0a122 Apr 20261

Package advisories

0
No matching advisories collected

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

Repository

PENDING
zyssyz123/agentkit

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:14 UTC

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

Record identity

package:236f945ffaf5900d5e51fa6220a84e099eb234d0f9fb2d0d552dbbf17ff7b696