Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

aegis-gateway-core

The Aegis kernel: typed aegis.yaml configuration, secret:// resolution, entry-point plugin discovery, the LangGraph pipeline (ingress → execute → egress), the four-verdict guardrail contract, and contract test kits for plugin authors.

pip install aegis-gateway-core          # add [rag] for Chroma/pgvector retrieval

Depend on this package when you write a plugin. The public API for pack factories is aegis_core.packs; guardrails implement async scan(state) -> Verdict.

from aegis_core.pipeline.state import RunState
from aegis_core.pipeline.verdict import Verdict


class NoTicketsGuard:
    name = "no_tickets"
    streaming = "none"

    async def scan(self, state: RunState) -> Verdict:
        if "INC-" in state.messages[-1].content:
            return Verdict.block("internal ticket ids must not leave the company")
        return Verdict.allow()

See Write a plugin and Testing.

Part of Aegis, a self-hosted AI gateway. Licensed under AGPL-3.0-or-later.

Metadata

Release files for aegis-gateway-core 2.0.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aegis-gateway-core 2.0.0a2
File Size Uploaded
aegis_gateway_core-2.0.0a2.tar.gz 74.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aegis-gateway-core 2.0.0a2
File Interpreter ABI Platform
aegis_gateway_core-2.0.0a2-py3-none-any.whl Python 3 none any Details

Total release size: 150.8 kB

Release files / aegis_gateway_core-2.0.0a2.tar.gz

Download URL aegis_gateway_core-2.0.0a2.tar.gz
Size 74.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2ca27db0813aafdfefdd3a94ce95e7a58031a2266efa8073ab91c745619b94a4
BLAKE2b-256 checksum
How to use checksums
8979805ff790c7f1e24cad5182fc624010bab233e447841da7f66cb02ce7abeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release files / aegis_gateway_core-2.0.0a2-py3-none-any.whl

Download URL aegis_gateway_core-2.0.0a2-py3-none-any.whl
Size 76.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51269184152ec9efecc6561efe474db7dd7c08afd41642fb25b909d2bdfd5830
BLAKE2b-256 checksum
How to use checksums
3902d028c8a1b3929e2326f28538be3188962c99337b7af10e6630f689a46db4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page