Skip to main content

Gateway-agnostic core for llm-catalog: config schema, resolver, GatewayTransport, and LiteLLM codegen. Knows nothing about any runtime adapter.

Project description

llm-catalog-core

Gateway-agnostic core for llm-catalog. It holds the config schema, loader/validation, role resolution, the path-rewriting GatewayTransport, and native LiteLLM codegen.

This package knows nothing about any runtime adapter, so installing it pulls in neither Pydantic AI nor LiteLLM. Use it directly when you only need resolution or codegen. Otherwise install one of the adapter distributions (llm-catalog-pydantic-ai, llm-catalog-litellm), which depend on this.

from llm_catalog.core import Catalog

cat = Catalog.from_file("catalog.yaml")
rm = cat.resolve_role("fast")   # -> ResolvedModel (no adapter types)
print(rm.backend, rm.slug, rm.base_url)

See the repository README for the full picture, the public/private boundary, and the verification notes.

import namespace: llm_catalog.core

Project details


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_core-0.2.0.tar.gz (14.0 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_core-0.2.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file llm_catalog_core-0.2.0.tar.gz.

File metadata

  • Download URL: llm_catalog_core-0.2.0.tar.gz
  • Upload date:
  • Size: 14.0 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

Hashes for llm_catalog_core-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8362d94f39717a6bb7a876d54a712579e13fe51ee87a2dde3b8540bad9247b22
MD5 dad6d7457af4c6e7a85737350553391e
BLAKE2b-256 22ba3da62e9f5a11c1f5508356a4fcb57593af8e77700407bbfa4acb001e6129

See more details on using hashes here.

File details

Details for the file llm_catalog_core-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: llm_catalog_core-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 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

Hashes for llm_catalog_core-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 922e98d867f1572268214507e1b159649e14163dfbc6c2e720cf65b3e974ad5a
MD5 779ac908a3d61381acc3b18107a470f2
BLAKE2b-256 8992b437b589125a8a541e258a0c57cafd4b8cc120487a269bfa0e015731a07e

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