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
Metadata
Release files for pfc-langchain 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pfc_langchain-0.1.2.tar.gz | 1.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pfc_langchain-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / pfc_langchain-0.1.2.tar.gz
| Download URL | pfc_langchain-0.1.2.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9046df99294958399bdc2e1d668a726d9eddda9dfe6a7648ab454621c8ea7cec
|
|
BLAKE2b-256 checksum How to use checksums |
0944bdf84157289d8ff61f684ea121fdfd639708edc19c0e5ae7493b5bf4f848
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.3 CPython/3.14.3 Darwin/25.3.0
|
Release files / pfc_langchain-0.1.2-py3-none-any.whl
| Download URL | pfc_langchain-0.1.2-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b640719a55f330a30854ee08e3a07e447887fedecc5bd3540f4bf633f32a8178
|
|
BLAKE2b-256 checksum How to use checksums |
2c9fb3a319331cec27b455f65c51b3ead973e273a3ffe01cfebdd81ee63c311f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.3 CPython/3.14.3 Darwin/25.3.0
|