Metadata-Version: 2.4
Name: llm-catalog-pydantic-ai
Version: 0.2.0
Summary: Pydantic AI adapter for llm-catalog: build native Pydantic AI models from a catalog.yaml, routed through your gateway.
Keywords: llm,catalog,pydantic-ai,gateway
Author: Shinsuke Mori
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
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
Classifier: Typing :: Typed
Requires-Dist: llm-catalog-core>=0.1,<0.2
Requires-Dist: pydantic-ai>=2.0
Requires-Dist: httpx>=0.27
Requires-Python: >=3.10
Project-URL: Homepage, https://github.com/sincekmori/llm-catalog
Project-URL: Repository, https://github.com/sincekmori/llm-catalog
Project-URL: Issues, https://github.com/sincekmori/llm-catalog/issues
Project-URL: Changelog, https://github.com/sincekmori/llm-catalog/blob/main/packages/llm-catalog-pydantic-ai/CHANGELOG.md
Description-Content-Type: text/markdown

# llm-catalog-pydantic-ai

[Pydantic AI](https://ai.pydantic.dev) adapter for [llm-catalog](https://github.com/sincekmori/llm-catalog).
It turns a role in your `catalog.yaml` into a native Pydantic AI `Model`, routed through your gateway via the core `GatewayTransport`.

```python
from pydantic_ai import Agent
from llm_catalog.pydantic_ai import PydanticAICatalog

cat = PydanticAICatalog.from_file("catalog.yaml")
agent = Agent(cat.model_for_role("fast"))
```

Installing this package does not pull in `litellm`.
The distributions are deliberately split so a Pydantic AI user's lockfile never references it.

See the [repository README](https://github.com/sincekmori/llm-catalog) for the full picture and the verification notes (§9), including the google-genai / custom-httpx-client caveat.

import namespace: `llm_catalog.pydantic_ai`
