Pydantic AI adapter for llm-catalog: build native Pydantic AI models from a catalog.yaml, routed through your gateway.
Project description
llm-catalog-pydantic-ai
Pydantic AI adapter for llm-catalog.
It turns a role in your catalog.yaml into a native Pydantic AI Model, routed through your gateway via the core GatewayTransport.
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 for the full picture and the verification notes (§9), including the google-genai / custom-httpx-client caveat.
import namespace: llm_catalog.pydantic_ai
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_catalog_pydantic_ai-0.2.0.tar.gz.
File metadata
- Download URL: llm_catalog_pydantic_ai-0.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c652e713eaa57b6747c463110e45bc5fdf47ba2aa06c92c090b807aaedb90634
|
|
| MD5 |
8032c7e864590a0cd2f679819490713b
|
|
| BLAKE2b-256 |
f296f848ca48b40a559a90f3fa1c64ba5e7ae7a74692333f44af0467ffba9a23
|
File details
Details for the file llm_catalog_pydantic_ai-0.2.0-py3-none-any.whl.
File metadata
- Download URL: llm_catalog_pydantic_ai-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb85a255425a3ce2376c287ebd890d814acf1b5b5aff44354e5aed3e494ded3a
|
|
| MD5 |
dcebcd38347409a9ef24726474cf1269
|
|
| BLAKE2b-256 |
ae531d5cb0d9b1a55d857fce88d990cebfe27bd555dd3a0b212a5c726c590d39
|