Metadata-Version: 2.4
Name: langchain-ledgerproof
Version: 1.0.0
Summary: LangChain callback that auto-issues LPR Article 50 receipts for every LLM call.
Project-URL: Homepage, https://ledgerproofhq.io
Project-URL: Documentation, https://docs.ledgerproofhq.io/integrations/langchain
Project-URL: Repository, https://github.com/vsdawkins-creator/ledgerproof-python
Author-email: "Veronica S. Dawkins" <veronica@ledgerproofhq.io>
License:                                  Apache License
                                   Version 2.0, January 2004
                                http://www.apache.org/licenses/
        
        Copyright 2026 Veronica S. Dawkins / LedgerProof Foundation
        
        Licensed under the Apache License, Version 2.0 (the "License");
        you may not use this file except in compliance with the License.
        You may obtain a copy of the License at
        
            http://www.apache.org/licenses/LICENSE-2.0
        
        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.
        
        For the full text of the Apache License 2.0, see:
            https://www.apache.org/licenses/LICENSE-2.0.txt
License-File: LICENSE
Keywords: article-50,compliance,eu-ai-act,langchain,ledgerproof
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Requires-Dist: langchain-core>=0.1
Requires-Dist: ledgerproof>=1.0
Description-Content-Type: text/markdown

# langchain-ledgerproof

LangChain callback that auto-issues EU AI Act Article 50 receipts for every LLM call.

```bash
pip install langchain-ledgerproof
```

```python
from langchain_anthropic import ChatAnthropic
from langchain_ledgerproof import LedgerProofCallbackHandler

callback = LedgerProofCallbackHandler(
    publisher_id="LEI:5493001KJTIIGC8Y1R12",
    deployer_country="DE",
    deployer_name="Acme Corp",
)

llm = ChatAnthropic(model="claude-sonnet-4-6", callbacks=[callback])
response = llm.invoke("Write a haiku about Bitcoin.")
# Receipt issued automatically. Your code is now Article 50 compliant.
```

Works with any LangChain LLM (Chat or Completion). Each invocation in a chain
or agent gets its own receipt. Background issuance — your chain isn't blocked.

## Configuration

Reads `LEDGERPROOF_API_KEY` from the environment if not passed.

See the [main ledgerproof package](../python) for the full Article 50 protocol.

## License

Apache-2.0.
