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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8362d94f39717a6bb7a876d54a712579e13fe51ee87a2dde3b8540bad9247b22
|
|
| MD5 |
dad6d7457af4c6e7a85737350553391e
|
|
| BLAKE2b-256 |
22ba3da62e9f5a11c1f5508356a4fcb57593af8e77700407bbfa4acb001e6129
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
922e98d867f1572268214507e1b159649e14163dfbc6c2e720cf65b3e974ad5a
|
|
| MD5 |
779ac908a3d61381acc3b18107a470f2
|
|
| BLAKE2b-256 |
8992b437b589125a8a541e258a0c57cafd4b8cc120487a269bfa0e015731a07e
|