Skip to main content

llm-catalog-pydantic-ai

Pydantic AI adapter for llm-catalog. It turns a role in your catalog config (llm-catalog.json, shared verbatim with ai-sdk-catalog) into a native Pydantic AI Model, routed through your gateway via the core GatewayTransport.

import json
from pathlib import Path

from pydantic_ai import Agent
from llm_catalog.pydantic_ai import PydanticAICatalog

config = json.loads(Path("llm-catalog.json").read_text(encoding="utf-8"))
cat = PydanticAICatalog(config)  # validates the config itself
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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_catalog_pydantic_ai-0.4.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_catalog_pydantic_ai-0.4.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_catalog_pydantic_ai-0.4.0.tar.gz.

File metadata

  • Download URL: llm_catalog_pydantic_ai-0.4.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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

Hashes for llm_catalog_pydantic_ai-0.4.0.tar.gz
Algorithm Hash digest
SHA256 284aca5377172d56a62ffb06b78152b2e07cc0a2b78ceb920c7e693e485d5022
MD5 2516ea4ac3ae576bcaadd7cac3bfe5e3
BLAKE2b-256 2707dee0fd72216535e36beb755939e6a8ece338c535620c3231857d9cff50bb

See more details on using hashes here.

File details

Details for the file llm_catalog_pydantic_ai-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: llm_catalog_pydantic_ai-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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

Hashes for llm_catalog_pydantic_ai-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 750c1789f70908eb219675905ed8fc3aabb3257c55aab188e3cee30403449aa3
MD5 1c0028987a15a3d58c24c202045040cb
BLAKE2b-256 5a8637251aa0b0aad2143724b2bfd1afb6cdf6033a4e3de588fc965e2e13ab86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page