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.3.0.tar.gz (8.2 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.3.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_catalog_pydantic_ai-0.3.0.tar.gz
  • Upload date:
  • Size: 8.2 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.3.0.tar.gz
Algorithm Hash digest
SHA256 e62fa68e910c554871e84478fa6e27b78fe65806611d9db3b4de0d908e09ae65
MD5 88bcd65d03568e01b0bb5f7c47000801
BLAKE2b-256 efc5b620a9235fdace204dca8360d6b33436922e34643f1e8b60d32717a9e4a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_catalog_pydantic_ai-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0074e2ef3a92892f440984885300df9eee5e6ff5024b73a66f7fe09ce2f722a
MD5 63fad2b4a7e2618e49bb3d8867819186
BLAKE2b-256 3e40c6477f65a21e12c46a57f906a6f0548647ed9c231752b8d0567845abb2e6

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