Metadata-Version: 2.4
Name: pfc-langchain
Version: 0.1.2
Summary: LangChain adapter that enforces PFC governance at the execution boundary
License: MIT
Keywords: langchain,ai governance,execution control,agent tools
Author: Dan Evans
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: pfc-core (>=0.1.0,<0.2.0)
Project-URL: Homepage, https://example.com/pfc-integrations
Project-URL: Repository, https://example.com/pfc-integrations
Description-Content-Type: text/markdown

# 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

```bash
pip install pfc-langchain
```

## Quickstart

tool should be a callable (or LangChain tool) you want to govern before execution.

```python
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 client
- `pfc-core` -> shared primitives
- `pfc-langchain` -> LangChain adapter

## Link

[https://primeformcalculus.com](https://primeformcalculus.com)

