From a21a5499beaa44b0f299734f2c9cb63e470b06d9 Mon Sep 17 00:00:00 2001 From: fzowl Date: Fri, 13 Nov 2026 13:34:13 +0100 Subject: [PATCH 1/6] Python: Add Voyage AI embedding client package Adds agent-framework-voyageai, an alpha package with VoyageAIEmbeddingClient and RawVoyageAIEmbeddingClient for Voyage AI text embedding models, built on the official voyageai SDK. The model is always named explicitly and must be one of voyage-4-large, voyage-4, voyage-4-lite, voyage-code-4, voyage-3-large, voyage-3.5, voyage-3.5-lite, voyage-code-3, voyage-finance-2 or voyage-law-2; there is no default, and unknown names are rejected before any request so the SDK's local open-weight models are never selected by accident. dimensions is validated against the model's supported sizes and sent as output_dimension only when set. VoyageAIEmbeddingOptions adds input_type ("document"/"query") and truncation, both sent only when set. Calls of more than 1000 inputs are split into consecutive requests that keep vector order and sum usage. Usage fails closed: a response without a valid token count raises instead of reporting zero. Voyage AI error bodies ({"detail": ...}) map to the framework integration exceptions. Includes a package-local sample, unit tests for failure modes, and an integration test that is skipped without VOYAGE_API_KEY. Feature-usage index 90. --- docs/specs/feature-usage-bit-registry.md | 3 +- python/.env.example | 4 + .../agent-framework-py-release/SKILL.md | 2 +- python/PACKAGE_STATUS.md | 1 + python/packages/voyageai/AGENTS.md | 49 ++ python/packages/voyageai/LICENSE | 21 + python/packages/voyageai/README.md | 83 +++ .../agent_framework_voyageai/__init__.py | 23 + .../_embedding_client.py | 422 ++++++++++++ .../_feature_usage.py | 9 + .../agent_framework_voyageai/py.typed | 0 python/packages/voyageai/pyproject.toml | 68 ++ python/packages/voyageai/samples/README.md | 8 + .../voyageai/samples/voyage_embeddings.py | 69 ++ .../test_voyageai_embedding_client.py | 266 ++++++++ python/pyproject.toml | 1 + python/scripts/prepare_release.py | 1 + python/uv.lock | 628 ++++++++++++++++++ 18 files changed, 1656 insertions(+), 2 deletions(-) create mode 100644 python/packages/voyageai/AGENTS.md create mode 100644 python/packages/voyageai/LICENSE create mode 100644 python/packages/voyageai/README.md create mode 100644 python/packages/voyageai/agent_framework_voyageai/__init__.py create mode 100644 python/packages/voyageai/agent_framework_voyageai/_embedding_client.py create mode 100644 python/packages/voyageai/agent_framework_voyageai/_feature_usage.py create mode 100644 python/packages/voyageai/agent_framework_voyageai/py.typed create mode 100644 python/packages/voyageai/pyproject.toml create mode 100644 python/packages/voyageai/samples/README.md create mode 100644 python/packages/voyageai/samples/voyage_embeddings.py create mode 100644 python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py diff --git a/docs/specs/feature-usage-bit-registry.md b/docs/specs/feature-usage-bit-registry.md index 36fa255d6ec..da2b2cd1106 100644 --- a/docs/specs/feature-usage-bit-registry.md +++ b/docs/specs/feature-usage-bit-registry.md @@ -189,7 +189,8 @@ only to approved first-party endpoints. | 87 | `hosting.telegram` | Telegram hosting converters | `agent_framework_hosting_telegram.telegram_to_run` | | 88 | `lab` | Experimental Agent Framework Lab features | `agent_framework.lab` feature entry points | | 89 | `nvidia` | NVIDIA NIM embedding client | `agent_framework_nvidia.NvidiaEmbeddingClient` | -| 90–127 | _reserved_ | future packages | — | +| 90 | `voyageai` | Voyage AI embedding client | `agent_framework_voyageai.VoyageAIEmbeddingClient` | +| 91–127 | _reserved_ | future packages | — | ## Index table — .NET (`agent-framework-dotnet`, version 1) diff --git a/python/.env.example b/python/.env.example index d785b54d942..c9be427daf1 100644 --- a/python/.env.example +++ b/python/.env.example @@ -51,6 +51,10 @@ MISTRAL_API_KEY="" MISTRAL_CHAT_MODEL="" MISTRAL_EMBEDDING_MODEL="" MISTRAL_SERVER_URL="" +# Voyage AI +VOYAGE_API_KEY="" +VOYAGE_EMBEDDING_MODEL="" +VOYAGE_BASE_URL="" # Observability (instrumentation is enabled by default; set "ENABLE_INSTRUMENTATION" to "false" to opt out) ENABLE_SENSITIVE_DATA=true OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317/" diff --git a/python/.github/skills/agent-framework-py-release/SKILL.md b/python/.github/skills/agent-framework-py-release/SKILL.md index 2452a4dcb39..2780ace6bb8 100644 --- a/python/.github/skills/agent-framework-py-release/SKILL.md +++ b/python/.github/skills/agent-framework-py-release/SKILL.md @@ -393,7 +393,7 @@ Contract: `agent_framework_hosting`, `agent_framework_hosting_a2a`, `agent_framework_hosting_mcp`, `agent_framework_hosting_responses`, `agent_framework_hosting_telegram`, `agent_framework_mongodb`, `agent_framework_nvidia`, `agent_framework_oracle`, `agent_framework_postgres`, `agent_framework_qdrant`, - `agent_framework_sql_server`, and `agent_framework_typesafe`. See their package READMEs and exported `__all__`; + `agent_framework_sql_server`, `agent_framework_typesafe`, and `agent_framework_voyageai`. See their package READMEs and exported `__all__`; the inventory test checks each selected public export. A new exception must also be reviewed in the consumer allowlist before release. diff --git a/python/PACKAGE_STATUS.md b/python/PACKAGE_STATUS.md index 424b4ef44ec..f39cbc45bb7 100644 --- a/python/PACKAGE_STATUS.md +++ b/python/PACKAGE_STATUS.md @@ -67,6 +67,7 @@ column records whether `pip install agent-framework` installs the workspace pack | `agent-framework-sql-server` | `python/packages/sql-server` | `alpha` | `no` | | `agent-framework-tools` | `python/packages/tools` | `beta` | `yes` | | `agent-framework-typesafe` | `python/packages/typesafe` | `alpha` | `no` | +| `agent-framework-voyageai` | `python/packages/voyageai` | `alpha` | `no` | ## Deprecated / removed packages diff --git a/python/packages/voyageai/AGENTS.md b/python/packages/voyageai/AGENTS.md new file mode 100644 index 00000000000..8788a9d6853 --- /dev/null +++ b/python/packages/voyageai/AGENTS.md @@ -0,0 +1,49 @@ +# Voyage AI Package (agent-framework-voyageai) + +Integration with Voyage AI for text embedding generation. + +## Implementation Notes + +- Uses the official `voyageai` SDK (`voyageai.AsyncClient.embed`) for embedding requests. Framework + option, usage, and exception translation stays in this package. +- There is no default model. `model` (or `VOYAGE_EMBEDDING_MODEL`, or `options["model"]`) must name a + model in `_MODEL_DIMENSIONS`; an unknown name raises `ValueError` before any request. The table also + keeps the SDK's local open-weight models from being selected, since those would run in-process. +- `dimensions` is validated against the model's supported sizes and sent as `output_dimension` only when + set. `input_type` (`"document"`/`"query"`) and `truncation` are sent only when set. +- A request holds at most 1000 inputs (`MAX_BATCH_SIZE`); `get_embeddings` splits larger calls into + consecutive requests and sums usage. Token ceilings per request are enforced by the service. +- Usage is read from the response's `usage.total_tokens`. A missing or invalid count raises + `IntegrationInvalidResponseException`; it is never reported as zero. +- Voyage AI error bodies are `{"detail": ""}`. `_error_detail` reads that field and + `_raise_sdk_error` maps `401`/`403` to `IntegrationInvalidAuthException`, other `4xx` except `429` to + `IntegrationInvalidRequestException`, and everything else (including `429` and `5xx`) to + `IntegrationException`. +- The SDK retries `429`/`503`/timeouts only when `max_retries` is set. The client keeps the SDK default (no + retries); pass a pre-configured `voyageai.AsyncClient` to change that. + +## Main Classes + +- **`VoyageAIEmbeddingClient`** - Embedding client for Voyage AI text models, with telemetry +- **`RawVoyageAIEmbeddingClient`** - The same client without the telemetry layer +- **`VoyageAIEmbeddingOptions`** - Options TypedDict (`model`, `dimensions`, `input_type`, `truncation`) +- **`VoyageAIEmbeddingSettings`** - TypedDict settings for Voyage AI configuration + +## Usage + +```python +from agent_framework_voyageai import VoyageAIEmbeddingClient + +# Requires VOYAGE_API_KEY environment variable (or pass api_key= directly) +client = VoyageAIEmbeddingClient(model="voyage-4") +result = await client.get_embeddings(["Hello, world!"], options={"input_type": "document"}) +print(result[0].vector) +``` + +## Import Path + +The package is alpha, so there is no `agent_framework.voyageai` namespace in core yet. + +```python +from agent_framework_voyageai import VoyageAIEmbeddingClient +``` diff --git a/python/packages/voyageai/LICENSE b/python/packages/voyageai/LICENSE new file mode 100644 index 00000000000..9e841e7a26e --- /dev/null +++ b/python/packages/voyageai/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/python/packages/voyageai/README.md b/python/packages/voyageai/README.md new file mode 100644 index 00000000000..631b5174fda --- /dev/null +++ b/python/packages/voyageai/README.md @@ -0,0 +1,83 @@ +# Get Started with Microsoft Agent Framework Voyage AI + +An alpha [Voyage AI](https://www.voyageai.com/) text embedding integration for Microsoft Agent Framework. Please install this package: + +```bash +pip install agent-framework-voyageai --pre +``` + +and see the [README](https://github.com/microsoft/agent-framework/tree/main/python/README.md) for more information. + +See the [Voyage AI samples](samples/README.md) for a runnable example. + +## Embedding Client + +The `VoyageAIEmbeddingClient` generates text embeddings with the official +[`voyageai`](https://pypi.org/project/voyageai/) SDK. + +### Quick Start + +```python +from agent_framework_voyageai import VoyageAIEmbeddingClient + +# Reads VOYAGE_API_KEY from the environment. The model is always named explicitly: +# pass it here, or set VOYAGE_EMBEDDING_MODEL. +client = VoyageAIEmbeddingClient(model="voyage-4") + +result = await client.get_embeddings( + ["Hello, world!", "How are you?"], + options={"input_type": "document"}, +) +for embedding in result: + print(f"Dimensions: {embedding.dimensions}") +print(result.usage) +``` + +### Configuration + +| Environment Variable | Description | +|---|---| +| `VOYAGE_API_KEY` | Your Voyage AI API key | +| `VOYAGE_EMBEDDING_MODEL` | Embedding model name (for example `voyage-4`). There is no default model | +| `VOYAGE_BASE_URL` | Optional endpoint override | + +### Models + +There is no default model. The client rejects a missing model, or a name outside this table, before +it sends a request. + +| Model | `dimensions` | +|---|---| +| `voyage-4-large`, `voyage-4`, `voyage-4-lite`, `voyage-code-4` | 256, 512, 1024 (default), 2048 | +| `voyage-3-large`, `voyage-3.5`, `voyage-3.5-lite`, `voyage-code-3` | 256, 512, 1024 (default), 2048 | +| `voyage-finance-2`, `voyage-law-2` | 1024 | + +### Options + +`VoyageAIEmbeddingOptions` adds two Voyage AI fields to the common embedding options: + +| Option | Values | Purpose | +|---|---|---| +| `input_type` | `"document"`, `"query"` | Voyage AI prepends a retrieval prompt for each. Omitted, nothing is prepended | +| `truncation` | `True`, `False` | Shorten over-length input, or reject it. Omitted, the service default (`True`) applies | + +`dimensions` is sent as `output_dimension`, and only when set. For retrieval, embed stored documents with +`input_type="document"` and search text with `input_type="query"`. Vector collections forward +`embeddings_options` to each request: + +```python +await collection.upsert(notes, embeddings_options={"input_type": "document"}) +results = await collection.search("How do I call a model?", embeddings_options={"input_type": "query"}) +``` + +### Requests and usage + +Voyage AI accepts at most 1000 inputs per request, so the client sends larger calls as consecutive requests, +returns the vectors in order, and sums usage. The service also caps the tokens in one request per model and +answers an over-limit request with `400`, which surfaces as `IntegrationInvalidRequestException`. + +Usage comes from the token count the service reports. A response without one raises +`IntegrationInvalidResponseException` instead of reporting zero tokens. + +Only the models in the table above are accepted. The `voyageai` SDK can also run some open-weight models +on the local machine, and the client does not select them. diff --git a/python/packages/voyageai/agent_framework_voyageai/__init__.py b/python/packages/voyageai/agent_framework_voyageai/__init__.py new file mode 100644 index 00000000000..5775112bd8b --- /dev/null +++ b/python/packages/voyageai/agent_framework_voyageai/__init__.py @@ -0,0 +1,23 @@ +# Copyright (c) Microsoft. All rights reserved. + +import importlib.metadata + +from ._embedding_client import ( + RawVoyageAIEmbeddingClient, + VoyageAIEmbeddingClient, + VoyageAIEmbeddingOptions, + VoyageAIEmbeddingSettings, +) + +try: + __version__ = importlib.metadata.version(__name__) +except importlib.metadata.PackageNotFoundError: + __version__ = "0.0.0" # Fallback for development mode + +__all__ = [ + "RawVoyageAIEmbeddingClient", + "VoyageAIEmbeddingClient", + "VoyageAIEmbeddingOptions", + "VoyageAIEmbeddingSettings", + "__version__", +] diff --git a/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py b/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py new file mode 100644 index 00000000000..84259464d3e --- /dev/null +++ b/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py @@ -0,0 +1,422 @@ +# Copyright (c) Microsoft. All rights reserved. + +from __future__ import annotations + +import importlib.metadata +import logging +import sys +from collections.abc import Iterator, Mapping, Sequence +from typing import Any, ClassVar, Final, Generic, Literal, NoReturn, TypedDict, cast + +import voyageai.error +from agent_framework import ( + BaseEmbeddingClient, + Embedding, + EmbeddingGenerationOptions, + GeneratedEmbeddings, + UsageDetails, + add_usage_details, + load_settings, +) +from agent_framework._settings import SecretString +from agent_framework._telemetry import mark_feature_used +from agent_framework.exceptions import ( + IntegrationException, + IntegrationInvalidAuthException, + IntegrationInvalidRequestException, + IntegrationInvalidResponseException, +) +from agent_framework.observability import EmbeddingTelemetryLayer +from voyageai.client_async import AsyncClient + +from ._feature_usage import FeatureIndex + +if sys.version_info >= (3, 13): + from typing import TypeVar # pragma: no cover +else: + from typing_extensions import TypeVar # pragma: no cover + +__all__ = [ + "RawVoyageAIEmbeddingClient", + "VoyageAIEmbeddingClient", + "VoyageAIEmbeddingOptions", + "VoyageAIEmbeddingSettings", +] + +logger = logging.getLogger("agent_framework.voyageai") + +_VOYAGEAI_API_BASE_URL = "https://api.voyageai.com/v1" +_DEFAULT_TIMEOUT_SECONDS = 60.0 +_MAX_ERROR_DETAIL_CHARS = 2000 + +MAX_BATCH_SIZE: Final = 1000 +"""The most inputs Voyage AI accepts in one embeddings request.""" + +_MATRYOSHKA_DIMENSIONS: Final = (256, 512, 1024, 2048) +_FIXED_DIMENSIONS: Final = (1024,) + +_MODEL_DIMENSIONS: Final[Mapping[str, tuple[int, ...]]] = { + "voyage-4-large": _MATRYOSHKA_DIMENSIONS, + "voyage-4": _MATRYOSHKA_DIMENSIONS, + "voyage-4-lite": _MATRYOSHKA_DIMENSIONS, + "voyage-code-4": _MATRYOSHKA_DIMENSIONS, + "voyage-3-large": _MATRYOSHKA_DIMENSIONS, + "voyage-3.5": _MATRYOSHKA_DIMENSIONS, + "voyage-3.5-lite": _MATRYOSHKA_DIMENSIONS, + "voyage-code-3": _MATRYOSHKA_DIMENSIONS, + "voyage-finance-2": _FIXED_DIMENSIONS, + "voyage-law-2": _FIXED_DIMENSIONS, +} +"""The text embedding models this client accepts, with the ``dimensions`` each one supports. + +The model is always named by the caller; there is no default. A name outside this table is rejected +before any request is sent. The Voyage AI SDK also runs some open-weight models locally, and this +table keeps those from being selected by accident. +""" + +_INPUT_TYPES: Final = ("document", "query") + + +def _batches(values: Sequence[str]) -> Iterator[Sequence[str]]: + """Split ``values`` into consecutive runs of at most ``MAX_BATCH_SIZE`` inputs.""" + for start in range(0, len(values), MAX_BATCH_SIZE): + yield values[start : start + MAX_BATCH_SIZE] + + +class VoyageAIEmbeddingOptions(EmbeddingGenerationOptions, total=False): + """Voyage AI-specific embedding options. + + Extends EmbeddingGenerationOptions with Voyage AI fields. ``model`` is required, either here + or on the client. ``dimensions`` is sent as ``output_dimension`` and only when set. + + Keys: + input_type: ``"document"`` for texts being stored and ``"query"`` for search text. Voyage + AI prepends a retrieval prompt for either value. Omitted, nothing is prepended and the + key is not sent. + truncation: ``True`` shortens over-length input to the model's context window and + ``False`` rejects it. Omitted, the service default (``True``) applies. + + Examples: + .. code-block:: python + + from agent_framework_voyageai import VoyageAIEmbeddingOptions + + options: VoyageAIEmbeddingOptions = { + "model": "voyage-4", + "dimensions": 512, + "input_type": "query", + } + """ + + input_type: Literal["document", "query"] + truncation: bool + + +VoyageAIEmbeddingOptionsT = TypeVar( + "VoyageAIEmbeddingOptionsT", + bound=TypedDict, # type: ignore[valid-type] + default="VoyageAIEmbeddingOptions", + covariant=True, +) + + +class VoyageAIEmbeddingSettings(TypedDict, total=False): + """Voyage AI embedding settings. + + Settings are resolved in this order: explicit keyword arguments, values from an + explicitly provided .env file, then environment variables with the prefix 'VOYAGE_'. + + Keys: + api_key: The Voyage AI API key. (Env var VOYAGE_API_KEY) + embedding_model: The embedding model, for example ``voyage-4``. There is no default. + (Env var VOYAGE_EMBEDDING_MODEL) + base_url: Optional endpoint override. (Env var VOYAGE_BASE_URL) + """ + + api_key: SecretString | None + embedding_model: str | None + base_url: str | None + + +def _error_detail(ex: voyageai.error.VoyageError) -> str: + """Return the message of a Voyage AI error. + + Voyage AI error bodies are ``{"detail": ""}``. Anything else falls back to the SDK message. + """ + body: Any = getattr(ex, "json_body", None) + detail: Any = cast("dict[str, Any]", body).get("detail") if isinstance(body, dict) else None + if not isinstance(detail, str): + user_message: str | None = getattr(ex, "user_message", None) + detail = user_message or str(ex) + return detail[:_MAX_ERROR_DETAIL_CHARS] + + +def _validate_model_and_dimensions(model: str, dimensions: int | None) -> None: + supported = _MODEL_DIMENSIONS.get(model) + if supported is None: + raise ValueError( + f"Unsupported Voyage AI embedding model {model!r}. Supported models: {', '.join(_MODEL_DIMENSIONS)}." + ) + if dimensions is not None and dimensions not in supported: + raise ValueError(f"Model {model!r} supports dimensions {list(supported)}, not {dimensions!r}.") + + +class RawVoyageAIEmbeddingClient( + BaseEmbeddingClient[str, list[float], VoyageAIEmbeddingOptionsT], + Generic[VoyageAIEmbeddingOptionsT], +): + """Raw Voyage AI embedding client without telemetry. + + Uses the official ``voyageai`` SDK. The model is never defaulted: pass ``model``, set + ``VOYAGE_EMBEDDING_MODEL``, or pass ``options["model"]`` on every call. + + Keyword Args: + model: The Voyage AI embedding model (for example ``"voyage-4"``). Falls back to + ``VOYAGE_EMBEDDING_MODEL``. + api_key: The Voyage AI API key. Falls back to ``VOYAGE_API_KEY``. + base_url: Endpoint override. Falls back to ``VOYAGE_BASE_URL``, then to the Voyage AI + default. Ignored when ``client`` is provided. + client: Optional pre-configured ``AsyncClient``. It owns its credentials, so + ``api_key`` is not required. + additional_properties: Additional properties stored on the client instance. + env_file_path: Path to a ``.env`` file for settings. + env_file_encoding: Encoding of that ``.env`` file. + + Raises: + SettingNotFoundError: If no model is supplied. + ValueError: If the model is not a supported Voyage AI text embedding model, or no API key + is available and no ``client`` was passed. + """ + + INJECTABLE: ClassVar[set[str]] = {"client"} + + def __init__( + self, + *, + model: str | None = None, + api_key: str | SecretString | None = None, + base_url: str | None = None, + client: AsyncClient | None = None, + additional_properties: dict[str, Any] | None = None, + env_file_path: str | None = None, + env_file_encoding: str | None = None, + ) -> None: + """Initialize a raw Voyage AI embedding client.""" + if client is not None and not isinstance(client, AsyncClient): + raise TypeError(f"The 'client' parameter accepts a voyageai AsyncClient; got {type(client).__name__}.") + + settings = load_settings( + VoyageAIEmbeddingSettings, + env_prefix="VOYAGE_", + required_fields=["embedding_model"], + embedding_model=model, + api_key=api_key, + base_url=base_url, + env_file_path=env_file_path, + env_file_encoding=env_file_encoding, + ) + resolved_model: str = settings["embedding_model"] # type: ignore[assignment] + _validate_model_and_dimensions(resolved_model, None) + self.model: str = resolved_model + self.base_url: str | None = settings.get("base_url") + + if client is None: + key = settings.get("api_key") + if key is None: + raise ValueError( + "A Voyage AI API key is required. Set VOYAGE_API_KEY, pass api_key, " + "or supply a pre-configured client." + ) + client = AsyncClient( + api_key=key.get_secret_value(), + timeout=_DEFAULT_TIMEOUT_SECONDS, + base_url=self.base_url, + ) + try: + package_version = importlib.metadata.version("agent-framework-voyageai") + except importlib.metadata.PackageNotFoundError: + package_version = "0.0.0" + client.append_client_metadata("agent-framework-voyageai", package_version) + self.client = client + + super().__init__(additional_properties=additional_properties) + + def service_url(self) -> str: + """Get the URL of the service.""" + return self.base_url or _VOYAGEAI_API_BASE_URL + + @staticmethod + def _raise_sdk_error(ex: voyageai.error.VoyageError) -> NoReturn: + status: int | None = getattr(ex, "http_status", None) + if status is not None and status < 400: + raise IntegrationInvalidResponseException( + f"Voyage AI embeddings response was invalid: {_error_detail(ex)}", + inner_exception=ex, + ) from ex + + message = f"Voyage AI embeddings request failed with status {status}: {_error_detail(ex)}" + if isinstance(ex, voyageai.error.AuthenticationError) or status in (401, 403): + raise IntegrationInvalidAuthException(message) from ex + if status is not None and 400 <= status < 500 and status != 429: + raise IntegrationInvalidRequestException(message) from ex + raise IntegrationException(message, inner_exception=ex) from ex + + async def _embed_batch( + self, + values: Sequence[str], + *, + model: str, + input_type: str | None, + truncation: bool | None, + dimensions: int | None, + ) -> tuple[list[Embedding[list[float]]], UsageDetails]: + kwargs: dict[str, Any] = {} + if input_type is not None: + kwargs["input_type"] = input_type + if truncation is not None: + kwargs["truncation"] = truncation + if dimensions is not None: + kwargs["output_dimension"] = dimensions + + try: + response = await self.client.embed(list(values), model=model, **kwargs) + except voyageai.error.VoyageError as ex: + self._raise_sdk_error(ex) + except IntegrationException: + raise + except Exception as ex: + raise IntegrationException(f"Voyage AI embeddings request failed: {ex}", inner_exception=ex) from ex + + try: + vectors = response.embeddings + if len(vectors) != len(values): + raise ValueError(f"expected {len(values)} embeddings, received {len(vectors)}") + embeddings: list[Embedding[list[float]]] = [] + for raw_vector in vectors: + vector = [float(value) for value in raw_vector] + if not vector or (dimensions is not None and len(vector) != dimensions): + raise ValueError(f"unexpected embedding length {len(vector)}") + embeddings.append(Embedding(vector=vector, dimensions=len(vector), model=model)) + + # Billing fails closed: a response without a token count is an error, never zero tokens. + total_tokens: Any = getattr(response, "total_tokens", None) + if isinstance(total_tokens, bool) or not isinstance(total_tokens, int) or total_tokens < 0: + raise ValueError("response did not report a valid token count") + return embeddings, {"input_token_count": total_tokens, "total_token_count": total_tokens} + except Exception as ex: + raise IntegrationInvalidResponseException( + f"Voyage AI embeddings response was invalid: {ex}", + inner_exception=ex, + ) from ex + + async def get_embeddings( + self, + values: Sequence[str], + *, + options: VoyageAIEmbeddingOptionsT | None = None, + ) -> GeneratedEmbeddings[list[float], VoyageAIEmbeddingOptionsT]: + """Call the Voyage AI embeddings API. + + Inputs beyond ``MAX_BATCH_SIZE`` are sent as consecutive requests. Vectors keep the order of + ``values``, usage is summed, and a failed request fails the whole call. Per-request token + ceilings are enforced by the service, which rejects an over-limit request with ``400``. + + Args: + values: The text values to generate embeddings for. + options: Optional embedding generation options. + + Returns: + Generated embeddings with usage metadata. + + Raises: + ValueError: If the model is missing or unsupported, ``dimensions`` is not supported by + the model, or ``input_type`` is not ``"document"`` or ``"query"``. + IntegrationInvalidAuthException: If Voyage AI rejects the credentials. + IntegrationInvalidRequestException: If Voyage AI rejects the request. + IntegrationInvalidResponseException: If the response is malformed, or reports no token count. + IntegrationException: If the request fails for another reason, including rate limiting. + """ + if not values: + return GeneratedEmbeddings([], options=options) + + opts: dict[str, Any] = options or {} # type: ignore + model = opts.get("model") or self.model + dimensions = opts.get("dimensions") + input_type = opts.get("input_type") + truncation = opts.get("truncation") + _validate_model_and_dimensions(model, dimensions) + if input_type is not None and input_type not in _INPUT_TYPES: + raise ValueError(f"Unsupported Voyage AI input_type {input_type!r}; use 'document' or 'query'.") + if truncation is not None and not isinstance(truncation, bool): + raise ValueError(f"truncation must be a bool, not {truncation!r}.") + + mark_feature_used(FeatureIndex.VOYAGEAI) + embeddings: list[Embedding[list[float]]] = [] + usage: UsageDetails | None = None + for batch in _batches(values): + batch_embeddings, batch_usage = await self._embed_batch( + batch, model=model, input_type=input_type, truncation=truncation, dimensions=dimensions + ) + embeddings.extend(batch_embeddings) + usage = add_usage_details(usage, batch_usage) + return GeneratedEmbeddings(embeddings, options=options, usage=usage) + + +class VoyageAIEmbeddingClient( + EmbeddingTelemetryLayer[str, list[float], VoyageAIEmbeddingOptionsT], + RawVoyageAIEmbeddingClient[VoyageAIEmbeddingOptionsT], + Generic[VoyageAIEmbeddingOptionsT], +): + """Voyage AI embedding client with telemetry support. + + Keyword Args: + model: The Voyage AI embedding model (for example ``"voyage-4"``). Falls back to + ``VOYAGE_EMBEDDING_MODEL``. There is no default model. + api_key: The Voyage AI API key. Falls back to ``VOYAGE_API_KEY``. + base_url: Endpoint override. Falls back to ``VOYAGE_BASE_URL``. + client: Optional pre-configured ``AsyncClient``. + additional_properties: Additional properties stored on the client instance. + otel_provider_name: Optional telemetry provider name override. + env_file_path: Path to a ``.env`` file for settings. + env_file_encoding: Encoding of that ``.env`` file. + + Examples: + .. code-block:: python + + from agent_framework_voyageai import VoyageAIEmbeddingClient + + # Set VOYAGE_API_KEY (and optionally VOYAGE_EMBEDDING_MODEL) in the environment. + client = VoyageAIEmbeddingClient(model="voyage-4") + + result = await client.get_embeddings( + ["Hello, world!"], + options={"input_type": "document", "dimensions": 512}, + ) + print(result[0].vector) + """ + + OTEL_PROVIDER_NAME: ClassVar[str] = "voyageai" + + def __init__( + self, + *, + model: str | None = None, + api_key: str | SecretString | None = None, + base_url: str | None = None, + client: AsyncClient | None = None, + additional_properties: dict[str, Any] | None = None, + otel_provider_name: str | None = None, + env_file_path: str | None = None, + env_file_encoding: str | None = None, + ) -> None: + """Initialize a Voyage AI embedding client with telemetry.""" + super().__init__( + model=model, + api_key=api_key, + base_url=base_url, + client=client, + additional_properties=additional_properties, + otel_provider_name=otel_provider_name, + env_file_path=env_file_path, + env_file_encoding=env_file_encoding, + ) diff --git a/python/packages/voyageai/agent_framework_voyageai/_feature_usage.py b/python/packages/voyageai/agent_framework_voyageai/_feature_usage.py new file mode 100644 index 00000000000..03fb6b0e28f --- /dev/null +++ b/python/packages/voyageai/agent_framework_voyageai/_feature_usage.py @@ -0,0 +1,9 @@ +# Copyright (c) Microsoft. All rights reserved. + +from enum import IntEnum + + +class FeatureIndex(IntEnum): + """Voyage AI-owned feature-usage indexes.""" + + VOYAGEAI = 90 diff --git a/python/packages/voyageai/agent_framework_voyageai/py.typed b/python/packages/voyageai/agent_framework_voyageai/py.typed new file mode 100644 index 00000000000..e69de29bb2d diff --git a/python/packages/voyageai/pyproject.toml b/python/packages/voyageai/pyproject.toml new file mode 100644 index 00000000000..5e164bf320a --- /dev/null +++ b/python/packages/voyageai/pyproject.toml @@ -0,0 +1,68 @@ +[project] +name = "agent-framework-voyageai" +description = "Voyage AI integration for Microsoft Agent Framework." +authors = [{ name = "Microsoft", email = "af-support@microsoft.com" }] +readme = "README.md" +requires-python = ">=3.11" +version = "1.0.0a261113" +license-files = ["LICENSE"] +urls.homepage = "https://aka.ms/agent-framework" +urls.source = "https://github.com/microsoft/agent-framework/tree/main/python" +urls.issues = "https://github.com/microsoft/agent-framework/issues" +classifiers = [ + "License :: OSI Approved :: MIT License", + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", + "Typing :: Typed", +] +dependencies = [ + "agent-framework-core>=1.26.0,<2", + "voyageai>=0.6.0,<0.7", +] + +[tool.ruff] +extend = "../../pyproject.toml" + +[tool.ruff.lint.per-file-ignores] +"samples/**" = ["D", "INP", "TD", "ERA001", "RUF", "S", "T201", "CPY"] +"tests/**" = ["D", "INP", "TD", "ERA001", "RUF", "S"] + +[tool.pyright] +extends = "../../pyproject.toml" +include = ["agent_framework_voyageai"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +addopts = "-ra -q -r fEX" +asyncio_mode = "auto" +asyncio_default_fixture_loop_scope = "function" +markers = [ + "integration: marks tests as integration tests that require external services", + "flaky: marks tests as flaky and eligible for automatic retry", +] +timeout = 60 + +[tool.coverage.run] +omit = ["**/__init__.py"] + +[tool.poe] +executor.type = "uv" +include = "../../shared_tasks.toml" + +[tool.poe.tasks.test] +help = "Run Voyage AI connector unit tests." +cmd = 'pytest -m "not integration" --cov=agent_framework_voyageai --cov-report=term-missing:skip-covered tests' + +[tool.poe.tasks.test-integration] +help = "Run tests against the Voyage AI service using VOYAGE_API_KEY." +cmd = 'pytest -m integration tests' + +[build-system] +requires = ["flit-core>=3.11,<5.0"] +build-backend = "flit_core.buildapi" diff --git a/python/packages/voyageai/samples/README.md b/python/packages/voyageai/samples/README.md new file mode 100644 index 00000000000..b7ba18a87b4 --- /dev/null +++ b/python/packages/voyageai/samples/README.md @@ -0,0 +1,8 @@ +# Voyage AI samples + +`voyage_embeddings.py` generates single and batched embeddings, then indexes two notes in an +in-memory collection and retrieves the closer one. Stored notes are embedded with +`input_type="document"` and the search text with `input_type="query"`. + +Set `VOYAGE_API_KEY` to your Voyage AI API key. See the [package README](../README.md) for the +other settings and the supported models. diff --git a/python/packages/voyageai/samples/voyage_embeddings.py b/python/packages/voyageai/samples/voyage_embeddings.py new file mode 100644 index 00000000000..7cdb3fcb173 --- /dev/null +++ b/python/packages/voyageai/samples/voyage_embeddings.py @@ -0,0 +1,69 @@ +# Copyright (c) Microsoft. All rights reserved. + +import asyncio +from dataclasses import dataclass +from typing import Annotated + +from agent_framework import InMemoryCollection, VectorStoreField, vectorstoremodel + +from agent_framework_voyageai import VoyageAIEmbeddingClient + +"""Generate embeddings with Voyage AI, then retrieve with them. + +Set ``VOYAGE_API_KEY`` to your Voyage AI API key, then run from python/: + uv run --package agent-framework-voyageai python packages/voyageai/samples/voyage_embeddings.py + +The model is always named explicitly; there is no default. +""" + + +@vectorstoremodel(collection_name="voyage-notes") +@dataclass +class Note: + id: Annotated[str, VectorStoreField("key")] + text: Annotated[str, VectorStoreField("data")] + vector: Annotated[str | list[float] | None, VectorStoreField("vector", dimensions=1024)] = None + + +async def main() -> None: + """Generate embeddings with Voyage AI.""" + # The API key is read from VOYAGE_API_KEY. + client = VoyageAIEmbeddingClient(model="voyage-4") + + # 1. Generate a single embedding. + result = await client.get_embeddings(["Hello, world!"]) + print(f"Single embedding dimensions: {result[0].dimensions}") + print(f"Model: {result[0].model}") + print(f"Usage: {result.usage}") + print() + + # 2. Generate smaller embeddings for several inputs (Matryoshka dimensions). + texts = [ + "The weather is sunny today.", + "It is raining outside.", + "Machine learning is fascinating.", + ] + result = await client.get_embeddings(texts, options={"dimensions": 256}) + print(f"Batch of {len(result)} embeddings, each with {result[0].dimensions} dimensions") + print() + + # 3. Retrieval: embed stored documents as documents and search text as a query. + # The vector store forwards input_type to each embedding request. + collection: InMemoryCollection[str, Note] = InMemoryCollection(Note, embedding_generator=client) + await collection.ensure_collection_exists() + sources = { + "one": "Voyage AI provides embedding and reranking models for retrieval.", + "two": "The weather is sunny today.", + } + # The vector field holds the text to embed until the collection replaces it with the vector. + notes = [Note(note_id, text, text) for note_id, text in sources.items()] + await collection.upsert(notes, embeddings_options={"input_type": "document"}) + results = await collection.search( + "Which models help with retrieval?", embeddings_options={"input_type": "query"}, top=1 + ) + async for item in results: + print(f"Best match: {item['record'].text}") + + +if __name__ == "__main__": + asyncio.run(main()) diff --git a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py new file mode 100644 index 00000000000..41bff7f5d46 --- /dev/null +++ b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py @@ -0,0 +1,266 @@ +# Copyright (c) Microsoft. All rights reserved. + +import os +from types import SimpleNamespace +from typing import Any, cast +from unittest.mock import AsyncMock + +import pytest +import voyageai.error +from agent_framework.exceptions import ( + IntegrationException, + IntegrationInvalidAuthException, + IntegrationInvalidRequestException, + IntegrationInvalidResponseException, + SettingNotFoundError, +) +from voyageai.client_async import AsyncClient + +from agent_framework_voyageai import RawVoyageAIEmbeddingClient, VoyageAIEmbeddingClient +from agent_framework_voyageai._embedding_client import MAX_BATCH_SIZE # pyright: ignore[reportPrivateUsage] + +# region: helpers + + +@pytest.fixture(autouse=True) +def _clear_voyage_env(request: pytest.FixtureRequest, monkeypatch: pytest.MonkeyPatch) -> None: + """Keep a developer's real Voyage AI settings out of the unit tests. + + Integration tests keep the environment, since it holds their credentials. + """ + if request.node.get_closest_marker("integration"): + return + for name in ("VOYAGE_API_KEY", "VOYAGE_EMBEDDING_MODEL", "VOYAGE_BASE_URL"): + monkeypatch.delenv(name, raising=False) + + +def make_response(vectors: list[list[float]], total_tokens: int | None = 4) -> Any: + """Shape of ``voyageai.object.EmbeddingsObject``; ``None`` leaves the token count off.""" + response = SimpleNamespace(embeddings=vectors) + if total_tokens is not None: + response.total_tokens = total_tokens + return response + + +def make_client(*responses: Any, model: str | None = "voyage-4") -> tuple[VoyageAIEmbeddingClient, AsyncMock]: + sdk = AsyncMock(spec=AsyncClient) + sdk.embed.side_effect = list(responses) + return VoyageAIEmbeddingClient(model=model, client=sdk), sdk + + +# endregion + +# region: the model is always explicit + + +def test_model_is_required() -> None: + with pytest.raises(SettingNotFoundError, match="embedding_model"): + VoyageAIEmbeddingClient(api_key="key") + + +@pytest.mark.parametrize("model", ["mistral-embed", "text-embedding-3-small", "voyage-4-nano", "voyage-99"]) +def test_unknown_or_other_provider_model_is_rejected_on_construction(model: str) -> None: + with pytest.raises(ValueError, match="Unsupported Voyage AI embedding model"): + VoyageAIEmbeddingClient(model=model, api_key="key") + + +async def test_per_call_model_is_validated_before_any_request() -> None: + client, sdk = make_client() + with pytest.raises(ValueError, match="Unsupported Voyage AI embedding model"): + await client.get_embeddings(["a"], options={"model": "rerank-3"}) + sdk.embed.assert_not_awaited() + + +def test_model_can_come_from_the_environment(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setenv("VOYAGE_API_KEY", "key") + monkeypatch.setenv("VOYAGE_EMBEDDING_MODEL", "voyage-3.5-lite") + assert RawVoyageAIEmbeddingClient().model == "voyage-3.5-lite" + + +def test_api_key_is_required_without_a_client() -> None: + with pytest.raises(ValueError, match="VOYAGE_API_KEY"): + VoyageAIEmbeddingClient(model="voyage-4") + + +def test_client_must_be_a_voyage_client() -> None: + with pytest.raises(TypeError, match="AsyncClient"): + VoyageAIEmbeddingClient(model="voyage-4", client=cast(Any, object())) + + +# endregion + +# region: request constraints + + +@pytest.mark.parametrize( + ("model", "dimensions"), + [("voyage-law-2", 512), ("voyage-finance-2", 2048), ("voyage-4", 100), ("voyage-code-3", 4096)], +) +async def test_unsupported_dimensions_are_rejected_before_any_request(model: str, dimensions: int) -> None: + client, sdk = make_client(model=model) + with pytest.raises(ValueError, match="supports dimensions"): + await client.get_embeddings(["a"], options={"dimensions": dimensions}) + sdk.embed.assert_not_awaited() + + +@pytest.mark.parametrize("input_type", ["passage", "search_query", ""]) +async def test_input_type_must_be_document_or_query(input_type: str) -> None: + client, sdk = make_client() + with pytest.raises(ValueError, match="input_type"): + await client.get_embeddings(["a"], options=cast(Any, {"input_type": input_type})) + sdk.embed.assert_not_awaited() + + +async def test_optional_parameters_are_sent_only_when_requested() -> None: + client, sdk = make_client(make_response([[0.1, 0.2]]), make_response([[0.1] * 256])) + + await client.get_embeddings(["a"]) + assert sdk.embed.await_args_list[0].kwargs == {"model": "voyage-4"} + + await client.get_embeddings(["a"], options={"dimensions": 256, "input_type": "query", "truncation": False}) + assert sdk.embed.await_args_list[1].kwargs == { + "model": "voyage-4", + "input_type": "query", + "truncation": False, + "output_dimension": 256, + } + + +async def test_truncation_must_be_a_bool() -> None: + client, sdk = make_client() + with pytest.raises(ValueError, match="truncation"): + await client.get_embeddings(["a"], options=cast(Any, {"truncation": "yes"})) + sdk.embed.assert_not_awaited() + + +async def test_empty_input_sends_nothing() -> None: + client, sdk = make_client() + assert list(await client.get_embeddings([])) == [] + sdk.embed.assert_not_awaited() + + +async def test_inputs_over_the_request_limit_are_split_in_order_and_usage_is_summed() -> None: + values = [str(i) for i in range(MAX_BATCH_SIZE + 1)] + client, sdk = make_client( + make_response([[float(i)] for i in range(MAX_BATCH_SIZE)], total_tokens=10), + make_response([[float(MAX_BATCH_SIZE)]], total_tokens=3), + ) + + result = await client.get_embeddings(values) + + assert [len(call.args[0]) for call in sdk.embed.await_args_list] == [MAX_BATCH_SIZE, 1] + assert [embedding.vector[0] for embedding in result] == [float(i) for i in range(MAX_BATCH_SIZE + 1)] + assert result.usage == {"input_token_count": 13, "total_token_count": 13} + + +# endregion + +# region: the response is checked, and billing fails closed + + +async def test_missing_token_count_fails_instead_of_reporting_zero_tokens() -> None: + client, _ = make_client(make_response([[0.1, 0.2]], total_tokens=None)) + with pytest.raises(IntegrationInvalidResponseException, match="token count"): + await client.get_embeddings(["a"]) + + +@pytest.mark.parametrize("total_tokens", [-1, "4", True, 1.5]) +async def test_invalid_token_count_fails(total_tokens: Any) -> None: + client, _ = make_client(make_response([[0.1, 0.2]], total_tokens=total_tokens)) + with pytest.raises(IntegrationInvalidResponseException, match="token count"): + await client.get_embeddings(["a"]) + + +async def test_embedding_count_must_match_input_count() -> None: + client, _ = make_client(make_response([[0.1, 0.2]])) + with pytest.raises(IntegrationInvalidResponseException, match="expected 2 embeddings"): + await client.get_embeddings(["a", "b"]) + + +async def test_embedding_length_must_match_requested_dimensions() -> None: + client, _ = make_client(make_response([[0.1, 0.2]])) + with pytest.raises(IntegrationInvalidResponseException, match="unexpected embedding length"): + await client.get_embeddings(["a"], options={"dimensions": 256}) + + +# endregion + +# region: error mapping + + +def _error(cls: type[voyageai.error.VoyageError], status: int | None, detail: str) -> voyageai.error.VoyageError: + return cls(detail, http_body=f'{{"detail": "{detail}"}}', http_status=status, json_body={"detail": detail}) + + +@pytest.mark.parametrize( + ("error", "expected"), + [ + ( + _error(voyageai.error.AuthenticationError, 401, "Provided API key is invalid."), + IntegrationInvalidAuthException, + ), + (_error(voyageai.error.APIError, 403, "Forbidden."), IntegrationInvalidAuthException), + (_error(voyageai.error.InvalidRequestError, 400, "bad input"), IntegrationInvalidRequestException), + (_error(voyageai.error.MalformedRequestError, 422, "malformed"), IntegrationInvalidRequestException), + (_error(voyageai.error.RateLimitError, 429, "slow down"), IntegrationException), + (_error(voyageai.error.ServerError, 500, "boom"), IntegrationException), + (_error(voyageai.error.APIConnectionError, None, "no route"), IntegrationException), + ], +) +async def test_sdk_errors_map_to_framework_exceptions_with_the_detail( + error: voyageai.error.VoyageError, expected: type[Exception] +) -> None: + client, sdk = make_client() + sdk.embed.side_effect = error + + with pytest.raises(expected) as exc_info: + await client.get_embeddings(["a"]) + + assert type(exc_info.value) is expected + assert str(error.user_message) in str(exc_info.value) + + +async def test_detail_comes_from_the_error_body() -> None: + client, sdk = make_client() + error = voyageai.error.InvalidRequestError( + "sdk message", http_body="{}", http_status=400, json_body={"detail": "Value 'x' is not valid."} + ) + sdk.embed.side_effect = error + + with pytest.raises(IntegrationInvalidRequestException, match="Value 'x' is not valid."): + await client.get_embeddings(["a"]) + + +async def test_error_without_a_detail_body_falls_back_to_the_sdk_message() -> None: + client, sdk = make_client() + sdk.embed.side_effect = voyageai.error.InvalidRequestError("sdk message", http_status=400) + with pytest.raises(IntegrationInvalidRequestException, match="sdk message"): + await client.get_embeddings(["a"]) + + +async def test_unexpected_sdk_failure_is_wrapped() -> None: + client, sdk = make_client() + sdk.embed.side_effect = RuntimeError("connection reset") + with pytest.raises(IntegrationException, match="connection reset"): + await client.get_embeddings(["a"]) + + +# endregion + +# region: integration + + +@pytest.mark.integration +@pytest.mark.skipif(not os.environ.get("VOYAGE_API_KEY"), reason="VOYAGE_API_KEY is not set") +async def test_integration_embeds_with_requested_dimensions() -> None: + client = VoyageAIEmbeddingClient(model="voyage-4-lite") + + result = await client.get_embeddings(["hello"], options={"dimensions": 256, "input_type": "query"}) + + assert len(result) == 1 + assert result[0].dimensions == 256 + assert result.usage is not None + assert (result.usage.get("total_token_count") or 0) >= 0 + + +# endregion diff --git a/python/pyproject.toml b/python/pyproject.toml index 5d51cc3ce42..3808ab5ec92 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -119,6 +119,7 @@ agent-framework-redis = { workspace = true } agent-framework-azure-contentunderstanding = { workspace = true } agent-framework-tools = { workspace = true } agent-framework-typesafe = { workspace = true } +agent-framework-voyageai = { workspace = true } [tool.ruff] line-length = 120 diff --git a/python/scripts/prepare_release.py b/python/scripts/prepare_release.py index 1769ce83418..f2ab44579fe 100644 --- a/python/scripts/prepare_release.py +++ b/python/scripts/prepare_release.py @@ -70,6 +70,7 @@ "agent-framework-sql-server": ("agent_framework_sql_server:SqlServerStore",), "agent-framework-tools": ("agent_framework.tools:LocalShellTool",), "agent-framework-typesafe": ("agent_framework_typesafe:TypeSafeChatClient",), + "agent-framework-voyageai": ("agent_framework_voyageai:VoyageAIEmbeddingClient",), } diff --git a/python/uv.lock b/python/uv.lock index a78dce52ea0..c0954650a85 100644 --- a/python/uv.lock +++ b/python/uv.lock @@ -67,6 +67,7 @@ members = [ "agent-framework-sql-server", "agent-framework-tools", "agent-framework-typesafe", + "agent-framework-voyageai", ] overrides = [ { name = "certifi", specifier = ">=2026.10.19" }, @@ -1224,6 +1225,21 @@ requires-dist = [ { name = "typesafe-sdk", specifier = ">=0.7.1,<0.8.0" }, ] +[[package]] +name = "agent-framework-voyageai" +version = "1.0.0a261113" +source = { editable = "packages/voyageai" } +dependencies = [ + { name = "agent-framework-core" }, + { name = "voyageai" }, +] + +[package.metadata] +requires-dist = [ + { name = "agent-framework-core", editable = "packages/core" }, + { name = "voyageai", specifier = ">=0.6.0,<0.7" }, +] + [[package]] name = "agent-hooks-sdk" version = "0.1.0b3" @@ -1370,6 +1386,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/68/30/173960c42b05a6c59f7558e4b12a4b0d9ba376cf6aa9bde7f9e08a30ca8d/aiohttp-3.14.5-py3-none-any.whl", hash = "sha256:efc21a454892828368b11c2c780de0ff8bc991f73f6b99c6b66e56205470929b", size = 279517, upload-time = "2026-10-11T01:05:08.523Z" }, ] +[[package]] +name = "aiolimiter" +version = "1.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/26/60/0d16f90083a2f0ae9421d11ad98287f7942414f091ae9ad318389a764f85/aiolimiter-1.3.0.tar.gz", hash = "sha256:7343008c2228e89def7d4ce29ab98ee98822bf5db69018c09c90088929f7c104", size = 10051, upload-time = "2026-09-07T14:40:27.876Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/56/d8/9237b1d29e561bd37ffe9487ea1a4551d2df2902d9b79a6ea6b18e4fcc73/aiolimiter-1.3.0-py3-none-any.whl", hash = "sha256:c0c16c377049fb2e40cc3373770e29c063de32aa25d84e5db168c854da6462b7", size = 6955, upload-time = "2026-09-07T14:40:26.753Z" }, +] + [[package]] name = "aiologic" version = "0.17.1" @@ -2367,6 +2392,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/10/19/5b9abfa67a29b862e509911eef40f4901f78aa48de32ad1f939b5c2b165e/fastapi-0.162.5-py3-none-any.whl", hash = "sha256:5303c67415fde762889ca337db79d27b755b8bd09cef314fa7a4340bb30bfd2b", size = 151782, upload-time = "2026-11-11T22:29:51.47Z" }, ] +[[package]] +name = "filelock" +version = "4.2.10" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a1/cf/05bcdacabdc0aec7dc8e19d76281bd82325df62dae3b6430e9ba57397689/filelock-4.2.10.tar.gz", hash = "sha256:fcc3c0cb8bfe7f4b3bb0e231c04b15dbad068cb3c2515f343d8fde4dce93bd5d", size = 670595, upload-time = "2026-11-09T18:58:00.54Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ef/90/5d0096a325aa0f83ba7a3968bfb485b67e32c947bdf9cd0fcb4b485be718/filelock-4.2.10-py3-none-any.whl", hash = "sha256:9479aaeb4db20b5a53e3da28493edd24720b66b8a0b84030aa56ccdf243d6857", size = 218040, upload-time = "2026-11-09T18:57:59.088Z" }, +] + [[package]] name = "filetype" version = "1.2.0" @@ -2510,6 +2544,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/9a/9a/e35b4a917281c0b8419d4207f4334c8e8c5dbf4f3f5f9ada73958d937dcc/frozenlist-1.8.0-py3-none-any.whl", hash = "sha256:0c18a16eab41e82c295618a77502e17b195883241c563b00f0aa5106fc4eaa0d", size = 13409, upload-time = "2025-10-06T05:38:16.721Z" }, ] +[[package]] +name = "fsspec" +version = "2026.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/77/cd/9be253869fc42e764de7f3dedd6969af7d44ff9c3375214a3442a6f3fc08/fsspec-2026.9.0.tar.gz", hash = "sha256:0f08147951c8cb31d844c3547d631053b127863b60be04cf06e121333ee0e2fe", size = 333545, upload-time = "2026-09-18T17:50:42.825Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6c/c0/a98505f18594f1bce828bb159cec0fcf9860562f1a2c85913409fc8f3d9e/fsspec-2026.9.0-py3-none-any.whl", hash = "sha256:8dd6e646e99ea382bd85f97a45e6b526a442d79423a7dc673f1e2756d05fcb5f", size = 221738, upload-time = "2026-09-18T17:50:41.341Z" }, +] + [[package]] name = "furl" version = "2.1.4" @@ -2695,6 +2738,30 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/7e/22/e85faf23bd72a92d1921e37d674ca56eb298a3c8be31fdecef0ff2b3aaac/h2-4.4.1-py3-none-any.whl", hash = "sha256:0e25f1462b23c9cb82d9eb02e28bc706dac2a68cb457c6a0d74d63c8a2a5d0e6", size = 62636, upload-time = "2026-08-03T11:44:59.164Z" }, ] +[[package]] +name = "hf-xet" +version = "1.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2f/18/d91c20f815df6cc496a5d0ad8db6d274dad5c0cfcd59babfa2440a9aba44/hf_xet-1.8.0.tar.gz", hash = "sha256:10ed23b51dacf7917d64f335c25048deb470efa755e9989b218fc0531386138e", size = 1013014, upload-time = "2026-10-30T10:04:33.741Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/18/db7ebc58820d82fd5506aa405a75611e7a4398f573dc436f7387603bf63d/hf_xet-1.8.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:c74e3751cbcdae9222c5170e8d788e83201a03dc5e5f4308a20f17a5b6023b56", size = 3883873, upload-time = "2026-10-30T10:04:03.24Z" }, + { url = "https://files.pythonhosted.org/packages/37/bd/6c9ed89aafbeb4a7ee0d76d6b7b9365221e3e7ee47958aeecdc2c60a0511/hf_xet-1.8.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:56735c2d4f416d7473fc986586b26a8756e067832ca4b7fdaad32a0d6f2ce740", size = 3594510, upload-time = "2026-10-30T10:04:05.364Z" }, + { url = "https://files.pythonhosted.org/packages/0e/1f/c26154b3a053b637c0984db0db9fdacbbfc257bdc2e95e9bc0782b745b0c/hf_xet-1.8.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3ecfe2934448cca55a4c42732b60f985266aecb241905945219b3d388aceb7ba", size = 4281780, upload-time = "2026-10-30T10:04:07.35Z" }, + { url = "https://files.pythonhosted.org/packages/e3/9e/d84c31f8e3acc286c9c6a4fd85f7f332e3db40636595f0de5ad776b69beb/hf_xet-1.8.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:7edeb21c5d381903ee5f4857fc746fa7b52a4b374035e8811ecfb67ee27add0c", size = 4060223, upload-time = "2026-10-30T10:04:09.029Z" }, + { url = "https://files.pythonhosted.org/packages/a4/70/c142e4ad8a679ff6ffe40964a9d017fa0211aabca9ca4d3d547c3a2fc165/hf_xet-1.8.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:07a06d7481702616726c2d8578cfb00052a5b3f21beed6a674592bc837a10330", size = 4263619, upload-time = "2026-10-30T10:04:11.085Z" }, + { url = "https://files.pythonhosted.org/packages/9d/08/92e03e3ac4eaeab046359093c447c03c8c30b577c2b1e1687dc747654f1c/hf_xet-1.8.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f42940869572dc2b05dfe06f4cc398c6291503e086ddc4eddfb7a6ab9409ad01", size = 4493381, upload-time = "2026-10-30T10:04:13.022Z" }, + { url = "https://files.pythonhosted.org/packages/61/63/a512b2906d0f92b5d325f58169d1fd8c3202a9ee61bd8405ec78c67e5315/hf_xet-1.8.0-cp314-cp314t-win_amd64.whl", hash = "sha256:23c262e9f5e137b18dadbce60becfeea84156b0d43119c320bffe260d32cd2fa", size = 3901344, upload-time = "2026-10-30T10:04:15.051Z" }, + { url = "https://files.pythonhosted.org/packages/2d/5e/b453f82690cb36f176c4b01e64d6d32757fabbf34dbb9bcbdf747e429a79/hf_xet-1.8.0-cp314-cp314t-win_arm64.whl", hash = "sha256:62b056aedb89ac809f78940baf465fe553b70c8b25ee56890fbab3039fffec1b", size = 3731681, upload-time = "2026-10-30T10:04:16.855Z" }, + { url = "https://files.pythonhosted.org/packages/97/74/d89d5235524bc14d8519e12ca8bc5204f45009ae83d63a410f52c29eb4a8/hf_xet-1.8.0-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:e00d8f60170cd3dd55d98306e41dbaf28b27ff1bcfefbfa84279d197221be83e", size = 3875002, upload-time = "2026-10-30T10:04:18.958Z" }, + { url = "https://files.pythonhosted.org/packages/d4/f2/ef25e2085e92dcaeaa675331e443923aed2006f6fe2d984e15d8b8d40766/hf_xet-1.8.0-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:3e8934784425781f0f779b91044df441f3a7af4dab47375d7e3aeaecbb8eecb4", size = 3600947, upload-time = "2026-10-30T10:04:20.906Z" }, + { url = "https://files.pythonhosted.org/packages/f8/1e/1e8ecc05ef034e9a95c18ed32d2ec07905a7cd2ca611a9d88e25ee1f4850/hf_xet-1.8.0-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:29dab7c904cd1914a0439c6e1306c12c7497c8bd32290fbe563ebf51ca4b6d6d", size = 4292483, upload-time = "2026-10-30T10:04:22.875Z" }, + { url = "https://files.pythonhosted.org/packages/35/c4/127a1548df019ea4c80f06e685f263e146075143335a02e78a3c41dbc4eb/hf_xet-1.8.0-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:8800e3444770f2c630b361bc6d5c6ebb770b7830646cf632fbb79d0e5bbc9e7f", size = 4069340, upload-time = "2026-10-30T10:04:24.664Z" }, + { url = "https://files.pythonhosted.org/packages/a5/d5/281cd82736c3e181e597588589d2204d3a5c388a464d4a2a8c546995bae9/hf_xet-1.8.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:a584a7b3268da62f23c3187cc7201ca01f7b610985a36b1b6119c66bccb0383c", size = 4272344, upload-time = "2026-10-30T10:04:26.519Z" }, + { url = "https://files.pythonhosted.org/packages/48/77/886f09e91a5eadb054ce03b8855323cd2a72f20db76ab4119e0ecda65eef/hf_xet-1.8.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:1ebaf248c9bef8bb0c9d1d8d71db1fdf0cac14f922cc7a936a81adbf12eb5f01", size = 4500689, upload-time = "2026-10-30T10:04:28.394Z" }, + { url = "https://files.pythonhosted.org/packages/97/4d/2c76a992b370ff77d0b5219275779f8c9a7dabb8ee649deb265dfed84d0f/hf_xet-1.8.0-cp38-abi3-win_amd64.whl", hash = "sha256:92188598dedc1e1f5609bd718d4db8687a6c89915553912571e2f587892eecec", size = 3911559, upload-time = "2026-10-30T10:04:30.165Z" }, + { url = "https://files.pythonhosted.org/packages/87/91/fdb1454a43eff8011047d176ada2f0fb4926cf3d74b87357ff35793f6d98/hf_xet-1.8.0-cp38-abi3-win_arm64.whl", hash = "sha256:42b66fdc688eaa4ff3eb77dc9275e5a0f1258ecc9fdd083ddaf43bb49bec925b", size = 3738458, upload-time = "2026-10-30T10:04:31.882Z" }, +] + [[package]] name = "hpack" version = "4.2.0" @@ -2839,6 +2906,26 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/7b/3d/2e4bc4fd1ef9770871669adb348d612a6e4786b303a23f9935b81c48dd60/httpx2-2.16.0-py3-none-any.whl", hash = "sha256:fd2c5d7909e8d86fe92d53020c310ca0e4e431b838c207c5754b9bbf0308d49a", size = 97880, upload-time = "2026-10-21T07:09:44.01Z" }, ] +[[package]] +name = "huggingface-hub" +version = "2.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "filelock" }, + { name = "fsspec" }, + { name = "hf-xet", marker = "platform_machine == 'AMD64' or platform_machine == 'ARM64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'" }, + { name = "httpx2" }, + { name = "packaging" }, + { name = "pyyaml" }, + { name = "tqdm" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b5/3b/2fcef1eabe52aec90fc8cd253cc154da1d02a446d7bbcdec59b4a51d4be7/huggingface_hub-2.4.0.tar.gz", hash = "sha256:13a6158b9e3393d9d3f248ce99074d50c2a0a1449fb9d8e2f710751e2084c188", size = 1066194, upload-time = "2026-10-29T15:30:12.321Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d4/55/ff47f1b082ecf5f43f4bc1e3b932d68eead171dabbbd1a92666c686301d7/huggingface_hub-2.4.0-py3-none-any.whl", hash = "sha256:42ecfd93ede47bdd333daebbf66a32d7bfe2e18752754fe4d2d4f98a0179d801", size = 857021, upload-time = "2026-10-29T15:30:10.421Z" }, +] + [[package]] name = "hypercorn" version = "0.18.0" @@ -3038,6 +3125,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/94/9e/820c4b086ad01ba7d77369fb8b11470a01fac9b4977f02e18659cf378b6b/json_rpc-1.15.0-py2.py3-none-any.whl", hash = "sha256:4a4668bbbe7116feb4abbd0f54e64a4adcf4b8f648f19ffa0848ad0f6606a9bf", size = 39450, upload-time = "2023-06-11T09:45:47.136Z" }, ] +[[package]] +name = "jsonpatch" +version = "1.47" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jsonpointer" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/8f/13/43ae689f9340dc7339dc7f5a3b1772edcd48fb1eb62fd5d801a2aa09d382/jsonpatch-1.47.tar.gz", hash = "sha256:5ed650b7517789e0f43428aa7b09442c0b90de0a0fd17a53fd0ebf55205c601e", size = 80423, upload-time = "2026-11-11T10:13:30.696Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5d/e9/a09b859f5fbd7a192ed40f9098fb746607ab46eaacc1eecaea713e4df0de/jsonpatch-1.47-py3-none-any.whl", hash = "sha256:c9ba6de59c481bf2be05041514ecb0d97f994aa645c4e00831805dbe2281811a", size = 25270, upload-time = "2026-11-11T10:13:29.316Z" }, +] + [[package]] name = "jsonpath-ng" version = "1.16.0" @@ -3056,6 +3155,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/55/8a/1270a6803bd821cbfcdda387eaa13cb41a7b1f7b9bd145979b3bfb9d6cb7/jsonpath_python-1.1.6-py3-none-any.whl", hash = "sha256:a1c50afd8d3fbbaf47a4873bc890dcb3c15da96f5c020327977d844d8731a2d4", size = 14453, upload-time = "2026-05-07T01:26:33.306Z" }, ] +[[package]] +name = "jsonpointer" +version = "3.12" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/46/cb/2c3112a061a718d93866c2555dad1e9d53865e4703d0f3be550d252b277b/jsonpointer-3.12.tar.gz", hash = "sha256:7a3dcc11b64053eaa9c549e85e413f8d40a075215f793a331bed9182a14251ae", size = 23217, upload-time = "2026-11-11T09:34:22.894Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/72/07/3c953fceee478798f6bdf7b39e0da0793f437e8b5f9e9e1360fba32fb25c/jsonpointer-3.12-py3-none-any.whl", hash = "sha256:89f391335ee2719ae72149e1bf30a4d4c7c5d92f15a3f53faa8d20cc7c6c7f19", size = 10562, upload-time = "2026-11-11T09:34:21.711Z" }, +] + [[package]] name = "jsonschema" version = "4.26.0" @@ -3083,6 +3191,77 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/41/45/1a4ed80516f02155c51f51e8cedb3c1902296743db0bbc66608a0db2814f/jsonschema_specifications-2025.9.1-py3-none-any.whl", hash = "sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe", size = 18437, upload-time = "2025-09-08T01:34:57.871Z" }, ] +[[package]] +name = "langchain-core" +version = "1.8.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "httpx" }, + { name = "jsonpatch" }, + { name = "langchain-protocol" }, + { name = "langsmith" }, + { name = "packaging" }, + { name = "pydantic" }, + { name = "pyyaml" }, + { name = "tenacity" }, + { name = "typing-extensions" }, + { name = "uuid-utils" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/de/1e/ce7b06cecfc41a8f179571f9e228ae9d2f7d090492d2c312322fd4f4380f/langchain_core-1.8.0.tar.gz", hash = "sha256:8c571299ae83acec89599cbbb6890018f54225da336a6e315c9e882dd5da6502", size = 1016937, upload-time = "2026-11-11T15:21:53.683Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2f/1a/39e377548fdbe63f5956ed88a53c6f22070f4cf5f484ccdfebad9538503f/langchain_core-1.8.0-py3-none-any.whl", hash = "sha256:89732f9e7d311de9913ba22caf921c72520145a829f05ec1d9c85013e904213c", size = 587077, upload-time = "2026-11-11T15:21:52.351Z" }, +] + +[[package]] +name = "langchain-protocol" +version = "0.0.21" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/be/db/7f9195371c824e706231365b4c6c85573b12c4375286e7471d6a488e8091/langchain_protocol-0.0.21.tar.gz", hash = "sha256:04b3e80852233a8db39b39d3ad2438d892531dc0ecd41459e857a139ee0e601c", size = 6344, upload-time = "2026-11-05T16:16:47.078Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3f/f6/25232abfce5cc696c21f7947e6ae11cc6b124e5099783408ff8552c545a3/langchain_protocol-0.0.21-py3-none-any.whl", hash = "sha256:7f42f9eae7c08bb9d74850057da50b5483970a3df91b7a8a5aadec6a3dfa4d12", size = 7418, upload-time = "2026-11-05T16:16:45.444Z" }, +] + +[[package]] +name = "langchain-text-splitters" +version = "1.1.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "langchain-core" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/85/22/d401fffe8d3f1339f6ac880e5d637db73933efa95635304849b2d44ab0fe/langchain_text_splitters-1.1.3.tar.gz", hash = "sha256:929b6c76f99d611a5b1d8f5591ef302909b86a436ceb3217034d24e4757868d8", size = 308295, upload-time = "2026-10-02T15:46:33.173Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c7/51/2880d2e88cce13c1180178f7e8dc796c2f45b2dc09cc09ed407d116c08cc/langchain_text_splitters-1.1.3-py3-none-any.whl", hash = "sha256:50edeb318b3be6a6308dddd7d616ab82823a9ccbea59a9c14c58a7b91df60295", size = 38217, upload-time = "2026-10-02T15:46:32.271Z" }, +] + +[[package]] +name = "langsmith" +version = "0.14.17" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "distro" }, + { name = "httpx2" }, + { name = "orjson", marker = "platform_python_implementation != 'PyPy'" }, + { name = "packaging" }, + { name = "pydantic" }, + { name = "requests" }, + { name = "requests-toolbelt" }, + { name = "sniffio" }, + { name = "typing-extensions" }, + { name = "uuid-utils" }, + { name = "websockets" }, + { name = "xxhash" }, + { name = "zstandard" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/12/4b/c91526e3038d5d5869fa5dba647215826fb8b2b8a3c042d20581a3e5d735/langsmith-0.14.17.tar.gz", hash = "sha256:53efa2db8293d0a8d60efebe0945c595b635873774b302066ed0a746ddf87562", size = 5106102, upload-time = "2026-11-02T00:58:45.943Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a8/11/4da3faa7fd20c487c4770f14aa2b4247871e787ad305c2ba528fcf0f2bcc/langsmith-0.14.17-py3-none-any.whl", hash = "sha256:0aa2c79936c93c7cea9c55656f05e21cc5da715fecbdbda439d084adc08429be", size = 940828, upload-time = "2026-11-02T00:58:43.727Z" }, +] + [[package]] name = "markdown-it-py" version = "4.3.0" @@ -4408,6 +4587,54 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b2/6c/d8a02ffb24876b5f51fbd781f479fc6525a518553a4196bd0433dae9ff8e/orderedmultidict-1.0.2-py2.py3-none-any.whl", hash = "sha256:ab5044c1dca4226ae4c28524cfc5cc4c939f0b49e978efa46a6ad6468049f79b", size = 11897, upload-time = "2025-11-18T08:00:41.44Z" }, ] +[[package]] +name = "orjson" +version = "3.13.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f2/72/380b97dc45bd162d23afe5194721ef678d9eac7cfaa549fe2873f7f0a518/orjson-3.13.0.tar.gz", hash = "sha256:d1de5eb04485110c5da4c657e49168995d55e076b1ce60f1a042e254f4186c4f", size = 2732604, upload-time = "2026-10-07T14:09:25.719Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ce/a3/0be3b115907fea61ed340639fb0e1562cd18969bad5b3f486f808197aaff/orjson-3.13.0-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:948bad47f2e2e43527f14248364a0e5dee26dd3184691010ec4a1ebeb0fd6771", size = 223146, upload-time = "2026-10-07T14:08:06.474Z" }, + { url = "https://files.pythonhosted.org/packages/9e/f7/665935edb16163f8b764182e29a30cf056947a66893ed032191e5f01eb3d/orjson-3.13.0-cp311-cp311-macosx_15_0_arm64.whl", hash = "sha256:1807c2fa49d393c7ee95fd1ef1b39cbb24aa3ccd81f30b84503ba59407666960", size = 123546, upload-time = "2026-10-07T14:08:08.324Z" }, + { url = "https://files.pythonhosted.org/packages/67/ec/e7cde480c0e212594d17ba2b2bd210c002052e9147fc1a1aeafaabe722fb/orjson-3.13.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:637dbca1fccffe83780e806fbc0f17427c0c59bf822528eb0acc8f0aa9f19acb", size = 113290, upload-time = "2026-10-07T14:08:09.816Z" }, + { url = "https://files.pythonhosted.org/packages/36/59/4455fb11a297af73611dfc437f0f89456220227ed1cb1544a5a0ee9d6c03/orjson-3.13.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:554948becd1110123ef9f6a6e1310fd92b2d07d2cbac6dbf65df3de75702e736", size = 130342, upload-time = "2026-10-07T14:08:11.253Z" }, + { url = "https://files.pythonhosted.org/packages/ca/80/0eec5fbde2e52407646b4cb3118f63175bdcee1e2390c2759dc96e0bc62a/orjson-3.13.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dd9d9a101bd8dbfad112170f009cd155e52bb8c936468821a0d03cbb96c0e426", size = 129138, upload-time = "2026-10-07T14:08:12.814Z" }, + { url = "https://files.pythonhosted.org/packages/cd/cc/c0874f13819ae346d69ca00d074d464710b494abd4442bdebf75ac404a98/orjson-3.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:89bcf2d4bc6c9a7e1763c8cf534f38712e66b76a0fefda7fb7785462f0d635e4", size = 130518, upload-time = "2026-10-07T14:08:14.392Z" }, + { url = "https://files.pythonhosted.org/packages/25/ab/140dd9adff84bf64b862c4fcfe2d055af6014d5ba03a075f95c9addb2ec7/orjson-3.13.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a79cdc4934fe81f593072c94e13da3095e9d41c2deef8f6ff2901794ca1c5042", size = 134924, upload-time = "2026-10-07T14:08:16.09Z" }, + { url = "https://files.pythonhosted.org/packages/08/0a/e8f6deb032b1d98a39043cf99b863d8b9e842e2ffc2d2067d2e2a88c18e4/orjson-3.13.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:50a5202ba388b3850ba24437951727d3aa6d79a21964a30ae8dc6a059a5fd34c", size = 126704, upload-time = "2026-10-07T14:08:17.439Z" }, + { url = "https://files.pythonhosted.org/packages/af/cf/be64b99ff75f7983488390d4ef5df72115119770eed295691c0a715d492a/orjson-3.13.0-cp311-cp311-win_amd64.whl", hash = "sha256:a0377d6962fa431c93ecd78fdea771bb62ec545b24ee0c5d4e32acf2260af259", size = 121287, upload-time = "2026-10-07T14:08:18.843Z" }, + { url = "https://files.pythonhosted.org/packages/ca/ab/1b8ca186baf3420f12db1f2819fcc5f2cae69e4cf051168501726a64c0fa/orjson-3.13.0-cp311-cp311-win_arm64.whl", hash = "sha256:1d84820b2ec4ac975cba482214032de5b0dbdd17046170c98e642ef9c4a4ee4b", size = 126314, upload-time = "2026-10-07T14:08:20.452Z" }, + { url = "https://files.pythonhosted.org/packages/98/17/ed65f84ed5ed6a1e06eb628611b4172e7480fc4ad92594856751a6363cac/orjson-3.13.0-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:fb8644dc6d705e1269ed2842bf4dbe2b4e50d670de503bf79d5cef3a5148a4c7", size = 223063, upload-time = "2026-10-07T14:08:21.979Z" }, + { url = "https://files.pythonhosted.org/packages/6f/4d/9332eb96d2e379384be0f211f543835eebc81f460c9403b84abe1294c431/orjson-3.13.0-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:6ff2a2c67f35202f7d823753d38ad371a9b7fc297567cdfff4420e763cb9f6f8", size = 123364, upload-time = "2026-10-07T14:08:24.026Z" }, + { url = "https://files.pythonhosted.org/packages/b4/06/558456b7da27e974a8c9ea09117b07119f6fa131cd62b8b9ecad9eea94e1/orjson-3.13.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:65c4e0e106ccc7265b488385659117a6805c37d042f737558ecd68aa0c67ad8f", size = 113199, upload-time = "2026-10-07T14:08:25.476Z" }, + { url = "https://files.pythonhosted.org/packages/b7/f2/1187a9c09965620348262ec0f406868f6d7c234b2e9b5ee51020bdde5748/orjson-3.13.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:fbbad6b9b1da43f25c1f5b20cd5a268e028a2fc95d5a8d1ade6059973bc71584", size = 130329, upload-time = "2026-10-07T14:08:26.877Z" }, + { url = "https://files.pythonhosted.org/packages/46/07/5d1a151bc11600434fe799e73abfc6a4d463d02e149a20e47c59d3a985ae/orjson-3.13.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae1d895cf7bbfd50ef34bb63bb727b14514f259f3e3f8dd010783bd38e864c6e", size = 129072, upload-time = "2026-10-07T14:08:28.355Z" }, + { url = "https://files.pythonhosted.org/packages/ea/8c/bb07c368abbf4021c4cd01c12edb526e00090f7f750ff1b88da6e6b6c7a6/orjson-3.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bceadfd314bd238f584fc229a4bbaf0e573597e7a026dec5429fbf29fd66c641", size = 130612, upload-time = "2026-10-07T14:08:30.041Z" }, + { url = "https://files.pythonhosted.org/packages/d2/8d/4b66d19619ed344ac000ffea7c006477d0061d580646e736ef0e203759e8/orjson-3.13.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b74c30e56346aad067937d766846ee74c231d1d18aad3f324e9b9261de3b2d5e", size = 134632, upload-time = "2026-10-07T14:08:31.474Z" }, + { url = "https://files.pythonhosted.org/packages/ea/88/f8221f6593e37eb26ec4706e185b9ac6f38ff0c8f7bad5459844031ffd2d/orjson-3.13.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:4329c19b8a25693f60a77b867c9d2a3ab637b20e36f5b7bea7f5acb492b44b15", size = 126807, upload-time = "2026-10-07T14:08:32.914Z" }, + { url = "https://files.pythonhosted.org/packages/58/9d/a1ca7321eeafd7d72e174cdc388cc96301f41516d863e7b1f64f0a1735be/orjson-3.13.0-cp312-cp312-win_amd64.whl", hash = "sha256:b571236d8393edcd3236e07423f762bfcf571f852aad667a3bce9e7b755e0790", size = 121538, upload-time = "2026-10-07T14:08:34.325Z" }, + { url = "https://files.pythonhosted.org/packages/d0/a0/1f19b4779c910104370932fceb9ed436b47ac077f297db74008062525c04/orjson-3.13.0-cp312-cp312-win_arm64.whl", hash = "sha256:8594956a75223f657e1e68c568c0eeb3dd145f02cd6b78a47fd9a8095dbc4eae", size = 126259, upload-time = "2026-10-07T14:08:35.765Z" }, + { url = "https://files.pythonhosted.org/packages/a9/56/f8ad2546150168858c16915c452b00eecb79597597524d1ad6ae14ad4eab/orjson-3.13.0-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:64e8f345048d988c8b68d3882e5d41028fca1219a9939b32e4a77be34c8ae8e3", size = 222892, upload-time = "2026-10-07T14:08:37.495Z" }, + { url = "https://files.pythonhosted.org/packages/1f/19/725d23160b2471a3f27026c55bb79af34687652d8be8f5f583cee5dcd42f/orjson-3.13.0-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:ded33b972cffdaf4ca0ac917338ab61d2bb10d68987dbcae641c313fbfdbf499", size = 123319, upload-time = "2026-10-07T14:08:38.989Z" }, + { url = "https://files.pythonhosted.org/packages/ac/08/e5d81a00b22c73dfcb60d80da3bd92d5a7684346593536565f184dbae3c9/orjson-3.13.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:45e34deb3437509f4ec9888dd9ee5dc426cfe21be10f1eb4ea3a9e4d33034f9e", size = 113196, upload-time = "2026-10-07T14:08:40.383Z" }, + { url = "https://files.pythonhosted.org/packages/67/78/fda6117c69a43e470b1e9dff38dd8c5f0bc6fd8a47e4d4561ab023039335/orjson-3.13.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:9825b954155b345c4759f24e5f8d652b9aec2261bb5d4e1abe06bba0a1200535", size = 130245, upload-time = "2026-10-07T14:08:41.878Z" }, + { url = "https://files.pythonhosted.org/packages/6d/31/d0cfebd456defb234414795ae7599696bf124843dfe077d0c9ece0c93554/orjson-3.13.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b081f0e7b600ff24513dec4ca75507fa05e904607847e386e8310d5b7b96b6c7", size = 128981, upload-time = "2026-10-07T14:08:43.716Z" }, + { url = "https://files.pythonhosted.org/packages/45/46/f8d83189ff5b7b2ff225a58c5908618cc4e86afe09e65d17a30ac68c9da4/orjson-3.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cbed5f4c4b88d94bcc36115f4c3bb3aa25da1563a5c3328aa3acebce2b083040", size = 130370, upload-time = "2026-10-07T14:08:45.132Z" }, + { url = "https://files.pythonhosted.org/packages/e6/6a/d6344c305003ea826b3fa0482645a897a3cd6d477ed74e1fe15d3322cb23/orjson-3.13.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e9b61676116f755126b90e740a9cff36b91562f47ec330056cc88cc3b9f02f4b", size = 134595, upload-time = "2026-10-07T14:08:46.63Z" }, + { url = "https://files.pythonhosted.org/packages/9f/52/d73fa44f88d53e02d10de1cf77c16ed13204ff5bca47e1692da6b406619c/orjson-3.13.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3ef75ed7e81dae34a3649f82df52cd85f9ac839a7d6ec78ab355b33b3b27ef7f", size = 126513, upload-time = "2026-10-07T14:08:48.111Z" }, + { url = "https://files.pythonhosted.org/packages/fb/f8/bcfc50b4ab851c4f9c0ee62f52bf3b28f0bcd0d9fe08e0ad98d4585148db/orjson-3.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:4ee06e53b998c71ce3eb93b86222912fdd9dcced685ac64d4525d36fac338ea4", size = 121371, upload-time = "2026-10-07T14:08:49.549Z" }, + { url = "https://files.pythonhosted.org/packages/7b/7a/d6927845712ec2b1e89263cd12d7203531db185dbad67f914226f2fca156/orjson-3.13.0-cp313-cp313-win_arm64.whl", hash = "sha256:89efecad02515df7f318d0613b5dfd6d2a1acd323a2b8294712789a715945525", size = 126134, upload-time = "2026-10-07T14:08:51.118Z" }, + { url = "https://files.pythonhosted.org/packages/f0/10/98b5a3cdc086abf78d8cd20bb0cba124485d4b6a745722197bd209d967a5/orjson-3.13.0-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:a7bfc7db961c7d96cb75889dc6a1e4ae1e91d87ee61da564f582bd742b8dfeef", size = 222889, upload-time = "2026-10-07T14:08:52.673Z" }, + { url = "https://files.pythonhosted.org/packages/22/7c/7728c5280ab5202f4891ff4b0b96e2e1dbd5520dfee53edf083c54409a64/orjson-3.13.0-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:91d933e668ff0ffe164d7c2daec36beba6d1ce7fadb71538fbe142a71f8a1e6e", size = 123312, upload-time = "2026-10-07T14:08:54.25Z" }, + { url = "https://files.pythonhosted.org/packages/a9/a5/d9a44321e6f66c0f64b45be587395f87ad94cb447bce7d92286f6b97d46a/orjson-3.13.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:6c8bfe728b81b0fd58a3c7f3f9c5a113f87f2992c9948e0f28707aafd737c0bc", size = 113146, upload-time = "2026-10-07T14:08:55.803Z" }, + { url = "https://files.pythonhosted.org/packages/80/da/d95c80d413f288feb471e16d82e5c1512d2439728e3bac917d058c31f098/orjson-3.13.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:e8e05549f3b30f9d8a8e28c5aba11cc2a4b90b90961ec685ca58444b0815fc09", size = 130348, upload-time = "2026-10-07T14:08:57.31Z" }, + { url = "https://files.pythonhosted.org/packages/04/0f/36fdfb32ad1852997bac00e3ce52c7888d8a1094ba9dcdcbb22fcc6b953a/orjson-3.13.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c749ab3ac30b5ab1ffb7677f8b92eacfdfdc5260210baa398f845bc3714c05d8", size = 128971, upload-time = "2026-10-07T14:08:58.843Z" }, + { url = "https://files.pythonhosted.org/packages/25/de/a82acf93bdcca0c79ccff25ef0c6868d24ccbc2e72f21fae39c8cabce4f1/orjson-3.13.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58a9619d88f8818d9ab6b39d70d203789457ba13c1ed5d274f33ce9ae7e81a36", size = 130359, upload-time = "2026-10-07T14:09:00.412Z" }, + { url = "https://files.pythonhosted.org/packages/71/ca/2bc4f7697cb9f6897bf61aca11803df096a5d971bf69ef5538b243bb1fa8/orjson-3.13.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:2715c4808d1571029ed18fd07a82140bf3ba7def0dc89f8d015c416e3649bf87", size = 134583, upload-time = "2026-10-07T14:09:02.047Z" }, + { url = "https://files.pythonhosted.org/packages/23/b3/12b1af9b87ff9fa0aaf4e5724c87672b30bb5de76f275f7fac64e8219c1b/orjson-3.13.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:08bf722f923d2100bc5e5a5dcf72c656db557049c1bea26582fdd5dd9d5395a1", size = 126500, upload-time = "2026-10-07T14:09:03.863Z" }, + { url = "https://files.pythonhosted.org/packages/ad/ea/cf257fc8a7f4b18f5677c22b3a9673a1b51d4b7161f25177ed389b76560e/orjson-3.13.0-cp314-cp314-win_amd64.whl", hash = "sha256:6adcaa85d79977659a448b4123a88eb33511a11ed2db243535ad7ea88a6668e0", size = 121378, upload-time = "2026-10-07T14:09:05.375Z" }, + { url = "https://files.pythonhosted.org/packages/05/0a/9f4643f849e9918eab11983b83928af3aac14bedb04002e28e885ee1936f/orjson-3.13.0-cp314-cp314-win_arm64.whl", hash = "sha256:83705c12b4afde10c62a5dd3fe6fdb21b7900bd0dcd5af1c85612ae94d0ee590", size = 126123, upload-time = "2026-10-07T14:09:07.085Z" }, +] + [[package]] name = "packaging" version = "26.3" @@ -4426,6 +4653,75 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/a2/8d/a9c2a531da0ebb54b4a7174450e8534a39db112a141ae3a437de28420111/pgvector-0.5.1-py3-none-any.whl", hash = "sha256:ec5bcd5ffaefe6ecb2dcc9564ca921d284564b969183bc837a144604773af8ea", size = 31056, upload-time = "2026-10-09T01:50:21.614Z" }, ] +[[package]] +name = "pillow" +version = "13.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ce/a4/9cc30690a394a8305e8be4c9036aa16d0dfddadd09079860b582f562496d/pillow-13.0.0.tar.gz", hash = "sha256:cdcd1ba258178f7356d74170c9a81ba4eab6a5d55748bc402a5a2a6fe6be3510", size = 47058631, upload-time = "2026-10-16T22:18:09.718Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6c/d7/af6af1b8cc55e07cb0489d5b0950bf5a9bb1461eeba825700b6d8d0e26ea/pillow-13.0.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:6f38f3f885a09cafc93fd667b1173a92f379e43785d635e7983c893f0da319fb", size = 5592324, upload-time = "2026-10-16T22:15:24.672Z" }, + { url = "https://files.pythonhosted.org/packages/0b/d2/2c12cb4fbb5d95f38d1001ff3d95fafcb830077018cba40e56a8f932dfbc/pillow-13.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:37290fbef0c73e2d51d594eb78fded7dc7170d1c3ad0a890269e6fd8c8c4e061", size = 4856298, upload-time = "2026-10-16T22:15:27.669Z" }, + { url = "https://files.pythonhosted.org/packages/5c/ee/229b27472483a4801ea94990815e710391836afdf987b4b722b62bd75db6/pillow-13.0.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7c88c10dd432f3b39ccdafc9ed81d0c21b8fd634502574da76d1bfa4fe2c76d0", size = 6517304, upload-time = "2026-10-16T22:15:29.43Z" }, + { url = "https://files.pythonhosted.org/packages/36/46/f509b74787f40ce0627501089d630b2c741b63b244c1f40b640b3b01e181/pillow-13.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a625df9a2a5597fa5e5266e01aefc82604bb85d291e3547981e863560d75da6c", size = 7140667, upload-time = "2026-10-16T22:15:31.368Z" }, + { url = "https://files.pythonhosted.org/packages/aa/a4/5a398b8ec2c37145397d6461c0b551c23ec03072aa64f357aed25e582b00/pillow-13.0.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:10b5019883c98f1dd819ca48ffc6f33a91cee04948fe637c605f4345c7cafd6f", size = 6610583, upload-time = "2026-10-16T22:15:34.025Z" }, + { url = "https://files.pythonhosted.org/packages/4f/7b/f2f1109b230fd4e2d57ab2305de31adc37ea9b4ff8719436c623cb484415/pillow-13.0.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f391dc92a015c478745192fe4f2e120c2af2aba18d9fe0616341cbf537599806", size = 7218241, upload-time = "2026-10-16T22:15:36.214Z" }, + { url = "https://files.pythonhosted.org/packages/ab/d3/069edb9083b267746baf59756282cacef904d3475c5288c7216fb5195a98/pillow-13.0.0-cp311-cp311-win32.whl", hash = "sha256:6a0920cb55df5a4d3f6862964908078c0bd59332bdd1bcd20d14e8c70ef27cc5", size = 6515278, upload-time = "2026-10-16T22:15:38.129Z" }, + { url = "https://files.pythonhosted.org/packages/7d/f6/6e2d96413e4c9dbec12ea584d9e646d602877d4cce3ea669099f959deac6/pillow-13.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:d7710eb676e9bb68965cb045be0d333b4c0d7f9dfbaa7fbf121385b1588683d3", size = 7278471, upload-time = "2026-10-16T22:15:40.286Z" }, + { url = "https://files.pythonhosted.org/packages/70/e7/baff21f8cb60496c8c250609501b88919eeedb4088d3da106f6c62f3f3c0/pillow-13.0.0-cp311-cp311-win_arm64.whl", hash = "sha256:12fbb851cf323cc19aac3eea1df5ad17b57e91e9fe3cfd06100dba7bb8208c13", size = 2698981, upload-time = "2026-10-16T22:15:42.637Z" }, + { url = "https://files.pythonhosted.org/packages/7a/b8/58d79332229482eb0d27c82973850808c19d37e5bdc14443d3417bd373f5/pillow-13.0.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:67c8d44ad89fa7eb88de5d6ef6199b1e03dd24974f85a67639fc8badb801fe79", size = 5568643, upload-time = "2026-10-16T22:15:44.474Z" }, + { url = "https://files.pythonhosted.org/packages/39/4b/f2ed53d83aa44ac19599ac0a54897f867fafb95f406980d1e24083f8cbe3/pillow-13.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc481f742ccda20e9ed760b8f978dff50f2a4e9bc253ac167fb0a05b0783ef52", size = 4852329, upload-time = "2026-10-16T22:15:46.284Z" }, + { url = "https://files.pythonhosted.org/packages/3b/bb/9e30e8ed18c20800ee327a12107d5249ad8dc444867b3adfcc21654e3c71/pillow-13.0.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8bf295fe459343bc6093c8e5e0df60bfa189e0fcb775a22e2c2488fdeccc6c0d", size = 6519309, upload-time = "2026-10-16T22:15:48.14Z" }, + { url = "https://files.pythonhosted.org/packages/e6/99/fdf65cc539e266ab93546c261bdf98411fe165c6e4e13f9dbf597097192b/pillow-13.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:42d63be3af4f9b951b199b0a9d23365d37ab14687e6d77b74940432c8515c4ca", size = 7144542, upload-time = "2026-10-16T22:15:50.093Z" }, + { url = "https://files.pythonhosted.org/packages/26/9b/f38b7c4d8f599537e2d1a6d546cec9beef7536ff8f5c49a3f9c78179d8ac/pillow-13.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4bd024d567eca931b668978d672dba914d4b8e2628e2c3073a2ad178de8a2620", size = 6618042, upload-time = "2026-10-16T22:15:52.054Z" }, + { url = "https://files.pythonhosted.org/packages/a8/7c/45ee28531f89ee4582967d8a17f7a26d71ca64cd902b93c269590cd60a00/pillow-13.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:23edf4ec4b6f4f240e8df6e4985e9ee2ced86474632433e55fb1e2548744bf40", size = 7228137, upload-time = "2026-10-16T22:15:54.009Z" }, + { url = "https://files.pythonhosted.org/packages/01/bc/9c2a969cb1b70201d04fa17fd5aedf02a732870b8da86bceaaa30b0ca385/pillow-13.0.0-cp312-cp312-win32.whl", hash = "sha256:02464da86f561f410e13b061ec37c3068a9cb557a095494157742d07b3c24a27", size = 6515423, upload-time = "2026-10-16T22:15:56.25Z" }, + { url = "https://files.pythonhosted.org/packages/ff/cd/73a79ecdc822076002eb24b5e1e4a530b0bb5310fcb6d239abbec877110b/pillow-13.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:ff3fe9eb621fbb9db4c4be33ab946f6bac5f98ab50ca8d3260503653656c961b", size = 7272166, upload-time = "2026-10-16T22:15:58.597Z" }, + { url = "https://files.pythonhosted.org/packages/4a/a3/be5a1236efd085b3984e4305da8f179ae9dab80c991d2ad78f2bd5c4c843/pillow-13.0.0-cp312-cp312-win_arm64.whl", hash = "sha256:c3bc8ee0271387e0b1e3ad0ff893645990a656e79bf9c42f4f734a3642b11d51", size = 2698943, upload-time = "2026-10-16T22:16:00.637Z" }, + { url = "https://files.pythonhosted.org/packages/82/e2/9132d38df320e8099e2642d9fa538f18a7dfebf68a875a31725dc2a115aa/pillow-13.0.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:e98b4f91f99b24b1da72e10621ba181f7281922384a7403094debb4199de6c00", size = 4190620, upload-time = "2026-10-16T22:16:02.527Z" }, + { url = "https://files.pythonhosted.org/packages/cb/be/436dac0996876f65ef1916ffb711c5ef4af2ebc57414b6f16642e07f6b47/pillow-13.0.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:34fb3db1149c879343861831728c243c432d4a5afc8f1878ca7612ef8de2a033", size = 4290286, upload-time = "2026-10-16T22:16:04.861Z" }, + { url = "https://files.pythonhosted.org/packages/60/16/7c1007162e4169ea0d5bec47e2e0b2174f56c50cf5b8c02a1dc23e41037e/pillow-13.0.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:2d50500a4a3bc6469adcdb319cf05d688b08ca3bf0f22a05339f3b25b433a599", size = 3723169, upload-time = "2026-10-16T22:16:06.956Z" }, + { url = "https://files.pythonhosted.org/packages/08/bc/578ab2eaa04705a8978bd9be0fe15c3d43a8fc95097c4f7e39540e79e4fa/pillow-13.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ef5fe6b7db3f501c56000ba8fe7c7e1a35ca1d45824fbeb95a67daa85cff4dbe", size = 5568469, upload-time = "2026-10-16T22:16:08.664Z" }, + { url = "https://files.pythonhosted.org/packages/98/c8/ccede3dcc4f274b80fb49199eed1ef34ba05566c8b71976b9d1f111da2e3/pillow-13.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f11a3c1358bb3c68012a7b1f41b223c3db9f7bfde90b481df028cfe1c3363313", size = 4852187, upload-time = "2026-10-16T22:16:10.693Z" }, + { url = "https://files.pythonhosted.org/packages/fb/3c/cd0770e96d20bfd990db024bcbd43897ff3e88da1f4782cf90ea231b1d4f/pillow-13.0.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:19b66ca0a4d25cc0200b381ce824c7ea090db61427315e73cfb05dbf1b35c369", size = 6515908, upload-time = "2026-10-16T22:16:12.896Z" }, + { url = "https://files.pythonhosted.org/packages/ef/fe/f5cdaa2d1c4086e757430f368c271a58ee29cfe7378e7ae7b9d964015c25/pillow-13.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5f56499c1a74d2b862beb0c33b8016f99d095858455df9d21583bbbc1c15b582", size = 7142544, upload-time = "2026-10-16T22:16:14.844Z" }, + { url = "https://files.pythonhosted.org/packages/fb/b5/a54f6d44adbcd23737c8c12953f42be107e4cca64e247c0ca3a5b563061c/pillow-13.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a2a14cd73d5e6c927f644b0110ee81f59c4ef506259ec9183904747f2caacc81", size = 6613097, upload-time = "2026-10-16T22:16:16.893Z" }, + { url = "https://files.pythonhosted.org/packages/e6/b4/9e6c1207c21b2e91db0d15c16d30f3701ce5add1bd4da0e787761e66cb6e/pillow-13.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:08b826a9bf1265c76de04a42061d61ea6b109418b7826f28ff1ecdfaa26c5502", size = 7224846, upload-time = "2026-10-16T22:16:19.195Z" }, + { url = "https://files.pythonhosted.org/packages/78/9f/d3c3cb0518f3dd1eee0ef501535f53d15597a53c5c4118d178086143397a/pillow-13.0.0-cp313-cp313-win32.whl", hash = "sha256:12b0fa15879fe5a9d9eebe66e4e2d74128a773b1a4448010c9c714f45e04b9d8", size = 6516013, upload-time = "2026-10-16T22:16:21.389Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ed/1b16fb66a37e1b9e41370b93b2c614c7da761a5b2a41dc333f7af4639962/pillow-13.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:9dda0788a9932776a75d8bcc020076edc308ce2508b51f6739a45e3158b3fc42", size = 7284777, upload-time = "2026-10-16T22:16:23.393Z" }, + { url = "https://files.pythonhosted.org/packages/87/7d/8d02eba9f7ecc87f8e90f731e032cc4773802f2a843763afd0c66a535ff4/pillow-13.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:40a266371ece581e5de13b6635ef78d7487824af80561b6ca27694a88c19bc0f", size = 2698826, upload-time = "2026-10-16T22:16:25.382Z" }, + { url = "https://files.pythonhosted.org/packages/8e/45/fbad9c7f5e2f1745c373a434d46072bc84eddfefaa28b852425ac957fda6/pillow-13.0.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:44629d4498c9cb6b2051806155f22141df0d8a929c56134b166655232dfb2f8c", size = 4190721, upload-time = "2026-10-16T22:16:27.524Z" }, + { url = "https://files.pythonhosted.org/packages/a2/bf/2074902a259a90692c5dbf132885d21671644cbbd3f690047516243a55db/pillow-13.0.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:bf97ba1b5542050e9b0c74e632323b6d8136cc99d64e193abebee22fe6013c76", size = 4290236, upload-time = "2026-10-16T22:16:29.562Z" }, + { url = "https://files.pythonhosted.org/packages/ff/a5/3d1bb93b8ea38d15d21356c1b8e9f50971ac592aaa248f7fb71739094c0e/pillow-13.0.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:aa694c49787040943570d61c9b8fc01271bd2a2cfdd55f0d896f8aecdce1a981", size = 3723093, upload-time = "2026-10-16T22:16:31.249Z" }, + { url = "https://files.pythonhosted.org/packages/84/a1/be060135d85187b25fa8b2573786c0e45c62ae27527fff5257675eb97f4a/pillow-13.0.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:49c12af515073e9bf511e4ef736743bf70d531a643668722279314b937742ba4", size = 5572253, upload-time = "2026-10-16T22:16:33.103Z" }, + { url = "https://files.pythonhosted.org/packages/b5/f4/0bf6f1ac9ba7ee2ffe9914aeb410a1035a0c1a3c42f122388d7fc950bc4b/pillow-13.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d9b0a2bee3f3e03e9f29057aedb807dbf1e1d96ee1b9d0f422d9db6c8583271d", size = 4852269, upload-time = "2026-10-16T22:16:35.102Z" }, + { url = "https://files.pythonhosted.org/packages/83/16/b603274617b3e6728da3a0133d4fba1ea8d7fbe0c4ea5fef9cbffa398b8b/pillow-13.0.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5933fcea5a5ba64c686f55c886a115cbfd92f2900460784a1e79909fdbafd7b6", size = 6516058, upload-time = "2026-10-16T22:16:37.228Z" }, + { url = "https://files.pythonhosted.org/packages/1d/f2/1371707ce438ba9a43f9d24089828494ec6f9396e28cd7903aa704dd6306/pillow-13.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e91c2b1cbeae768c98752e67e717e283d68dae45717b41f2d91eaee648e37b7d", size = 7142574, upload-time = "2026-10-16T22:16:39.172Z" }, + { url = "https://files.pythonhosted.org/packages/b9/a9/62cf68587f910bc87c5951bcb6e9430c7643a65076adf5f18b4bf350e2bd/pillow-13.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7f6299e494e46253d40c34653cac369412f44ca53b5f85d848d3f95b1ed0546c", size = 6614295, upload-time = "2026-10-16T22:16:41.117Z" }, + { url = "https://files.pythonhosted.org/packages/6c/c9/9e9b48178649730299be0bafbf5f810a5b6977538f5a92d47e4ba5f5d608/pillow-13.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f9bd7d260d986f3553518c5d723544346fa48031f8aef3265d786aeb59845bc0", size = 7224841, upload-time = "2026-10-16T22:16:43.118Z" }, + { url = "https://files.pythonhosted.org/packages/8f/48/c44e91384b1b6c072a714a63d00608acc16a6a968735e478e4be4384e5ac/pillow-13.0.0-cp314-cp314-win32.whl", hash = "sha256:2e31c4e68cffd7b1f116127626813b82fcba19edf6b940a7b0c266d6484d0055", size = 6508694, upload-time = "2026-10-16T22:16:45.883Z" }, + { url = "https://files.pythonhosted.org/packages/50/e2/7ad17747517e4c813dca78257d6bb593466f8231baf1384bc98d92745edb/pillow-13.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:f7cbb7a64e7ec664775195e4f81923bc8a93d9451b963f844e59118f63147a7a", size = 7281830, upload-time = "2026-10-16T22:16:47.725Z" }, + { url = "https://files.pythonhosted.org/packages/41/9f/e5b51f2ce8ef4563215334035403ce61a244f93a2e65c24a940131618f87/pillow-13.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:a6aaa7871aebca081eb5c45f83e845bbd9712ae99fa9286dbfdcee835e63f4b4", size = 2695468, upload-time = "2026-10-16T22:16:49.515Z" }, + { url = "https://files.pythonhosted.org/packages/97/73/a53502f731f6c84805a4ce87a8881e86d07a65aee64728b900d112dc703e/pillow-13.0.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7b999816b5850a35ada08443e6e03945f1f6488144a83afe2d37b240a552aafa", size = 5578196, upload-time = "2026-10-16T22:16:51.291Z" }, + { url = "https://files.pythonhosted.org/packages/21/50/7e949959a56b5559c78ef172b70fc6025706acb289f3f648a15329e4fa6f/pillow-13.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:67871a13cf47275201553b536c025da777f997fa562a19eb798af4ad4b97c18f", size = 4857276, upload-time = "2026-10-16T22:16:53.399Z" }, + { url = "https://files.pythonhosted.org/packages/c9/52/43ded0ac08e77e39d17bd6d894162572201b5e8fdc4a022b14c55a1960a4/pillow-13.0.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e8ca8f69b7c77fa96dad99f8638c1fc4f1c0bed4acaa1baf7a3c31bdb80a0ab1", size = 6607008, upload-time = "2026-10-16T22:16:55.525Z" }, + { url = "https://files.pythonhosted.org/packages/0d/2e/4a57ed216d5bf877387cba4d44c02aa87abe51ad2e06404aa6b597c4da39/pillow-13.0.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bce6a29c3898191f4c9998e4d4e8f69790caeabde46e54da4bc235ce5bde683", size = 7224281, upload-time = "2026-10-16T22:16:57.738Z" }, + { url = "https://files.pythonhosted.org/packages/5c/3d/2929b248e135752d63aaeabf53f6de797e905b7b6263f9c1e2adade20aba/pillow-13.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:816752a5ef76a80484c8c441c85593b7ea9304f6231fc5776ad1fbff7e773058", size = 6695600, upload-time = "2026-10-16T22:16:59.842Z" }, + { url = "https://files.pythonhosted.org/packages/bc/33/fb0da992cf084ed1ee6ee05e96b6191e35c351eb707ca2df874feb24ce47/pillow-13.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5bdb38ba220b61b4ec31dd1046dea6b016d3c6850a23f43ed8b58332b2fc668e", size = 7300589, upload-time = "2026-10-16T22:17:01.686Z" }, + { url = "https://files.pythonhosted.org/packages/bb/af/c30dd9ef6a3dce84ecb1b2393cac629047a32e66279056c6cb46c3ffd65c/pillow-13.0.0-cp314-cp314t-win32.whl", hash = "sha256:06903aac074d00c988e77a1fc435286dc498506d4ca8d6f69df9babddf4ecc15", size = 6517204, upload-time = "2026-10-16T22:17:03.722Z" }, + { url = "https://files.pythonhosted.org/packages/85/d5/ef3a8ae7609c8ab26570abf18194882534b480d245a9148b895a2262c004/pillow-13.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:9a635068d9793c7f0d929f39f18b58f1bd86c236e8e7b64167b86af9232ebca0", size = 7286695, upload-time = "2026-10-16T22:17:05.543Z" }, + { url = "https://files.pythonhosted.org/packages/84/3c/0861db0c69a03689ebe3e7599d35668a414deb5aaafd8255215e4e62e3d3/pillow-13.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0d1a9cf7bc6917538b20f8d06b9ab2147e542f68849e96fc58eb66bdf6acc692", size = 2698098, upload-time = "2026-10-16T22:17:07.674Z" }, + { url = "https://files.pythonhosted.org/packages/68/c0/fb7b1caf25ed5ac5d46116f09b8b0706b9559833c65c667cecb1a53153f2/pillow-13.0.0-pp311-pypy311_pp80-macosx_10_15_x86_64.whl", hash = "sha256:405be6058e206a86fedce2f715ecc2343f94072d7925251632dffa2c05f70dca", size = 5521630, upload-time = "2026-10-16T22:17:50.008Z" }, + { url = "https://files.pythonhosted.org/packages/1a/e6/4d11d5b1137f4fc080605cce410cfaae4f303ad400bdec75d27d3083fa29/pillow-13.0.0-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:b84be41387fc00db28c13c02e30d42b02d8d8f6a4a741a1aee6012ca7f1f6039", size = 4806023, upload-time = "2026-10-16T22:17:51.932Z" }, + { url = "https://files.pythonhosted.org/packages/f1/45/0923202a658e8ff6aafd72c1a4395ebadcdebaa182c437d8595d3dd3db32/pillow-13.0.0-pp311-pypy311_pp80-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a192360d512305fe92d3053e4f7627bbad1f7708f1f4ad38cccd9336acabe9ad", size = 5464831, upload-time = "2026-10-16T22:17:53.742Z" }, + { url = "https://files.pythonhosted.org/packages/07/52/d3e38f0cad1dadea2a658b9a7d6ba8a04048f5ae14f011b806e5c3bd6bcb/pillow-13.0.0-pp311-pypy311_pp80-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:83b37abd87b590acd8f47ca8a61f70893322b11834d36e07c2298dacad4d14d2", size = 6043133, upload-time = "2026-10-16T22:17:55.625Z" }, + { url = "https://files.pythonhosted.org/packages/c4/f9/2ed7685980c1d64f8131a7d87a19c369424747577152622b73ddeff163b7/pillow-13.0.0-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:73ee25cf8cf8b75d5a5aeed7cb6588f5e5dbfbb0fde51707b630bbb23897645c", size = 7365208, upload-time = "2026-10-16T22:17:57.509Z" }, + { url = "https://files.pythonhosted.org/packages/60/da/f6d644e631c5b370c5d0b899f3ccadd2780aab070b29a110527cf4e1fd2c/pillow-13.0.0-pp312-pypy312_pp80-macosx_10_15_x86_64.whl", hash = "sha256:8619685cad8efc4c38c66d3b36aad854523297c43d748b3b6f0cc03c90ba3463", size = 5523188, upload-time = "2026-10-16T22:17:59.334Z" }, + { url = "https://files.pythonhosted.org/packages/e4/b0/2594f202d743a35d4fe80682bfd96f277e5ca7aecb27cf64ef5bfc1d000b/pillow-13.0.0-pp312-pypy312_pp80-macosx_11_0_arm64.whl", hash = "sha256:7e91e97a929232cdb828889ee6ad0e48d7f40f4ec38818f4e4a8968b2b1af22e", size = 4806808, upload-time = "2026-10-16T22:18:01.188Z" }, + { url = "https://files.pythonhosted.org/packages/8e/ed/d504165ef79af6fafe25c76726cf30f544cc236002f7ed054f1d51adc4ff/pillow-13.0.0-pp312-pypy312_pp80-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:93ff9c9c3663ce23aaa5d0b6b6abac55359e2a0c06c7e30f3771829af816be63", size = 5464358, upload-time = "2026-10-16T22:18:02.779Z" }, + { url = "https://files.pythonhosted.org/packages/7b/fe/a10aba5503ca13e9e009b8bd0a1a4ce5584bdce246245fd6f3a83701369c/pillow-13.0.0-pp312-pypy312_pp80-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e65dd6e75de67b2362a4fa3e16aa627595f65054dc4ec73d64680c84d592fa61", size = 6043514, upload-time = "2026-10-16T22:18:04.538Z" }, + { url = "https://files.pythonhosted.org/packages/c0/37/66b12dc476041fe523bca29c9d58fbf1ea92a4eaf73acfb9e993948f1191/pillow-13.0.0-pp312-pypy312_pp80-win_amd64.whl", hash = "sha256:567f20f1c75897d7663830da6ea8af719e03d712b1d9ee7f813319f9ece42e5a", size = 7366030, upload-time = "2026-10-16T22:18:06.638Z" }, +] + [[package]] name = "pluggy" version = "1.7.0" @@ -5499,6 +5795,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/3b/5d/63d4ae3b9daea098d5d6f5da83984853c1bbacd5dc826764b249fe119d24/requests_oauthlib-2.0.0-py2.py3-none-any.whl", hash = "sha256:7dd8a5c40426b779b0868c404bdef9768deccf22749cde15852df527e6269b36", size = 24179, upload-time = "2024-03-22T20:32:28.055Z" }, ] +[[package]] +name = "requests-toolbelt" +version = "1.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "requests" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f3/61/d7545dafb7ac2230c70d38d31cbfe4cc64f7144dc41f6e4e4b78ecd9f5bb/requests-toolbelt-1.0.0.tar.gz", hash = "sha256:7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c88d5bc6", size = 206888, upload-time = "2023-05-01T04:11:33.229Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3f/51/d4db610ef29373b879047326cbf6fa98b6c1969d6f6dc423279de2b1be2c/requests_toolbelt-1.0.0-py2.py3-none-any.whl", hash = "sha256:cccfdd665f0a24fcf4726e690f65639d272bb0637b9b92dfd91a5568ccf6bd06", size = 54481, upload-time = "2023-05-01T04:11:28.427Z" }, +] + [[package]] name = "rich" version = "15.0.0" @@ -5792,6 +6100,52 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/18/8b/ba48a73729c9270989b36f37ab2ed5525e52690d715097c9fa791aaa5d05/tiktoken-0.14.0-cp314-cp314t-win_amd64.whl", hash = "sha256:7aab286a020660a039097912a088236b985d18a3090d73f136c4413d29d37ca0", size = 987717, upload-time = "2026-08-17T19:49:21.704Z" }, ] +[[package]] +name = "tokenizers" +version = "0.23.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "huggingface-hub" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e0/7c/2cabb2174e772636683008f2c5621949b645da7d303c596589e84516a184/tokenizers-0.23.3.tar.gz", hash = "sha256:cded33237c77caeef62944d32aa9a7ef42bdce2b3497e18d137e072a8c4be438", size = 385286, upload-time = "2026-10-09T10:16:55.759Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/aa/2e/4ce5b9716f26e526eff6b0502ebed4ea8d7161f03b3c77617c9f25528e97/tokenizers-0.23.3-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:9d2b5c97daf61688c2ad1803ca851800feaba50fb68d5821779e9ea5880d968c", size = 3148800, upload-time = "2026-10-09T10:00:51.457Z" }, + { url = "https://files.pythonhosted.org/packages/b2/72/01e49f032bb346e5aaf06c10c74fe8aeec847173adbadd66eb7c53054bf2/tokenizers-0.23.3-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:68649e97d5b43c44c031d8d848874a6eecae8f8fe40ea989aa777a5a83aca716", size = 3101381, upload-time = "2026-10-09T10:00:54.063Z" }, + { url = "https://files.pythonhosted.org/packages/15/fc/ae987741829b1cd547668c4c94be732ae3eefd1d74344e64c3d2ca714acd/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec82e80e65a862275b97c3d90b7a523df8d9519ee48aeb4e9625b2cc909274e0", size = 3519944, upload-time = "2026-10-09T10:00:55.885Z" }, + { url = "https://files.pythonhosted.org/packages/1c/da/cc8f6c030afaf05fbddc608158fbb761dca46913cbeba6b112e59fc82e2a/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c64a0713180ff16829d4e7f39a658b77ea11443af4e1aa46523692943c9b1414", size = 3397695, upload-time = "2026-10-09T10:00:57.444Z" }, + { url = "https://files.pythonhosted.org/packages/ec/f1/256f78d1365fa2cd3ea6db716883d74667c8cbb6a21f15fa5b89a773cdc2/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ddedfd4b3b4be6be24ff6ca645c4a37fddfd305f6f3e354c54cf10b715c48215", size = 3753125, upload-time = "2026-10-09T10:01:00.165Z" }, + { url = "https://files.pythonhosted.org/packages/60/93/eee007ac2fcbf4ecfce7fbc354826cf3611f56bdb886f3e91b1f7dd06b8f/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2a89614730d7b80940a5d2ed9320e1ec8add5a745c6151d8d05071b7215505b6", size = 4018598, upload-time = "2026-10-09T10:01:02.05Z" }, + { url = "https://files.pythonhosted.org/packages/bf/f9/0c96c4739461fce9d8d865b416728081bf6230022d7163bd6244f35f4b31/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e88646b8580c5ad7f4361477f1298e9cc01771a1ee9aecfe32c47b8ff614cc38", size = 3602442, upload-time = "2026-10-09T10:01:03.77Z" }, + { url = "https://files.pythonhosted.org/packages/3a/40/6706b82693715581457c6d5423eaa7faae576bb0526c5738a57085eb4449/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:376851d22bcf9d650a5c3090bb83e6cf9e895fbf0595369fa4cd43c1f69b5f87", size = 3396193, upload-time = "2026-10-09T10:01:05.48Z" }, + { url = "https://files.pythonhosted.org/packages/fe/0c/85946de40e25b7364b8f1bcf56def129069acd5bb364b7c86a32919e1a23/tokenizers-0.23.3-cp310-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:bf501c40b72d2d5c8623620210430e9cac1ce47a46e45b34107b70a1557d46b0", size = 3553483, upload-time = "2026-10-09T10:01:07.387Z" }, + { url = "https://files.pythonhosted.org/packages/f1/6b/8d615d92cad1d511ca5ab188d1c7c167f0b3d295cc0d96207f9f82d486d8/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:114e2b55ed177179d59f4ab98200a4471e11e78f9e4b5a922d146740f96fcf52", size = 9972248, upload-time = "2026-10-09T10:01:09.437Z" }, + { url = "https://files.pythonhosted.org/packages/c9/7d/a922e37ddd58d1b463bbc2ad08120c8f59c60b814cd353519a116b24f8ba/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:d3407fb7b9c4d75dd68850ffd7180bc0a5d2dbaf0762d888e612f31fec3f9c6b", size = 9802957, upload-time = "2026-10-09T10:01:11.869Z" }, + { url = "https://files.pythonhosted.org/packages/4b/06/5d3f506a86ae0699a0e4ea05c05978f9aee169ef2c1d844e68c971cf8194/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_i686.whl", hash = "sha256:84513ef0aeb8bf8f4ea11a2e8a7ac163ec5288aa115e649a59b470ac5c3107df", size = 10145487, upload-time = "2026-10-09T10:01:14.268Z" }, + { url = "https://files.pythonhosted.org/packages/26/e5/065625317690ea3548d834dad81f48ea1fd32e4964610e658e195d7fe28e/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:e05ab7baf7f47b406a95fea6f3b0a484b2ddcd9e1d14b68844c457eb755085a3", size = 10266026, upload-time = "2026-10-09T10:16:33.054Z" }, + { url = "https://files.pythonhosted.org/packages/77/4e/babede85d0d19f5e3deeef0063e01848141329934d3d77c31b5cab5ac2b4/tokenizers-0.23.3-cp310-abi3-win32.whl", hash = "sha256:1ebf28794e7e4954e20a7f70fbea410b2d1f0418f7dbbca97ca384fcfef38c25", size = 2588086, upload-time = "2026-10-09T10:16:35.686Z" }, + { url = "https://files.pythonhosted.org/packages/d1/6c/24f074c9a0efb98e61b20aafe6b2641922d5db24e447d5d6daffd9e17555/tokenizers-0.23.3-cp310-abi3-win_amd64.whl", hash = "sha256:1f0823bb00c5fdc98e487354d54dd55a03848d61a1a0bf29a68c77f24f3b26c3", size = 2872101, upload-time = "2026-10-09T10:16:37.533Z" }, + { url = "https://files.pythonhosted.org/packages/53/77/a476b6f73a661c11d113a342d2326b91506cf2285f0995d1212a6bb2022d/tokenizers-0.23.3-cp310-abi3-win_arm64.whl", hash = "sha256:7e48734d2de9260d86f03ab056d2cfeeff3869f61dbd49aaa15a2793b5f3458b", size = 2742580, upload-time = "2026-10-09T10:16:39.244Z" }, + { url = "https://files.pythonhosted.org/packages/65/46/f66baaedd42414a3f583c47379dc350e3e1f858a690d2574fd85ae70681b/tokenizers-0.23.3-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:efa3d7318406b4d115dce61ad5061953f1f44b128e79c020ce4615d763e23b6e", size = 3154274, upload-time = "2026-10-09T10:16:40.876Z" }, + { url = "https://files.pythonhosted.org/packages/c6/41/8de8c63b2d935eee5a0f42011fb7b786ffafeab0b8eb6d17acb8af2293b7/tokenizers-0.23.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:a4fbb3662f9f59d199d61338e54b4bcc11d07ebbb1aeb3540dacb2be9c521cb7", size = 3077805, upload-time = "2026-10-09T10:16:42.856Z" }, + { url = "https://files.pythonhosted.org/packages/e3/08/b1cbae8dc8fc7c91f992ac2d87a086e9b3f25a28814047ca16a82fe8c87b/tokenizers-0.23.3-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:de536665495cb4b409d25bade41963f801aff4225c19a6b804b048f7d14e34c7", size = 3491678, upload-time = "2026-10-09T10:16:45.093Z" }, + { url = "https://files.pythonhosted.org/packages/3e/0d/aac0cb2f3a1fdbef514145b4c5f2df4d05deeb1ee8f73ae641a1b4a62a85/tokenizers-0.23.3-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5cc24bb457dd4a8af89c8fcb40074d570129ec473df2a866c276ee55db4749d7", size = 3367420, upload-time = "2026-10-09T10:16:47.112Z" }, + { url = "https://files.pythonhosted.org/packages/1e/1d/41a697d0c193a320b243fbd68b2057b6eb2f01ecf80899e1a16e646ff699/tokenizers-0.23.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:acd5c57b4bd3e56e246e2731a3a3a6825a7a7d89b7e3b761ba80bc521710f04b", size = 9945973, upload-time = "2026-10-09T10:16:49.326Z" }, + { url = "https://files.pythonhosted.org/packages/37/e9/b56e619fcd583000a2b1254bb46af8dc6a174d3ba3329f454ad5a95a2be2/tokenizers-0.23.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:82eb480f6f1c21cea3349dec32cf1a6384c6c1e775f00f83b0d51197bc013687", size = 10237491, upload-time = "2026-10-09T10:16:51.943Z" }, + { url = "https://files.pythonhosted.org/packages/6f/68/f58b3beb95f3b62816e91e5e768e684cd63e58f9cbece22036dae3b1c971/tokenizers-0.23.3-cp314-cp314t-win_amd64.whl", hash = "sha256:1554a6eed34d9d6a78d23360f4e06df8dffab1ae08c7e8488e0b3e3b36cc266f", size = 2847654, upload-time = "2026-10-09T10:16:54.166Z" }, +] + +[[package]] +name = "tqdm" +version = "4.70.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0d/ea/b2a5bd54b28a324dae8211928b2d730b6547500342c7e6c6dea08bd0a485/tqdm-4.70.1.tar.gz", hash = "sha256:cefd0eca11b2a37a3aee776544d4f4ae913f02688135b5556b8788dfa474afc4", size = 171846, upload-time = "2026-09-11T07:25:16.601Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a7/03/921a3d3c75785aca9ebfbfcabfbc3a1be12e2ab5265deb026d55a5a3f83e/tqdm-4.70.1-py3-none-any.whl", hash = "sha256:c293e525e6fef9c20e8728fd4612df02a0aa31bb5fe91ecd93e123b1b7bffa73", size = 80199, upload-time = "2026-09-11T07:25:14.599Z" }, +] + [[package]] name = "truststore" version = "0.10.5" @@ -5868,6 +6222,52 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/92/9d/c4e665119135114480843e7ab388fa94d8480650450e6f8e26b70d323a4c/urllib3-2.8.0-py3-none-any.whl", hash = "sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3", size = 135717, upload-time = "2026-09-15T19:29:34.577Z" }, ] +[[package]] +name = "uuid-utils" +version = "0.19.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f1/0f/cd9b3e495e514441e9af3a42c5c63436aee620f61412cafcce67e259228b/uuid_utils-0.19.0.tar.gz", hash = "sha256:4b2996bb9d12da9b62f6f4c64a066b26926fa75dbe47b4f8e309e24e187abf1d", size = 43343, upload-time = "2026-10-26T10:55:23.821Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fa/ce/78f9d79c820b8afc9b0498b0a5f5ef87ea970a19cc382127087f36cd4839/uuid_utils-0.19.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:84929d8c594381c6f1444afa2a25cce9ff7edac99d35e071ebc48275bae83730", size = 574701, upload-time = "2026-10-26T10:54:06.751Z" }, + { url = "https://files.pythonhosted.org/packages/fc/63/fe81dda73d651fb6bf8b0e21c4ea34209fc535ca109634c0d93f14ac21dc/uuid_utils-0.19.0-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:a416c78167b750186095a0ea950d95b8b4e157e3172fc6ccdc317b6ca2896580", size = 294226, upload-time = "2026-10-26T10:54:08.422Z" }, + { url = "https://files.pythonhosted.org/packages/81/6c/118c7e11fb579b5631212bfbbb31542a1778936dfb7c55591aa9b52c7c99/uuid_utils-0.19.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:82573c0e5090732c0ae2e18626e06cb35fe7cfcf6fe9534d4c1638af41d25d36", size = 327869, upload-time = "2026-10-26T10:54:10.016Z" }, + { url = "https://files.pythonhosted.org/packages/a3/76/80e9bad735cbf92f127183ee5c44ee0d83604e56197bddcaaaed2c66f7e6/uuid_utils-0.19.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c78d527fddf5495e80032caeca2f140731ef394298ef4cbecaaf51aa2c257e1e", size = 334737, upload-time = "2026-10-26T10:54:11.434Z" }, + { url = "https://files.pythonhosted.org/packages/9e/7b/c8eb8e45569e8681f20e381859248d18635d823b8aedc70de8a0bd5faca6/uuid_utils-0.19.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3c33b5c62cf82d509945c770201b1656448c2560e12931d1a8d698a683e9125d", size = 440438, upload-time = "2026-10-26T10:54:12.864Z" }, + { url = "https://files.pythonhosted.org/packages/be/45/8238eac588b668e5c500cb187fd74a9f6d984c09f3f3f2fa4161d3c07eb7/uuid_utils-0.19.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b8060530a8fa27f11947489c79bc36e6ebb465b2d714945364dc397283309417", size = 330342, upload-time = "2026-10-26T10:54:14.309Z" }, + { url = "https://files.pythonhosted.org/packages/0e/45/8215129786e67842d479480a44066cac8a7086f345ac9707f629ed777cfe/uuid_utils-0.19.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:96429c78eab28ac71b2121fb47c66783bfe5d06632b5bd5200004707fdc0faad", size = 354275, upload-time = "2026-10-26T10:54:15.753Z" }, + { url = "https://files.pythonhosted.org/packages/7f/bc/a673bfd116eb26419dd82bffa9bc2bc1e915af02bf68ac8c09598dc678ec/uuid_utils-0.19.0-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:80e0b37b3ddf60c50c51b869e1b02df61415941aa68bc903f61562fd8df04b18", size = 504446, upload-time = "2026-10-26T10:54:17.45Z" }, + { url = "https://files.pythonhosted.org/packages/af/ff/61867210f202c603d4a5ca1c5b3c4c76e8d8724eeebd7cf1307d18b63a9a/uuid_utils-0.19.0-cp310-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:f629f2a4f95e46d99ee673536ab9706899696cdc6686e93314ea756d3b394ce4", size = 609016, upload-time = "2026-10-26T10:54:18.914Z" }, + { url = "https://files.pythonhosted.org/packages/42/81/6fb8a2ee8010a6a0c5cb29f5efed2604717613cc9888f9e5c999dc36b84b/uuid_utils-0.19.0-cp310-abi3-musllinux_1_2_i686.whl", hash = "sha256:ec330297c09e40b82d613326b57bb381d68535e8a341fa2e501b46791cbdfeec", size = 570293, upload-time = "2026-10-26T10:54:20.328Z" }, + { url = "https://files.pythonhosted.org/packages/0f/2f/e1c749b65c584ebd8bc5379cf18e26c67cdff8f2bd9f8f77111a47083408/uuid_utils-0.19.0-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:313de97d59dbbb09f4598cece2c799cc233d8673bb075ad7eff442cd485623c2", size = 535321, upload-time = "2026-10-26T10:54:21.735Z" }, + { url = "https://files.pythonhosted.org/packages/87/ba/f423f68fd784124e68ab1b1afe27ab4591ffd5363b39eccfcbaf8f3b0ff3/uuid_utils-0.19.0-cp310-abi3-pyemscripten_2025_0_wasm32.whl", hash = "sha256:5c47c7fc35e91a801996477f0d746d506a2e5b47a13accbf41dc29844786c40c", size = 103141, upload-time = "2026-10-26T10:54:23.192Z" }, + { url = "https://files.pythonhosted.org/packages/f1/9a/7a0a0dad166db9f4437f3d259e47ce74d552ccc50d8aa63d05b2510e3096/uuid_utils-0.19.0-cp310-abi3-pyemscripten_2026_0_wasm32.whl", hash = "sha256:23868cdc4dfa71021fec6cf43fbb83797345362ac1c866b50dbf17f479587413", size = 103069, upload-time = "2026-10-26T10:54:24.709Z" }, + { url = "https://files.pythonhosted.org/packages/e1/3c/c5fef96cea027de66a035b4173951fc29c2e83ed49a5d5b3fa7b632f95b5/uuid_utils-0.19.0-cp310-abi3-win32.whl", hash = "sha256:0cff166cf6348e9a705740e6575ce7bc727554a71a6add60b9ceceaaf169002a", size = 175479, upload-time = "2026-10-26T10:54:25.949Z" }, + { url = "https://files.pythonhosted.org/packages/3f/16/edfb8edc8a4624cfaf1387a57bf37cd53e5d7f213ebeb8dd6fbd2f6b2c64/uuid_utils-0.19.0-cp310-abi3-win_amd64.whl", hash = "sha256:b763ae8f23334ccd95d0b81fb19ee418f38f9e80ebfb521f313a9745280bc07c", size = 182891, upload-time = "2026-10-26T10:54:27.527Z" }, + { url = "https://files.pythonhosted.org/packages/63/17/258e5dd380bc594731b2b705082360fb4cef1e5cbaab46ef307439a6f415/uuid_utils-0.19.0-cp310-abi3-win_arm64.whl", hash = "sha256:b244ea25bfe1b34e40fabf8f079d59a9f153b22bd4095842065bb0a9dfaa477b", size = 180849, upload-time = "2026-10-26T10:54:28.86Z" }, + { url = "https://files.pythonhosted.org/packages/cb/64/b5554f686d5395db970bc07944b9c59c26ab0e192a27d7c8b555e5fc6332/uuid_utils-0.19.0-cp314-cp314t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:9adf8d69574f0018a25aed0cc194bffacc05fb91b922fdd8e794109c45ad80ed", size = 565592, upload-time = "2026-10-26T10:54:30.242Z" }, + { url = "https://files.pythonhosted.org/packages/4a/a3/d8d0b7bf4892c41dbbb0e81a356d20aad781cc28d3029669e167eb72d9a1/uuid_utils-0.19.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:ac37f30acc7fe01266c73f19a686d0ea1fbd22495d81205cc3b572e2fb2293a6", size = 292083, upload-time = "2026-10-26T10:54:32.053Z" }, + { url = "https://files.pythonhosted.org/packages/fa/c1/770ccb569b4c15ee81c36bc40e74f03c5e0a2ee71ecc534d3fe7cfa5696d/uuid_utils-0.19.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:afc1dc05c83163ec58304350ee61d20f1f3285d0e8fb873e4d85a97988c284ad", size = 323275, upload-time = "2026-10-26T10:54:33.896Z" }, + { url = "https://files.pythonhosted.org/packages/c7/12/798e09469358bf59848534291aa62d16cc6fbd66767f469c5d8278d0bc4d/uuid_utils-0.19.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:16e68b1a4b81301fa7ba52d500947094226d8b0c1521695746ec57ff0779ff6f", size = 328681, upload-time = "2026-10-26T10:54:35.506Z" }, + { url = "https://files.pythonhosted.org/packages/42/16/71df642a7969381747de36d4e365e59683cdaa2c425da0530e9383e4de86/uuid_utils-0.19.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:833edd2b38ef08a324e9f3aed4269d2ab955d4cb66417422eeb3af28a6237427", size = 434504, upload-time = "2026-10-26T10:54:36.96Z" }, + { url = "https://files.pythonhosted.org/packages/c1/18/35c86d901bbd6d3f088217f37a6ff01aae4ce8f8cdb3f9ddb5220887a122/uuid_utils-0.19.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:21356ba99b82c813c1945054a09ff7ebc1bf55b858b41a6ae084e6ed2c8bb9a9", size = 325810, upload-time = "2026-10-26T10:54:38.492Z" }, + { url = "https://files.pythonhosted.org/packages/fc/51/25427eee1031946d5abe0d8985123f6fd4a1931c8a5a8660b1c76368ca12/uuid_utils-0.19.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2477161656105e787a5f986adb63191b61f129c9d7399b2bce406f87a1407b4d", size = 346300, upload-time = "2026-10-26T10:54:39.864Z" }, + { url = "https://files.pythonhosted.org/packages/26/4b/edbb0ebdc948549a0250363f441883c31fef42fb4e4bb607b9a083efaeba/uuid_utils-0.19.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ddf61d8443993d683c8d6fcd05cbb711c2655042952850fc0cf25af969e3a213", size = 501365, upload-time = "2026-10-26T10:54:41.268Z" }, + { url = "https://files.pythonhosted.org/packages/68/e4/f5a788fae45e315d8d04d5889a0b0809543e27c8d08b9fe10b09d0766b9b/uuid_utils-0.19.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:cb9ead0aeae67ad2de3f660f2e978ece77e14ad3f2a7082b768e2c75866664a2", size = 604290, upload-time = "2026-10-26T10:54:42.686Z" }, + { url = "https://files.pythonhosted.org/packages/a7/90/3800a0b2083d6c156a4d686e75f26c055a48fcf315b9310ba211b7e3659c/uuid_utils-0.19.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:4e5155902b7779ae7b692ac69e6031f41481d62fa85a530d3725c270799940a0", size = 563566, upload-time = "2026-10-26T10:54:44.068Z" }, + { url = "https://files.pythonhosted.org/packages/7f/37/1b58a17a041bd560a1d652afccd57ecd5d0e0c4d6280deded663b783de43/uuid_utils-0.19.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:fd3bcc556e249bb70b1c7fd78e659a1ebfb5572e7ff2091d096aecbac62edb1c", size = 531143, upload-time = "2026-10-26T10:54:45.599Z" }, + { url = "https://files.pythonhosted.org/packages/66/ac/f6286bcfad2f321be2acd04961934a58e4a6c15ba78070a13d193cbbb9f0/uuid_utils-0.19.0-cp314-cp314t-win32.whl", hash = "sha256:9b9064d96c6fe5e43ff4486722c5c891083a7fa91ee36311286cfd833b4b5562", size = 172229, upload-time = "2026-10-26T10:54:46.925Z" }, + { url = "https://files.pythonhosted.org/packages/87/45/0df876abf12875ef82bcd8f034c0c7adc1507dd721a5942232120b6267e8/uuid_utils-0.19.0-cp314-cp314t-win_amd64.whl", hash = "sha256:eeaf6b77ed2ec9815988e10d043d1533a1ae8c6535e7fb5479fd7e2e6ad25dff", size = 178436, upload-time = "2026-10-26T10:54:48.249Z" }, + { url = "https://files.pythonhosted.org/packages/d2/ae/c9b4aaa8ee95581b444a7be681dc0ceb57a465b50b28b2f2517f5fec1c51/uuid_utils-0.19.0-cp314-cp314t-win_arm64.whl", hash = "sha256:ebb011b9010ddbd8acd4650896e87db2715f2cfc70fb194c03ebcbf4150d3844", size = 175725, upload-time = "2026-10-26T10:54:49.562Z" }, + { url = "https://files.pythonhosted.org/packages/61/60/751fb8688322e107e4b4b66747f084ac0e3de599eec6f800b1661b1bbf7b/uuid_utils-0.19.0-pp311-pypy311_pp73-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:492e621a6aa0d8b4a47cad5e71b9fbbebf5e7af6d0f568daea65d38353f713c1", size = 569090, upload-time = "2026-10-26T10:55:12.449Z" }, + { url = "https://files.pythonhosted.org/packages/7a/0c/2971bf13e98e2cab194fb43a81c3ffc47d2eaf84d4669d1d5b96ed89d98f/uuid_utils-0.19.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:68ab7e44d8be02c5d34e2501c465e32747b384c04cf7476de80c01729466a9dc", size = 290711, upload-time = "2026-10-26T10:55:13.836Z" }, + { url = "https://files.pythonhosted.org/packages/bf/18/a446ae37e9489a4dd905c738fcd98a4a49cd3c57ba36b300fc50372162b8/uuid_utils-0.19.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0edba30609b6f1d6bc5eb9be5cc90759bf5d0c77f132d2b63fc7c62038b9304e", size = 325610, upload-time = "2026-10-26T10:55:15.237Z" }, + { url = "https://files.pythonhosted.org/packages/41/ee/32ae97908244fdbed279b4c7215fe186891a9aa1fe9d25f6760b4fe415bc/uuid_utils-0.19.0-pp311-pypy311_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6e137ad199860077c8cf732b71fc8350dbf4bc5e427c01fb82b27dbddd45e370", size = 333087, upload-time = "2026-10-26T10:55:16.728Z" }, + { url = "https://files.pythonhosted.org/packages/25/f5/dc1ad3783eb0409a912d7c87f0f00143b450cb60cecbb9e1648aabc06f30/uuid_utils-0.19.0-pp311-pypy311_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:42f53089ba59a2d1777be98db285aa4948169d434421ee1474ce4615215326ea", size = 438894, upload-time = "2026-10-26T10:55:18.202Z" }, + { url = "https://files.pythonhosted.org/packages/5d/4c/07bbee76758ee4e425455477120899463eb8e05e5c533eb61c6314bf188c/uuid_utils-0.19.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b10d689c0f2715502b7d42426947e3bb5c76ac5ba91ae9bd23afc34283189b82", size = 328432, upload-time = "2026-10-26T10:55:19.512Z" }, + { url = "https://files.pythonhosted.org/packages/14/d6/1e70bbe1c3828fec80b060137f11db69d16b4f40f8ae32526d98b9e604ec/uuid_utils-0.19.0-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0da57ba80366ae75307b686376bf437bdc76b3710d52e6ffe012c99a5c800927", size = 351628, upload-time = "2026-10-26T10:55:20.922Z" }, + { url = "https://files.pythonhosted.org/packages/79/df/75f58b9ee63449e8f81b1698e9e3cb76efada622e6b5590b329d26242a6b/uuid_utils-0.19.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:bb0c63bfa8d9af4228353b5c1b06917acf76067674d4d741c31d2117a3db09c5", size = 181546, upload-time = "2026-10-26T10:55:22.522Z" }, +] + [[package]] name = "uv" version = "0.13.7" @@ -5955,6 +6355,27 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/f0/77/131f4b583e6b4b715c404a66b51c812d701db20f25c9018b188a2b00062c/uvloop-0.23.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6c7ef4701a96553514b2688e342ef1bf2beae6cfd172d89a76c768292aabf405", size = 4402414, upload-time = "2026-10-01T03:16:21.716Z" }, ] +[[package]] +name = "voyageai" +version = "0.6.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "aiohttp" }, + { name = "aiolimiter" }, + { name = "langchain-text-splitters" }, + { name = "numpy", version = "2.4.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, + { name = "numpy", version = "2.5.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" }, + { name = "pillow" }, + { name = "pydantic" }, + { name = "requests" }, + { name = "tenacity" }, + { name = "tokenizers" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0c/4d/f5cd158dbeb75e63ed955e84ac242184a8a73e07bdab0cbb6cdc6bc651d1/voyageai-0.6.0.tar.gz", hash = "sha256:9327de6130f8f755211470a4d135186461796c3c316488199c7485eea9213b69", size = 38358, upload-time = "2026-11-10T07:47:30.206Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/44/97/0c47cc38ee936356aef9dc7597577f08abbb6bdc8fee731ef2e0282bf36c/voyageai-0.6.0-py3-none-any.whl", hash = "sha256:54056603896c867d63c78d159415239a4bb767d8973bebb731500584444986ef", size = 48068, upload-time = "2026-11-10T07:47:29.208Z" }, +] + [[package]] name = "watchdog" version = "7.1.0" @@ -6225,6 +6646,139 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/a4/f5/10b68b7b1544245097b2a1b8238f66f2fc6dcaeb24ba5d917f52bd2eed4f/wsproto-1.3.2-py3-none-any.whl", hash = "sha256:61eea322cdf56e8cc904bd3ad7573359a242ba65688716b0710a5eb12beab584", size = 24405, upload-time = "2025-11-20T18:18:00.454Z" }, ] +[[package]] +name = "xxhash" +version = "4.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c9/b5/3d11d3830ace56d67ea83136c24385c3b07da5a9bc62b73b0b94ac096da3/xxhash-4.1.0.tar.gz", hash = "sha256:c9b288e4c1f5dae54417bc8a05e6f6daf505783d916b4783f4dd2f2e7d5db486", size = 114122, upload-time = "2026-11-09T13:47:33.276Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d2/cb/da501f3abc32f8c3a6f0fb24f1988ec6b862897034a6f44bff92e06b6f29/xxhash-4.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cf3e28ee18b17d253d85c0a0b3608b9b54f765df4af207722c1ce851f386a26d", size = 51515, upload-time = "2026-11-09T13:46:45.912Z" }, + { url = "https://files.pythonhosted.org/packages/5c/1d/112856c31d49a814854f19b3ecf8d81196a5b2d0c8cccbbe5a0cfe571e86/xxhash-4.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:796b8e5212ba90ebc8afac5ae3615502acd0d65363730cccd1d629b0fe7e87f6", size = 36825, upload-time = "2026-11-09T13:46:48.399Z" }, + { url = "https://files.pythonhosted.org/packages/40/37/fb258a692f0ecd93ff3af8f77a0122db1e33853f6c6c433cb841f46da13f/xxhash-4.1.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:822f6aa36f336f65188ae987b9627e843b6963f749d8a2a187f5b6fd72715088", size = 448119, upload-time = "2026-11-09T13:46:48.427Z" }, + { url = "https://files.pythonhosted.org/packages/2f/be/4e9efad09e3152cd437a6ad46148a9fe992f9bdfc1117808e71bc02178c4/xxhash-4.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f948b71013e0a0922176563dd4538967e2d7717b845bd61e0407f2e410962050", size = 274457, upload-time = "2026-11-09T13:46:46.078Z" }, + { url = "https://files.pythonhosted.org/packages/3a/11/177b6b4a781ae0a38e2d335b2a6bfe4e70c3e8edace541b1615da408d4ef/xxhash-4.1.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3fbf446e75b80f2a605b4b1637cb5bfdad5c317bc54ecd91ac7cb9e28314fe4b", size = 296295, upload-time = "2026-11-09T13:46:48.728Z" }, + { url = "https://files.pythonhosted.org/packages/30/d7/d59d72875eb268e83743ce507de3ce983a611e18c79d4d4169500932a747/xxhash-4.1.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:586ce49f8d73dc214f9da8e87824f332f2b4ddb7d15534736a2f906373b2030d", size = 273599, upload-time = "2026-11-09T13:46:49.98Z" }, + { url = "https://files.pythonhosted.org/packages/10/8a/3c85277e544cae7f6fa1dad71e23485b21d5695d3ac69a10ea46d3257896/xxhash-4.1.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b6b09351f73f6d0a3df59b02b9d2154a66fcc716fae8f0b8b2bdd63c42a1d2f6", size = 506958, upload-time = "2026-11-09T13:46:47.172Z" }, + { url = "https://files.pythonhosted.org/packages/b6/4f/5b195a79fafb6e9ab8e95229cc5346572a6cc40d6d6ed9227183a25315ea/xxhash-4.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5e713f5db9e1a8aafac59a45cc1ffce11ca507730f5dc12e212ea7b73d9debde", size = 471448, upload-time = "2026-11-09T13:46:47.314Z" }, + { url = "https://files.pythonhosted.org/packages/d8/6d/c34662fae63220b90d6803dab8fdc9240cf6cef06fbdea73fef0750ff438/xxhash-4.1.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:eadb2724470fd9507cb8f864c969d761dac7d549223ff15ff998c1c3c8e134d5", size = 337233, upload-time = "2026-11-09T13:46:49.72Z" }, + { url = "https://files.pythonhosted.org/packages/86/f7/7def1a3b835ef30b8f1a192405dd99db448922aeda8f45eb0359f00613c0/xxhash-4.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0119cf9ae630c5365596dd9dccf29932f364e8ef0f9162e1d7ef9df3e15ccb8e", size = 270274, upload-time = "2026-11-09T13:46:50.189Z" }, + { url = "https://files.pythonhosted.org/packages/bf/fb/677fef1a69b67c62eb12f71b7f49f801db1191df2f336d2930608f61c9f4/xxhash-4.1.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:3f580ff0d8dec8b495c6c6b281a89be3913158b01937281006993168b4375f84", size = 297452, upload-time = "2026-11-09T13:46:47.438Z" }, + { url = "https://files.pythonhosted.org/packages/95/15/5017ecacab16636c244e2cbd014cc56e17528caa736abcea4e151102e514/xxhash-4.1.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:6179c5e008d2f1ca3a2e9c7935c021f84c5dc7516dfe5c9ee3edc0e9f26d20f0", size = 442167, upload-time = "2026-11-09T13:46:50.278Z" }, + { url = "https://files.pythonhosted.org/packages/45/0d/29c13f74ac43011aaafff9d9b23effefdf9243fcce764fed17087b1bd12c/xxhash-4.1.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:bdeaa333f8fbc237c5e62e0fb70e694dbfde62d15e242be23ba491ecd706e520", size = 271153, upload-time = "2026-11-09T13:46:51.737Z" }, + { url = "https://files.pythonhosted.org/packages/ef/89/d01eedb87d3ef1f7ec81080a160acd7ba42f29a43706b36d7fb4a8192706/xxhash-4.1.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7c6bcd4eeeb5411a176b1a63dc505de99cd6182e88b02722d4407f96cf082e62", size = 327241, upload-time = "2026-11-09T13:46:48.482Z" }, + { url = "https://files.pythonhosted.org/packages/69/6a/82eb13aff0e06861cf2ff7a5b4e91092a3e7f7da5442c8be19e4c876d1a4/xxhash-4.1.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:9f200a2bc05bade88e7c50c28d2a6637468ff0bacbcf1720928ae55b905bb1af", size = 474740, upload-time = "2026-11-09T13:46:48.76Z" }, + { url = "https://files.pythonhosted.org/packages/64/eb/0859f45d7b690f44704f3d8dc9a6a00eea931bcb0f3c5f5da7799a8740bb/xxhash-4.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:e8b54cf9df8802572be9b8af0e3c1bc9eae80f653cd16f97d340a0098c48bb9c", size = 453590, upload-time = "2026-11-09T13:46:51.495Z" }, + { url = "https://files.pythonhosted.org/packages/18/99/e74773a5bc7b8decc874f0c74fb13e2058259101c6f54f87ecf07709e030/xxhash-4.1.0-cp311-cp311-win32.whl", hash = "sha256:b0042c684cf5739352d47afa77d387300805773a756f3677c1113481015934d6", size = 45112, upload-time = "2026-11-09T13:46:51.691Z" }, + { url = "https://files.pythonhosted.org/packages/5d/5f/299d6c8733add97f1b3e25f102dc473cd25b7ca147e6a828ec560c9740f2/xxhash-4.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:306a5538aa1152a3c411ebcce31a824721159495f391290ddcfa5b3f07c051a5", size = 48163, upload-time = "2026-11-09T13:46:48.804Z" }, + { url = "https://files.pythonhosted.org/packages/49/ee/e6d087e0fb37800c84ad842a4f6989ae3bc24964b63440fef1c89ec7f0e9/xxhash-4.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:bf3ebcbed4efff1ec177385e4b906c8ba75881d975ea59f49aa6edc2d37752aa", size = 33410, upload-time = "2026-11-09T13:46:51.735Z" }, + { url = "https://files.pythonhosted.org/packages/49/05/66d1ebb4733922e5fc278d2fb5838d3a2b62a807e1fc1b1176db342d0fba/xxhash-4.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:05bf1466e7eab5980d21bd4b40613d551ab0076543fb82d7568222e11641712d", size = 51550, upload-time = "2026-11-09T13:46:53.727Z" }, + { url = "https://files.pythonhosted.org/packages/fb/f8/80abe5afa45bea5f5a5c310d3084c7f3cf298e19a56f86046d3a3641beab/xxhash-4.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:163e47667ae6449ddbcb58aff4b9a32e937473cdca927fe74e0685919b226d88", size = 36867, upload-time = "2026-11-09T13:46:49.816Z" }, + { url = "https://files.pythonhosted.org/packages/84/8c/91e037f50c6e2b0c78fa53375ac292da37d4eb227274866d6f5b1d3402bc/xxhash-4.1.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3974257e8704f0a10f5f884bcdaac51b1f235c2673548372ea96a31ce184ebcf", size = 447985, upload-time = "2026-11-09T13:46:50.269Z" }, + { url = "https://files.pythonhosted.org/packages/97/94/8c4de193778d71760d5be11e97fa9d0242c783ddecb4df1bea61b25fd298/xxhash-4.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:09b78ce392272a9d121feb2fe6cb48d9538aa882bf8210485da4623e408b5b86", size = 274526, upload-time = "2026-11-09T13:46:53.02Z" }, + { url = "https://files.pythonhosted.org/packages/5c/4b/7204ee7e5ea23bc7a5f950f5236318c8a4353daf9913baf06fc5451894ab/xxhash-4.1.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:01cb3dc9601772fdf7a21b4384c9508d671f5d74b549cfd86cca0ebf8019ed32", size = 297772, upload-time = "2026-11-09T13:46:53.142Z" }, + { url = "https://files.pythonhosted.org/packages/c5/4d/8de3a0c4297a338c0867f88e96800c118eeb324e708614355bf07bebf6bc/xxhash-4.1.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0e8aedb5a086b9c65e8eb28f9c9448fb9ec78b1e3d05f006d36c08d7f1e98a50", size = 273788, upload-time = "2026-11-09T13:46:50.193Z" }, + { url = "https://files.pythonhosted.org/packages/3d/c5/af8408b4bd6e0758711cc9b4dfd3c57f0b5a79613c7699f499551735b489/xxhash-4.1.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:61ae63632bf7aaab0e7fd53f669c1f33a2bdd4ffa2a2dbf836b9ef1f1b4337d8", size = 508405, upload-time = "2026-11-09T13:46:53.226Z" }, + { url = "https://files.pythonhosted.org/packages/c8/6e/fafa2dad5450701c525c27c05f2d93228af263679959bf4ed552840f1d04/xxhash-4.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34b86625dc36b54403b525e1d7b74a64343d9b65cee6e94872c6bd70722267ac", size = 472238, upload-time = "2026-11-09T13:46:55.414Z" }, + { url = "https://files.pythonhosted.org/packages/a8/a5/b7deec3d153c3498bc4d8932deb3869eb2f8393fd725ea6023e633704454/xxhash-4.1.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4412e8ab944d019411713ceada7cb4cb6891f7f8202ada33fc904d10b6270455", size = 337552, upload-time = "2026-11-09T13:46:50.908Z" }, + { url = "https://files.pythonhosted.org/packages/26/bc/b1ebaa4e15d0cfdc086a544f1e92c5c3cf457921b5aebd4655d0e46c7c50/xxhash-4.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:cf96dbe95b72c769be20bf2d8fb2b9e08a90b690761b310d52502a59e9dd0de0", size = 270587, upload-time = "2026-11-09T13:46:52.27Z" }, + { url = "https://files.pythonhosted.org/packages/2d/d6/cf300d155b1f00e80c5e35edac6942a66e5789faa76b2084606b32057fe6/xxhash-4.1.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:f599d8f001d093746ea1c8adeded9a09811f25405b2f3d23ccdcb45ba97593ae", size = 298570, upload-time = "2026-11-09T13:46:54.585Z" }, + { url = "https://files.pythonhosted.org/packages/3e/d3/affd357fb005aa64a172fb8bbaf93e7f1226dd9b30a39a93df862b544242/xxhash-4.1.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:5d3579df3d7cc8ca602bdb74fe2b1ac25ee477aea2c7783a103a777c3c55ebcf", size = 442772, upload-time = "2026-11-09T13:46:55.778Z" }, + { url = "https://files.pythonhosted.org/packages/7d/15/d93f2e01d0e17c4edc3bd8fe2fa6f36fac1f5aba2513b5459ef3b5cb0048/xxhash-4.1.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:d69de1abef8cdd90e914b8723588954b3055175db2b5874ed3cfbc8ddfaf77b5", size = 271179, upload-time = "2026-11-09T13:46:52.074Z" }, + { url = "https://files.pythonhosted.org/packages/9e/e1/ce1f76c1267d0def2215ee65b95b206f668a8ff642ae51eee8c87d6555b4/xxhash-4.1.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:cc55a793d4c31372fbb08ef7666b28d5145f52df393c0ca2e9efdb4a0e7c9b41", size = 327780, upload-time = "2026-11-09T13:46:55.765Z" }, + { url = "https://files.pythonhosted.org/packages/f7/6f/131d9ffa4228cab7f621c949bd27fafb6f4a85dba2a7fcc8e61b10055e50/xxhash-4.1.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:9022c73e4744f691d9861e595d9b34cad40747ff56ed4d16e79bdc2730cc8c85", size = 475958, upload-time = "2026-11-09T13:46:57.066Z" }, + { url = "https://files.pythonhosted.org/packages/d1/b9/a247c41dc8da68ed622c15e1cb215d0dba0c5028086a3ff56ddda7968f59/xxhash-4.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:603ff2f537328c225b1fb2e585c86bbc14eeecf9807434597a2c2beb7754d5d3", size = 454326, upload-time = "2026-11-09T13:46:52.158Z" }, + { url = "https://files.pythonhosted.org/packages/25/81/628edafaf44feda1433563119da19bca5fab90590f82118b1affb85cdd76/xxhash-4.1.0-cp312-cp312-pyemscripten_2024_0_wasm32.whl", hash = "sha256:5a46ad49e39949f7036b59b63a76ecf699cbc883f68c709c215a409845e293c5", size = 21029, upload-time = "2026-11-09T13:46:54.183Z" }, + { url = "https://files.pythonhosted.org/packages/15/cf/9d83955258b74340fa65c1b69540eaea7915130673385a1d9e2f17f26f43/xxhash-4.1.0-cp312-cp312-win32.whl", hash = "sha256:a37ddd3bae6fd44b6fb38becc609d51ebf343903963aa41e570da781e579a883", size = 45176, upload-time = "2026-11-09T13:46:57.475Z" }, + { url = "https://files.pythonhosted.org/packages/4f/15/6b2b57633d88895fb36268445c2858fa7ad6b63df6ceed90dfcf22039b6f/xxhash-4.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:0e687251ab499b3e6efaa0ed18e65a577d805ee59d7ac5347716489f6972b7ac", size = 48252, upload-time = "2026-11-09T13:46:58.187Z" }, + { url = "https://files.pythonhosted.org/packages/10/17/8da4d4316d44a861e6328d41852e15412ce5200f4df7e78a580c9af34a6c/xxhash-4.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:e573bca79091694a9970fa4c01315ba11b1edac34eba286546b2e29d4c341178", size = 33417, upload-time = "2026-11-09T13:46:53.494Z" }, + { url = "https://files.pythonhosted.org/packages/10/c7/18f629492c3bd16e690e99a359368bac67da38d1681ee29396adee3d0174/xxhash-4.1.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:2e9038ffd3d88d114d0fb4f624723b7711dbc7971933f2a5548ccc27188312d6", size = 35447, upload-time = "2026-11-09T13:46:54.544Z" }, + { url = "https://files.pythonhosted.org/packages/9f/57/5ab752c958d55596724484f7ceca9c998805627343265b027a5fb023b402/xxhash-4.1.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:de100c9c1d75fc1304d9fd56553b3c277129921c460c3986a20f66780db6ad7d", size = 36313, upload-time = "2026-11-09T13:46:55.909Z" }, + { url = "https://files.pythonhosted.org/packages/e0/c1/014c737fa9de9f38e4fa3537e6f0a4152ce0d567f9fc19720861f12d21a2/xxhash-4.1.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:c6c897ae27e1b2b75e1d633e4527b763b0aeee85ba01afeea38652a7f4aff220", size = 51019, upload-time = "2026-11-09T13:46:59.371Z" }, + { url = "https://files.pythonhosted.org/packages/17/0f/1dfee11ef6fa0a984c5ce4a1da3d778a7fcbeea436ebcad45918a69f2c68/xxhash-4.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:676844aad46b4452c7ca2c182a8f388cb8e8ca86fc9e7aaca20455b732adaa57", size = 51135, upload-time = "2026-11-09T13:47:00.487Z" }, + { url = "https://files.pythonhosted.org/packages/5a/7d/1d7779bdf72dbb5178d4237f9f8dd26cc47013738013f20a1270ca6ee4a4/xxhash-4.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:01b051e221fface8991b545aea1ef6172cbfe4a1e15f631995d6f7f695377419", size = 36569, upload-time = "2026-11-09T13:46:55.183Z" }, + { url = "https://files.pythonhosted.org/packages/79/16/1493efa04053e9c5ee6d3cfd0385b4664818a28f4f85120dcec40929f270/xxhash-4.1.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2ded3241fc1b42f1dcbf5a7a0bb7f26200a9da83c1a4b6ee2cb33ee6df682509", size = 453217, upload-time = "2026-11-09T13:47:01.016Z" }, + { url = "https://files.pythonhosted.org/packages/44/0c/e884d89f122a4c8df7dce900341c03b98db9c3d0bba50f05e45c55fc49ae/xxhash-4.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:973643f3fc481553985613d40f86d85e7c08b2de9203be09dd25c0f425c3bd54", size = 281306, upload-time = "2026-11-09T13:47:00.255Z" }, + { url = "https://files.pythonhosted.org/packages/42/14/29dacd0f6062faf65a1f83bcb25adbbc25f0bb5dafe320f4c8e2f4438e7b/xxhash-4.1.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:6e68d4a052996fa706ec8bfec6ed6456dfbbc5fe88ed083379d19beb9740f4dc", size = 304044, upload-time = "2026-11-09T13:46:55.722Z" }, + { url = "https://files.pythonhosted.org/packages/b9/0c/47a1670d914d746280564d83ea34e5baff82244a7b8f502902e45eeb3d4b/xxhash-4.1.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:47fe38cd4e546d48af7167440cc6df5da7a0cac8d53e307763d57535420417b4", size = 278493, upload-time = "2026-11-09T13:46:57.28Z" }, + { url = "https://files.pythonhosted.org/packages/1c/c9/5baa03d11791564093234e2ff0f47d3e1bd52bf7290ca13e795ca21d55ee/xxhash-4.1.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:04ed5c0d9a98bf2be9a905d8a44082732d97bec24d1d0246ac039033d5501420", size = 516917, upload-time = "2026-11-09T13:47:00.815Z" }, + { url = "https://files.pythonhosted.org/packages/b0/25/66b03795f349deca7b8641dd9b000e993fa7ad7ae58f75f3f2ef3d696cf7/xxhash-4.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9ec781ad63129c8559d035cf0b876a3843c8ebb6e423c3e8742b3e9a92124b39", size = 478360, upload-time = "2026-11-09T13:47:02.425Z" }, + { url = "https://files.pythonhosted.org/packages/e4/94/ce39f1867a1d9571ce06bf0c0542af735fe5b42f97cd3aac447e6a4f99c4/xxhash-4.1.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cce0371a613104b7b7f1bb0b49149d4ac776f63521887c216eed50c77d6846d4", size = 342264, upload-time = "2026-11-09T13:46:57.629Z" }, + { url = "https://files.pythonhosted.org/packages/e8/bb/1f55e268e06246cb37a038aff6f19743cbe4304911dc3ddad4464d3d1f76/xxhash-4.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:07be9de373a28bda9f058b31c0fcb519af48500255d13ea11b8deb2924a7783f", size = 277852, upload-time = "2026-11-09T13:47:02.639Z" }, + { url = "https://files.pythonhosted.org/packages/0c/25/a4ea7c6d1a08c848a34d2842fd4bb01f72efbf2be2652e5d1fd491a2d7bf/xxhash-4.1.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:2ea39f8217eaacf13c70a9d5e85a2dfed98f2cd7fda87c6f4759d5d317ba9ea2", size = 304898, upload-time = "2026-11-09T13:47:01.927Z" }, + { url = "https://files.pythonhosted.org/packages/d6/36/98489a65491c9ce938ad05b5ba9339017f7c9f2b7ab55253a45350c9e5b6/xxhash-4.1.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:48c2dbc094ccd950e570f095c235276988dcf50e1d2bc983d40b0035902486f4", size = 448603, upload-time = "2026-11-09T13:46:58.589Z" }, + { url = "https://files.pythonhosted.org/packages/36/4c/82bfbc10434b4540124ca5220a8f027112c7acdfd437407ea597cf95419f/xxhash-4.1.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:a624fcf09597f21dff4948a5a3df1848faf3c35d463dad4fd5482baeae714970", size = 276949, upload-time = "2026-11-09T13:46:58.637Z" }, + { url = "https://files.pythonhosted.org/packages/fe/4a/5203f70749649f685dc883cc2e59fcc5e7e8fedfecdceaf6e3ed9092b67c/xxhash-4.1.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:8ef2ff26e5030ad280337e7a6758d77da6c59ded18519ab436bf330e8c743cee", size = 333481, upload-time = "2026-11-09T13:47:02.341Z" }, + { url = "https://files.pythonhosted.org/packages/0d/95/451eb3aac847f154a6fcf6f4bc2ba821fe22c5de55916f8d3234236665fe/xxhash-4.1.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:4bd0951099697c00e2e8f67e76777cd73e5790d44d6dab0faa7ab9b685fe75c9", size = 484198, upload-time = "2026-11-09T13:47:04.513Z" }, + { url = "https://files.pythonhosted.org/packages/e6/c9/c0046ede67fb01b4e4d80c51dfb68b1a21c744d3e4308b94ebfffd6e58fa/xxhash-4.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4afe8fcccfb678845b6f90bb3174d2f4254c9327f4bd8fe81a0e91c117940b21", size = 460302, upload-time = "2026-11-09T13:46:59.113Z" }, + { url = "https://files.pythonhosted.org/packages/03/c1/c5b8e551938a6163dc81005d500c040a596ec52338d5e4898ab7b84c61f1/xxhash-4.1.0-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:ffec5e9139b972051065cb58a3e74914d8a7f70c3bc9c23e03909df22c88dc30", size = 20825, upload-time = "2026-11-09T13:47:04.033Z" }, + { url = "https://files.pythonhosted.org/packages/ac/56/4aedbaa15d0a5736606bd2b8a25aa8642bbdab44f5ce3baf88b90cc46295/xxhash-4.1.0-cp313-cp313-win32.whl", hash = "sha256:5073ad9d46bee44ecf6d66b01cf989e5f37fea18d26735cd5952125ab037524c", size = 44875, upload-time = "2026-11-09T13:47:03.454Z" }, + { url = "https://files.pythonhosted.org/packages/d9/ef/e370e1cf8bc86b5f92b9a11debf529de62ebe9556d9767b2305c818c36da/xxhash-4.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:3cb7f59ea87872554c5484afc43a7c1e6c5295f4b53e76a4bfffcf72b4a67877", size = 47517, upload-time = "2026-11-09T13:47:00.757Z" }, + { url = "https://files.pythonhosted.org/packages/f1/55/55e33a06f083a3730d6adc296ca3c2df44019c4779d488e32d9255fa7417/xxhash-4.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:a329dcca18a3bf27b792e79f42f04ff746da2cbc04db9f582fc985412d9dbf08", size = 33492, upload-time = "2026-11-09T13:47:00.332Z" }, + { url = "https://files.pythonhosted.org/packages/a3/b8/bfb52482bd68f7d446d253b38ea51570b5d0810524157e00fcc4f64152cf/xxhash-4.1.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:007b639130c0c9c6b3b7b8e1862470f14a30645d4436f96bf8c666958001ceb8", size = 35528, upload-time = "2026-11-09T13:47:00.489Z" }, + { url = "https://files.pythonhosted.org/packages/41/74/677ff6135935ded0174a98420591409729f9e76609bc8eaa879b8fc4802f/xxhash-4.1.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a6f8fe95356c58ade81796bff67e84d7be8d26bbfe1f489c0d383c3cb67331ef", size = 36396, upload-time = "2026-11-09T13:47:05.215Z" }, + { url = "https://files.pythonhosted.org/packages/e2/1e/f4f93172d3db51fb7b114360eb5cac3c504d2de68e226ebf9a1a4f41282a/xxhash-4.1.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:0e9513b04353013ed3686e2651f7bab8b073fbe713c03ed52f7e704dcd16c8a7", size = 51140, upload-time = "2026-11-09T13:47:04.755Z" }, + { url = "https://files.pythonhosted.org/packages/e2/89/f6275abfade1cd6f2301ad187b162e0718a64140c1e478736ddde992bfd1/xxhash-4.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:93f3dc5ca6e7eaaad294f7c1520a6fe07e5ab7e7503b92cab56e5c127b863c1c", size = 51344, upload-time = "2026-11-09T13:47:01.869Z" }, + { url = "https://files.pythonhosted.org/packages/1f/b5/de47ee6cbf015f386398b7f74105813d20d316d11247b9b0d6cea50eee3b/xxhash-4.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ebe8d35912ce55e0f36532dd36afff76b7893b92bb127916b870094d97cc2d0f", size = 36639, upload-time = "2026-11-09T13:47:01.444Z" }, + { url = "https://files.pythonhosted.org/packages/85/53/c81fa6d9a0ae185f6bf618d25efc9ca071afc07e23baeb94739be4b1bb7d/xxhash-4.1.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cf14b0e49696be2c14e824f64f147af719bc17f3c0bff68bfed6f5ef9830e19f", size = 453298, upload-time = "2026-11-09T13:47:05.95Z" }, + { url = "https://files.pythonhosted.org/packages/41/80/1cef9476824bf5ae4e8b2f7e8138b004b7b4e2f129a00df8339f21dd4f35/xxhash-4.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:22d7095a187b5fe38c299c03a2b59a56dbbe2c97d1f75d77ee1e74c0d17013f1", size = 281655, upload-time = "2026-11-09T13:47:07.63Z" }, + { url = "https://files.pythonhosted.org/packages/74/17/ea716b7759000a9347c66d36541c1fe5372195bc96e4e8ee307f44e51f05/xxhash-4.1.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fe8cc6dc9db14679b7363a9df7e23889325da5ad6eaf6ce2e651a0e62eaf1dc6", size = 304030, upload-time = "2026-11-09T13:47:02.048Z" }, + { url = "https://files.pythonhosted.org/packages/fe/7d/7c309eaf4cf0fcfa70eeadb13c291a67944f0f6d0f87bb06ed7c61987390/xxhash-4.1.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:251b79ff7292c1427268885bc8ff7ef44a695602e204994acd3b5e86d633e6b7", size = 278771, upload-time = "2026-11-09T13:47:06.522Z" }, + { url = "https://files.pythonhosted.org/packages/23/3c/7606d4241a832aee9a412248ac42f9bd00d0f611ec4f3bb32562ca60cdd4/xxhash-4.1.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c6a67b5a9aff6f67d4abf76b1f3d17c2eddf1128cab72df8085aca57e813527d", size = 516304, upload-time = "2026-11-09T13:47:07.433Z" }, + { url = "https://files.pythonhosted.org/packages/ed/2b/bcf98949b14d64af7720f15b05f24d428e221f1ba43b9023b12eaf0e38be/xxhash-4.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:947868e22608b7bdee242532e707e63d22abf70d05d158640ca2ab94596d63ec", size = 478028, upload-time = "2026-11-09T13:47:03.328Z" }, + { url = "https://files.pythonhosted.org/packages/27/46/05f707a2c9e36eb906d0ec03b5f4c9ce3394242e2bf29159ba3e0630d98b/xxhash-4.1.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fbdbbc2557909c28b9d4598cca21a52fe807865223366e153484761c13b8e31d", size = 342772, upload-time = "2026-11-09T13:47:03.207Z" }, + { url = "https://files.pythonhosted.org/packages/08/05/47ea9f4cb4fd748875c3d5601b36e5b9dc8b72521b4175545ab79cc0ee46/xxhash-4.1.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:afb246e9493622feac4e7946db1e841d8b2112ce3a05d4cf1ad646c0f647d71d", size = 278326, upload-time = "2026-11-09T13:47:07.787Z" }, + { url = "https://files.pythonhosted.org/packages/7e/82/9aa2e936825fcbecaee2b9333fd662b28fdb18a3f2e5bb68cf87a63bab22/xxhash-4.1.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:071ade4a67cad179434b824dfd1891c5a7dd122e179be771139cf9dbd40b0ddd", size = 304604, upload-time = "2026-11-09T13:47:09.184Z" }, + { url = "https://files.pythonhosted.org/packages/b3/47/6372483ffbb9a73a3baec7caf8ee0381d84d5079c9c018fc10654d74e992/xxhash-4.1.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:dd05a46899a0b7fb03dbaefff830f93f6f48b685056cf58c3cad10d7cdc44a00", size = 448626, upload-time = "2026-11-09T13:47:03.529Z" }, + { url = "https://files.pythonhosted.org/packages/d6/19/45756dc2a2c1e8bda347d9161349d5405c9213155f7788036efe3475ff20/xxhash-4.1.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:e61418514bc799ad5d9d99b8423e5597e3acdb0421c25c41c7e39550d0171ac0", size = 277077, upload-time = "2026-11-09T13:47:08.03Z" }, + { url = "https://files.pythonhosted.org/packages/62/03/8e1e94c1e8930a7790d0be3277699e2ce908635c3a3e37d75405e582d832/xxhash-4.1.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:f0f96abd1ee36c763af87a73e5ec8ee6fa42f7e2a323d9d63da1a2acf7e03fe9", size = 333614, upload-time = "2026-11-09T13:47:09.953Z" }, + { url = "https://files.pythonhosted.org/packages/ea/c9/d51908c3e1fcf0f20a90b659d686bd32e445de9f59dab1b8fac02b2e3652/xxhash-4.1.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5d6f590bd1ef03d6976f4646966cd0f659fff749726184e6722937f0e8a22524", size = 483904, upload-time = "2026-11-09T13:47:05.036Z" }, + { url = "https://files.pythonhosted.org/packages/aa/b3/e25c81ffc04302379189e3105842f21e0d456c6ce6b0967b5148d4763cde/xxhash-4.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:bb8ed0062b8f03ad9cf0d4e07a1af802105ae4675d45eb35872150d39ab6c71c", size = 459836, upload-time = "2026-11-09T13:47:04.796Z" }, + { url = "https://files.pythonhosted.org/packages/ab/3d/7ec8dbc646d15c02feffd089e00234d5764aed7aafe53ff7008b9f598a98/xxhash-4.1.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:eb2a048fad81ab55ef3e835b8440a73bb7b8b709140a1e9fe77091863b2172c5", size = 20869, upload-time = "2026-11-09T13:47:09.186Z" }, + { url = "https://files.pythonhosted.org/packages/46/f6/1c78a99783936234e1668da8b415f5a65acfafda3cedc85a7c7c3c2f3727/xxhash-4.1.0-cp314-cp314-win32.whl", hash = "sha256:674a5350f43f459d7185928dd4b30bd0c5e276195cc8f558d394b7747d68cb2f", size = 45922, upload-time = "2026-11-09T13:47:10.847Z" }, + { url = "https://files.pythonhosted.org/packages/ab/5e/a66f81b08b16e8571c8ffef44f0a034fb3550eb94fff0129888dc4a5bd13/xxhash-4.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:095611209c1c5c92146a771da197cc72a71b3479cfd763aaa5ec719a29568d89", size = 48853, upload-time = "2026-11-09T13:47:04.842Z" }, + { url = "https://files.pythonhosted.org/packages/3e/05/876d666ac5ad3a97beb1dcda156ceec706c0b4ace5c0baf9cb002d9b2694/xxhash-4.1.0-cp314-cp314-win_arm64.whl", hash = "sha256:0eac54e6a5b5020b2e2eb21734ac1200f3717eb86293131b22193a40d6b58d1f", size = 34580, upload-time = "2026-11-09T13:47:09.521Z" }, + { url = "https://files.pythonhosted.org/packages/08/4d/47f30ec7868cdb97e0c3f2a79377086df9152e96cdd98b2779361c257558/xxhash-4.1.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:284af7b99ae60bc70dc4092321c3aba16651eda1ca8379e2f8b7c6b1462662fd", size = 51811, upload-time = "2026-11-09T13:47:11.659Z" }, + { url = "https://files.pythonhosted.org/packages/a7/6b/b47503cf3f0401079e4aafc22f9677ac62c5d15e514a536c37dd5294f393/xxhash-4.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:512355fcd7bb8744f9ff42e7579551a795b9b3f7df31368a8e16dd612da3d809", size = 37002, upload-time = "2026-11-09T13:47:06.46Z" }, + { url = "https://files.pythonhosted.org/packages/b8/de/f135650cfa082660e36c47a23b267ad5ce9dabc336369d01590123526cdb/xxhash-4.1.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:9de7bbfe929241665d9b6fe01a8ad733d3a9ceeaab883dd2b2a2d9f4994da02a", size = 468657, upload-time = "2026-11-09T13:47:06.27Z" }, + { url = "https://files.pythonhosted.org/packages/cf/9b/a67caf1b8ebb28aabd159b466f20d8be0fcb3e0b4d6f532eebe3ac663c4d/xxhash-4.1.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:aa70f6103b671b22554ad37ba38c3cf20f67af029881e3917bc17a8ff8ddae04", size = 299047, upload-time = "2026-11-09T13:47:10.49Z" }, + { url = "https://files.pythonhosted.org/packages/e2/ea/e878080d0253821ec814a0bcdfebc427f50d07af03de65eee2a6baa277b0/xxhash-4.1.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b30f88f52c8950a277769fd6f0994affb88afb373e33f3e40a6780ce631abada", size = 312747, upload-time = "2026-11-09T13:47:12.662Z" }, + { url = "https://files.pythonhosted.org/packages/c2/02/edb22ae94f079e2d60586689ed963554cce9988322e32546af018b25b8ef/xxhash-4.1.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:073d1a844cf4310157ae3d92adc726b98f0e33deea61bd565f3e7cab1e280e6a", size = 294367, upload-time = "2026-11-09T13:47:06.102Z" }, + { url = "https://files.pythonhosted.org/packages/4c/67/e6eb17c1662e60a0e5c8b861aee1a851cb2655b207924073207017d1a7c5/xxhash-4.1.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9f5a6390f29461d10d0fb85b0570847e19f92af2672f0f878e6a8f97f1c5cc61", size = 531491, upload-time = "2026-11-09T13:47:11.109Z" }, + { url = "https://files.pythonhosted.org/packages/5e/9b/8466010f46c758f56b531671c6505d726b03570032623d71a79950e2ab35/xxhash-4.1.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7cc000f45288486e4e346199baf98644263147baf2cd0084bf1fdf2604bdf0f2", size = 489601, upload-time = "2026-11-09T13:47:13.111Z" }, + { url = "https://files.pythonhosted.org/packages/61/2a/772c6333356575ad727915f6ec8a66fd0ba63f844246b8157e56ba60cb3e/xxhash-4.1.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:aa672e07a471d487def31ed6eacbe36be0fd099a8a7f0006e28b521462e635b7", size = 355663, upload-time = "2026-11-09T13:47:08.064Z" }, + { url = "https://files.pythonhosted.org/packages/f1/e5/31e92aaa704263548cf7037f3f3353b9517ca3a37db27beafbfbd5915396/xxhash-4.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0533bec8c2c0eb970d5c956be91c1fbafd0b27bad833ecb34ced1029a7ac32d5", size = 293438, upload-time = "2026-11-09T13:47:07.708Z" }, + { url = "https://files.pythonhosted.org/packages/e6/84/604be9358c737c047edd96e8841e34af881eb1bd77ae20ebf641dd5648f3/xxhash-4.1.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:e2938f136b1fbbbf37a332e268137daf5165e8ac39f3dd290608ff154af0cdf3", size = 317303, upload-time = "2026-11-09T13:47:12.142Z" }, + { url = "https://files.pythonhosted.org/packages/6c/83/61ee68968d4cf23ad5a10b942e3d41ea1ebbb5fce8ec11e683ea6c01b914/xxhash-4.1.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:53660c2dcab7196194dc7230ad064e4e92b296a9e14f54084c47e3b79f244f71", size = 463485, upload-time = "2026-11-09T13:47:14.225Z" }, + { url = "https://files.pythonhosted.org/packages/f5/cb/de6bb225d0086ab005eeaff1180700c7f7e85482cf3a8348ceb9ff814305/xxhash-4.1.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:fb0e5cb9d514ea2570f8074bb39a857ff4577ea5c94de9328ee538765274dcbb", size = 290826, upload-time = "2026-11-09T13:47:07.555Z" }, + { url = "https://files.pythonhosted.org/packages/64/9a/3f8a160139b55eaf36545469025595b0592c028ae4bc859a8b1f507e7f60/xxhash-4.1.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:4070adf6d40732a02e49496c4e4c5c74340c86a6d936598dbd483a5212245f3e", size = 345927, upload-time = "2026-11-09T13:47:13.28Z" }, + { url = "https://files.pythonhosted.org/packages/d7/5e/796d73c6365aa36987deaaa0db79b338879ef871763bb97adbefef13d13a/xxhash-4.1.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:3775d0421bbd29d5ce2807b8707c49b8a59bb3f714652991973fc513b5e4be2c", size = 496716, upload-time = "2026-11-09T13:47:15.346Z" }, + { url = "https://files.pythonhosted.org/packages/b0/ac/d226fb3d1dde1c8e199e0666158bd75293e4e29bb200a1320b1553564866/xxhash-4.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:d35644f5973ae44c02177da400662fcfa9a9492642f657d69afd8149581bac3c", size = 470950, upload-time = "2026-11-09T13:47:09.587Z" }, + { url = "https://files.pythonhosted.org/packages/62/58/20ea9d09388f5b58856b45fb434fea04d37c8acfa52692437677e43dd82a/xxhash-4.1.0-cp314-cp314t-win32.whl", hash = "sha256:9415ed3d7e09fa02464990fe2d803b80e8622aef662c91fb31399f78477afd33", size = 46313, upload-time = "2026-11-09T13:47:09.171Z" }, + { url = "https://files.pythonhosted.org/packages/d1/ef/962a52ae23304b080b277c2e3e267c3f3b1c1420c80d923a18fea12b6943/xxhash-4.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:5bfbe338296b51ce48ede954702892a4f8d224679b9e9094b0e221236c088781", size = 49205, upload-time = "2026-11-09T13:47:13.596Z" }, + { url = "https://files.pythonhosted.org/packages/b0/68/8451fbb6e23f69ee6a3b593759456d40fb4ce22ea87e50a00a40f48c919f/xxhash-4.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:b55f128f03ea2f462a172894d714aabcbbdc5d83b6fd4445001d9eab79cc6cbb", size = 34835, upload-time = "2026-11-09T13:47:15.797Z" }, + { url = "https://files.pythonhosted.org/packages/e5/8d/b6bce95df07709d1fdf530a493aedc74187afc312d14cef63198939ef4e9/xxhash-4.1.0-graalpy312-graalpy250_312_native-macosx_10_13_x86_64.whl", hash = "sha256:110087e3fb60c49a849b50aad0830d9025efe3dd76ec8a286e181c7db7e165d1", size = 37791, upload-time = "2026-11-09T13:47:23.981Z" }, + { url = "https://files.pythonhosted.org/packages/1f/de/f52aaf9b0bd9a53c7b079c40c1c9a72a6a5f3dad2541113e7fdef922c4be/xxhash-4.1.0-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:ca7b167cdf6b2c2729cbd2bd6c33e4c1c1ab799890345ce38117b31dcacfea3a", size = 34389, upload-time = "2026-11-09T13:49:02.357Z" }, + { url = "https://files.pythonhosted.org/packages/3f/94/f246656cfc748a24d8bf22b283bac86f6d6512d20f3780dea361a25b1cb4/xxhash-4.1.0-graalpy312-graalpy250_312_native-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d065c2f85f7e259825fab08c897719098bcc4bc6228cbe6eb980d3bcff776352", size = 38637, upload-time = "2026-11-09T13:47:31.979Z" }, + { url = "https://files.pythonhosted.org/packages/88/33/f055ab55cfbdc35dbe75639ce24930513710376550a927bbd356ed01a7e9/xxhash-4.1.0-graalpy312-graalpy250_312_native-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:71e444112ff3207c51b5b499c1d61a75ebc4c08c6a763e0e250fe9565e05b62d", size = 45317, upload-time = "2026-11-09T13:49:05.86Z" }, + { url = "https://files.pythonhosted.org/packages/3f/08/8887894719c72a09bc3dec3ed1b60492c1c85f8980e849ed226d9248652d/xxhash-4.1.0-graalpy312-graalpy250_312_native-win_amd64.whl", hash = "sha256:7d36f8e580a333e204f0a8545d357ad2f92f15f2130da7ea321446aa0218b0d6", size = 48276, upload-time = "2026-11-09T13:47:24.797Z" }, + { url = "https://files.pythonhosted.org/packages/48/1a/1f5f87bf0c9b61088a1d2dfd4b30f577b21c96c43f8eb3eab4b0d670fe4d/xxhash-4.1.0-graalpy313-graalpy253_313_native-macosx_11_0_arm64.whl", hash = "sha256:d29b8c866dd9015eb343dd9f8689e7a51dfb33464145f57427194043ab58a33f", size = 33860, upload-time = "2026-11-09T13:47:28.079Z" }, + { url = "https://files.pythonhosted.org/packages/a6/2b/7535fde10a36d7106efcad4d0ca9c62b1be77c8b66851ae7024ea64a55ff/xxhash-4.1.0-graalpy313-graalpy253_313_native-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3f06764754b12f71d88eec1041351942735998e107f7446b0be9c2ea02a12e5c", size = 38533, upload-time = "2026-11-09T13:47:32.186Z" }, + { url = "https://files.pythonhosted.org/packages/18/fb/8691c994eba2b3c05f165029a53f969f6496ebd209adf7a10d8c9f9acd0f/xxhash-4.1.0-graalpy313-graalpy253_313_native-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:28de1a2cec250771ad8a7709053a26fabd30f59b97b98013bfeeb4ba5e228196", size = 44932, upload-time = "2026-11-09T13:47:25.14Z" }, + { url = "https://files.pythonhosted.org/packages/da/e5/83fbb0bf6f93b021adfd31d41b03dbdf057b3fd992860611d2baf656c575/xxhash-4.1.0-graalpy313-graalpy253_313_native-win_amd64.whl", hash = "sha256:c9c61723c348a66096968fe754d8e4edc528817b9464da06808342eae5acf076", size = 47837, upload-time = "2026-11-09T13:49:03.759Z" }, + { url = "https://files.pythonhosted.org/packages/c0/41/89fa8c4f2d1190f8a9efca46f5779bdb4481356aec35119529e1ba91d35c/xxhash-4.1.0-pp311-pypy311_pp80-macosx_10_15_x86_64.whl", hash = "sha256:d7a55bb01f866f948a4439e325e3e92645d97ca22c43777d2a71e7e51b63a986", size = 47341, upload-time = "2026-11-09T13:49:04.925Z" }, + { url = "https://files.pythonhosted.org/packages/93/5c/aa12a2f255cceb0941fa706d802bd502f64d42a76f17ea68ad62d860499b/xxhash-4.1.0-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:50e76857c8c47d8feb48ff1de711eaccfc5d28d97a5b1f7bd449b20796ecbf2b", size = 33938, upload-time = "2026-11-09T13:47:34.712Z" }, + { url = "https://files.pythonhosted.org/packages/c8/d1/d009e49747f1344c5c6fce52d67dfd53dfd0a0e75c4525abfc1dac44380b/xxhash-4.1.0-pp311-pypy311_pp80-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:49471b564ebae5d664daae4ecb2a02b03dc2e86f2065ed49f85e9367e8ca1428", size = 61619, upload-time = "2026-11-09T13:49:08.256Z" }, + { url = "https://files.pythonhosted.org/packages/9f/b7/473abf21c56969387bf90ac1d36bfbef620776bbe43a66ab4b1dc9fe0f1a/xxhash-4.1.0-pp311-pypy311_pp80-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2967f41d315ef1f9530af306ab79af7e5e6f3a4fdb3f02228bfc39414c11c273", size = 42795, upload-time = "2026-11-09T13:47:27.548Z" }, + { url = "https://files.pythonhosted.org/packages/e8/91/7981fb798edebeb130f95bd062f71f2512178af37925da889638ad63eb64/xxhash-4.1.0-pp311-pypy311_pp80-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0dcfb880344d6f1ed6feb867a898031b942f9c158f777c9ad678c078d7614b99", size = 47906, upload-time = "2026-11-09T13:47:30.555Z" }, + { url = "https://files.pythonhosted.org/packages/30/01/3876a8938f4dab623b501c77e874d7b3ac211fb1871e3bb236815dc66499/xxhash-4.1.0-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:100efa355bcc08b60a719926f9ce3c9ebf21cfa61db0a3bf43ebf64686d66ea3", size = 95476, upload-time = "2026-11-09T13:47:35.059Z" }, + { url = "https://files.pythonhosted.org/packages/a6/61/20a55d959656dd816087f8e0a8af9919be64fd74d4be5bc1bd873ebab8a7/xxhash-4.1.0-pp312-pypy312_pp80-macosx_10_15_x86_64.whl", hash = "sha256:af116cb3e71c397597cbde664dd759280d783a7116685c06203a86d6ccff4b72", size = 47507, upload-time = "2026-11-09T13:47:27.446Z" }, + { url = "https://files.pythonhosted.org/packages/4a/a3/cb57b6c7d4ebd7553736dd88ef8b0dc2a82330f4eca57a11ba9250a5ca4f/xxhash-4.1.0-pp312-pypy312_pp80-macosx_11_0_arm64.whl", hash = "sha256:209ebf5566ae704a931782527a0143e7676d7fbc9a4df4ff91431730691aff0d", size = 34080, upload-time = "2026-11-09T13:49:06.325Z" }, + { url = "https://files.pythonhosted.org/packages/d2/40/c39ac486a16b2fe7db5208b786763b873d2d24ac85737f207179a7f9a896/xxhash-4.1.0-pp312-pypy312_pp80-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f7595ad7102309d686d8aa4fdad9b7f7fe80240cb041d580dae2a01986436009", size = 61644, upload-time = "2026-11-09T13:47:35.925Z" }, + { url = "https://files.pythonhosted.org/packages/b1/89/3214e23cf0318a400a158fd5731a4773709bc083385404e4d4f86cb800e6/xxhash-4.1.0-pp312-pypy312_pp80-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:13447184b2366346fcb26efc0b1cebd385c7bf32bbcb40dd3b4c7de96f856b27", size = 42692, upload-time = "2026-11-09T13:49:10.455Z" }, + { url = "https://files.pythonhosted.org/packages/1e/aa/0dbefd42116b6bd2fc96cbcf7836ff6d4241b1fead407ced196a5cb9b7a8/xxhash-4.1.0-pp312-pypy312_pp80-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:149940775d6a279baed5d90f1166a6c549443a3d4e922b3d6ded8bc6f491aae1", size = 47870, upload-time = "2026-11-09T13:47:28.986Z" }, + { url = "https://files.pythonhosted.org/packages/7b/85/97067532c82bee004bad078f5537a70de8ebc2b0f72e5e32ed489d033e31/xxhash-4.1.0-pp312-pypy312_pp80-win_amd64.whl", hash = "sha256:9917577060294726864d10ad8953f797e0c5b601ce0d95c82eaeba57df8ddae9", size = 95367, upload-time = "2026-11-09T13:47:31.937Z" }, +] + [[package]] name = "yarl" version = "1.25.1" @@ -6323,3 +6877,77 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/2a/99/f6431c8968e89be608d74b28ae2d024521b2953f27dd44e0dece5e04f67a/yarl-1.25.1-cp314-cp314t-win_arm64.whl", hash = "sha256:287e99ff5aa4dc1c7630bfc683ded6f106d756c99dec432a2d7f197a784f51c6", size = 102094, upload-time = "2026-09-15T19:33:31.151Z" }, { url = "https://files.pythonhosted.org/packages/54/22/318c7980066769c6bcd9221ed2248294f5698811da099013098c670565ed/yarl-1.25.1-py3-none-any.whl", hash = "sha256:681c758b0490f9e96b78e5fa8e8dc6e648e9185bb6eaebe73183c33ea0c445f3", size = 63617, upload-time = "2026-09-15T19:34:59.616Z" }, ] + +[[package]] +name = "zstandard" +version = "0.25.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fd/aa/3e0508d5a5dd96529cdc5a97011299056e14c6505b678fd58938792794b1/zstandard-0.25.0.tar.gz", hash = "sha256:7713e1179d162cf5c7906da876ec2ccb9c3a9dcbdffef0cc7f70c3667a205f0b", size = 711513, upload-time = "2025-09-14T22:15:54.002Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2a/83/c3ca27c363d104980f1c9cee1101cc8ba724ac8c28a033ede6aab89585b1/zstandard-0.25.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:933b65d7680ea337180733cf9e87293cc5500cc0eb3fc8769f4d3c88d724ec5c", size = 795254, upload-time = "2025-09-14T22:16:26.137Z" }, + { url = "https://files.pythonhosted.org/packages/ac/4d/e66465c5411a7cf4866aeadc7d108081d8ceba9bc7abe6b14aa21c671ec3/zstandard-0.25.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a3f79487c687b1fc69f19e487cd949bf3aae653d181dfb5fde3bf6d18894706f", size = 640559, upload-time = "2025-09-14T22:16:27.973Z" }, + { url = "https://files.pythonhosted.org/packages/12/56/354fe655905f290d3b147b33fe946b0f27e791e4b50a5f004c802cb3eb7b/zstandard-0.25.0-cp311-cp311-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:0bbc9a0c65ce0eea3c34a691e3c4b6889f5f3909ba4822ab385fab9057099431", size = 5348020, upload-time = "2025-09-14T22:16:29.523Z" }, + { url = "https://files.pythonhosted.org/packages/3b/13/2b7ed68bd85e69a2069bcc72141d378f22cae5a0f3b353a2c8f50ef30c1b/zstandard-0.25.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:01582723b3ccd6939ab7b3a78622c573799d5d8737b534b86d0e06ac18dbde4a", size = 5058126, upload-time = "2025-09-14T22:16:31.811Z" }, + { url = "https://files.pythonhosted.org/packages/c9/dd/fdaf0674f4b10d92cb120ccff58bbb6626bf8368f00ebfd2a41ba4a0dc99/zstandard-0.25.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:5f1ad7bf88535edcf30038f6919abe087f606f62c00a87d7e33e7fc57cb69fcc", size = 5405390, upload-time = "2025-09-14T22:16:33.486Z" }, + { url = "https://files.pythonhosted.org/packages/0f/67/354d1555575bc2490435f90d67ca4dd65238ff2f119f30f72d5cde09c2ad/zstandard-0.25.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:06acb75eebeedb77b69048031282737717a63e71e4ae3f77cc0c3b9508320df6", size = 5452914, upload-time = "2025-09-14T22:16:35.277Z" }, + { url = "https://files.pythonhosted.org/packages/bb/1f/e9cfd801a3f9190bf3e759c422bbfd2247db9d7f3d54a56ecde70137791a/zstandard-0.25.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9300d02ea7c6506f00e627e287e0492a5eb0371ec1670ae852fefffa6164b072", size = 5559635, upload-time = "2025-09-14T22:16:37.141Z" }, + { url = "https://files.pythonhosted.org/packages/21/88/5ba550f797ca953a52d708c8e4f380959e7e3280af029e38fbf47b55916e/zstandard-0.25.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:bfd06b1c5584b657a2892a6014c2f4c20e0db0208c159148fa78c65f7e0b0277", size = 5048277, upload-time = "2025-09-14T22:16:38.807Z" }, + { url = "https://files.pythonhosted.org/packages/46/c0/ca3e533b4fa03112facbe7fbe7779cb1ebec215688e5df576fe5429172e0/zstandard-0.25.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:f373da2c1757bb7f1acaf09369cdc1d51d84131e50d5fa9863982fd626466313", size = 5574377, upload-time = "2025-09-14T22:16:40.523Z" }, + { url = "https://files.pythonhosted.org/packages/12/9b/3fb626390113f272abd0799fd677ea33d5fc3ec185e62e6be534493c4b60/zstandard-0.25.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6c0e5a65158a7946e7a7affa6418878ef97ab66636f13353b8502d7ea03c8097", size = 4961493, upload-time = "2025-09-14T22:16:43.3Z" }, + { url = "https://files.pythonhosted.org/packages/cb/d3/23094a6b6a4b1343b27ae68249daa17ae0651fcfec9ed4de09d14b940285/zstandard-0.25.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:c8e167d5adf59476fa3e37bee730890e389410c354771a62e3c076c86f9f7778", size = 5269018, upload-time = "2025-09-14T22:16:45.292Z" }, + { url = "https://files.pythonhosted.org/packages/8c/a7/bb5a0c1c0f3f4b5e9d5b55198e39de91e04ba7c205cc46fcb0f95f0383c1/zstandard-0.25.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:98750a309eb2f020da61e727de7d7ba3c57c97cf6213f6f6277bb7fb42a8e065", size = 5443672, upload-time = "2025-09-14T22:16:47.076Z" }, + { url = "https://files.pythonhosted.org/packages/27/22/503347aa08d073993f25109c36c8d9f029c7d5949198050962cb568dfa5e/zstandard-0.25.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:22a086cff1b6ceca18a8dd6096ec631e430e93a8e70a9ca5efa7561a00f826fa", size = 5822753, upload-time = "2025-09-14T22:16:49.316Z" }, + { url = "https://files.pythonhosted.org/packages/e2/be/94267dc6ee64f0f8ba2b2ae7c7a2df934a816baaa7291db9e1aa77394c3c/zstandard-0.25.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:72d35d7aa0bba323965da807a462b0966c91608ef3a48ba761678cb20ce5d8b7", size = 5366047, upload-time = "2025-09-14T22:16:51.328Z" }, + { url = "https://files.pythonhosted.org/packages/7b/a3/732893eab0a3a7aecff8b99052fecf9f605cf0fb5fb6d0290e36beee47a4/zstandard-0.25.0-cp311-cp311-win32.whl", hash = "sha256:f5aeea11ded7320a84dcdd62a3d95b5186834224a9e55b92ccae35d21a8b63d4", size = 436484, upload-time = "2025-09-14T22:16:55.005Z" }, + { url = "https://files.pythonhosted.org/packages/43/a3/c6155f5c1cce691cb80dfd38627046e50af3ee9ddc5d0b45b9b063bfb8c9/zstandard-0.25.0-cp311-cp311-win_amd64.whl", hash = "sha256:daab68faadb847063d0c56f361a289c4f268706b598afbf9ad113cbe5c38b6b2", size = 506183, upload-time = "2025-09-14T22:16:52.753Z" }, + { url = "https://files.pythonhosted.org/packages/8c/3e/8945ab86a0820cc0e0cdbf38086a92868a9172020fdab8a03ac19662b0e5/zstandard-0.25.0-cp311-cp311-win_arm64.whl", hash = "sha256:22a06c5df3751bb7dc67406f5374734ccee8ed37fc5981bf1ad7041831fa1137", size = 462533, upload-time = "2025-09-14T22:16:53.878Z" }, + { url = "https://files.pythonhosted.org/packages/82/fc/f26eb6ef91ae723a03e16eddb198abcfce2bc5a42e224d44cc8b6765e57e/zstandard-0.25.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7b3c3a3ab9daa3eed242d6ecceead93aebbb8f5f84318d82cee643e019c4b73b", size = 795738, upload-time = "2025-09-14T22:16:56.237Z" }, + { url = "https://files.pythonhosted.org/packages/aa/1c/d920d64b22f8dd028a8b90e2d756e431a5d86194caa78e3819c7bf53b4b3/zstandard-0.25.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:913cbd31a400febff93b564a23e17c3ed2d56c064006f54efec210d586171c00", size = 640436, upload-time = "2025-09-14T22:16:57.774Z" }, + { url = "https://files.pythonhosted.org/packages/53/6c/288c3f0bd9fcfe9ca41e2c2fbfd17b2097f6af57b62a81161941f09afa76/zstandard-0.25.0-cp312-cp312-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:011d388c76b11a0c165374ce660ce2c8efa8e5d87f34996aa80f9c0816698b64", size = 5343019, upload-time = "2025-09-14T22:16:59.302Z" }, + { url = "https://files.pythonhosted.org/packages/1e/15/efef5a2f204a64bdb5571e6161d49f7ef0fffdbca953a615efbec045f60f/zstandard-0.25.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6dffecc361d079bb48d7caef5d673c88c8988d3d33fb74ab95b7ee6da42652ea", size = 5063012, upload-time = "2025-09-14T22:17:01.156Z" }, + { url = "https://files.pythonhosted.org/packages/b7/37/a6ce629ffdb43959e92e87ebdaeebb5ac81c944b6a75c9c47e300f85abdf/zstandard-0.25.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:7149623bba7fdf7e7f24312953bcf73cae103db8cae49f8154dd1eadc8a29ecb", size = 5394148, upload-time = "2025-09-14T22:17:03.091Z" }, + { url = "https://files.pythonhosted.org/packages/e3/79/2bf870b3abeb5c070fe2d670a5a8d1057a8270f125ef7676d29ea900f496/zstandard-0.25.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:6a573a35693e03cf1d67799fd01b50ff578515a8aeadd4595d2a7fa9f3ec002a", size = 5451652, upload-time = "2025-09-14T22:17:04.979Z" }, + { url = "https://files.pythonhosted.org/packages/53/60/7be26e610767316c028a2cbedb9a3beabdbe33e2182c373f71a1c0b88f36/zstandard-0.25.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5a56ba0db2d244117ed744dfa8f6f5b366e14148e00de44723413b2f3938a902", size = 5546993, upload-time = "2025-09-14T22:17:06.781Z" }, + { url = "https://files.pythonhosted.org/packages/85/c7/3483ad9ff0662623f3648479b0380d2de5510abf00990468c286c6b04017/zstandard-0.25.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:10ef2a79ab8e2974e2075fb984e5b9806c64134810fac21576f0668e7ea19f8f", size = 5046806, upload-time = "2025-09-14T22:17:08.415Z" }, + { url = "https://files.pythonhosted.org/packages/08/b3/206883dd25b8d1591a1caa44b54c2aad84badccf2f1de9e2d60a446f9a25/zstandard-0.25.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:aaf21ba8fb76d102b696781bddaa0954b782536446083ae3fdaa6f16b25a1c4b", size = 5576659, upload-time = "2025-09-14T22:17:10.164Z" }, + { url = "https://files.pythonhosted.org/packages/9d/31/76c0779101453e6c117b0ff22565865c54f48f8bd807df2b00c2c404b8e0/zstandard-0.25.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1869da9571d5e94a85a5e8d57e4e8807b175c9e4a6294e3b66fa4efb074d90f6", size = 4953933, upload-time = "2025-09-14T22:17:11.857Z" }, + { url = "https://files.pythonhosted.org/packages/18/e1/97680c664a1bf9a247a280a053d98e251424af51f1b196c6d52f117c9720/zstandard-0.25.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:809c5bcb2c67cd0ed81e9229d227d4ca28f82d0f778fc5fea624a9def3963f91", size = 5268008, upload-time = "2025-09-14T22:17:13.627Z" }, + { url = "https://files.pythonhosted.org/packages/1e/73/316e4010de585ac798e154e88fd81bb16afc5c5cb1a72eeb16dd37e8024a/zstandard-0.25.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:f27662e4f7dbf9f9c12391cb37b4c4c3cb90ffbd3b1fb9284dadbbb8935fa708", size = 5433517, upload-time = "2025-09-14T22:17:16.103Z" }, + { url = "https://files.pythonhosted.org/packages/5b/60/dd0f8cfa8129c5a0ce3ea6b7f70be5b33d2618013a161e1ff26c2b39787c/zstandard-0.25.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:99c0c846e6e61718715a3c9437ccc625de26593fea60189567f0118dc9db7512", size = 5814292, upload-time = "2025-09-14T22:17:17.827Z" }, + { url = "https://files.pythonhosted.org/packages/fc/5f/75aafd4b9d11b5407b641b8e41a57864097663699f23e9ad4dbb91dc6bfe/zstandard-0.25.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:474d2596a2dbc241a556e965fb76002c1ce655445e4e3bf38e5477d413165ffa", size = 5360237, upload-time = "2025-09-14T22:17:19.954Z" }, + { url = "https://files.pythonhosted.org/packages/ff/8d/0309daffea4fcac7981021dbf21cdb2e3427a9e76bafbcdbdf5392ff99a4/zstandard-0.25.0-cp312-cp312-win32.whl", hash = "sha256:23ebc8f17a03133b4426bcc04aabd68f8236eb78c3760f12783385171b0fd8bd", size = 436922, upload-time = "2025-09-14T22:17:24.398Z" }, + { url = "https://files.pythonhosted.org/packages/79/3b/fa54d9015f945330510cb5d0b0501e8253c127cca7ebe8ba46a965df18c5/zstandard-0.25.0-cp312-cp312-win_amd64.whl", hash = "sha256:ffef5a74088f1e09947aecf91011136665152e0b4b359c42be3373897fb39b01", size = 506276, upload-time = "2025-09-14T22:17:21.429Z" }, + { url = "https://files.pythonhosted.org/packages/ea/6b/8b51697e5319b1f9ac71087b0af9a40d8a6288ff8025c36486e0c12abcc4/zstandard-0.25.0-cp312-cp312-win_arm64.whl", hash = "sha256:181eb40e0b6a29b3cd2849f825e0fa34397f649170673d385f3598ae17cca2e9", size = 462679, upload-time = "2025-09-14T22:17:23.147Z" }, + { url = "https://files.pythonhosted.org/packages/35/0b/8df9c4ad06af91d39e94fa96cc010a24ac4ef1378d3efab9223cc8593d40/zstandard-0.25.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ec996f12524f88e151c339688c3897194821d7f03081ab35d31d1e12ec975e94", size = 795735, upload-time = "2025-09-14T22:17:26.042Z" }, + { url = "https://files.pythonhosted.org/packages/3f/06/9ae96a3e5dcfd119377ba33d4c42a7d89da1efabd5cb3e366b156c45ff4d/zstandard-0.25.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a1a4ae2dec3993a32247995bdfe367fc3266da832d82f8438c8570f989753de1", size = 640440, upload-time = "2025-09-14T22:17:27.366Z" }, + { url = "https://files.pythonhosted.org/packages/d9/14/933d27204c2bd404229c69f445862454dcc101cd69ef8c6068f15aaec12c/zstandard-0.25.0-cp313-cp313-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:e96594a5537722fdfb79951672a2a63aec5ebfb823e7560586f7484819f2a08f", size = 5343070, upload-time = "2025-09-14T22:17:28.896Z" }, + { url = "https://files.pythonhosted.org/packages/6d/db/ddb11011826ed7db9d0e485d13df79b58586bfdec56e5c84a928a9a78c1c/zstandard-0.25.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:bfc4e20784722098822e3eee42b8e576b379ed72cca4a7cb856ae733e62192ea", size = 5063001, upload-time = "2025-09-14T22:17:31.044Z" }, + { url = "https://files.pythonhosted.org/packages/db/00/87466ea3f99599d02a5238498b87bf84a6348290c19571051839ca943777/zstandard-0.25.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:457ed498fc58cdc12fc48f7950e02740d4f7ae9493dd4ab2168a47c93c31298e", size = 5394120, upload-time = "2025-09-14T22:17:32.711Z" }, + { url = "https://files.pythonhosted.org/packages/2b/95/fc5531d9c618a679a20ff6c29e2b3ef1d1f4ad66c5e161ae6ff847d102a9/zstandard-0.25.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:fd7a5004eb1980d3cefe26b2685bcb0b17989901a70a1040d1ac86f1d898c551", size = 5451230, upload-time = "2025-09-14T22:17:34.41Z" }, + { url = "https://files.pythonhosted.org/packages/63/4b/e3678b4e776db00f9f7b2fe58e547e8928ef32727d7a1ff01dea010f3f13/zstandard-0.25.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:8e735494da3db08694d26480f1493ad2cf86e99bdd53e8e9771b2752a5c0246a", size = 5547173, upload-time = "2025-09-14T22:17:36.084Z" }, + { url = "https://files.pythonhosted.org/packages/4e/d5/ba05ed95c6b8ec30bd468dfeab20589f2cf709b5c940483e31d991f2ca58/zstandard-0.25.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:3a39c94ad7866160a4a46d772e43311a743c316942037671beb264e395bdd611", size = 5046736, upload-time = "2025-09-14T22:17:37.891Z" }, + { url = "https://files.pythonhosted.org/packages/50/d5/870aa06b3a76c73eced65c044b92286a3c4e00554005ff51962deef28e28/zstandard-0.25.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:172de1f06947577d3a3005416977cce6168f2261284c02080e7ad0185faeced3", size = 5576368, upload-time = "2025-09-14T22:17:40.206Z" }, + { url = "https://files.pythonhosted.org/packages/5d/35/398dc2ffc89d304d59bc12f0fdd931b4ce455bddf7038a0a67733a25f550/zstandard-0.25.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:3c83b0188c852a47cd13ef3bf9209fb0a77fa5374958b8c53aaa699398c6bd7b", size = 4954022, upload-time = "2025-09-14T22:17:41.879Z" }, + { url = "https://files.pythonhosted.org/packages/9a/5c/36ba1e5507d56d2213202ec2b05e8541734af5f2ce378c5d1ceaf4d88dc4/zstandard-0.25.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:1673b7199bbe763365b81a4f3252b8e80f44c9e323fc42940dc8843bfeaf9851", size = 5267889, upload-time = "2025-09-14T22:17:43.577Z" }, + { url = "https://files.pythonhosted.org/packages/70/e8/2ec6b6fb7358b2ec0113ae202647ca7c0e9d15b61c005ae5225ad0995df5/zstandard-0.25.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:0be7622c37c183406f3dbf0cba104118eb16a4ea7359eeb5752f0794882fc250", size = 5433952, upload-time = "2025-09-14T22:17:45.271Z" }, + { url = "https://files.pythonhosted.org/packages/7b/01/b5f4d4dbc59ef193e870495c6f1275f5b2928e01ff5a81fecb22a06e22fb/zstandard-0.25.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:5f5e4c2a23ca271c218ac025bd7d635597048b366d6f31f420aaeb715239fc98", size = 5814054, upload-time = "2025-09-14T22:17:47.08Z" }, + { url = "https://files.pythonhosted.org/packages/b2/e5/fbd822d5c6f427cf158316d012c5a12f233473c2f9c5fe5ab1ae5d21f3d8/zstandard-0.25.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4f187a0bb61b35119d1926aee039524d1f93aaf38a9916b8c4b78ac8514a0aaf", size = 5360113, upload-time = "2025-09-14T22:17:48.893Z" }, + { url = "https://files.pythonhosted.org/packages/8e/e0/69a553d2047f9a2c7347caa225bb3a63b6d7704ad74610cb7823baa08ed7/zstandard-0.25.0-cp313-cp313-win32.whl", hash = "sha256:7030defa83eef3e51ff26f0b7bfb229f0204b66fe18e04359ce3474ac33cbc09", size = 436936, upload-time = "2025-09-14T22:17:52.658Z" }, + { url = "https://files.pythonhosted.org/packages/d9/82/b9c06c870f3bd8767c201f1edbdf9e8dc34be5b0fbc5682c4f80fe948475/zstandard-0.25.0-cp313-cp313-win_amd64.whl", hash = "sha256:1f830a0dac88719af0ae43b8b2d6aef487d437036468ef3c2ea59c51f9d55fd5", size = 506232, upload-time = "2025-09-14T22:17:50.402Z" }, + { url = "https://files.pythonhosted.org/packages/d4/57/60c3c01243bb81d381c9916e2a6d9e149ab8627c0c7d7abb2d73384b3c0c/zstandard-0.25.0-cp313-cp313-win_arm64.whl", hash = "sha256:85304a43f4d513f5464ceb938aa02c1e78c2943b29f44a750b48b25ac999a049", size = 462671, upload-time = "2025-09-14T22:17:51.533Z" }, + { url = "https://files.pythonhosted.org/packages/3d/5c/f8923b595b55fe49e30612987ad8bf053aef555c14f05bb659dd5dbe3e8a/zstandard-0.25.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:e29f0cf06974c899b2c188ef7f783607dbef36da4c242eb6c82dcd8b512855e3", size = 795887, upload-time = "2025-09-14T22:17:54.198Z" }, + { url = "https://files.pythonhosted.org/packages/8d/09/d0a2a14fc3439c5f874042dca72a79c70a532090b7ba0003be73fee37ae2/zstandard-0.25.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:05df5136bc5a011f33cd25bc9f506e7426c0c9b3f9954f056831ce68f3b6689f", size = 640658, upload-time = "2025-09-14T22:17:55.423Z" }, + { url = "https://files.pythonhosted.org/packages/5d/7c/8b6b71b1ddd517f68ffb55e10834388d4f793c49c6b83effaaa05785b0b4/zstandard-0.25.0-cp314-cp314-manylinux2010_i686.manylinux_2_12_i686.manylinux_2_28_i686.whl", hash = "sha256:f604efd28f239cc21b3adb53eb061e2a205dc164be408e553b41ba2ffe0ca15c", size = 5379849, upload-time = "2025-09-14T22:17:57.372Z" }, + { url = "https://files.pythonhosted.org/packages/a4/86/a48e56320d0a17189ab7a42645387334fba2200e904ee47fc5a26c1fd8ca/zstandard-0.25.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:223415140608d0f0da010499eaa8ccdb9af210a543fac54bce15babbcfc78439", size = 5058095, upload-time = "2025-09-14T22:17:59.498Z" }, + { url = "https://files.pythonhosted.org/packages/f8/ad/eb659984ee2c0a779f9d06dbfe45e2dc39d99ff40a319895df2d3d9a48e5/zstandard-0.25.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2e54296a283f3ab5a26fc9b8b5d4978ea0532f37b231644f367aa588930aa043", size = 5551751, upload-time = "2025-09-14T22:18:01.618Z" }, + { url = "https://files.pythonhosted.org/packages/61/b3/b637faea43677eb7bd42ab204dfb7053bd5c4582bfe6b1baefa80ac0c47b/zstandard-0.25.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ca54090275939dc8ec5dea2d2afb400e0f83444b2fc24e07df7fdef677110859", size = 6364818, upload-time = "2025-09-14T22:18:03.769Z" }, + { url = "https://files.pythonhosted.org/packages/31/dc/cc50210e11e465c975462439a492516a73300ab8caa8f5e0902544fd748b/zstandard-0.25.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e09bb6252b6476d8d56100e8147b803befa9a12cea144bbe629dd508800d1ad0", size = 5560402, upload-time = "2025-09-14T22:18:05.954Z" }, + { url = "https://files.pythonhosted.org/packages/c9/ae/56523ae9c142f0c08efd5e868a6da613ae76614eca1305259c3bf6a0ed43/zstandard-0.25.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a9ec8c642d1ec73287ae3e726792dd86c96f5681eb8df274a757bf62b750eae7", size = 4955108, upload-time = "2025-09-14T22:18:07.68Z" }, + { url = "https://files.pythonhosted.org/packages/98/cf/c899f2d6df0840d5e384cf4c4121458c72802e8bda19691f3b16619f51e9/zstandard-0.25.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:a4089a10e598eae6393756b036e0f419e8c1d60f44a831520f9af41c14216cf2", size = 5269248, upload-time = "2025-09-14T22:18:09.753Z" }, + { url = "https://files.pythonhosted.org/packages/1b/c0/59e912a531d91e1c192d3085fc0f6fb2852753c301a812d856d857ea03c6/zstandard-0.25.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:f67e8f1a324a900e75b5e28ffb152bcac9fbed1cc7b43f99cd90f395c4375344", size = 5430330, upload-time = "2025-09-14T22:18:11.966Z" }, + { url = "https://files.pythonhosted.org/packages/a0/1d/7e31db1240de2df22a58e2ea9a93fc6e38cc29353e660c0272b6735d6669/zstandard-0.25.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:9654dbc012d8b06fc3d19cc825af3f7bf8ae242226df5f83936cb39f5fdc846c", size = 5811123, upload-time = "2025-09-14T22:18:13.907Z" }, + { url = "https://files.pythonhosted.org/packages/f6/49/fac46df5ad353d50535e118d6983069df68ca5908d4d65b8c466150a4ff1/zstandard-0.25.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:4203ce3b31aec23012d3a4cf4a2ed64d12fea5269c49aed5e4c3611b938e4088", size = 5359591, upload-time = "2025-09-14T22:18:16.465Z" }, + { url = "https://files.pythonhosted.org/packages/c2/38/f249a2050ad1eea0bb364046153942e34abba95dd5520af199aed86fbb49/zstandard-0.25.0-cp314-cp314-win32.whl", hash = "sha256:da469dc041701583e34de852d8634703550348d5822e66a0c827d39b05365b12", size = 444513, upload-time = "2025-09-14T22:18:20.61Z" }, + { url = "https://files.pythonhosted.org/packages/3a/43/241f9615bcf8ba8903b3f0432da069e857fc4fd1783bd26183db53c4804b/zstandard-0.25.0-cp314-cp314-win_amd64.whl", hash = "sha256:c19bcdd826e95671065f8692b5a4aa95c52dc7a02a4c5a0cac46deb879a017a2", size = 516118, upload-time = "2025-09-14T22:18:17.849Z" }, + { url = "https://files.pythonhosted.org/packages/f0/ef/da163ce2450ed4febf6467d77ccb4cd52c4c30ab45624bad26ca0a27260c/zstandard-0.25.0-cp314-cp314-win_arm64.whl", hash = "sha256:d7541afd73985c630bafcd6338d2518ae96060075f9463d7dc14cfb33514383d", size = 476940, upload-time = "2025-09-14T22:18:19.088Z" }, +] From e030b50a0d5f77b865201146317515b75384084d Mon Sep 17 00:00:00 2001 From: fzowl Date: Fri, 13 Nov 2026 13:38:32 +0100 Subject: [PATCH 2/6] Python: Map malformed Voyage AI responses to invalid-response errors A response without usage or a token count fails inside the SDK while it builds its result; report that as IntegrationInvalidResponseException instead of a generic request failure. Also reject blank API keys and non-integer dimensions, and keep non-text error details from escaping as TypeError. --- .../_embedding_client.py | 22 ++--- .../test_voyageai_embedding_client.py | 83 ++++++++++++++----- 2 files changed, 76 insertions(+), 29 deletions(-) diff --git a/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py b/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py index 84259464d3e..b6a3967df62 100644 --- a/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py +++ b/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py @@ -146,8 +146,7 @@ def _error_detail(ex: voyageai.error.VoyageError) -> str: body: Any = getattr(ex, "json_body", None) detail: Any = cast("dict[str, Any]", body).get("detail") if isinstance(body, dict) else None if not isinstance(detail, str): - user_message: str | None = getattr(ex, "user_message", None) - detail = user_message or str(ex) + detail = str(getattr(ex, "user_message", None) or ex) return detail[:_MAX_ERROR_DETAIL_CHARS] @@ -157,7 +156,7 @@ def _validate_model_and_dimensions(model: str, dimensions: int | None) -> None: raise ValueError( f"Unsupported Voyage AI embedding model {model!r}. Supported models: {', '.join(_MODEL_DIMENSIONS)}." ) - if dimensions is not None and dimensions not in supported: + if dimensions is not None and (type(dimensions) is not int or dimensions not in supported): raise ValueError(f"Model {model!r} supports dimensions {list(supported)}, not {dimensions!r}.") @@ -222,7 +221,7 @@ def __init__( if client is None: key = settings.get("api_key") - if key is None: + if key is None or not key.get_secret_value().strip(): raise ValueError( "A Voyage AI API key is required. Set VOYAGE_API_KEY, pass api_key, " "or supply a pre-configured client." @@ -282,8 +281,12 @@ async def _embed_batch( response = await self.client.embed(list(values), model=model, **kwargs) except voyageai.error.VoyageError as ex: self._raise_sdk_error(ex) - except IntegrationException: - raise + except (AttributeError, KeyError, TypeError) as ex: + # The SDK reads the usage and vectors out of the body while building its result. A body without + # them, including one with no token count, surfaces here as a lookup or type error. + raise IntegrationInvalidResponseException( + f"Voyage AI embeddings response was invalid: {ex!r}", inner_exception=ex + ) from ex except Exception as ex: raise IntegrationException(f"Voyage AI embeddings request failed: {ex}", inner_exception=ex) from ex @@ -298,10 +301,9 @@ async def _embed_batch( raise ValueError(f"unexpected embedding length {len(vector)}") embeddings.append(Embedding(vector=vector, dimensions=len(vector), model=model)) - # Billing fails closed: a response without a token count is an error, never zero tokens. - total_tokens: Any = getattr(response, "total_tokens", None) - if isinstance(total_tokens, bool) or not isinstance(total_tokens, int) or total_tokens < 0: - raise ValueError("response did not report a valid token count") + # The SDK sums the reported token counts and fails on a response without one, so billing + # never falls back to zero tokens. + total_tokens = response.total_tokens return embeddings, {"input_token_count": total_tokens, "total_token_count": total_tokens} except Exception as ex: raise IntegrationInvalidResponseException( diff --git a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py index 41bff7f5d46..24981429bd5 100644 --- a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py +++ b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py @@ -1,11 +1,11 @@ # Copyright (c) Microsoft. All rights reserved. import os -from types import SimpleNamespace from typing import Any, cast from unittest.mock import AsyncMock import pytest +import voyageai import voyageai.error from agent_framework.exceptions import ( IntegrationException, @@ -14,7 +14,9 @@ IntegrationInvalidResponseException, SettingNotFoundError, ) +from voyageai.api_resources import VoyageResponse from voyageai.client_async import AsyncClient +from voyageai.object import EmbeddingsObject from agent_framework_voyageai import RawVoyageAIEmbeddingClient, VoyageAIEmbeddingClient from agent_framework_voyageai._embedding_client import MAX_BATCH_SIZE # pyright: ignore[reportPrivateUsage] @@ -34,12 +36,19 @@ def _clear_voyage_env(request: pytest.FixtureRequest, monkeypatch: pytest.Monkey monkeypatch.delenv(name, raising=False) -def make_response(vectors: list[list[float]], total_tokens: int | None = 4) -> Any: - """Shape of ``voyageai.object.EmbeddingsObject``; ``None`` leaves the token count off.""" - response = SimpleNamespace(embeddings=vectors) - if total_tokens is not None: - response.total_tokens = total_tokens - return response +def make_body(vectors: list[list[float]], usage: Any = None) -> dict[str, Any]: + """The JSON body of ``POST /v1/embeddings``.""" + return { + "object": "list", + "model": "voyage-4", + "data": [{"object": "embedding", "index": i, "embedding": v} for i, v in enumerate(vectors)], + "usage": {"total_tokens": 4} if usage is None else usage, + } + + +def make_response(vectors: list[list[float]], total_tokens: int = 4) -> EmbeddingsObject: + """What ``AsyncClient.embed`` returns for a well-formed body.""" + return EmbeddingsObject(VoyageResponse.construct_from(make_body(vectors, {"total_tokens": total_tokens}))) def make_client(*responses: Any, model: str | None = "voyage-4") -> tuple[VoyageAIEmbeddingClient, AsyncMock]: @@ -82,6 +91,12 @@ def test_api_key_is_required_without_a_client() -> None: VoyageAIEmbeddingClient(model="voyage-4") +@pytest.mark.parametrize("api_key", ["", " "]) +def test_blank_api_key_is_rejected(api_key: str) -> None: + with pytest.raises(ValueError, match="VOYAGE_API_KEY"): + VoyageAIEmbeddingClient(model="voyage-4", api_key=api_key) + + def test_client_must_be_a_voyage_client() -> None: with pytest.raises(TypeError, match="AsyncClient"): VoyageAIEmbeddingClient(model="voyage-4", client=cast(Any, object())) @@ -103,6 +118,14 @@ async def test_unsupported_dimensions_are_rejected_before_any_request(model: str sdk.embed.assert_not_awaited() +@pytest.mark.parametrize("dimensions", [1024.0, True]) +async def test_dimensions_must_be_an_integer(dimensions: Any) -> None: + client, sdk = make_client() + with pytest.raises(ValueError, match="supports dimensions"): + await client.get_embeddings(["a"], options=cast(Any, {"dimensions": dimensions})) + sdk.embed.assert_not_awaited() + + @pytest.mark.parametrize("input_type", ["passage", "search_query", ""]) async def test_input_type_must_be_document_or_query(input_type: str) -> None: client, sdk = make_client() @@ -158,16 +181,27 @@ async def test_inputs_over_the_request_limit_are_split_in_order_and_usage_is_sum # region: the response is checked, and billing fails closed -async def test_missing_token_count_fails_instead_of_reporting_zero_tokens() -> None: - client, _ = make_client(make_response([[0.1, 0.2]], total_tokens=None)) - with pytest.raises(IntegrationInvalidResponseException, match="token count"): - await client.get_embeddings(["a"]) - - -@pytest.mark.parametrize("total_tokens", [-1, "4", True, 1.5]) -async def test_invalid_token_count_fails(total_tokens: Any) -> None: - client, _ = make_client(make_response([[0.1, 0.2]], total_tokens=total_tokens)) - with pytest.raises(IntegrationInvalidResponseException, match="token count"): +@pytest.mark.parametrize( + "usage_body", + [ + pytest.param({"drop_usage": True}, id="no-usage"), + pytest.param({}, id="empty-usage"), + pytest.param({"total_tokens": None}, id="null-total-tokens"), + ], +) +async def test_response_without_a_token_count_fails_instead_of_reporting_zero_tokens( + monkeypatch: pytest.MonkeyPatch, usage_body: dict[str, Any] +) -> None: + body = make_body([[0.1, 0.2]]) + if usage_body.get("drop_usage"): + del body["usage"] + else: + body["usage"] = usage_body + # Run the SDK's own response handling, which is where the token count is read. + monkeypatch.setattr(voyageai.Embedding, "acreate", AsyncMock(return_value=VoyageResponse.construct_from(body))) + client = VoyageAIEmbeddingClient(model="voyage-4", client=AsyncClient(api_key="test-key")) + + with pytest.raises(IntegrationInvalidResponseException): await client.get_embeddings(["a"]) @@ -238,6 +272,15 @@ async def test_error_without_a_detail_body_falls_back_to_the_sdk_message() -> No await client.get_embeddings(["a"]) +async def test_non_text_detail_does_not_escape_as_a_type_error() -> None: + client, sdk = make_client() + sdk.embed.side_effect = voyageai.error.InvalidRequestError( + "sdk message", http_status=422, json_body={"detail": [{"msg": "field required"}]} + ) + with pytest.raises(IntegrationInvalidRequestException, match="sdk message"): + await client.get_embeddings(["a"]) + + async def test_unexpected_sdk_failure_is_wrapped() -> None: client, sdk = make_client() sdk.embed.side_effect = RuntimeError("connection reset") @@ -255,12 +298,14 @@ async def test_unexpected_sdk_failure_is_wrapped() -> None: async def test_integration_embeds_with_requested_dimensions() -> None: client = VoyageAIEmbeddingClient(model="voyage-4-lite") - result = await client.get_embeddings(["hello"], options={"dimensions": 256, "input_type": "query"}) + result = await client.get_embeddings( + ["Voyage AI provides embedding models."], options={"dimensions": 256, "input_type": "document"} + ) assert len(result) == 1 assert result[0].dimensions == 256 assert result.usage is not None - assert (result.usage.get("total_token_count") or 0) >= 0 + assert (result.usage.get("total_token_count") or 0) > 0 # endregion From 49a32721c5e85518856d8574fd34678cea2d4471 Mon Sep 17 00:00:00 2001 From: fzowl Date: Sat, 14 Nov 2026 14:31:01 +0100 Subject: [PATCH 3/6] Python: Add contextualized embeddings and token-aware batching to the Voyage AI package VoyageAIContextualizedEmbeddingClient embeds documents and queries with voyage-context-4 and voyage-context-3. Contextualized embeddings return a vector per chunk, which does not fit BaseEmbeddingClient, so the client has its own method and result type, with the chunk text returned alongside the vectors. Documents are sent as one string each with auto-chunking enabled and a chunk size of 32,000 tokens; queries are sent unchunked. input_type is required and the model is always named explicitly. Both clients now split a call by the model's documented per-request token ceiling as well as the 1000-input limit, counting tokens with the SDK tokenizer only when the inputs could reach the ceiling. --- python/packages/voyageai/AGENTS.md | 19 +- python/packages/voyageai/README.md | 51 ++- .../agent_framework_voyageai/__init__.py | 12 + .../_contextualized_embedding_client.py | 327 ++++++++++++++++++ .../_embedding_client.py | 155 +++------ .../agent_framework_voyageai/_shared.py | 136 ++++++++ python/packages/voyageai/samples/README.md | 3 + .../voyage_contextualized_embeddings.py | 44 +++ ...oyageai_contextualized_embedding_client.py | 300 ++++++++++++++++ .../test_voyageai_embedding_client.py | 42 ++- 10 files changed, 982 insertions(+), 107 deletions(-) create mode 100644 python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py create mode 100644 python/packages/voyageai/agent_framework_voyageai/_shared.py create mode 100644 python/packages/voyageai/samples/voyage_contextualized_embeddings.py create mode 100644 python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py diff --git a/python/packages/voyageai/AGENTS.md b/python/packages/voyageai/AGENTS.md index 8788a9d6853..234c2a8176c 100644 --- a/python/packages/voyageai/AGENTS.md +++ b/python/packages/voyageai/AGENTS.md @@ -1,6 +1,6 @@ # Voyage AI Package (agent-framework-voyageai) -Integration with Voyage AI for text embedding generation. +Integration with Voyage AI for text embedding generation and contextualized chunk embeddings. ## Implementation Notes @@ -11,8 +11,18 @@ Integration with Voyage AI for text embedding generation. keeps the SDK's local open-weight models from being selected, since those would run in-process. - `dimensions` is validated against the model's supported sizes and sent as `output_dimension` only when set. `input_type` (`"document"`/`"query"`) and `truncation` are sent only when set. -- A request holds at most 1000 inputs (`MAX_BATCH_SIZE`); `get_embeddings` splits larger calls into - consecutive requests and sums usage. Token ceilings per request are enforced by the service. +- A request holds at most 1000 inputs (`MAX_BATCH_SIZE`) and, per model, at most the tokens in + `_ModelSpec.max_request_tokens` (`None` for `voyage-code-4`: no ceiling is documented, so none is assumed). + `split_into_requests` splits larger calls into consecutive requests and `get_embeddings` sums usage. Tokens + are counted with the SDK tokenizer (`client.tokenize`, fetched from the Hugging Face Hub on first use) only + when the inputs could reach the ceiling by their UTF-8 size; a tokenizer failure raises instead of sending an + unsplit request. +- Contextualized embeddings do not fit `BaseEmbeddingClient` (several vectors per input), so + `VoyageAIContextualizedEmbeddingClient.get_contextualized_embeddings` has its own result type + (`VoyageAIContextualizedEmbeddings`, one `VoyageAIContextualizedEmbedding` per value with `embeddings` and + `chunks`) and no telemetry layer. `input_type` is required. Documents (`"document"`) are always a flat + `list[str]` with `enable_auto_chunking=True` and `chunk_size=32_000`; the API rejects auto-chunking with any + other input type or with pre-chunked inner lists. Queries are sent as `[[query], ...]` without chunking. - Usage is read from the response's `usage.total_tokens`. A missing or invalid count raises `IntegrationInvalidResponseException`; it is never reported as zero. - Voyage AI error bodies are `{"detail": ""}`. `_error_detail` reads that field and @@ -28,6 +38,9 @@ Integration with Voyage AI for text embedding generation. - **`RawVoyageAIEmbeddingClient`** - The same client without the telemetry layer - **`VoyageAIEmbeddingOptions`** - Options TypedDict (`model`, `dimensions`, `input_type`, `truncation`) - **`VoyageAIEmbeddingSettings`** - TypedDict settings for Voyage AI configuration +- **`VoyageAIContextualizedEmbeddingClient`** - Contextualized chunk embeddings for `voyage-context-4`/`-3` +- **`VoyageAIContextualizedEmbeddingOptions`** / **`VoyageAIContextualizedEmbeddingSettings`** - Its options and settings +- **`VoyageAIContextualizedEmbeddings`** / **`VoyageAIContextualizedEmbedding`** - Its result types ## Usage diff --git a/python/packages/voyageai/README.md b/python/packages/voyageai/README.md index 631b5174fda..be5cf34160a 100644 --- a/python/packages/voyageai/README.md +++ b/python/packages/voyageai/README.md @@ -12,7 +12,8 @@ See the [Voyage AI samples](samples/README.md) for a runnable example. ## Embedding Client -The `VoyageAIEmbeddingClient` generates text embeddings with the official +The `VoyageAIEmbeddingClient` generates text embeddings, and `VoyageAIContextualizedEmbeddingClient` generates +contextualized chunk embeddings, with the official [`voyageai`](https://pypi.org/project/voyageai/) SDK. ### Quick Start @@ -72,12 +73,54 @@ results = await collection.search("How do I call a model?", embeddings_options={ ### Requests and usage -Voyage AI accepts at most 1000 inputs per request, so the client sends larger calls as consecutive requests, -returns the vectors in order, and sums usage. The service also caps the tokens in one request per model and -answers an over-limit request with `400`, which surfaces as `IntegrationInvalidRequestException`. +A request holds at most 1000 inputs, and each model has a documented ceiling on the tokens of one request +(1M for `voyage-4-lite` and `voyage-3.5-lite`, 320K for `voyage-4` and `voyage-3.5`, 120K for the others; +none is documented for `voyage-code-4`, so only the input count is limited there). The client splits larger calls +into consecutive requests within both limits, returns the vectors in order, and sums usage. + +Tokens are counted with the model's tokenizer through the SDK. The tokenizer is downloaded from the Hugging +Face Hub on first use, and only when the inputs could reach the ceiling: a call that is far below it never +loads one. If the tokenizer is needed and cannot be loaded, the call raises `IntegrationException` instead of +sending an unsplit request. Usage comes from the token count the service reports. A response without one raises `IntegrationInvalidResponseException` instead of reporting zero tokens. Only the models in the table above are accepted. The `voyageai` SDK can also run some open-weight models on the local machine, and the client does not select them. + +## Contextualized Embedding Client + +Contextualized embeddings give each chunk of a document a vector that also reflects the rest of the document. +One document yields several vectors, which does not fit `get_embeddings` (one vector per input), so +`VoyageAIContextualizedEmbeddingClient` has its own method and result type. It has no telemetry layer. + +```python +from agent_framework_voyageai import VoyageAIContextualizedEmbeddingClient + +# The model is always named explicitly: pass it here, or set VOYAGE_CONTEXTUALIZED_EMBEDDING_MODEL. +client = VoyageAIContextualizedEmbeddingClient(model="voyage-context-4") + +documents = await client.get_contextualized_embeddings( + ["A long document ...", "Another long document ..."], + options={"input_type": "document", "dimensions": 512}, +) +for document in documents: + for chunk, embedding in zip(document.chunks or [], document.embeddings): + print(chunk[:40], embedding.dimensions) + +queries = await client.get_contextualized_embeddings(["Why do cats purr?"], options={"input_type": "query"}) +``` + +| Model | `dimensions` | +|---|---| +| `voyage-context-4`, `voyage-context-3` | 256, 512, 1024 (default), 2048 | + +- `input_type` is required. `"document"` sends each value as one whole document (a flat list of strings, one + string per document) with `enable_auto_chunking=True` and `chunk_size=32_000`, so Voyage AI does the + chunking. A pre-chunked document, such as a list of strings as one value, raises `ValueError`: the service + rejects it when it chunks itself. `"query"` sends each value as one query and does not chunk. +- Each result holds one vector per chunk in `embeddings`, and the text of each chunk in `chunks` when the service + returned it. Queries have one vector and `chunks` is `None`. +- Requests are split by the 1000-input and 120K-token limits like the text client, and the same fail-closed + usage and error mapping apply. diff --git a/python/packages/voyageai/agent_framework_voyageai/__init__.py b/python/packages/voyageai/agent_framework_voyageai/__init__.py index 5775112bd8b..efa96ae0c01 100644 --- a/python/packages/voyageai/agent_framework_voyageai/__init__.py +++ b/python/packages/voyageai/agent_framework_voyageai/__init__.py @@ -2,6 +2,13 @@ import importlib.metadata +from ._contextualized_embedding_client import ( + VoyageAIContextualizedEmbedding, + VoyageAIContextualizedEmbeddingClient, + VoyageAIContextualizedEmbeddingOptions, + VoyageAIContextualizedEmbeddings, + VoyageAIContextualizedEmbeddingSettings, +) from ._embedding_client import ( RawVoyageAIEmbeddingClient, VoyageAIEmbeddingClient, @@ -16,6 +23,11 @@ __all__ = [ "RawVoyageAIEmbeddingClient", + "VoyageAIContextualizedEmbedding", + "VoyageAIContextualizedEmbeddingClient", + "VoyageAIContextualizedEmbeddingOptions", + "VoyageAIContextualizedEmbeddingSettings", + "VoyageAIContextualizedEmbeddings", "VoyageAIEmbeddingClient", "VoyageAIEmbeddingOptions", "VoyageAIEmbeddingSettings", diff --git a/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py b/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py new file mode 100644 index 00000000000..a7b48c1e183 --- /dev/null +++ b/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py @@ -0,0 +1,327 @@ +# Copyright (c) Microsoft. All rights reserved. + +from __future__ import annotations + +from collections.abc import Mapping, Sequence +from dataclasses import dataclass +from typing import Any, Final, Literal, TypedDict + +import voyageai.error +from agent_framework import Embedding, UsageDetails, add_usage_details, load_settings +from agent_framework._settings import SecretString +from agent_framework._telemetry import mark_feature_used +from agent_framework.exceptions import IntegrationException +from voyageai.client_async import AsyncClient + +from ._feature_usage import FeatureIndex +from ._shared import ( + INPUT_TYPES, + MATRYOSHKA_DIMENSIONS, + VOYAGEAI_API_BASE_URL, + create_sdk_client, + invalid_response, + raise_sdk_error, + split_into_requests, + validate_dimensions, + validate_input_type, +) + +__all__ = [ + "VoyageAIContextualizedEmbedding", + "VoyageAIContextualizedEmbeddingClient", + "VoyageAIContextualizedEmbeddingOptions", + "VoyageAIContextualizedEmbeddingSettings", + "VoyageAIContextualizedEmbeddings", +] + +_AUTO_CHUNK_SIZE: Final = 32_000 +"""Target size, in tokens, of the chunks Voyage AI cuts a document into. 32,000 is the service maximum.""" + +_MAX_REQUEST_TOKENS: Final = 120_000 +"""The total tokens Voyage AI accepts across the inputs of one contextualized embeddings request.""" + +_MODELS: Final[Mapping[str, tuple[int, ...]]] = { + "voyage-context-4": MATRYOSHKA_DIMENSIONS, + "voyage-context-3": MATRYOSHKA_DIMENSIONS, +} +"""The contextualized embedding models this client accepts, with the ``dimensions`` each one supports. + +The model is always named by the caller; there is no default. +""" + + +class VoyageAIContextualizedEmbeddingOptions(TypedDict, total=False): + """Options for contextualized embeddings. + + ``model`` and ``input_type`` are required, either here or, for ``model``, on the client. + + Keys: + model: ``"voyage-context-4"`` or ``"voyage-context-3"``. + input_type: ``"document"`` embeds each value as one whole document that Voyage AI splits into + chunks and embeds in the context of the whole document. ``"query"`` embeds each value as one + query and does not chunk. Voyage AI only chunks documents, so there is no default. + dimensions: One of 256, 512, 1024 (the service default) or 2048, sent as ``output_dimension`` + and only when set. + """ + + model: str + input_type: Literal["document", "query"] + dimensions: int + + +class VoyageAIContextualizedEmbeddingSettings(TypedDict, total=False): + """Voyage AI contextualized embedding settings. + + Settings are resolved in this order: explicit keyword arguments, values from an + explicitly provided .env file, then environment variables with the prefix 'VOYAGE_'. + + Keys: + api_key: The Voyage AI API key. (Env var VOYAGE_API_KEY) + contextualized_embedding_model: The model, ``voyage-context-4`` or ``voyage-context-3``. There is + no default. (Env var VOYAGE_CONTEXTUALIZED_EMBEDDING_MODEL) + base_url: Optional endpoint override. (Env var VOYAGE_BASE_URL) + """ + + api_key: SecretString | None + contextualized_embedding_model: str | None + base_url: str | None + + +@dataclass +class VoyageAIContextualizedEmbedding: + """The embeddings of one input value. + + Attributes: + embeddings: One vector per chunk, in document order. A query has exactly one. + chunks: The text of each chunk, in the same order, as Voyage AI split it. ``None`` when the + service did not return chunk text, which is always the case for ``input_type="query"``. + """ + + embeddings: list[Embedding[list[float]]] + chunks: list[str] | None = None + + +class VoyageAIContextualizedEmbeddings(list[VoyageAIContextualizedEmbedding]): + """The contextualized embeddings of a call, one entry per input value and in input order. + + Attributes: + options: The options the call was made with. + usage: Token usage summed over every request of the call. + """ + + def __init__( + self, + embeddings: Sequence[VoyageAIContextualizedEmbedding] | None = None, + *, + options: VoyageAIContextualizedEmbeddingOptions | None = None, + usage: UsageDetails | None = None, + ) -> None: + super().__init__(embeddings or []) + self.options = options + self.usage = usage + + +def _model_dimensions(model: str, dimensions: Any) -> None: + supported = _MODELS.get(model) + if supported is None: + raise ValueError( + f"Unsupported Voyage AI contextualized embedding model {model!r}. Supported models: {', '.join(_MODELS)}." + ) + validate_dimensions(model, dimensions, supported) + + +class VoyageAIContextualizedEmbeddingClient: + """Voyage AI contextualized embedding client. + + Contextualized embeddings give every chunk of a document a vector that also reflects the rest of + the document. A document yields several vectors, so this does not fit ``BaseEmbeddingClient``, + which returns one vector per input. It has its own method and result type, and no telemetry layer. + + Documents are always sent as one string each, with ``enable_auto_chunking`` on and a chunk size of + 32,000 tokens, and Voyage AI returns the chunk text with the vectors. Queries are sent unchunked. + + Keyword Args: + model: ``"voyage-context-4"`` or ``"voyage-context-3"``. Falls back to + ``VOYAGE_CONTEXTUALIZED_EMBEDDING_MODEL``. There is no default. + api_key: The Voyage AI API key. Falls back to ``VOYAGE_API_KEY``. + base_url: Endpoint override. Falls back to ``VOYAGE_BASE_URL``. Ignored when ``client`` is provided. + client: Optional pre-configured ``voyageai.AsyncClient``. It owns its credentials, so ``api_key`` + is not required. + env_file_path: Path to a ``.env`` file for settings. + env_file_encoding: Encoding of that ``.env`` file. + + Raises: + SettingNotFoundError: If no model is supplied. + ValueError: If the model is not a supported contextualized model, or no API key is available and + no ``client`` was passed. + + Examples: + .. code-block:: python + + from agent_framework_voyageai import VoyageAIContextualizedEmbeddingClient + + client = VoyageAIContextualizedEmbeddingClient(model="voyage-context-4") + + documents = await client.get_contextualized_embeddings( + ["A long document ...", "Another long document ..."], + options={"input_type": "document"}, + ) + for chunk, vector in zip(documents[0].chunks or [], documents[0].embeddings): + print(chunk[:40], len(vector.vector)) + """ + + def __init__( + self, + *, + model: str | None = None, + api_key: str | SecretString | None = None, + base_url: str | None = None, + client: AsyncClient | None = None, + env_file_path: str | None = None, + env_file_encoding: str | None = None, + ) -> None: + """Initialize a Voyage AI contextualized embedding client.""" + if client is not None and not isinstance(client, AsyncClient): + raise TypeError(f"The 'client' parameter accepts a voyageai AsyncClient; got {type(client).__name__}.") + + settings = load_settings( + VoyageAIContextualizedEmbeddingSettings, + env_prefix="VOYAGE_", + required_fields=["contextualized_embedding_model"], + contextualized_embedding_model=model, + api_key=api_key, + base_url=base_url, + env_file_path=env_file_path, + env_file_encoding=env_file_encoding, + ) + resolved_model: str = settings["contextualized_embedding_model"] # type: ignore[assignment] + _model_dimensions(resolved_model, None) + self.model: str = resolved_model + self.base_url: str | None = settings.get("base_url") + + if client is None: + key = settings.get("api_key") + if key is None or not key.get_secret_value().strip(): + raise ValueError( + "A Voyage AI API key is required. Set VOYAGE_API_KEY, pass api_key, " + "or supply a pre-configured client." + ) + client = create_sdk_client(key.get_secret_value(), self.base_url) + self.client = client + + def service_url(self) -> str: + """Get the URL of the service.""" + return self.base_url or VOYAGEAI_API_BASE_URL + + async def _embed_batch( + self, + values: Sequence[str], + *, + model: str, + input_type: str, + dimensions: int | None, + ) -> tuple[list[VoyageAIContextualizedEmbedding], UsageDetails]: + kwargs: dict[str, Any] = {} + if dimensions is not None: + kwargs["output_dimension"] = dimensions + if input_type == "document": + # One string per document: the service rejects pre-chunked lists when it chunks itself. + inputs: list[Any] = list(values) + kwargs["enable_auto_chunking"] = True + kwargs["chunk_size"] = _AUTO_CHUNK_SIZE + else: + inputs = [[value] for value in values] + + try: + response = await self.client.contextualized_embed(inputs, model=model, input_type=input_type, **kwargs) + except voyageai.error.VoyageError as ex: + raise_sdk_error(ex, "contextualized embeddings") + except (AttributeError, KeyError, TypeError) as ex: + # The SDK reads the usage and vectors out of the body while building its result. + raise invalid_response(ex, "contextualized embeddings") from ex + except Exception as ex: + raise IntegrationException( + f"Voyage AI contextualized embeddings request failed: {ex}", inner_exception=ex + ) from ex + + try: + if len(response.results) != len(values): + raise ValueError(f"expected {len(values)} results, received {len(response.results)}") + results: list[VoyageAIContextualizedEmbedding] = [] + for result in response.results: + embeddings: list[Embedding[list[float]]] = [] + for raw_vector in result.embeddings: + vector = [float(value) for value in raw_vector] + if not vector or (dimensions is not None and len(vector) != dimensions): + raise ValueError(f"unexpected embedding length {len(vector)}") + embeddings.append(Embedding(vector=vector, dimensions=len(vector), model=model)) + if not embeddings: + raise ValueError("a result holds no embeddings") + chunks = list(result.chunk_texts) if result.chunk_texts is not None else None + if chunks is not None and len(chunks) != len(embeddings): + raise ValueError(f"{len(embeddings)} embeddings but {len(chunks)} chunks") + results.append(VoyageAIContextualizedEmbedding(embeddings=embeddings, chunks=chunks)) + + total_tokens = response.total_tokens + return results, {"input_token_count": total_tokens, "total_token_count": total_tokens} + except Exception as ex: + raise invalid_response(ex, "contextualized embeddings") from ex + + async def get_contextualized_embeddings( + self, + values: Sequence[str], + *, + options: VoyageAIContextualizedEmbeddingOptions, + ) -> VoyageAIContextualizedEmbeddings: + """Call the Voyage AI contextualized embeddings API. + + Args: + values: With ``input_type="document"``, whole documents, one string each; Voyage AI chunks + them. With ``input_type="query"``, one query per string. + options: The call options. ``input_type`` is required; ``model`` is required unless the + client was created with one. + + Returns: + One entry per value, in order, with a vector per chunk, the chunk text when Voyage AI + returned it, and the token usage summed over the requests of the call. + + Raises: + ValueError: If the model or ``input_type`` is missing or unsupported, ``dimensions`` is not + supported, or a value is not a string (a document must not be pre-chunked). + IntegrationInvalidAuthException: If Voyage AI rejects the credentials. + IntegrationInvalidRequestException: If Voyage AI rejects the request. + IntegrationInvalidResponseException: If the response is malformed, or reports no token count. + IntegrationException: If the request fails for another reason, including rate limiting, or + if the tokenizer needed to split a large call cannot be loaded. + """ + opts: dict[str, Any] = options # type: ignore[assignment] + model = opts.get("model") or self.model + dimensions = opts.get("dimensions") + input_type = opts.get("input_type") + _model_dimensions(model, dimensions) + if input_type is None: + raise ValueError( + f"input_type is required for contextualized embeddings; use one of {list(INPUT_TYPES)}. " + "Voyage AI chunks documents only with input_type='document'." + ) + validate_input_type(input_type) + for index, value in enumerate(values): + if not isinstance(value, str): + raise ValueError( + f"values[{index}] is a {type(value).__name__}; send each document as one string, " + "Voyage AI does the chunking." + ) + if not values: + return VoyageAIContextualizedEmbeddings(options=options) + + mark_feature_used(FeatureIndex.VOYAGEAI) + results: list[VoyageAIContextualizedEmbedding] = [] + usage: UsageDetails | None = None + requests = await split_into_requests(self.client, model, values, max_request_tokens=_MAX_REQUEST_TOKENS) + for batch in requests: + batch_results, batch_usage = await self._embed_batch( + batch, model=model, input_type=input_type, dimensions=dimensions + ) + results.extend(batch_results) + usage = add_usage_details(usage, batch_usage) + return VoyageAIContextualizedEmbeddings(results, options=options, usage=usage) diff --git a/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py b/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py index b6a3967df62..066a97591fd 100644 --- a/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py +++ b/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py @@ -2,11 +2,11 @@ from __future__ import annotations -import importlib.metadata import logging import sys -from collections.abc import Iterator, Mapping, Sequence -from typing import Any, ClassVar, Final, Generic, Literal, NoReturn, TypedDict, cast +from collections.abc import Mapping, Sequence +from dataclasses import dataclass +from typing import Any, ClassVar, Final, Generic, Literal, TypedDict import voyageai.error from agent_framework import ( @@ -20,16 +20,21 @@ ) from agent_framework._settings import SecretString from agent_framework._telemetry import mark_feature_used -from agent_framework.exceptions import ( - IntegrationException, - IntegrationInvalidAuthException, - IntegrationInvalidRequestException, - IntegrationInvalidResponseException, -) +from agent_framework.exceptions import IntegrationException from agent_framework.observability import EmbeddingTelemetryLayer from voyageai.client_async import AsyncClient from ._feature_usage import FeatureIndex +from ._shared import ( + MATRYOSHKA_DIMENSIONS, + VOYAGEAI_API_BASE_URL, + create_sdk_client, + invalid_response, + raise_sdk_error, + split_into_requests, + validate_dimensions, + validate_input_type, +) if sys.version_info >= (3, 13): from typing import TypeVar # pragma: no cover @@ -45,43 +50,37 @@ logger = logging.getLogger("agent_framework.voyageai") -_VOYAGEAI_API_BASE_URL = "https://api.voyageai.com/v1" -_DEFAULT_TIMEOUT_SECONDS = 60.0 -_MAX_ERROR_DETAIL_CHARS = 2000 -MAX_BATCH_SIZE: Final = 1000 -"""The most inputs Voyage AI accepts in one embeddings request.""" +@dataclass(frozen=True) +class _ModelSpec: + dimensions: tuple[int, ...] + max_request_tokens: int | None + """The documented ceiling on the tokens of one request, or ``None`` when Voyage AI documents none.""" + -_MATRYOSHKA_DIMENSIONS: Final = (256, 512, 1024, 2048) _FIXED_DIMENSIONS: Final = (1024,) -_MODEL_DIMENSIONS: Final[Mapping[str, tuple[int, ...]]] = { - "voyage-4-large": _MATRYOSHKA_DIMENSIONS, - "voyage-4": _MATRYOSHKA_DIMENSIONS, - "voyage-4-lite": _MATRYOSHKA_DIMENSIONS, - "voyage-code-4": _MATRYOSHKA_DIMENSIONS, - "voyage-3-large": _MATRYOSHKA_DIMENSIONS, - "voyage-3.5": _MATRYOSHKA_DIMENSIONS, - "voyage-3.5-lite": _MATRYOSHKA_DIMENSIONS, - "voyage-code-3": _MATRYOSHKA_DIMENSIONS, - "voyage-finance-2": _FIXED_DIMENSIONS, - "voyage-law-2": _FIXED_DIMENSIONS, +_MODELS: Final[Mapping[str, _ModelSpec]] = { + "voyage-4-large": _ModelSpec(MATRYOSHKA_DIMENSIONS, 120_000), + "voyage-4": _ModelSpec(MATRYOSHKA_DIMENSIONS, 320_000), + "voyage-4-lite": _ModelSpec(MATRYOSHKA_DIMENSIONS, 1_000_000), + # No per-request token ceiling is documented for voyage-code-4, so none is assumed. + "voyage-code-4": _ModelSpec(MATRYOSHKA_DIMENSIONS, None), + "voyage-3-large": _ModelSpec(MATRYOSHKA_DIMENSIONS, 120_000), + "voyage-3.5": _ModelSpec(MATRYOSHKA_DIMENSIONS, 320_000), + "voyage-3.5-lite": _ModelSpec(MATRYOSHKA_DIMENSIONS, 1_000_000), + "voyage-code-3": _ModelSpec(MATRYOSHKA_DIMENSIONS, 120_000), + "voyage-finance-2": _ModelSpec(_FIXED_DIMENSIONS, 120_000), + "voyage-law-2": _ModelSpec(_FIXED_DIMENSIONS, 120_000), } -"""The text embedding models this client accepts, with the ``dimensions`` each one supports. +"""The text embedding models this client accepts, with the ``dimensions`` each one supports and the +ceiling Voyage AI documents for the tokens of one request. The model is always named by the caller; there is no default. A name outside this table is rejected before any request is sent. The Voyage AI SDK also runs some open-weight models locally, and this table keeps those from being selected by accident. """ -_INPUT_TYPES: Final = ("document", "query") - - -def _batches(values: Sequence[str]) -> Iterator[Sequence[str]]: - """Split ``values`` into consecutive runs of at most ``MAX_BATCH_SIZE`` inputs.""" - for start in range(0, len(values), MAX_BATCH_SIZE): - yield values[start : start + MAX_BATCH_SIZE] - class VoyageAIEmbeddingOptions(EmbeddingGenerationOptions, total=False): """Voyage AI-specific embedding options. @@ -138,26 +137,12 @@ class VoyageAIEmbeddingSettings(TypedDict, total=False): base_url: str | None -def _error_detail(ex: voyageai.error.VoyageError) -> str: - """Return the message of a Voyage AI error. - - Voyage AI error bodies are ``{"detail": ""}``. Anything else falls back to the SDK message. - """ - body: Any = getattr(ex, "json_body", None) - detail: Any = cast("dict[str, Any]", body).get("detail") if isinstance(body, dict) else None - if not isinstance(detail, str): - detail = str(getattr(ex, "user_message", None) or ex) - return detail[:_MAX_ERROR_DETAIL_CHARS] - - -def _validate_model_and_dimensions(model: str, dimensions: int | None) -> None: - supported = _MODEL_DIMENSIONS.get(model) - if supported is None: - raise ValueError( - f"Unsupported Voyage AI embedding model {model!r}. Supported models: {', '.join(_MODEL_DIMENSIONS)}." - ) - if dimensions is not None and (type(dimensions) is not int or dimensions not in supported): - raise ValueError(f"Model {model!r} supports dimensions {list(supported)}, not {dimensions!r}.") +def _model_spec(model: str, dimensions: Any) -> _ModelSpec: + spec = _MODELS.get(model) + if spec is None: + raise ValueError(f"Unsupported Voyage AI embedding model {model!r}. Supported models: {', '.join(_MODELS)}.") + validate_dimensions(model, dimensions, spec.dimensions) + return spec class RawVoyageAIEmbeddingClient( @@ -215,7 +200,7 @@ def __init__( env_file_encoding=env_file_encoding, ) resolved_model: str = settings["embedding_model"] # type: ignore[assignment] - _validate_model_and_dimensions(resolved_model, None) + _model_spec(resolved_model, None) self.model: str = resolved_model self.base_url: str | None = settings.get("base_url") @@ -226,39 +211,14 @@ def __init__( "A Voyage AI API key is required. Set VOYAGE_API_KEY, pass api_key, " "or supply a pre-configured client." ) - client = AsyncClient( - api_key=key.get_secret_value(), - timeout=_DEFAULT_TIMEOUT_SECONDS, - base_url=self.base_url, - ) - try: - package_version = importlib.metadata.version("agent-framework-voyageai") - except importlib.metadata.PackageNotFoundError: - package_version = "0.0.0" - client.append_client_metadata("agent-framework-voyageai", package_version) + client = create_sdk_client(key.get_secret_value(), self.base_url) self.client = client super().__init__(additional_properties=additional_properties) def service_url(self) -> str: """Get the URL of the service.""" - return self.base_url or _VOYAGEAI_API_BASE_URL - - @staticmethod - def _raise_sdk_error(ex: voyageai.error.VoyageError) -> NoReturn: - status: int | None = getattr(ex, "http_status", None) - if status is not None and status < 400: - raise IntegrationInvalidResponseException( - f"Voyage AI embeddings response was invalid: {_error_detail(ex)}", - inner_exception=ex, - ) from ex - - message = f"Voyage AI embeddings request failed with status {status}: {_error_detail(ex)}" - if isinstance(ex, voyageai.error.AuthenticationError) or status in (401, 403): - raise IntegrationInvalidAuthException(message) from ex - if status is not None and 400 <= status < 500 and status != 429: - raise IntegrationInvalidRequestException(message) from ex - raise IntegrationException(message, inner_exception=ex) from ex + return self.base_url or VOYAGEAI_API_BASE_URL async def _embed_batch( self, @@ -280,13 +240,11 @@ async def _embed_batch( try: response = await self.client.embed(list(values), model=model, **kwargs) except voyageai.error.VoyageError as ex: - self._raise_sdk_error(ex) + raise_sdk_error(ex, "embeddings") except (AttributeError, KeyError, TypeError) as ex: # The SDK reads the usage and vectors out of the body while building its result. A body without # them, including one with no token count, surfaces here as a lookup or type error. - raise IntegrationInvalidResponseException( - f"Voyage AI embeddings response was invalid: {ex!r}", inner_exception=ex - ) from ex + raise invalid_response(ex, "embeddings") from ex except Exception as ex: raise IntegrationException(f"Voyage AI embeddings request failed: {ex}", inner_exception=ex) from ex @@ -306,10 +264,7 @@ async def _embed_batch( total_tokens = response.total_tokens return embeddings, {"input_token_count": total_tokens, "total_token_count": total_tokens} except Exception as ex: - raise IntegrationInvalidResponseException( - f"Voyage AI embeddings response was invalid: {ex}", - inner_exception=ex, - ) from ex + raise invalid_response(ex, "embeddings") from ex async def get_embeddings( self, @@ -319,9 +274,10 @@ async def get_embeddings( ) -> GeneratedEmbeddings[list[float], VoyageAIEmbeddingOptionsT]: """Call the Voyage AI embeddings API. - Inputs beyond ``MAX_BATCH_SIZE`` are sent as consecutive requests. Vectors keep the order of - ``values``, usage is summed, and a failed request fails the whole call. Per-request token - ceilings are enforced by the service, which rejects an over-limit request with ``400``. + Inputs beyond ``MAX_BATCH_SIZE``, or beyond the model's documented per-request token ceiling, + are sent as consecutive requests. The tokens are counted with the model's tokenizer through the + SDK, which is downloaded on first use and only needed when the inputs could reach the ceiling. + Vectors keep the order of ``values``, usage is summed, and a failed request fails the whole call. Args: values: The text values to generate embeddings for. @@ -336,7 +292,8 @@ async def get_embeddings( IntegrationInvalidAuthException: If Voyage AI rejects the credentials. IntegrationInvalidRequestException: If Voyage AI rejects the request. IntegrationInvalidResponseException: If the response is malformed, or reports no token count. - IntegrationException: If the request fails for another reason, including rate limiting. + IntegrationException: If the request fails for another reason, including rate limiting, or + if the tokenizer needed to split a large call cannot be loaded. """ if not values: return GeneratedEmbeddings([], options=options) @@ -346,16 +303,16 @@ async def get_embeddings( dimensions = opts.get("dimensions") input_type = opts.get("input_type") truncation = opts.get("truncation") - _validate_model_and_dimensions(model, dimensions) - if input_type is not None and input_type not in _INPUT_TYPES: - raise ValueError(f"Unsupported Voyage AI input_type {input_type!r}; use 'document' or 'query'.") + spec = _model_spec(model, dimensions) + validate_input_type(input_type) if truncation is not None and not isinstance(truncation, bool): raise ValueError(f"truncation must be a bool, not {truncation!r}.") mark_feature_used(FeatureIndex.VOYAGEAI) embeddings: list[Embedding[list[float]]] = [] usage: UsageDetails | None = None - for batch in _batches(values): + requests = await split_into_requests(self.client, model, values, max_request_tokens=spec.max_request_tokens) + for batch in requests: batch_embeddings, batch_usage = await self._embed_batch( batch, model=model, input_type=input_type, truncation=truncation, dimensions=dimensions ) diff --git a/python/packages/voyageai/agent_framework_voyageai/_shared.py b/python/packages/voyageai/agent_framework_voyageai/_shared.py new file mode 100644 index 00000000000..45dfe8eae6f --- /dev/null +++ b/python/packages/voyageai/agent_framework_voyageai/_shared.py @@ -0,0 +1,136 @@ +# Copyright (c) Microsoft. All rights reserved. + +from __future__ import annotations + +import asyncio +import importlib.metadata +from collections.abc import Sequence +from typing import Any, Final, NoReturn, cast + +import voyageai.error +from agent_framework.exceptions import ( + IntegrationException, + IntegrationInvalidAuthException, + IntegrationInvalidRequestException, + IntegrationInvalidResponseException, +) +from voyageai.client_async import AsyncClient + +VOYAGEAI_API_BASE_URL: Final = "https://api.voyageai.com/v1" +DEFAULT_TIMEOUT_SECONDS: Final = 60.0 +MAX_ERROR_DETAIL_CHARS: Final = 2000 + +MAX_BATCH_SIZE: Final = 1000 +"""The most inputs Voyage AI accepts in one embeddings request.""" + +MATRYOSHKA_DIMENSIONS: Final = (256, 512, 1024, 2048) +INPUT_TYPES: Final = ("document", "query") + +# Voyage AI tokenizers produced at most one token per UTF-8 byte of text in our checks, plus a couple +# of special tokens per input. This bound adds room, and lets a request that is far below its token +# ceiling skip the tokenizer, which is downloaded from the Hugging Face Hub on first use. +_TOKENS_PER_INPUT_OVERHEAD: Final = 8 + + +def error_detail(ex: voyageai.error.VoyageError) -> str: + """Return the message of a Voyage AI error. + + Voyage AI error bodies are ``{"detail": ""}``. Anything else falls back to the SDK message. + """ + body: Any = getattr(ex, "json_body", None) + detail: Any = cast("dict[str, Any]", body).get("detail") if isinstance(body, dict) else None + if not isinstance(detail, str): + detail = str(getattr(ex, "user_message", None) or ex) + return detail[:MAX_ERROR_DETAIL_CHARS] + + +def raise_sdk_error(ex: voyageai.error.VoyageError, operation: str) -> NoReturn: + """Raise the framework exception for a Voyage AI SDK error. + + ``401``/``403`` are authentication errors, other ``4xx`` except ``429`` are invalid requests, and + everything else, including ``429`` and ``5xx``, is a plain integration failure. + """ + status: int | None = getattr(ex, "http_status", None) + if status is not None and status < 400: + raise IntegrationInvalidResponseException( + f"Voyage AI {operation} response was invalid: {error_detail(ex)}", + inner_exception=ex, + ) from ex + + message = f"Voyage AI {operation} request failed with status {status}: {error_detail(ex)}" + if isinstance(ex, voyageai.error.AuthenticationError) or status in (401, 403): + raise IntegrationInvalidAuthException(message) from ex + if status is not None and 400 <= status < 500 and status != 429: + raise IntegrationInvalidRequestException(message) from ex + raise IntegrationException(message, inner_exception=ex) from ex + + +def create_sdk_client(api_key: str, base_url: str | None) -> AsyncClient: + """Create the SDK client and record this package as the integration wrapper.""" + client = AsyncClient(api_key=api_key, timeout=DEFAULT_TIMEOUT_SECONDS, base_url=base_url) + try: + package_version = importlib.metadata.version("agent-framework-voyageai") + except importlib.metadata.PackageNotFoundError: + package_version = "0.0.0" + client.append_client_metadata("agent-framework-voyageai", package_version) + return client + + +def validate_input_type(input_type: Any, allowed: Sequence[str] = INPUT_TYPES) -> None: + if input_type is not None and input_type not in allowed: + raise ValueError(f"Unsupported Voyage AI input_type {input_type!r}; use one of {list(allowed)}.") + + +def validate_dimensions(model: str, dimensions: Any, supported: Sequence[int]) -> None: + if dimensions is not None and (type(dimensions) is not int or dimensions not in supported): + raise ValueError(f"Model {model!r} supports dimensions {list(supported)}, not {dimensions!r}.") + + +async def split_into_requests( + client: AsyncClient, + model: str, + values: Sequence[str], + *, + max_request_tokens: int | None, +) -> list[Sequence[str]]: + """Split ``values`` into consecutive requests within Voyage AI's per-request limits. + + A request holds at most ``MAX_BATCH_SIZE`` inputs and, for models with a documented ceiling, + at most ``max_request_tokens`` tokens in total. Tokens are counted with the model's own tokenizer + through the SDK, unless the inputs are small enough to be under the ceiling whatever they tokenize + to. An input over the ceiling on its own still gets its own request, and the service decides. + + Raises: + IntegrationException: If the tokenizer is needed and cannot be loaded. Requests are never sent + unsplit in that case. + """ + if max_request_tokens is None or ( + sum(len(value.encode("utf-8")) + _TOKENS_PER_INPUT_OVERHEAD for value in values) <= max_request_tokens + ): + return [values[start : start + MAX_BATCH_SIZE] for start in range(0, len(values), MAX_BATCH_SIZE)] + + try: + encodings = await asyncio.to_thread(client.tokenize, list(values), model) + token_counts = [len(encoding) for encoding in encodings] + except Exception as ex: + raise IntegrationException( + f"Voyage AI request could not be split by token count: the tokenizer for {model!r} failed: {ex}", + inner_exception=ex, + ) from ex + + requests: list[Sequence[str]] = [] + start, tokens = 0, 0 + for index, count in enumerate(token_counts): + if index > start and (index - start == MAX_BATCH_SIZE or tokens + count > max_request_tokens): + requests.append(values[start:index]) + start, tokens = index, 0 + tokens += count + requests.append(values[start:]) + return requests + + +def invalid_response(ex: Exception, operation: str) -> IntegrationInvalidResponseException: + return IntegrationInvalidResponseException( + f"Voyage AI {operation} response was invalid: {ex}", + inner_exception=ex, + ) diff --git a/python/packages/voyageai/samples/README.md b/python/packages/voyageai/samples/README.md index b7ba18a87b4..ed2a48ff189 100644 --- a/python/packages/voyageai/samples/README.md +++ b/python/packages/voyageai/samples/README.md @@ -6,3 +6,6 @@ in-memory collection and retrieves the closer one. Stored notes are embedded wit Set `VOYAGE_API_KEY` to your Voyage AI API key. See the [package README](../README.md) for the other settings and the supported models. + +`voyage_contextualized_embeddings.py` embeds two documents as contextualized chunks, prints the chunk text +Voyage AI returned with each vector, and embeds a query. It uses `voyage-context-4`. diff --git a/python/packages/voyageai/samples/voyage_contextualized_embeddings.py b/python/packages/voyageai/samples/voyage_contextualized_embeddings.py new file mode 100644 index 00000000000..10bdeaa97e9 --- /dev/null +++ b/python/packages/voyageai/samples/voyage_contextualized_embeddings.py @@ -0,0 +1,44 @@ +# Copyright (c) Microsoft. All rights reserved. + +import asyncio + +from agent_framework_voyageai import VoyageAIContextualizedEmbeddingClient + +"""Generate contextualized chunk embeddings with Voyage AI. + +Set ``VOYAGE_API_KEY`` to your Voyage AI API key, then run from python/: + uv run --package agent-framework-voyageai python packages/voyageai/samples/voyage_contextualized_embeddings.py + +The model is always named explicitly; there is no default. Documents are sent as one string each and +Voyage AI chunks them, so the result also carries the text of every chunk. +""" + + +async def main() -> None: + """Generate contextualized embeddings with Voyage AI.""" + # The API key is read from VOYAGE_API_KEY. + client = VoyageAIContextualizedEmbeddingClient(model="voyage-context-4") + + # 1. Embed whole documents. Each one yields a vector per chunk. + documents = [ + "Cats purr when they are content. Some cats also purr when they are hurt or anxious.", + "Dogs wag their tails when they are excited. A slow wag can also signal uncertainty.", + ] + result = await client.get_contextualized_embeddings( + documents, options={"input_type": "document", "dimensions": 512} + ) + for document in result: + for chunk, embedding in zip(document.chunks or [], document.embeddings, strict=True): + print(f"{embedding.dimensions} dimensions: {chunk}") + print(f"Usage: {result.usage}") + print() + + # 2. Embed a query. Queries are not chunked, so there is one vector and no chunk text. + queries = await client.get_contextualized_embeddings( + ["Why do cats purr?"], options={"input_type": "query", "dimensions": 512} + ) + print(f"Query vectors: {len(queries[0].embeddings)}, chunks: {queries[0].chunks}") + + +if __name__ == "__main__": + asyncio.run(main()) diff --git a/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py b/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py new file mode 100644 index 00000000000..cb9be7893f7 --- /dev/null +++ b/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py @@ -0,0 +1,300 @@ +# Copyright (c) Microsoft. All rights reserved. + +import os +from typing import Any, cast +from unittest.mock import AsyncMock + +import pytest +import voyageai +import voyageai.error +from agent_framework.exceptions import ( + IntegrationException, + IntegrationInvalidAuthException, + IntegrationInvalidRequestException, + IntegrationInvalidResponseException, + SettingNotFoundError, +) +from voyageai.api_resources import VoyageResponse +from voyageai.client_async import AsyncClient +from voyageai.object import ContextualizedEmbeddingsObject + +from agent_framework_voyageai import VoyageAIContextualizedEmbeddingClient + +# region: helpers + + +@pytest.fixture(autouse=True) +def _clear_voyage_env(request: pytest.FixtureRequest, monkeypatch: pytest.MonkeyPatch) -> None: + if request.node.get_closest_marker("integration"): + return + for name in ("VOYAGE_API_KEY", "VOYAGE_CONTEXTUALIZED_EMBEDDING_MODEL", "VOYAGE_BASE_URL"): + monkeypatch.delenv(name, raising=False) + + +def make_body(documents: list[list[list[float]]], texts: list[list[str]] | None = None, usage: Any = None) -> Any: + """The JSON body of ``POST /v1/contextualizedembeddings``; ``texts`` are the chunk texts, if returned.""" + data: list[dict[str, Any]] = [] + for i, vectors in enumerate(documents): + chunks: list[dict[str, Any]] = [] + for j, vector in enumerate(vectors): + chunk: dict[str, Any] = {"object": "embedding", "embedding": vector, "index": j} + if texts is not None: + chunk["text"] = texts[i][j] + chunks.append(chunk) + data.append({"object": "list", "data": chunks, "index": i}) + return { + "object": "list", + "data": data, + "model": "voyage-context-4", + "usage": {"total_tokens": 7} if usage is None else usage, + } + + +def make_response( + documents: list[list[list[float]]], texts: list[list[str]] | None = None, total_tokens: int = 7 +) -> ContextualizedEmbeddingsObject: + body = make_body(documents, texts, {"total_tokens": total_tokens}) + return ContextualizedEmbeddingsObject(VoyageResponse.construct_from(body)) + + +def make_client( + *responses: Any, model: str | None = "voyage-context-4" +) -> tuple[VoyageAIContextualizedEmbeddingClient, AsyncMock]: + sdk = AsyncMock(spec=AsyncClient) + sdk.contextualized_embed.side_effect = list(responses) + return VoyageAIContextualizedEmbeddingClient(model=model, client=sdk), sdk + + +# endregion + +# region: the model is always explicit + + +def test_model_is_required() -> None: + with pytest.raises(SettingNotFoundError, match="contextualized_embedding_model"): + VoyageAIContextualizedEmbeddingClient(api_key="key") + + +@pytest.mark.parametrize("model", ["voyage-4", "mistral-embed", "voyage-context-2", "rerank-3"]) +def test_other_models_are_rejected_on_construction(model: str) -> None: + with pytest.raises(ValueError, match="Unsupported Voyage AI contextualized embedding model"): + VoyageAIContextualizedEmbeddingClient(model=model, api_key="key") + + +async def test_per_call_model_is_validated_before_any_request() -> None: + client, sdk = make_client() + with pytest.raises(ValueError, match="Unsupported Voyage AI contextualized embedding model"): + await client.get_contextualized_embeddings(["a"], options={"model": "voyage-4", "input_type": "document"}) + sdk.contextualized_embed.assert_not_awaited() + + +def test_model_can_come_from_the_environment(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setenv("VOYAGE_API_KEY", "key") + monkeypatch.setenv("VOYAGE_CONTEXTUALIZED_EMBEDDING_MODEL", "voyage-context-3") + assert VoyageAIContextualizedEmbeddingClient().model == "voyage-context-3" + + +@pytest.mark.parametrize("api_key", [None, "", " "]) +def test_api_key_is_required_without_a_client(api_key: str | None) -> None: + with pytest.raises(ValueError, match="VOYAGE_API_KEY"): + VoyageAIContextualizedEmbeddingClient(model="voyage-context-4", api_key=api_key) + + +# endregion + +# region: the API constraints + + +async def test_input_type_is_required() -> None: + client, sdk = make_client() + with pytest.raises(ValueError, match="input_type is required"): + await client.get_contextualized_embeddings(["a"], options={}) + sdk.contextualized_embed.assert_not_awaited() + + +@pytest.mark.parametrize("input_type", ["passage", ""]) +async def test_input_type_must_be_document_or_query(input_type: str) -> None: + client, sdk = make_client() + with pytest.raises(ValueError, match="input_type"): + await client.get_contextualized_embeddings(["a"], options=cast(Any, {"input_type": input_type})) + sdk.contextualized_embed.assert_not_awaited() + + +@pytest.mark.parametrize("dimensions", [100, 4096, 1024.0, True]) +async def test_unsupported_dimensions_are_rejected_before_any_request(dimensions: Any) -> None: + client, sdk = make_client() + with pytest.raises(ValueError, match="supports dimensions"): + await client.get_contextualized_embeddings( + ["a"], options=cast(Any, {"input_type": "document", "dimensions": dimensions}) + ) + sdk.contextualized_embed.assert_not_awaited() + + +async def test_pre_chunked_documents_are_rejected_before_any_request() -> None: + client, sdk = make_client() + with pytest.raises(ValueError, match="send each document as one string"): + await client.get_contextualized_embeddings( + cast(Any, [["chunk one", "chunk two"]]), options={"input_type": "document"} + ) + sdk.contextualized_embed.assert_not_awaited() + + +async def test_documents_are_sent_flat_with_auto_chunking_at_32000() -> None: + client, sdk = make_client(make_response([[[0.1, 0.2]], [[0.3, 0.4]]])) + + await client.get_contextualized_embeddings(["doc one", "doc two"], options={"input_type": "document"}) + + call = sdk.contextualized_embed.await_args + assert call is not None + assert call.args == (["doc one", "doc two"],) + assert call.kwargs == { + "model": "voyage-context-4", + "input_type": "document", + "enable_auto_chunking": True, + "chunk_size": 32_000, + } + + +async def test_queries_are_sent_unchunked_one_per_inner_list() -> None: + client, sdk = make_client(make_response([[[0.1] * 256], [[0.2] * 256]])) + + await client.get_contextualized_embeddings(["q1", "q2"], options={"input_type": "query", "dimensions": 256}) + + call = sdk.contextualized_embed.await_args + assert call is not None + assert call.args == ([["q1"], ["q2"]],) + assert call.kwargs == {"model": "voyage-context-4", "input_type": "query", "output_dimension": 256} + + +async def test_empty_input_sends_nothing() -> None: + client, sdk = make_client() + assert list(await client.get_contextualized_embeddings([], options={"input_type": "document"})) == [] + sdk.contextualized_embed.assert_not_awaited() + + +# endregion + +# region: results + + +async def test_chunks_are_returned_with_their_vectors_when_the_service_returns_them() -> None: + client, _ = make_client( + make_response([[[0.1], [0.2]], [[0.3]]], texts=[["first half", "second half"], ["whole"]], total_tokens=9) + ) + + result = await client.get_contextualized_embeddings(["a long doc", "short"], options={"input_type": "document"}) + + assert [doc.chunks for doc in result] == [["first half", "second half"], ["whole"]] + assert [[e.vector for e in doc.embeddings] for doc in result] == [[[0.1], [0.2]], [[0.3]]] + assert result.usage == {"input_token_count": 9, "total_token_count": 9} + + +async def test_chunks_are_none_when_the_service_returns_no_text() -> None: + client, _ = make_client(make_response([[[0.1]]])) + result = await client.get_contextualized_embeddings(["q"], options={"input_type": "query"}) + assert result[0].chunks is None + + +async def test_result_count_must_match_input_count() -> None: + client, _ = make_client(make_response([[[0.1]]])) + with pytest.raises(IntegrationInvalidResponseException, match="expected 2 results"): + await client.get_contextualized_embeddings(["a", "b"], options={"input_type": "document"}) + + +async def test_embedding_length_must_match_requested_dimensions() -> None: + client, _ = make_client(make_response([[[0.1, 0.2]]])) + with pytest.raises(IntegrationInvalidResponseException, match="unexpected embedding length"): + await client.get_contextualized_embeddings(["a"], options={"input_type": "document", "dimensions": 256}) + + +@pytest.mark.parametrize( + "usage", + [ + pytest.param("drop", id="no-usage"), + pytest.param({}, id="empty-usage"), + pytest.param({"total_tokens": None}, id="null"), + ], +) +async def test_response_without_a_token_count_fails_instead_of_reporting_zero_tokens( + monkeypatch: pytest.MonkeyPatch, usage: Any +) -> None: + body = make_body([[[0.1]]]) + if usage == "drop": + del body["usage"] + else: + body["usage"] = usage + monkeypatch.setattr( + voyageai.ContextualizedEmbedding, "acreate", AsyncMock(return_value=VoyageResponse.construct_from(body)) + ) + client = VoyageAIContextualizedEmbeddingClient(model="voyage-context-4", client=AsyncClient(api_key="test-key")) + + with pytest.raises(IntegrationInvalidResponseException): + await client.get_contextualized_embeddings(["a"], options={"input_type": "document"}) + + +async def test_requests_stay_within_the_token_ceiling_and_usage_is_summed() -> None: + client, sdk = make_client( + make_response([[[0.1]], [[0.2]]], total_tokens=5), make_response([[[0.3]]], total_tokens=2) + ) + sdk.tokenize.return_value = [[0] * 50_000, [0] * 50_000, [0] * 50_000] + + result = await client.get_contextualized_embeddings(["a" * 50_000] * 3, options={"input_type": "document"}) + + assert [len(call.args[0]) for call in sdk.contextualized_embed.await_args_list] == [2, 1] + assert [doc.embeddings[0].vector for doc in result] == [[0.1], [0.2], [0.3]] + assert result.usage == {"input_token_count": 7, "total_token_count": 7} + + +# endregion + +# region: error mapping + + +@pytest.mark.parametrize( + ("status", "error_class", "expected"), + [ + (401, voyageai.error.AuthenticationError, IntegrationInvalidAuthException), + (400, voyageai.error.InvalidRequestError, IntegrationInvalidRequestException), + (429, voyageai.error.RateLimitError, IntegrationException), + (500, voyageai.error.ServerError, IntegrationException), + ], +) +async def test_sdk_errors_map_to_framework_exceptions_with_the_detail( + status: int, error_class: type[voyageai.error.VoyageError], expected: type[Exception] +) -> None: + client, sdk = make_client() + sdk.contextualized_embed.side_effect = error_class( + "sdk message", http_status=status, json_body={"detail": "the detail"} + ) + + with pytest.raises(expected, match="the detail") as exc_info: + await client.get_contextualized_embeddings(["a"], options={"input_type": "document"}) + + assert type(exc_info.value) is expected + + +# endregion + +# region: integration + + +@pytest.mark.integration +@pytest.mark.skipif(not os.environ.get("VOYAGE_API_KEY"), reason="VOYAGE_API_KEY is not set") +@pytest.mark.parametrize("model", ["voyage-context-4", "voyage-context-3"]) +async def test_integration_documents_and_queries(model: str) -> None: + client = VoyageAIContextualizedEmbeddingClient(model=model) + + documents = await client.get_contextualized_embeddings( + ["Cats purr when they are content."], options={"input_type": "document", "dimensions": 256} + ) + queries = await client.get_contextualized_embeddings( + ["Why do cats purr?"], options={"input_type": "query", "dimensions": 256} + ) + + assert documents[0].chunks == ["Cats purr when they are content."] + assert documents[0].embeddings[0].dimensions == 256 + assert queries[0].chunks is None + assert ((documents.usage or {}).get("total_token_count") or 0) > 0 + + +# endregion diff --git a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py index 24981429bd5..0af6dc79fc7 100644 --- a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py +++ b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py @@ -19,7 +19,7 @@ from voyageai.object import EmbeddingsObject from agent_framework_voyageai import RawVoyageAIEmbeddingClient, VoyageAIEmbeddingClient -from agent_framework_voyageai._embedding_client import MAX_BATCH_SIZE # pyright: ignore[reportPrivateUsage] +from agent_framework_voyageai._shared import MAX_BATCH_SIZE # pyright: ignore[reportPrivateUsage] # region: helpers @@ -176,6 +176,46 @@ async def test_inputs_over_the_request_limit_are_split_in_order_and_usage_is_sum assert result.usage == {"input_token_count": 13, "total_token_count": 13} +async def test_requests_stay_within_the_models_token_ceiling() -> None: + client, sdk = make_client(make_response([[0.1]] * 2), make_response([[0.1]]), model="voyage-4-large") + sdk.tokenize.return_value = [[0] * 50_000, [0] * 50_000, [0] * 50_000] + + await client.get_embeddings(["a" * 50_000] * 3) + + assert [len(call.args[0]) for call in sdk.embed.await_args_list] == [2, 1] + + +async def test_input_over_the_ceiling_on_its_own_gets_its_own_request() -> None: + client, sdk = make_client(make_response([[0.1]]), make_response([[0.1]]), model="voyage-4-large") + sdk.tokenize.return_value = [[0] * 130_000, [0] * 10] + + await client.get_embeddings(["a" * 130_000, "b" * 10_000]) + + assert [len(call.args[0]) for call in sdk.embed.await_args_list] == [1, 1] + + +async def test_tokenizer_is_not_loaded_for_requests_far_below_the_ceiling() -> None: + client, sdk = make_client(make_response([[0.1]])) + await client.get_embeddings(["short text"]) + sdk.tokenize.assert_not_called() + + +async def test_model_without_a_documented_ceiling_is_split_by_input_count_only() -> None: + client, sdk = make_client(make_response([[0.1]]), model="voyage-code-4") + await client.get_embeddings(["a" * 500_000]) + sdk.tokenize.assert_not_called() + + +async def test_tokenizer_failure_fails_the_call_instead_of_sending_unsplit_requests() -> None: + client, sdk = make_client(model="voyage-4-large") + sdk.tokenize.side_effect = OSError("hub unreachable") + + with pytest.raises(IntegrationException, match="could not be split by token count"): + await client.get_embeddings(["a" * 150_000]) + + sdk.embed.assert_not_awaited() + + # endregion # region: the response is checked, and billing fails closed From 3314a43e81b3c97e705029ea752ce96af5ad3dbe Mon Sep 17 00:00:00 2001 From: fzowl Date: Sat, 14 Nov 2026 14:33:46 +0100 Subject: [PATCH 4/6] Python: Bound token estimates by Unicode normalization in the Voyage AI package NFC normalization can grow UTF-8 text up to three times before tokenizing, so the check that skips the tokenizer assumed too few tokens. Also report an SDK error without a status as an invalid response, and reject a bare string passed as the documents of a contextualized embeddings call. --- python/packages/voyageai/AGENTS.md | 9 +++++---- .../_contextualized_embedding_client.py | 2 ++ .../agent_framework_voyageai/_shared.py | 14 +++++++++----- ...voyageai_contextualized_embedding_client.py | 7 +++++++ .../voyageai/test_voyageai_embedding_client.py | 18 ++++++++++++++++++ 5 files changed, 41 insertions(+), 9 deletions(-) diff --git a/python/packages/voyageai/AGENTS.md b/python/packages/voyageai/AGENTS.md index 234c2a8176c..2a90c9db4f5 100644 --- a/python/packages/voyageai/AGENTS.md +++ b/python/packages/voyageai/AGENTS.md @@ -7,7 +7,7 @@ Integration with Voyage AI for text embedding generation and contextualized chun - Uses the official `voyageai` SDK (`voyageai.AsyncClient.embed`) for embedding requests. Framework option, usage, and exception translation stays in this package. - There is no default model. `model` (or `VOYAGE_EMBEDDING_MODEL`, or `options["model"]`) must name a - model in `_MODEL_DIMENSIONS`; an unknown name raises `ValueError` before any request. The table also + model in `_MODELS`; an unknown name raises `ValueError` before any request. The table also keeps the SDK's local open-weight models from being selected, since those would run in-process. - `dimensions` is validated against the model's supported sizes and sent as `output_dimension` only when set. `input_type` (`"document"`/`"query"`) and `truncation` are sent only when set. @@ -15,7 +15,8 @@ Integration with Voyage AI for text embedding generation and contextualized chun `_ModelSpec.max_request_tokens` (`None` for `voyage-code-4`: no ceiling is documented, so none is assumed). `split_into_requests` splits larger calls into consecutive requests and `get_embeddings` sums usage. Tokens are counted with the SDK tokenizer (`client.tokenize`, fetched from the Hugging Face Hub on first use) only - when the inputs could reach the ceiling by their UTF-8 size; a tokenizer failure raises instead of sending an + when the inputs could reach the ceiling by their UTF-8 size (the bound is 3 tokens per byte, because NFC + normalization can expand text); a tokenizer failure raises instead of sending an unsplit request. - Contextualized embeddings do not fit `BaseEmbeddingClient` (several vectors per input), so `VoyageAIContextualizedEmbeddingClient.get_contextualized_embeddings` has its own result type @@ -25,8 +26,8 @@ Integration with Voyage AI for text embedding generation and contextualized chun other input type or with pre-chunked inner lists. Queries are sent as `[[query], ...]` without chunking. - Usage is read from the response's `usage.total_tokens`. A missing or invalid count raises `IntegrationInvalidResponseException`; it is never reported as zero. -- Voyage AI error bodies are `{"detail": ""}`. `_error_detail` reads that field and - `_raise_sdk_error` maps `401`/`403` to `IntegrationInvalidAuthException`, other `4xx` except `429` to +- Voyage AI error bodies are `{"detail": ""}`. `_shared.error_detail` reads that field and + `_shared.raise_sdk_error` maps `401`/`403` to `IntegrationInvalidAuthException`, other `4xx` except `429` to `IntegrationInvalidRequestException`, and everything else (including `429` and `5xx`) to `IntegrationException`. - The SDK retries `429`/`503`/timeouts only when `max_retries` is set. The client keeps the SDK default (no diff --git a/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py b/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py index a7b48c1e183..acc5f152f57 100644 --- a/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py +++ b/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py @@ -305,6 +305,8 @@ async def get_contextualized_embeddings( "Voyage AI chunks documents only with input_type='document'." ) validate_input_type(input_type) + if isinstance(values, str): + raise ValueError("values must be a sequence of strings, not a single string; wrap one document in a list.") for index, value in enumerate(values): if not isinstance(value, str): raise ValueError( diff --git a/python/packages/voyageai/agent_framework_voyageai/_shared.py b/python/packages/voyageai/agent_framework_voyageai/_shared.py index 45dfe8eae6f..b0c3093e305 100644 --- a/python/packages/voyageai/agent_framework_voyageai/_shared.py +++ b/python/packages/voyageai/agent_framework_voyageai/_shared.py @@ -26,9 +26,11 @@ MATRYOSHKA_DIMENSIONS: Final = (256, 512, 1024, 2048) INPUT_TYPES: Final = ("document", "query") -# Voyage AI tokenizers produced at most one token per UTF-8 byte of text in our checks, plus a couple -# of special tokens per input. This bound adds room, and lets a request that is far below its token -# ceiling skip the tokenizer, which is downloaded from the Hugging Face Hub on first use. +# The Voyage AI tokenizers normalize text to NFC and then emit at most one token per byte. NFC can grow +# UTF-8 text by up to three times (for example U+0344 becomes two characters), so three tokens per byte, +# plus a few special tokens per input, bounds what a text can tokenize to. A request below its token +# ceiling by this bound skips the tokenizer, which is downloaded from the Hugging Face Hub on first use. +_MAX_TOKENS_PER_BYTE: Final = 3 _TOKENS_PER_INPUT_OVERHEAD: Final = 8 @@ -51,7 +53,8 @@ def raise_sdk_error(ex: voyageai.error.VoyageError, operation: str) -> NoReturn: everything else, including ``429`` and ``5xx``, is a plain integration failure. """ status: int | None = getattr(ex, "http_status", None) - if status is not None and status < 400: + # The SDK raises a ServerError without a status when the body it received is inconsistent. + if (status is not None and status < 400) or (status is None and isinstance(ex, voyageai.error.ServerError)): raise IntegrationInvalidResponseException( f"Voyage AI {operation} response was invalid: {error_detail(ex)}", inner_exception=ex, @@ -105,7 +108,8 @@ async def split_into_requests( unsplit in that case. """ if max_request_tokens is None or ( - sum(len(value.encode("utf-8")) + _TOKENS_PER_INPUT_OVERHEAD for value in values) <= max_request_tokens + sum(_MAX_TOKENS_PER_BYTE * len(value.encode("utf-8")) + _TOKENS_PER_INPUT_OVERHEAD for value in values) + <= max_request_tokens ): return [values[start : start + MAX_BATCH_SIZE] for start in range(0, len(values), MAX_BATCH_SIZE)] diff --git a/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py b/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py index cb9be7893f7..faeef788196 100644 --- a/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py +++ b/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py @@ -139,6 +139,13 @@ async def test_pre_chunked_documents_are_rejected_before_any_request() -> None: sdk.contextualized_embed.assert_not_awaited() +async def test_a_bare_string_is_not_a_list_of_documents() -> None: + client, sdk = make_client() + with pytest.raises(ValueError, match="not a single string"): + await client.get_contextualized_embeddings(cast(Any, "one document"), options={"input_type": "document"}) + sdk.contextualized_embed.assert_not_awaited() + + async def test_documents_are_sent_flat_with_auto_chunking_at_32000() -> None: client, sdk = make_client(make_response([[[0.1, 0.2]], [[0.3, 0.4]]])) diff --git a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py index 0af6dc79fc7..dc36e70a004 100644 --- a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py +++ b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py @@ -185,6 +185,17 @@ async def test_requests_stay_within_the_models_token_ceiling() -> None: assert [len(call.args[0]) for call in sdk.embed.await_args_list] == [2, 1] +async def test_text_that_expands_when_tokenized_is_counted_by_the_tokenizer() -> None: + # U+0344 is two characters after Unicode normalization, so 50 KB of it tokenizes to well over 50K tokens. + client, sdk = make_client(make_response([[0.1]]), make_response([[0.1]]), model="voyage-4-large") + sdk.tokenize.return_value = [[0] * 75_000, [0] * 75_000] + + await client.get_embeddings(["\u0344" * 25_000, "\u0344" * 25_000]) + + sdk.tokenize.assert_called_once() + assert [len(call.args[0]) for call in sdk.embed.await_args_list] == [1, 1] + + async def test_input_over_the_ceiling_on_its_own_gets_its_own_request() -> None: client, sdk = make_client(make_response([[0.1]]), make_response([[0.1]]), model="voyage-4-large") sdk.tokenize.return_value = [[0] * 130_000, [0] * 10] @@ -321,6 +332,13 @@ async def test_non_text_detail_does_not_escape_as_a_type_error() -> None: await client.get_embeddings(["a"]) +async def test_sdk_error_without_a_status_for_an_inconsistent_body_is_an_invalid_response() -> None: + client, sdk = make_client() + sdk.embed.side_effect = voyageai.error.ServerError("body was inconsistent") + with pytest.raises(IntegrationInvalidResponseException, match="body was inconsistent"): + await client.get_embeddings(["a"]) + + async def test_unexpected_sdk_failure_is_wrapped() -> None: client, sdk = make_client() sdk.embed.side_effect = RuntimeError("connection reset") From 141a5b9df592b2543ff525e8123a3b64ebd83ba2 Mon Sep 17 00:00:00 2001 From: fzowl Date: Sat, 14 Nov 2026 14:36:22 +0100 Subject: [PATCH 5/6] Python: Count tokens with the SDK instead of estimating in the Voyage AI package Calls to a model with a documented per-request token ceiling now always count tokens with the voyageai SDK's count_tokens before splitting; the size-based shortcut that skipped counting is removed. --- python/packages/voyageai/AGENTS.md | 6 ++--- python/packages/voyageai/README.md | 8 +++--- .../_contextualized_embedding_client.py | 2 +- .../_embedding_client.py | 6 ++--- .../agent_framework_voyageai/_shared.py | 27 ++++++------------- ...oyageai_contextualized_embedding_client.py | 3 ++- .../test_voyageai_embedding_client.py | 27 +++++++------------ 7 files changed, 30 insertions(+), 49 deletions(-) diff --git a/python/packages/voyageai/AGENTS.md b/python/packages/voyageai/AGENTS.md index 2a90c9db4f5..772563c02a9 100644 --- a/python/packages/voyageai/AGENTS.md +++ b/python/packages/voyageai/AGENTS.md @@ -14,10 +14,8 @@ Integration with Voyage AI for text embedding generation and contextualized chun - A request holds at most 1000 inputs (`MAX_BATCH_SIZE`) and, per model, at most the tokens in `_ModelSpec.max_request_tokens` (`None` for `voyage-code-4`: no ceiling is documented, so none is assumed). `split_into_requests` splits larger calls into consecutive requests and `get_embeddings` sums usage. Tokens - are counted with the SDK tokenizer (`client.tokenize`, fetched from the Hugging Face Hub on first use) only - when the inputs could reach the ceiling by their UTF-8 size (the bound is 3 tokens per byte, because NFC - normalization can expand text); a tokenizer failure raises instead of sending an - unsplit request. + are counted with the SDK's `client.count_tokens` (its tokenizer is fetched from the Hugging Face Hub on first + use); there is no estimation. A counting failure raises instead of sending an unsplit request. - Contextualized embeddings do not fit `BaseEmbeddingClient` (several vectors per input), so `VoyageAIContextualizedEmbeddingClient.get_contextualized_embeddings` has its own result type (`VoyageAIContextualizedEmbeddings`, one `VoyageAIContextualizedEmbedding` per value with `embeddings` and diff --git a/python/packages/voyageai/README.md b/python/packages/voyageai/README.md index be5cf34160a..8dea13c1062 100644 --- a/python/packages/voyageai/README.md +++ b/python/packages/voyageai/README.md @@ -78,10 +78,10 @@ A request holds at most 1000 inputs, and each model has a documented ceiling on none is documented for `voyage-code-4`, so only the input count is limited there). The client splits larger calls into consecutive requests within both limits, returns the vectors in order, and sums usage. -Tokens are counted with the model's tokenizer through the SDK. The tokenizer is downloaded from the Hugging -Face Hub on first use, and only when the inputs could reach the ceiling: a call that is far below it never -loads one. If the tokenizer is needed and cannot be loaded, the call raises `IntegrationException` instead of -sending an unsplit request. +Tokens are counted with the SDK's `count_tokens`, which uses the model's own tokenizer. The tokenizer is +downloaded from the Hugging Face Hub on first use. If tokens cannot be counted, the call raises +`IntegrationException` instead of sending an unsplit request. `voyage-code-4` has no documented ceiling, so +calls to it are split by input count only and never load a tokenizer. Usage comes from the token count the service reports. A response without one raises `IntegrationInvalidResponseException` instead of reporting zero tokens. diff --git a/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py b/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py index acc5f152f57..5d09005de04 100644 --- a/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py +++ b/python/packages/voyageai/agent_framework_voyageai/_contextualized_embedding_client.py @@ -292,7 +292,7 @@ async def get_contextualized_embeddings( IntegrationInvalidRequestException: If Voyage AI rejects the request. IntegrationInvalidResponseException: If the response is malformed, or reports no token count. IntegrationException: If the request fails for another reason, including rate limiting, or - if the tokenizer needed to split a large call cannot be loaded. + if tokens cannot be counted to split the call. """ opts: dict[str, Any] = options # type: ignore[assignment] model = opts.get("model") or self.model diff --git a/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py b/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py index 066a97591fd..224f583ae46 100644 --- a/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py +++ b/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py @@ -275,8 +275,8 @@ async def get_embeddings( """Call the Voyage AI embeddings API. Inputs beyond ``MAX_BATCH_SIZE``, or beyond the model's documented per-request token ceiling, - are sent as consecutive requests. The tokens are counted with the model's tokenizer through the - SDK, which is downloaded on first use and only needed when the inputs could reach the ceiling. + are sent as consecutive requests. The tokens are counted with the SDK's ``count_tokens``, whose + tokenizer is downloaded on first use. Vectors keep the order of ``values``, usage is summed, and a failed request fails the whole call. Args: @@ -293,7 +293,7 @@ async def get_embeddings( IntegrationInvalidRequestException: If Voyage AI rejects the request. IntegrationInvalidResponseException: If the response is malformed, or reports no token count. IntegrationException: If the request fails for another reason, including rate limiting, or - if the tokenizer needed to split a large call cannot be loaded. + if tokens cannot be counted to split the call. """ if not values: return GeneratedEmbeddings([], options=options) diff --git a/python/packages/voyageai/agent_framework_voyageai/_shared.py b/python/packages/voyageai/agent_framework_voyageai/_shared.py index b0c3093e305..0b7bd18ac9f 100644 --- a/python/packages/voyageai/agent_framework_voyageai/_shared.py +++ b/python/packages/voyageai/agent_framework_voyageai/_shared.py @@ -26,13 +26,6 @@ MATRYOSHKA_DIMENSIONS: Final = (256, 512, 1024, 2048) INPUT_TYPES: Final = ("document", "query") -# The Voyage AI tokenizers normalize text to NFC and then emit at most one token per byte. NFC can grow -# UTF-8 text by up to three times (for example U+0344 becomes two characters), so three tokens per byte, -# plus a few special tokens per input, bounds what a text can tokenize to. A request below its token -# ceiling by this bound skips the tokenizer, which is downloaded from the Hugging Face Hub on first use. -_MAX_TOKENS_PER_BYTE: Final = 3 -_TOKENS_PER_INPUT_OVERHEAD: Final = 8 - def error_detail(ex: voyageai.error.VoyageError) -> str: """Return the message of a Voyage AI error. @@ -99,26 +92,22 @@ async def split_into_requests( """Split ``values`` into consecutive requests within Voyage AI's per-request limits. A request holds at most ``MAX_BATCH_SIZE`` inputs and, for models with a documented ceiling, - at most ``max_request_tokens`` tokens in total. Tokens are counted with the model's own tokenizer - through the SDK, unless the inputs are small enough to be under the ceiling whatever they tokenize - to. An input over the ceiling on its own still gets its own request, and the service decides. + at most ``max_request_tokens`` tokens in total. Tokens are counted with the SDK's ``count_tokens``, + which uses the model's own tokenizer. An input over the ceiling on its own still gets its own + request, and the service decides. Raises: - IntegrationException: If the tokenizer is needed and cannot be loaded. Requests are never sent - unsplit in that case. + IntegrationException: If the tokens cannot be counted, for example because the tokenizer cannot be + loaded. Requests are never sent unsplit in that case. """ - if max_request_tokens is None or ( - sum(_MAX_TOKENS_PER_BYTE * len(value.encode("utf-8")) + _TOKENS_PER_INPUT_OVERHEAD for value in values) - <= max_request_tokens - ): + if max_request_tokens is None: return [values[start : start + MAX_BATCH_SIZE] for start in range(0, len(values), MAX_BATCH_SIZE)] try: - encodings = await asyncio.to_thread(client.tokenize, list(values), model) - token_counts = [len(encoding) for encoding in encodings] + token_counts = await asyncio.to_thread(lambda: [client.count_tokens([value], model) for value in values]) except Exception as ex: raise IntegrationException( - f"Voyage AI request could not be split by token count: the tokenizer for {model!r} failed: {ex}", + f"Voyage AI request could not be split by token count: counting tokens for {model!r} failed: {ex}", inner_exception=ex, ) from ex diff --git a/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py b/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py index faeef788196..3cd66ba2d69 100644 --- a/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py +++ b/python/packages/voyageai/tests/voyageai/test_voyageai_contextualized_embedding_client.py @@ -61,6 +61,7 @@ def make_client( *responses: Any, model: str | None = "voyage-context-4" ) -> tuple[VoyageAIContextualizedEmbeddingClient, AsyncMock]: sdk = AsyncMock(spec=AsyncClient) + sdk.count_tokens.return_value = 1 sdk.contextualized_embed.side_effect = list(responses) return VoyageAIContextualizedEmbeddingClient(model=model, client=sdk), sdk @@ -243,7 +244,7 @@ async def test_requests_stay_within_the_token_ceiling_and_usage_is_summed() -> N client, sdk = make_client( make_response([[[0.1]], [[0.2]]], total_tokens=5), make_response([[[0.3]]], total_tokens=2) ) - sdk.tokenize.return_value = [[0] * 50_000, [0] * 50_000, [0] * 50_000] + sdk.count_tokens.side_effect = [50_000, 50_000, 50_000] result = await client.get_contextualized_embeddings(["a" * 50_000] * 3, options={"input_type": "document"}) diff --git a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py index dc36e70a004..41178bd9e16 100644 --- a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py +++ b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py @@ -53,6 +53,7 @@ def make_response(vectors: list[list[float]], total_tokens: int = 4) -> Embeddin def make_client(*responses: Any, model: str | None = "voyage-4") -> tuple[VoyageAIEmbeddingClient, AsyncMock]: sdk = AsyncMock(spec=AsyncClient) + sdk.count_tokens.return_value = 1 sdk.embed.side_effect = list(responses) return VoyageAIEmbeddingClient(model=model, client=sdk), sdk @@ -178,48 +179,40 @@ async def test_inputs_over_the_request_limit_are_split_in_order_and_usage_is_sum async def test_requests_stay_within_the_models_token_ceiling() -> None: client, sdk = make_client(make_response([[0.1]] * 2), make_response([[0.1]]), model="voyage-4-large") - sdk.tokenize.return_value = [[0] * 50_000, [0] * 50_000, [0] * 50_000] + sdk.count_tokens.side_effect = [50_000, 50_000, 50_000] await client.get_embeddings(["a" * 50_000] * 3) assert [len(call.args[0]) for call in sdk.embed.await_args_list] == [2, 1] -async def test_text_that_expands_when_tokenized_is_counted_by_the_tokenizer() -> None: - # U+0344 is two characters after Unicode normalization, so 50 KB of it tokenizes to well over 50K tokens. - client, sdk = make_client(make_response([[0.1]]), make_response([[0.1]]), model="voyage-4-large") - sdk.tokenize.return_value = [[0] * 75_000, [0] * 75_000] - - await client.get_embeddings(["\u0344" * 25_000, "\u0344" * 25_000]) - - sdk.tokenize.assert_called_once() - assert [len(call.args[0]) for call in sdk.embed.await_args_list] == [1, 1] - - async def test_input_over_the_ceiling_on_its_own_gets_its_own_request() -> None: client, sdk = make_client(make_response([[0.1]]), make_response([[0.1]]), model="voyage-4-large") - sdk.tokenize.return_value = [[0] * 130_000, [0] * 10] + sdk.count_tokens.side_effect = [130_000, 10] await client.get_embeddings(["a" * 130_000, "b" * 10_000]) assert [len(call.args[0]) for call in sdk.embed.await_args_list] == [1, 1] -async def test_tokenizer_is_not_loaded_for_requests_far_below_the_ceiling() -> None: +async def test_tokens_are_counted_for_every_call_to_a_model_with_a_ceiling() -> None: client, sdk = make_client(make_response([[0.1]])) + sdk.count_tokens.side_effect = [3] + await client.get_embeddings(["short text"]) - sdk.tokenize.assert_not_called() + + sdk.count_tokens.assert_called_once_with(["short text"], "voyage-4") async def test_model_without_a_documented_ceiling_is_split_by_input_count_only() -> None: client, sdk = make_client(make_response([[0.1]]), model="voyage-code-4") await client.get_embeddings(["a" * 500_000]) - sdk.tokenize.assert_not_called() + sdk.count_tokens.assert_not_called() async def test_tokenizer_failure_fails_the_call_instead_of_sending_unsplit_requests() -> None: client, sdk = make_client(model="voyage-4-large") - sdk.tokenize.side_effect = OSError("hub unreachable") + sdk.count_tokens.side_effect = OSError("hub unreachable") with pytest.raises(IntegrationException, match="could not be split by token count"): await client.get_embeddings(["a" * 150_000]) From f5e043d5a2f551475ecd2b1eecebc02bf77976e5 Mon Sep 17 00:00:00 2001 From: fzowl Date: Sat, 14 Nov 2026 15:34:07 +0100 Subject: [PATCH 6/6] Python: Split voyage-code-4 calls at 120K tokens like the other 120K models Voyage AI documents no per-request token ceiling for voyage-code-4. Every model now has a ceiling, so token counting applies to all of them. --- python/packages/voyageai/AGENTS.md | 3 ++- python/packages/voyageai/README.md | 11 +++++------ .../agent_framework_voyageai/_embedding_client.py | 13 +++++++------ .../voyageai/agent_framework_voyageai/_shared.py | 12 ++++-------- .../voyageai/test_voyageai_embedding_client.py | 6 ------ 5 files changed, 18 insertions(+), 27 deletions(-) diff --git a/python/packages/voyageai/AGENTS.md b/python/packages/voyageai/AGENTS.md index 772563c02a9..860fa4a1bc0 100644 --- a/python/packages/voyageai/AGENTS.md +++ b/python/packages/voyageai/AGENTS.md @@ -12,7 +12,8 @@ Integration with Voyage AI for text embedding generation and contextualized chun - `dimensions` is validated against the model's supported sizes and sent as `output_dimension` only when set. `input_type` (`"document"`/`"query"`) and `truncation` are sent only when set. - A request holds at most 1000 inputs (`MAX_BATCH_SIZE`) and, per model, at most the tokens in - `_ModelSpec.max_request_tokens` (`None` for `voyage-code-4`: no ceiling is documented, so none is assumed). + `_ModelSpec.max_request_tokens`. Voyage AI documents none for `voyage-code-4`; it uses 120K like the other + 120K models (a live request of 124K tokens was accepted, so this is conservative). `split_into_requests` splits larger calls into consecutive requests and `get_embeddings` sums usage. Tokens are counted with the SDK's `client.count_tokens` (its tokenizer is fetched from the Hugging Face Hub on first use); there is no estimation. A counting failure raises instead of sending an unsplit request. diff --git a/python/packages/voyageai/README.md b/python/packages/voyageai/README.md index 8dea13c1062..8db3cc1a8ff 100644 --- a/python/packages/voyageai/README.md +++ b/python/packages/voyageai/README.md @@ -73,15 +73,14 @@ results = await collection.search("How do I call a model?", embeddings_options={ ### Requests and usage -A request holds at most 1000 inputs, and each model has a documented ceiling on the tokens of one request -(1M for `voyage-4-lite` and `voyage-3.5-lite`, 320K for `voyage-4` and `voyage-3.5`, 120K for the others; -none is documented for `voyage-code-4`, so only the input count is limited there). The client splits larger calls -into consecutive requests within both limits, returns the vectors in order, and sums usage. +A request holds at most 1000 inputs, and each model has a ceiling on the tokens of one request (1M for +`voyage-4-lite` and `voyage-3.5-lite`, 320K for `voyage-4` and `voyage-3.5`, 120K for the others). Voyage AI +documents no ceiling for `voyage-code-4`; it is split like the other 120K models, which is conservative. The client +splits larger calls into consecutive requests within both limits, returns the vectors in order, and sums usage. Tokens are counted with the SDK's `count_tokens`, which uses the model's own tokenizer. The tokenizer is downloaded from the Hugging Face Hub on first use. If tokens cannot be counted, the call raises -`IntegrationException` instead of sending an unsplit request. `voyage-code-4` has no documented ceiling, so -calls to it are split by input count only and never load a tokenizer. +`IntegrationException` instead of sending an unsplit request. Usage comes from the token count the service reports. A response without one raises `IntegrationInvalidResponseException` instead of reporting zero tokens. diff --git a/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py b/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py index 224f583ae46..65dbb58c72b 100644 --- a/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py +++ b/python/packages/voyageai/agent_framework_voyageai/_embedding_client.py @@ -54,8 +54,8 @@ @dataclass(frozen=True) class _ModelSpec: dimensions: tuple[int, ...] - max_request_tokens: int | None - """The documented ceiling on the tokens of one request, or ``None`` when Voyage AI documents none.""" + max_request_tokens: int + """The ceiling on the tokens of one request.""" _FIXED_DIMENSIONS: Final = (1024,) @@ -64,8 +64,9 @@ class _ModelSpec: "voyage-4-large": _ModelSpec(MATRYOSHKA_DIMENSIONS, 120_000), "voyage-4": _ModelSpec(MATRYOSHKA_DIMENSIONS, 320_000), "voyage-4-lite": _ModelSpec(MATRYOSHKA_DIMENSIONS, 1_000_000), - # No per-request token ceiling is documented for voyage-code-4, so none is assumed. - "voyage-code-4": _ModelSpec(MATRYOSHKA_DIMENSIONS, None), + # Voyage AI documents no per-request token ceiling for voyage-code-4. It is split like the other + # 120K models, which is conservative: the service accepted a 124K-token request in a live check. + "voyage-code-4": _ModelSpec(MATRYOSHKA_DIMENSIONS, 120_000), "voyage-3-large": _ModelSpec(MATRYOSHKA_DIMENSIONS, 120_000), "voyage-3.5": _ModelSpec(MATRYOSHKA_DIMENSIONS, 320_000), "voyage-3.5-lite": _ModelSpec(MATRYOSHKA_DIMENSIONS, 1_000_000), @@ -74,7 +75,7 @@ class _ModelSpec: "voyage-law-2": _ModelSpec(_FIXED_DIMENSIONS, 120_000), } """The text embedding models this client accepts, with the ``dimensions`` each one supports and the -ceiling Voyage AI documents for the tokens of one request. +ceiling on the tokens of one request. The model is always named by the caller; there is no default. A name outside this table is rejected before any request is sent. The Voyage AI SDK also runs some open-weight models locally, and this @@ -274,7 +275,7 @@ async def get_embeddings( ) -> GeneratedEmbeddings[list[float], VoyageAIEmbeddingOptionsT]: """Call the Voyage AI embeddings API. - Inputs beyond ``MAX_BATCH_SIZE``, or beyond the model's documented per-request token ceiling, + Inputs beyond ``MAX_BATCH_SIZE``, or beyond the model's per-request token ceiling, are sent as consecutive requests. The tokens are counted with the SDK's ``count_tokens``, whose tokenizer is downloaded on first use. Vectors keep the order of ``values``, usage is summed, and a failed request fails the whole call. diff --git a/python/packages/voyageai/agent_framework_voyageai/_shared.py b/python/packages/voyageai/agent_framework_voyageai/_shared.py index 0b7bd18ac9f..3e0075d8f2d 100644 --- a/python/packages/voyageai/agent_framework_voyageai/_shared.py +++ b/python/packages/voyageai/agent_framework_voyageai/_shared.py @@ -87,22 +87,18 @@ async def split_into_requests( model: str, values: Sequence[str], *, - max_request_tokens: int | None, + max_request_tokens: int, ) -> list[Sequence[str]]: """Split ``values`` into consecutive requests within Voyage AI's per-request limits. - A request holds at most ``MAX_BATCH_SIZE`` inputs and, for models with a documented ceiling, - at most ``max_request_tokens`` tokens in total. Tokens are counted with the SDK's ``count_tokens``, - which uses the model's own tokenizer. An input over the ceiling on its own still gets its own - request, and the service decides. + A request holds at most ``MAX_BATCH_SIZE`` inputs and at most ``max_request_tokens`` tokens in total. + Tokens are counted with the SDK's ``count_tokens``, which uses the model's own tokenizer. An input over + the ceiling on its own still gets its own request, and the service decides. Raises: IntegrationException: If the tokens cannot be counted, for example because the tokenizer cannot be loaded. Requests are never sent unsplit in that case. """ - if max_request_tokens is None: - return [values[start : start + MAX_BATCH_SIZE] for start in range(0, len(values), MAX_BATCH_SIZE)] - try: token_counts = await asyncio.to_thread(lambda: [client.count_tokens([value], model) for value in values]) except Exception as ex: diff --git a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py index 41178bd9e16..384cccbdd35 100644 --- a/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py +++ b/python/packages/voyageai/tests/voyageai/test_voyageai_embedding_client.py @@ -204,12 +204,6 @@ async def test_tokens_are_counted_for_every_call_to_a_model_with_a_ceiling() -> sdk.count_tokens.assert_called_once_with(["short text"], "voyage-4") -async def test_model_without_a_documented_ceiling_is_split_by_input_count_only() -> None: - client, sdk = make_client(make_response([[0.1]]), model="voyage-code-4") - await client.get_embeddings(["a" * 500_000]) - sdk.count_tokens.assert_not_called() - - async def test_tokenizer_failure_fails_the_call_instead_of_sending_unsplit_requests() -> None: client, sdk = make_client(model="voyage-4-large") sdk.count_tokens.side_effect = OSError("hub unreachable")