Metadata-Version: 2.5
Name: llm-minder
Version: 1.1.0
Summary: Provider-neutral asyncio toolkit for concurrent LLM calls with retries, scoped RPM/TPM admission, bounded streaming, resumable checkpoints, and deadlines.
Project-URL: Homepage, https://github.com/geoff-davis/llm-minder
Project-URL: Documentation, https://geoff-davis.github.io/llm-minder/
Project-URL: Repository, https://github.com/geoff-davis/llm-minder
Project-URL: Issues, https://github.com/geoff-davis/llm-minder/issues
Author-email: Geoff Davis <geoff@keksi.ai>
License-Expression: MIT
License-File: LICENSE
Keywords: AI,LLM,anthropic,asyncio,batch-processing,checkpointing,concurrency,deadlines,deepseek,fail-fast,gemini,jsonl,langchain,observability,openai,openrouter,orchestration,parallel,prompt-engineering,pydantic,pydantic-ai,rate-limiting,resumable,retry,streaming,structured-output,token-quota
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: pydantic>=2.0.0
Requires-Dist: typing-extensions>=4.4.0
Provides-Extra: all
Requires-Dist: google-genai>=1.49.0; extra == 'all'
Requires-Dist: openai>=1.66.2; extra == 'all'
Requires-Dist: pydantic-ai>=1.32.0; extra == 'all'
Requires-Dist: tqdm>=4.66; extra == 'all'
Provides-Extra: deepseek
Requires-Dist: openai>=1.66.2; extra == 'deepseek'
Provides-Extra: gemini
Requires-Dist: google-genai>=1.49.0; extra == 'gemini'
Provides-Extra: openai
Requires-Dist: openai>=1.66.2; extra == 'openai'
Provides-Extra: openrouter
Requires-Dist: openai>=1.66.2; extra == 'openrouter'
Provides-Extra: progress
Requires-Dist: tqdm>=4.66; extra == 'progress'
Provides-Extra: pydantic-ai
Requires-Dist: pydantic-ai>=1.32.0; extra == 'pydantic-ai'
Description-Content-Type: text/markdown

# llm-minder

**Run thousands of LLM calls concurrently without babysitting them.** When one
call hits a rate limit, every worker sharing that quota holds off on new calls
until the cooldown ends. Failures retry with the
right strategy for their cause. After a crash, a rerun resumes from its
checkpoint instead of starting over. Deadlines and spend caps stop a run cleanly,
and token counts include the attempts that failed.

It works with any async client: wrap your own, or use the built-in OpenAI,
Gemini, OpenRouter, DeepSeek, or PydanticAI support. It's for anyone running
LLM calls in bulk from one Python process: dataset labeling, extraction
pipelines, model evaluations, nightly jobs, and services that share one quota.
Use it when you need results during the current workflow; for latency-tolerant
jobs, a provider's native batch API may be cheaper.

[![PyPI version](https://img.shields.io/pypi/v/llm-minder)](https://pypi.org/project/llm-minder/)
[![PyPI Downloads](https://img.shields.io/pepy/dt/llm-minder)](https://pepy.tech/projects/llm-minder)
[![Downloads as async-batch-llm](https://img.shields.io/pepy/dt/async-batch-llm?label=downloads%20as%20async-batch-llm)](https://pepy.tech/projects/async-batch-llm)
[![Python 3.11-3.15](https://img.shields.io/badge/python-3.11--3.15-blue.svg)](https://www.python.org/downloads/)
[![Tests](https://img.shields.io/github/actions/workflow/status/geoff-davis/llm-minder/test.yml?branch=main&label=tests)](https://github.com/geoff-davis/llm-minder/actions/workflows/test.yml)
[![Coverage](https://raw.githubusercontent.com/geoff-davis/llm-minder/python-coverage-comment-action-data/badge.svg)](https://github.com/geoff-davis/llm-minder/tree/python-coverage-comment-action-data)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/geoff-davis/llm-minder/blob/main/notebooks/llm_minder_quickstart.ipynb)

**[Documentation](https://geoff-davis.github.io/llm-minder/)** ·
[Getting started](https://geoff-davis.github.io/llm-minder/getting-started/) ·
[Examples](https://github.com/geoff-davis/llm-minder/tree/main/examples) ·
[Changelog](https://github.com/geoff-davis/llm-minder/blob/main/CHANGELOG.md)

> Formerly `async-batch-llm` (through v0.32); see [Upgrading](#upgrading).

## Quick start

Install the OpenAI and terminal-progress extras, then set `OPENAI_API_KEY`:

```bash
pip install 'llm-minder[openai,progress]'
export OPENAI_API_KEY='...'
```

```python
import asyncio
from llm_minder import llm, process_prompts

async def main():
    batch = await process_prompts(
        llm("openai:gpt-6-luna"), ["Summarize A", "Summarize B"],
        concurrency=10, progress=True,
    )
    print(batch.summary())

asyncio.run(main())
```

`summary()` reports what happened, including retries and tokens (timings vary):

```text
Batch summary
=============
Items:     2 total — 2 succeeded, 0 failed
Stopped:   completed
Retries:   0 extra attempt(s) across 0 item(s)
Tokens:    in 240 (cached 0) · out 80
Wall time: 1.42s
  admission wait  p50 0.00s  p95 0.00s  p99 0.00s
  execution       p50 1.21s  p95 1.38s  p99 1.40s
```

No API key? [Run the credential-free demo](https://github.com/geoff-davis/llm-minder/blob/main/examples/example_callable_application.py)
or [open the no-key notebook in Colab](https://colab.research.google.com/github/geoff-davis/llm-minder/blob/main/notebooks/llm_minder_quickstart.ipynb).

![Credential-free terminal demo](https://raw.githubusercontent.com/geoff-davis/llm-minder/main/docs/assets/v0.20-quickstart.gif)

## Why not just `asyncio.gather`?

A semaphore plus `asyncio.gather()` caps concurrency, and for a small script
that is enough. Production batches need more:

| Problem | What llm-minder does |
| --- | --- |
| A 429 hits one call while 50 more are in flight | Coordinated cooldown: workers sharing the quota scope start no new calls or retries until it ends, then ramp back up; calls already in flight finish |
| Rate limits and bad outputs need different handling | Separate retry budgets for rate limits and for content/transport failures; `on_error()` lets a strategy escalate models |
| Request **and** token quotas (RPM + TPM) | Atomic per-scope admission with usage reconciliation and refunds |
| The input is a million rows, or the consumer is slow | Bounded input and result queues apply backpressure in both directions |
| The process dies at item 80,000 | JSONL or indexed SQLite checkpoints; resume replays only compatible results |
| A run must not exceed a time or money budget | Item deadlines, batch deadlines, token/cost caps, a hard provider-call cap, and category-based fail-fast |
| "How many tokens did that cost?" | Tokens and timing include retries and failed attempts |
| "Which limit is slowing this down?" | `describe_limits()` lists every effective limit and where it came from; `batch.gate_waits()` shows where attempts waited |
| Exceptions mixed into a result list | Typed per-item results, lifecycle events, metrics, middleware, and progress callbacks |

For delayed, discounted processing, use a provider's native batch API. The
[scenario-based comparison](https://geoff-davis.github.io/llm-minder/comparison/)
covers Bespoke Curator, gateways, native batch APIs, and workflow engines.

## Typical jobs

- **Labeling a large dataset.** 200,000 tickets, a provider that starts returning
  429s a quarter of the way in, and a script that might die. Workers sharing a
  quota pause together, and a rerun resumes from a SQLite checkpoint instead of
  paying for finished calls again. See [large runs](https://geoff-davis.github.io/llm-minder/large-runs/).
- **Extracting structured data.** When the cheap model returns JSON that doesn't
  validate, a strategy's `on_error()` escalates only those items to a stronger
  model; rate limits just wait, on their own retry budget. See
  [`example_smart_model_escalation.py`](https://github.com/geoff-davis/llm-minder/blob/main/examples/example_smart_model_escalation.py).
- **Comparing models on your own data.** One result per item and token counts
  that include retries, so the cost comparison is honest. The
  [benchmark walkthrough](https://geoff-davis.github.io/llm-minder/examples/benchmark-walkthrough/) is built this way.
- **A nightly job with a deadline and a budget.** A batch deadline, token or cost
  caps, or a hard call cap stop the run cleanly and keep every finished result.
  See [guardrails](https://geoff-davis.github.io/llm-minder/guardrails/).
- **Adding concurrency to an app you already have.** `CallableStrategy` wraps
  your existing async client, and `LLMCallPool` gives a long-running service one
  shared cooldown and concurrency limit. See
  [use your existing async client](#use-your-existing-async-client).

## Benchmarks

Dated measurements from the GSM8K math benchmark, not provider guarantees:

- **Throughput** (June 2026). At the same concurrency over 1,000 items,
  llm-minder processed 72–108 items/s, against 55–58 items/s for a hand-written
  semaphore pool over `asyncio.gather`, with no rate limits on any leg.
- **Accounting** (all 1,319 items, August 2026). Token counts that include
  retries made a like-for-like cost comparison possible: DeepSeek V4 Flash scored
  96.9% for **$0.11**, Gemini 3.5 Flash-Lite 96.6% for **$0.71**, and GLM 5.3 Flash
  via OpenRouter 96.3% for **$0.03**.

The [benchmarks page](https://geoff-davis.github.io/llm-minder/benchmarks/)
has the methodology, model IDs, pricing snapshot, the throttled-provider case
where a bare `gather` was faster, and complete tables.

## Install

The core package depends only on `pydantic>=2.0` and `typing-extensions`. Add
extras for the providers you use:

| Extra | Enables | Installs |
| --- | --- | --- |
| `openai` | `OpenAIModel`, `OpenAICompatibleModel`, `llm("openai:…")`, `llm("openai-compatible:…")` | `openai>=1.66.2` |
| `openrouter` | `OpenRouterModel`, `llm("openrouter:…")` | `openai>=1.66.2` |
| `deepseek` | `DeepSeekModel`, `llm("deepseek:…")` | `openai>=1.66.2` |
| `gemini` | `GeminiModel`, `GeminiCachedModel`, `llm("gemini:…")` | `google-genai>=1.49.0` |
| `pydantic-ai` | `PydanticAIStrategy` | `pydantic-ai>=1.32.0` |
| `progress` | tqdm bars for `progress=True` | `tqdm>=4.66` |
| `all` | All of the above | All of the above |

`CallableStrategy`, `FakeStrategy`, and custom `LLMCallStrategy` subclasses need
no extra. Supported on Python 3.11–3.15, tested on Linux and macOS.

## Providers

`llm("provider:model")` covers `openai:`, `gemini:`, `openrouter:`, `deepseek:`,
and `openai-compatible:` (any other OpenAI-compatible server, with `base_url=`).
Keyword arguments forward to the model constructor, for example
`llm("deepseek:deepseek-v4-flash", thinking=False, max_connections=150)`.

- **OpenAI** uses the Responses API by default (`api_surface="chat_completions"`
  opts out). OpenRouter, DeepSeek, and `OpenAICompatibleModel` share the same
  model layer; subclass it for Together, Fireworks, vLLM, and similar servers.
- **Gemini** supports structured response parsing and shared context caching.
- **PydanticAI** agents run through `PydanticAIStrategy` with typed output.
- **Anthropic** and anything else work through PydanticAI, `CallableStrategy`, or
  an `LLMCallStrategy` subclass.

For custom clients or cached models, use the explicit two-object form,
`OpenAIStrategy(OpenAIModel.from_api_key("gpt-6-luna"))`. See the
[OpenAI](https://geoff-davis.github.io/llm-minder/OPENAI_INTEGRATION/),
[Gemini](https://geoff-davis.github.io/llm-minder/GEMINI_INTEGRATION/), and
[OpenRouter](https://geoff-davis.github.io/llm-minder/OPENROUTER_INTEGRATION/) guides, the
[custom strategy guide](https://geoff-davis.github.io/llm-minder/examples/custom-strategies/),
and [OpenAI-compatible high-throughput guide](https://geoff-davis.github.io/llm-minder/openai-high-throughput/).
Model IDs and service limits change independently of this package, so check the
provider's documentation when choosing them.

## Use your existing async client

If your application already has an async client or gateway, wrap one call:

```python
from llm_minder import (
    ArtifactIdentity,
    CallOutcome,
    CallableStrategy,
    ProcessorConfig,
    process_stream,
)


async def invoke(prompt, *, attempt, timeout, state):
    response = await existing_client.generate(prompt, timeout=timeout)
    return CallOutcome(
        response.text,
        token_usage={
            "input_tokens": response.usage.prompt_tokens,
            "output_tokens": response.usage.completion_tokens,
            "total_tokens": response.usage.total_tokens,
        },
        metadata={"route": response.route},
    )


strategy = CallableStrategy(
    invoke,
    identity=ArtifactIdentity(provider="my-gateway", model="summary-route"),
)
config = ProcessorConfig(
    concurrency=32,
    max_queue_size=128,
    max_result_queue_size=64,
)

async for result in process_stream(strategy, database_prompt_source(), config=config):
    await save_result(result)
```

`CallableStrategy` runs on the same execution path as the built-in strategies,
so the call gets retries, cooldowns, deadlines, checkpoints, accounting, and
observers. `max_queue_size` bounds accepted input waiting for workers and
`max_result_queue_size` bounds finished results waiting for your loop; both
default to unbounded. See
[Use Your Existing Async Client](https://geoff-davis.github.io/llm-minder/callable-integration/).

## Choose an execution surface

| Need | API |
| --- | --- |
| Collect a finite run | `process_prompts()` |
| Handle results as they finish | `process_stream()` |
| Make one resilient request | `call()` / `call_result()` |
| Share limits across service requests | `LLMCallPool` |
| Customize queueing and lifecycle | `ParallelBatchProcessor` |

All five share the same retry, timing, admission, and token-accounting
pipeline. Pass `(item_id, prompt)` pairs to control IDs, or
`(item_id, prompt, context)` triples to carry application data into each result.
Results arrive in completion order; pass `preserve_order=True` to
`process_prompts()`, or call `batch.in_input_order()`, for submission order.
Exceptions the library defines subclass `LLMMinderError` and keep their
built-in bases (for example, `ItemDeadlineExceeded` is still a `TimeoutError`);
provider SDK errors are not wrapped. See the
[single-call and shared-call guide](https://geoff-davis.github.io/llm-minder/api/single-call-pool/)
and [core API](https://geoff-davis.github.io/llm-minder/api/core/).

## Production runs: checkpoints, deadlines, and budgets

The complete
[production resume example](https://github.com/geoff-davis/llm-minder/blob/main/examples/example_production_resume.py)
is runnable. With your `strategy` and `prompts` defined, the core configuration
looks like this:

```python
from pathlib import Path

from llm_minder import (
    AbortMode,
    ArtifactIdentity,
    ErrorCategory,
    GuardrailConfig,
    JsonlArtifactStore,
    ProcessorConfig,
    ResumePolicy,
    process_prompts,
)

identity = ArtifactIdentity(
    provider="openai",
    model="gpt-6-luna",
    prompt_version="invoice-v4",
    parser_version="invoice-schema-v2",
    application_version="billing-pipeline-v7",
)
store = JsonlArtifactStore("runs/invoice-extraction.jsonl", identity=identity, fsync=True)
config = ProcessorConfig(
    concurrency=20,
    attempt_timeout=30,  # one provider attempt
    guardrails=GuardrailConfig(
        total_timeout_per_item=180,  # admission, waits, calls, and retries
        batch_timeout=3600,
        abort_on_error_categories=frozenset(
            {ErrorCategory.AUTHENTICATION, ErrorCategory.INSUFFICIENT_BALANCE}
        ),
        max_total_tokens=20_000_000,  # stop the run at a spend cap
        max_provider_calls=60_000,  # hard cap on the library's provider attempts
        abort_mode=AbortMode.DRAIN_ACTIVE,
    ),
)

batch = await process_prompts(
    strategy,
    prompts,
    config=config,
    artifact_store=store,
    resume=ResumePolicy.REUSE_SUCCESSES,
    preserve_order=True,
)

if batch.termination.kind != "completed":
    print("controlled stop:", batch.termination)
Path("summary.json").write_text(batch.to_json(), encoding="utf-8")
```

What to know before relying on it:

- **Controlled stops return results.** Batch deadlines, budget stops, and
  fail-fast stops end the run with a `BatchResult` instead of an exception; check
  `batch.termination`. A fail-fast category triggers only once an item fails for
  good, not on a retryable attempt. Checkpoint write failures and cancellation by
  your own code still raise.
- **Token and cost budgets are soft caps.** Calls already running when the cap
  is reached finish (or are cancelled with `AbortMode.CANCEL_ACTIVE`), so usage
  can overshoot by at most one call per worker. `max_provider_calls` is a hard
  cap on the attempts the library makes, retries included: it is checked before
  each attempt starts, so concurrent workers can't overshoot it. Retries made
  inside an SDK client or upstream gateway you supply aren't counted; for a strict
  ceiling on provider requests, disable those retries (see the
  [provider call cap](https://geoff-davis.github.io/llm-minder/guardrails/#provider-call-cap)).
- **Checkpoints come before publication.** A result from a normal execution is
  appended and flushed before it is returned or streamed; `fsync=True` adds
  durability. Audit records for batch deadline, abort, and budget stops are
  best-effort, and items rejected before execution may have no record; see the
  [checkpoint failure rules](https://geoff-davis.github.io/llm-minder/results-and-artifacts/#item-local-artifact-serialization-failures).
  `JsonlArtifactStore` is safe for concurrent writes within one process, not
  across processes.
- **Replay is strict.** A stored result is reused only when the item ID, prompt,
  participating context, and the whole artifact identity match.
  `REUSE_SUCCESSES` reruns failures; `REUSE_ALL` also replays terminal provider
  failures. Deadline, abort, and budget stops, and configuration failures,
  always re-execute.
- **Privacy.** Raw prompts and contexts are not stored by default. Outputs and
  metadata are, and may contain sensitive application data.
- **Large runs.** `process_prompts()` keeps every result in memory. For bounded
  memory, use `process_stream()` with a lazy source and bounded queues. For 100k+
  items, also use the indexed SQLite backend: same records, same replay rules, no
  history decode on reopen. Pass the same `identity`:

  ```python
  from llm_minder import SqliteArtifactStore

  store = SqliteArtifactStore("runs/invoice-extraction.sqlite", identity=identity)
  ```

`attempt_timeout` limits one provider attempt;
`GuardrailConfig.total_timeout_per_item` limits the whole item, including
cooldowns, admission, retries, and backoff. The
[Choosing Your Limits guide](https://geoff-davis.github.io/llm-minder/choosing-your-limits/)
walks every limit in decision order with a worked 10k-item sizing example. See
also [Results, Artifacts, and Resume](https://geoff-davis.github.io/llm-minder/results-and-artifacts/),
[Large Runs](https://geoff-davis.github.io/llm-minder/large-runs/),
[Deadlines, Budgets and Fail-Fast Guardrails](https://geoff-davis.github.io/llm-minder/guardrails/),
and the [production checklist](https://geoff-davis.github.io/llm-minder/production-checklist/).

## Token-aware admission

For providers with both request and token quotas, enable token-aware admission
explicitly:

```python
from llm_minder import CharacterTokenEstimator, ProcessorConfig

config = ProcessorConfig(
    concurrency=32,
    max_requests_per_minute=500,
    max_tokens_per_minute=200_000,
    token_estimator=CharacterTokenEstimator(expected_output_tokens=400),
)
```

New in 1.1: check what a configuration resolves to before spending quota, and
see where a finished run spent its time waiting:

```python
from llm_minder import describe_limits

print(describe_limits(config, strategy))  # every limit, its value, and its source
print(batch.gate_waits())  # waits by gate: capacity, quota, cooldown, ramp, backoff
```

If you don't know your provider's limits,
[Choosing Your Limits](https://geoff-davis.github.io/llm-minder/choosing-your-limits/#when-you-dont-know-your-limits)
shows how to probe for them safely.

The [Token-Aware Admission guide](https://geoff-davis.github.io/llm-minder/token-aware-admission/)
explains estimators, shared quota scopes, refunds, underestimation debt, retries,
and known-zero versus unknown usage.

## Tokens and cost

`BatchResult` totals input, cached, output, and total tokens across retries,
including usage recovered from failed attempts. Retries hidden inside an
upstream gateway are counted only if the gateway reports their usage. The
package has no built-in price table; you supply the rates:

```python
cost = batch.estimated_cost(
    input_per_mtok=current_input_rate,
    output_per_mtok=current_output_rate,
    cached_token_rate=current_cache_rate,
)
```

To stop a run at a dollar amount, pass your pricing as
`GuardrailConfig(max_total_cost=..., cost_function=...)`; see the
[guardrails guide](https://geoff-davis.github.io/llm-minder/guardrails/#token-and-cost-budgets).

`WorkItemResult` and `BatchResult` serialize to strict, versioned JSON and JSONL;
unsupported values raise rather than fall back to `repr()`. See the
[artifact and serialization API](https://geoff-davis.github.io/llm-minder/api/artifacts/).

## Testing without provider calls

Use `FakeStrategy` without provider extras or credentials:

```python
from llm_minder import process_prompts
from llm_minder.testing import FakeStrategy

batch = await process_prompts(
    FakeStrategy(lambda prompt: prompt.upper(), token_usage={"input_tokens": 2, "output_tokens": 1}),
    ["hello", "world"],
)
assert list(batch.in_input_order().outputs()) == ["HELLO", "WORLD"]
```

`FakeStrategy` and `MockAgent` also simulate latency, rate limits, retryable
failures, and terminal failures without spending API quota. The project's own
test suite makes no live provider calls. See the
[testing guide](https://geoff-davis.github.io/llm-minder/testing/).

## Examples

Start with these runnable examples:

- [Existing async application client, bounded streaming, and replay](https://github.com/geoff-davis/llm-minder/blob/main/examples/example_callable_application.py)
- [Production checkpoints and guardrails](https://github.com/geoff-davis/llm-minder/blob/main/examples/example_production_resume.py)
- [OpenAI batch processing](https://github.com/geoff-davis/llm-minder/blob/main/examples/example_openai.py)
- [Single calls and a shared call pool](https://github.com/geoff-davis/llm-minder/blob/main/examples/example_gateway.py)
- [Validation-aware model escalation](https://github.com/geoff-davis/llm-minder/blob/main/examples/example_smart_model_escalation.py)
- [Custom embedding strategies](https://github.com/geoff-davis/llm-minder/blob/main/examples/example_embeddings.py)

The [examples directory](https://github.com/geoff-davis/llm-minder/tree/main/examples)
also covers Gemini, DeepSeek, OpenRouter, Anthropic, LangChain, caching,
grounding, and the benchmark.

## Documentation

- [Getting Started](https://geoff-davis.github.io/llm-minder/getting-started/)
- [Compare Alternatives](https://geoff-davis.github.io/llm-minder/comparison/)
- [Choosing Your Limits](https://geoff-davis.github.io/llm-minder/choosing-your-limits/)
- [Production Checklist](https://geoff-davis.github.io/llm-minder/production-checklist/)
- [Troubleshooting and FAQ](https://geoff-davis.github.io/llm-minder/troubleshooting/)
- [Logging](https://geoff-davis.github.io/llm-minder/logging/)
- [Results, Artifacts, and Resume](https://geoff-davis.github.io/llm-minder/results-and-artifacts/)
- [Deadlines, Budgets and Fail-Fast Guardrails](https://geoff-davis.github.io/llm-minder/guardrails/)
- [Bounded Work and Backpressure](https://geoff-davis.github.io/llm-minder/bounded-work/)
- [Large Runs (100k–1M)](https://geoff-davis.github.io/llm-minder/large-runs/)
- [Token-Aware Admission](https://geoff-davis.github.io/llm-minder/token-aware-admission/)
- [Prompt Caching](https://geoff-davis.github.io/llm-minder/prompt-caching/)
- [Use Your Existing Async Client](https://geoff-davis.github.io/llm-minder/callable-integration/)
- [Benchmarks](https://geoff-davis.github.io/llm-minder/benchmarks/)
- [API Reference](https://geoff-davis.github.io/llm-minder/api/core/)
- [API Stability](https://geoff-davis.github.io/llm-minder/stability/)

## Upgrading

Within 1.x, minor and patch releases don't break code that uses the stable API; the
[API stability page](https://geoff-davis.github.io/llm-minder/stability/) says what
that covers. Run your tests with `-W error::DeprecationWarning` to catch anything
slated for removal.

From 0.x, note the rename: install `llm-minder` and import `llm_minder` (an
`async-batch-llm` shim still forwards to it). Then read the
[1.0 migration guide](https://geoff-davis.github.io/llm-minder/migration/v1.0/). It
starts from v0.32, the last 0.x release and the last to support Python 3.10. Coming
from an older release, upgrade to v0.32 first; the
[migration index](https://geoff-davis.github.io/llm-minder/migration/) says which
guides to read from your release.

## Contributing

Clone the repository and use its pinned development environment:

```bash
git clone https://github.com/geoff-davis/llm-minder.git
cd llm-minder
uv sync --all-groups
make ci
```

See the [contributing guide](https://geoff-davis.github.io/llm-minder/contributing/)
or open an [issue](https://github.com/geoff-davis/llm-minder/issues). To
report a security vulnerability, follow the
[security policy](https://github.com/geoff-davis/llm-minder/blob/main/SECURITY.md)
rather than opening a public issue.

## License

MIT License. See [LICENSE](https://github.com/geoff-davis/llm-minder/blob/main/LICENSE).
