Metadata-Version: 2.4
Name: assert-core
Version: 0.2.0
Summary: Shared LLM provider layer for assert-review and assert-eval
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: boto3>=1.26
Requires-Dist: openai>=1.0
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: ruff>=0.4; extra == "dev"

# assert-core

Shared LLM provider layer for [assert-review](../assert-review) and [assert-eval](../assert-eval).

Not intended for direct installation by end users — install `assert-review` or `assert-eval` instead.

## What's in here

- `LLMConfig` — provider configuration dataclass (supports OpenAI, Azure OpenAI, AWS Bedrock)
- `BaseLLM`, `BedrockLLM`, `OpenAILLM` — provider implementations
- `BaseCalculator` — base class for all metric calculators

## Install (internal use)

```bash
pip install assert-core
```

## Usage

```python
from assert_core import LLMConfig, OpenAILLM

config = LLMConfig(provider="openai", model_id="gpt-4o", api_key="sk-...")
llm = OpenAILLM(config)
```
