Metadata-Version: 2.4
Name: truthlocks-bedrock
Version: 1.0.1
Summary: Truthlocks MAIP wrapper for AWS Bedrock — auto-generate cryptographic receipts for every model invocation
Project-URL: Homepage, https://truthlocks.com
Project-URL: Documentation, https://docs.truthlocks.com/sdk/bedrock
Project-URL: Repository, https://github.com/truthlocks/maip
Author-email: Truthlocks Inc <support@truthlocks.com>
License-Expression: Apache-2.0
Keywords: ai-provenance,aws,bedrock,machine-identity,maip,receipts,truthlocks
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Security :: Cryptography
Requires-Python: >=3.9
Requires-Dist: maip-ai-connectors[bedrock]>=1.0.0
Description-Content-Type: text/markdown

# truthlocks-bedrock

Cryptographic receipt generation for every AWS Bedrock model invocation. Part of the [Truthlocks MAIP](https://truthlocks.com) (Machine-Attested Identity Protocol) ecosystem.

## Installation

```bash
pip install truthlocks-bedrock
```

## Quick Start

```python
import boto3
from truthlocks_bedrock import MAIPBedrockWrapper

# Create the receipt-generating wrapper
bedrock = boto3.client("bedrock-runtime")
wrapper = MAIPBedrockWrapper(client=bedrock)

# Make API calls -- receipts are generated automatically
response, receipt = wrapper.invoke_model(
    modelId="anthropic.claude-3-sonnet-20240229-v1:0",
    body='{"messages": [{"role": "user", "content": "Hello"}]}',
)

# receipt contains a cryptographic proof of the invocation
print(receipt.receipt_id)
```

## API

| Class | Description |
|---|---|
| `MAIPBedrockWrapper` | Drop-in wrapper for the Bedrock Runtime client that auto-generates MAIP receipts for every model invocation |

## What You Get

- **Tamper-proof audit trail** for every model invocation, embedding call, and streaming response
- **Cryptographic receipts** anchored to a transparency log with sub-40 ms latency
- **Zero-config** drop-in wrapper -- swap one line and receipts flow automatically
- **Compliance-ready** evidence packages for SOC 2 Type II, ISO 27001, and EU AI Act

## How It Works

`truthlocks-bedrock` is a thin wrapper around [`maip-ai-connectors`](https://pypi.org/project/maip-ai-connectors/), the core Truthlocks MAIP SDK for Python. It re-exports the Bedrock-specific wrapper so you can install only what you need.

## Requirements

- Python >= 3.9
- A Truthlocks API key ([get one free](https://truthlocks.com/get-started))

## Documentation

Full guides, API reference, and examples: **[docs.truthlocks.com/sdk/bedrock](https://docs.truthlocks.com/sdk/bedrock)**

## License

Apache 2.0 -- see [LICENSE](https://github.com/truthlocks/maip/blob/main/LICENSE).
