LangChain adapter that enforces PFC governance at the execution boundary
Project description
pfc-langchain
LangChain adapter that enforces PFC governance at the execution boundary.
What it does
pfc-langchain wraps LangChain-style tools and ensures every tool call is evaluated by PFC before execution, blocking unauthorized actions at the moment they would occur.
Install
pip install pfc-langchain
Quickstart
tool should be a callable (or LangChain tool) you want to govern before execution.
from pfc_langchain import GovernedTool
tool = GovernedTool(
tool=transfer_funds,
policy_id="transfer-policy",
pfc_api_key="YOUR_API_KEY",
client=client,
)
How it works
- intercept tool execution
- evaluate via PFC
- allow or block with receipt
Package relationships
pfc-client-> API clientpfc-core-> shared primitivespfc-langchain-> LangChain adapter
Link
Project details
Release history Release notifications | RSS feed
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 pfc_langchain-0.1.2.tar.gz.
File metadata
- Download URL: pfc_langchain-0.1.2.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.14.3 Darwin/25.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9046df99294958399bdc2e1d668a726d9eddda9dfe6a7648ab454621c8ea7cec
|
|
| MD5 |
dabb2cf0bf3dbe7546880423fb73b998
|
|
| BLAKE2b-256 |
0944bdf84157289d8ff61f684ea121fdfd639708edc19c0e5ae7493b5bf4f848
|
File details
Details for the file pfc_langchain-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pfc_langchain-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.14.3 Darwin/25.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b640719a55f330a30854ee08e3a07e447887fedecc5bd3540f4bf633f32a8178
|
|
| MD5 |
ae6b5cba7745c861cd9368d23ecb8030
|
|
| BLAKE2b-256 |
2c9fb3a319331cec27b455f65c51b3ead973e273a3ffe01cfebdd81ee63c311f
|