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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_deepkeep-0.2.0.tar.gz.
File metadata
- Download URL: langchain_deepkeep-0.2.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95c07bc361cf46315be2d162ecd9f7875eaf304eef6378c197e17af3df34d52e
|
|
| MD5 |
40e47fb8b434e9f472eae304a692f32f
|
|
| BLAKE2b-256 |
9cd326278510795bc20115a8379b6c7396cadfd2d0b240ad11acf6c4747cda20
|
File details
Details for the file langchain_deepkeep-0.2.0-py3-none-any.whl.
File metadata
- Download URL: langchain_deepkeep-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2ad9f0d4a10052adee9d25c53d85e82d854953a0445699086ae3a1b776590b8
|
|
| MD5 |
9230a98f6f6c3d8431f02813381cbfd8
|
|
| BLAKE2b-256 |
d497ec30f3c1f8e357f23bd841b769a07bd837bc4d6618100ff4ef5ff34030ab
|