Skip to main content

langchain-deepkeep

LangChain middleware for the DeepKeep AI Firewall.

Installation

pip install langchain-deepkeep

Quick start

import os

from langchain.agents import create_agent
from langchain_deepkeep import DeepKeepMiddleware

agent = create_agent(
    model="gpt-5.5",
    tools=[],
    middleware=[
        DeepKeepMiddleware(
            api_key=os.environ["DEEPKEEP_API_KEY"],
            base_url=os.environ["DEEPKEEP_BASE_URL"],
            pre_model="input-firewall-id",
            post_model="output-firewall-id",
        )
    ],
)

pre_model and post_model are DeepKeep firewall IDs. Each value is sent to the matching moderation endpoint as the model field.

Metadata

Release files for langchain-deepkeep 0.2.0

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

Source distribution (sdist)

Source distribution for langchain-deepkeep 0.2.0
File Size Uploaded Provenance
langchain_deepkeep-0.2.0.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-deepkeep 0.2.0
File Interpreter ABI Platform
langchain_deepkeep-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / langchain_deepkeep-0.2.0.tar.gz

Download URL langchain_deepkeep-0.2.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
95c07bc361cf46315be2d162ecd9f7875eaf304eef6378c197e17af3df34d52e
BLAKE2b-256 checksum
How to use checksums
9cd326278510795bc20115a8379b6c7396cadfd2d0b240ad11acf6c4747cda20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / langchain_deepkeep-0.2.0-py3-none-any.whl

Download URL langchain_deepkeep-0.2.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2ad9f0d4a10052adee9d25c53d85e82d854953a0445699086ae3a1b776590b8
BLAKE2b-256 checksum
How to use checksums
d497ec30f3c1f8e357f23bd841b769a07bd837bc4d6618100ff4ef5ff34030ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for langchain-deepkeep 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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