weave-python 0.28.2__py3-none-any.whl → 0.30.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- weave/weaveapi/auth/v1/service_pb2.py +194 -98
- weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
- weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
- weave/weaveapi/auth/v1/session_pb2.py +14 -6
- weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
- weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/usage_pb2.py +18 -14
- weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
- weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/user_pb2.py +60 -18
- weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
- weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/configuration_pb2.py +31 -19
- weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
- weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/generate_pb2.py +32 -6
- weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
- weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/service_pb2.py +52 -22
- weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
- weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
- weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
- weave/weaveapi/llmx/v1/architecture_pb2.py +42 -42
- weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
- weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/capabilities_pb2.py +88 -56
- weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
- weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/model_pb2.py +56 -20
- weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
- weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/pricing_pb2.py +24 -20
- weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
- weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/provider_pb2.py +6 -6
- weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
- weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/service_pb2.py +228 -90
- weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
- weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
- weave/weaveapi/mcpregistry/v1/server_pb2.py +16 -10
- weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
- weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
- weave/weaveapi/mcpregistry/v1/service_pb2.py +51 -31
- weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
- weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
- weave/weaveapi/payment/v1/invoice_pb2.py +38 -12
- weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
- weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
- weave/weaveapi/payment/v1/service_pb2.py +264 -98
- weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
- weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
- weave/weaveapi/payment/v1/subscription_pb2.py +99 -23
- weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
- weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/auth_pb2.py +6 -6
- weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
- weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/nosql_database_pb2.py +47 -23
- weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
- weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/object_store_pb2.py +27 -13
- weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
- weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/service_pb2.py +96 -36
- weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
- weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
- weave/weaveapi/storage/v1/sql_database_pb2.py +39 -23
- weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
- weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/storage_pb2.py +20 -6
- weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
- weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/dataset_pb2.py +14 -12
- weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
- weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/inline_data_pb2.py +9 -9
- weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
- weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/relationship_pb2.py +19 -11
- weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
- weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/service_pb2.py +42 -24
- weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
- weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
- weave/weaveapi/synthesize/v1/training_pb2.py +19 -13
- weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
- weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
- weave/weavesql/llmxdb/capabilities.py +487 -0
- weave/weavesql/llmxdb/changes.py +297 -0
- weave/weavesql/llmxdb/models.py +594 -0
- weave/weavesql/llmxdb/providers.py +348 -0
- weave/weavesql/llmxdb/scraper_runs.py +287 -0
- weave/weavesql/llmxdb/search.py +721 -0
- weave/weavesql/weavedb/dataset.py +75 -0
- weave/weavesql/weavedb/models.py +135 -0
- weave/weavesql/weavedb/relationships.py +72 -0
- weave/weavesql/weavedb/storage.py +113 -0
- weave/weavesql/weavedb/synthesizer.py +107 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/METADATA +3 -3
- weave_python-0.30.3.dist-info/RECORD +131 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/WHEEL +1 -1
- weave_python-0.28.2.dist-info/RECORD +0 -120
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import abc
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import grpc
|
|
10
|
-
import typing
|
|
6
|
+
from collections import abc as _abc
|
|
7
|
+
from grpc import aio as _aio
|
|
8
|
+
import abc as _abc_1
|
|
9
|
+
import grpc as _grpc
|
|
10
|
+
import typing as _typing
|
|
11
11
|
|
|
12
|
-
_T =
|
|
12
|
+
_T = _typing.TypeVar("_T")
|
|
13
13
|
|
|
14
14
|
class _MaybeAsyncIterator(
|
|
15
|
-
|
|
16
|
-
collections.abc.Iterator[_T],
|
|
17
|
-
metaclass=abc.ABCMeta,
|
|
15
|
+
_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta
|
|
18
16
|
): ...
|
|
19
|
-
class _ServicerContext(
|
|
17
|
+
class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
20
18
|
...
|
|
19
|
+
|
|
20
|
+
GRPC_GENERATED_VERSION: str
|
|
21
|
+
GRPC_VERSION: str
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: weaveapi/llmx/v1/pricing.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.33.5
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
|
|
8
8
|
from google.protobuf import descriptor as _descriptor
|
|
@@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
|
|
|
12
12
|
from google.protobuf.internal import builder as _builder
|
|
13
13
|
|
|
14
14
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
-
_runtime_version.Domain.PUBLIC, 6,
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 33, 5, "", "weaveapi/llmx/v1/pricing.proto"
|
|
16
16
|
)
|
|
17
17
|
# @@protoc_insertion_point(imports)
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ _sym_db = _symbol_database.Default()
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
-
b'\n\x1eweaveapi/llmx/v1/pricing.proto\x12\x10weaveapi.llmx.v1"\
|
|
23
|
+
b'\n\x1eweaveapi/llmx/v1/pricing.proto\x12\x10weaveapi.llmx.v1\x1a!google/protobuf/go_features.proto"\xe0\x01\n\x07Pricing\x12\x1a\n\x08\x63urrency\x18\x01 \x01(\tR\x08\x63urrency\x12\x37\n\x05items\x18\x02 \x03(\x0b\x32\x1d.weaveapi.llmx.v1.PricingItemB\x02(\x01R\x05items\x12\x43\n\x08metadata\x18\x03 \x03(\x0b\x32\'.weaveapi.llmx.v1.Pricing.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01"c\n\tTokenBand\x12*\n\x11min_prompt_tokens\x18\x01 \x01(\x03R\x0fminPromptTokens\x12*\n\x11max_prompt_tokens\x18\x02 \x01(\x03R\x0fmaxPromptTokens"\x87\x04\n\x0bPricingItem\x12=\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32!.weaveapi.llmx.v1.PricingCategoryR\x08\x63\x61tegory\x12\x31\n\x04tier\x18\x02 \x01(\x0e\x32\x1d.weaveapi.llmx.v1.PricingTierR\x04tier\x12\x39\n\toperation\x18\x03 \x01(\x0e\x32\x1b.weaveapi.llmx.v1.OperationR\toperation\x12\x14\n\x05price\x18\x04 \x01(\x01R\x05price\x12/\n\x04unit\x18\x05 \x01(\x0e\x32\x1b.weaveapi.llmx.v1.PriceUnitR\x04unit\x12\x18\n\x07quality\x18\x06 \x01(\tR\x07quality\x12\x1e\n\nresolution\x18\x07 \x01(\tR\nresolution\x12>\n\ntoken_band\x18\x08 \x01(\x0b\x32\x1b.weaveapi.llmx.v1.TokenBandB\x02(\x01R\ttokenBand\x12\x38\n\x18includes_thinking_tokens\x18\t \x01(\x08R\x16includesThinkingTokens\x12\x1b\n\ttool_name\x18\n \x01(\tR\x08toolName\x12\x1d\n\ntoken_type\x18\x0b \x01(\tR\ttokenType\x12\x14\n\x05notes\x18\x0c \x01(\tR\x05notes*\xc0\x02\n\x0fPricingCategory\x12 \n\x1cPRICING_CATEGORY_UNSPECIFIED\x10\x00\x12\x19\n\x15PRICING_CATEGORY_TEXT\x10\x01\x12\x1a\n\x16PRICING_CATEGORY_IMAGE\x10\x02\x12\x1a\n\x16PRICING_CATEGORY_AUDIO\x10\x03\x12\x1e\n\x1aPRICING_CATEGORY_EMBEDDING\x10\x04\x12 \n\x1cPRICING_CATEGORY_FINE_TUNING\x10\x05\x12\x19\n\x15PRICING_CATEGORY_TOOL\x10\x06\x12\x1d\n\x19PRICING_CATEGORY_REALTIME\x10\x07\x12\x1f\n\x1bPRICING_CATEGORY_MODERATION\x10\x08\x12\x1b\n\x17PRICING_CATEGORY_LEGACY\x10\t*\xc4\x01\n\x0bPricingTier\x12\x1c\n\x18PRICING_TIER_UNSPECIFIED\x10\x00\x12\x15\n\x11PRICING_TIER_FREE\x10\x01\x12\x16\n\x12PRICING_TIER_BATCH\x10\x02\x12\x15\n\x11PRICING_TIER_FLEX\x10\x03\x12\x19\n\x15PRICING_TIER_STANDARD\x10\x04\x12\x19\n\x15PRICING_TIER_PRIORITY\x10\x05\x12\x1b\n\x17PRICING_TIER_ENTERPRISE\x10\x06*\xab\x02\n\tOperation\x12\x19\n\x15OPERATION_UNSPECIFIED\x10\x00\x12\x13\n\x0fOPERATION_INPUT\x10\x01\x12\x14\n\x10OPERATION_OUTPUT\x10\x02\x12\x1a\n\x16OPERATION_CACHED_INPUT\x10\x03\x12\x18\n\x14OPERATION_CACHE_READ\x10\x04\x12\x19\n\x15OPERATION_CACHE_WRITE\x10\x05\x12\x16\n\x12OPERATION_TRAINING\x10\x06\x12\x15\n\x11OPERATION_STORAGE\x10\x07\x12#\n\x1fOPERATION_CONTEXT_CACHE_STORAGE\x10\x08\x12\x16\n\x12OPERATION_PER_CALL\x10\t\x12\x1b\n\x17OPERATION_PER_CONTAINER\x10\n*\x86\x02\n\tPriceUnit\x12\x1a\n\x16PRICE_UNIT_UNSPECIFIED\x10\x00\x12\x1c\n\x18PRICE_UNIT_PER_1M_TOKENS\x10\x01\x12\x18\n\x14PRICE_UNIT_PER_IMAGE\x10\x02\x12\x19\n\x15PRICE_UNIT_PER_MINUTE\x10\x03\x12 \n\x1cPRICE_UNIT_PER_1M_CHARACTERS\x10\x04\x12\x17\n\x13PRICE_UNIT_PER_CALL\x10\x05\x12\x19\n\x15PRICE_UNIT_PER_GB_DAY\x10\x06\x12\x17\n\x13PRICE_UNIT_PER_HOUR\x10\x07\x12\x1b\n\x17PRICE_UNIT_PER_1K_CALLS\x10\x08\x42\xc4\x01\n\x14\x63om.weaveapi.llmx.v1B\x0cPricingProtoP\x01Z4github.com/weave-labs/weave-go/weaveapi/llmx/v1;llmx\xa2\x02\x03WLX\xaa\x02\x10Weaveapi.Llmx.V1\xca\x02\x10Weaveapi\\Llmx\\V1\xe2\x02\x1cWeaveapi\\Llmx\\V1\\GPBMetadata\xea\x02\x12Weaveapi::Llmx::V1\x92\x03\x05\xd2>\x02\x10\x03\x62\x08\x65\x64itionsp\xe8\x07'
|
|
24
24
|
)
|
|
25
25
|
|
|
26
26
|
_globals = globals()
|
|
@@ -32,23 +32,27 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
32
32
|
_globals["DESCRIPTOR"]._loaded_options = None
|
|
33
33
|
_globals[
|
|
34
34
|
"DESCRIPTOR"
|
|
35
|
-
]._serialized_options = b"\n\024com.weaveapi.llmx.v1B\014PricingProtoP\001Z4github.com/weave-labs/weave-go/weaveapi/llmx/v1;llmx\242\002\003WLX\252\002\020Weaveapi.Llmx.V1\312\002\020Weaveapi\\Llmx\\V1\342\002\034Weaveapi\\Llmx\\V1\\GPBMetadata\352\002\022Weaveapi::Llmx::V1"
|
|
35
|
+
]._serialized_options = b"\n\024com.weaveapi.llmx.v1B\014PricingProtoP\001Z4github.com/weave-labs/weave-go/weaveapi/llmx/v1;llmx\242\002\003WLX\252\002\020Weaveapi.Llmx.V1\312\002\020Weaveapi\\Llmx\\V1\342\002\034Weaveapi\\Llmx\\V1\\GPBMetadata\352\002\022Weaveapi::Llmx::V1\222\003\005\322>\002\020\003"
|
|
36
36
|
_globals["_PRICING_METADATAENTRY"]._loaded_options = None
|
|
37
37
|
_globals["_PRICING_METADATAENTRY"]._serialized_options = b"8\001"
|
|
38
|
-
_globals["
|
|
39
|
-
_globals["
|
|
40
|
-
_globals["
|
|
41
|
-
_globals["
|
|
42
|
-
_globals["
|
|
43
|
-
_globals["
|
|
44
|
-
_globals["
|
|
45
|
-
_globals["
|
|
46
|
-
_globals["
|
|
47
|
-
_globals["
|
|
48
|
-
_globals["
|
|
49
|
-
_globals["
|
|
50
|
-
_globals["
|
|
51
|
-
_globals["
|
|
52
|
-
_globals["
|
|
53
|
-
_globals["
|
|
38
|
+
_globals["_PRICING"].fields_by_name["items"]._loaded_options = None
|
|
39
|
+
_globals["_PRICING"].fields_by_name["items"]._serialized_options = b"(\001"
|
|
40
|
+
_globals["_PRICINGITEM"].fields_by_name["token_band"]._loaded_options = None
|
|
41
|
+
_globals["_PRICINGITEM"].fields_by_name["token_band"]._serialized_options = b"(\001"
|
|
42
|
+
_globals["_PRICINGCATEGORY"]._serialized_start = 938
|
|
43
|
+
_globals["_PRICINGCATEGORY"]._serialized_end = 1258
|
|
44
|
+
_globals["_PRICINGTIER"]._serialized_start = 1261
|
|
45
|
+
_globals["_PRICINGTIER"]._serialized_end = 1457
|
|
46
|
+
_globals["_OPERATION"]._serialized_start = 1460
|
|
47
|
+
_globals["_OPERATION"]._serialized_end = 1759
|
|
48
|
+
_globals["_PRICEUNIT"]._serialized_start = 1762
|
|
49
|
+
_globals["_PRICEUNIT"]._serialized_end = 2024
|
|
50
|
+
_globals["_PRICING"]._serialized_start = 88
|
|
51
|
+
_globals["_PRICING"]._serialized_end = 312
|
|
52
|
+
_globals["_PRICING_METADATAENTRY"]._serialized_start = 253
|
|
53
|
+
_globals["_PRICING_METADATAENTRY"]._serialized_end = 312
|
|
54
|
+
_globals["_TOKENBAND"]._serialized_start = 314
|
|
55
|
+
_globals["_TOKENBAND"]._serialized_end = 413
|
|
56
|
+
_globals["_PRICINGITEM"]._serialized_start = 416
|
|
57
|
+
_globals["_PRICINGITEM"]._serialized_end = 935
|
|
54
58
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -3,33 +3,30 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import
|
|
6
|
+
from collections import abc as _abc
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import message as _message
|
|
9
|
+
from google.protobuf.internal import containers as _containers
|
|
10
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
11
|
+
import builtins as _builtins
|
|
12
12
|
import sys
|
|
13
|
-
import typing
|
|
13
|
+
import typing as _typing
|
|
14
14
|
|
|
15
15
|
if sys.version_info >= (3, 10):
|
|
16
|
-
|
|
16
|
+
from typing import TypeAlias as _TypeAlias
|
|
17
17
|
else:
|
|
18
|
-
import
|
|
18
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
19
19
|
|
|
20
|
-
DESCRIPTOR:
|
|
20
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
21
21
|
|
|
22
22
|
class _PricingCategory:
|
|
23
|
-
ValueType =
|
|
24
|
-
V:
|
|
23
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
24
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
25
25
|
|
|
26
26
|
class _PricingCategoryEnumTypeWrapper(
|
|
27
|
-
|
|
28
|
-
_PricingCategory.ValueType
|
|
29
|
-
],
|
|
30
|
-
builtins.type,
|
|
27
|
+
_enum_type_wrapper._EnumTypeWrapper[_PricingCategory.ValueType], _builtins.type
|
|
31
28
|
):
|
|
32
|
-
DESCRIPTOR:
|
|
29
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
33
30
|
PRICING_CATEGORY_UNSPECIFIED: _PricingCategory.ValueType # 0
|
|
34
31
|
"""Default/unknown category"""
|
|
35
32
|
PRICING_CATEGORY_TEXT: _PricingCategory.ValueType # 1
|
|
@@ -110,17 +107,16 @@ PRICING_CATEGORY_LEGACY: PricingCategory.ValueType # 9
|
|
|
110
107
|
"""Deprecated/legacy models with special pricing
|
|
111
108
|
Example: GPT-3.5-turbo-0301 (older version)
|
|
112
109
|
"""
|
|
113
|
-
|
|
110
|
+
Global___PricingCategory: _TypeAlias = PricingCategory # noqa: Y015
|
|
114
111
|
|
|
115
112
|
class _PricingTier:
|
|
116
|
-
ValueType =
|
|
117
|
-
V:
|
|
113
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
114
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
118
115
|
|
|
119
116
|
class _PricingTierEnumTypeWrapper(
|
|
120
|
-
|
|
121
|
-
builtins.type,
|
|
117
|
+
_enum_type_wrapper._EnumTypeWrapper[_PricingTier.ValueType], _builtins.type
|
|
122
118
|
):
|
|
123
|
-
DESCRIPTOR:
|
|
119
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
124
120
|
PRICING_TIER_UNSPECIFIED: _PricingTier.ValueType # 0
|
|
125
121
|
"""Default/unknown tier"""
|
|
126
122
|
PRICING_TIER_FREE: _PricingTier.ValueType # 1
|
|
@@ -177,17 +173,16 @@ PRICING_TIER_ENTERPRISE: PricingTier.ValueType # 6
|
|
|
177
173
|
"""Enterprise/custom pricing with negotiated rates
|
|
178
174
|
Example: Volume discounts for large organizations
|
|
179
175
|
"""
|
|
180
|
-
|
|
176
|
+
Global___PricingTier: _TypeAlias = PricingTier # noqa: Y015
|
|
181
177
|
|
|
182
178
|
class _Operation:
|
|
183
|
-
ValueType =
|
|
184
|
-
V:
|
|
179
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
180
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
185
181
|
|
|
186
182
|
class _OperationEnumTypeWrapper(
|
|
187
|
-
|
|
188
|
-
builtins.type,
|
|
183
|
+
_enum_type_wrapper._EnumTypeWrapper[_Operation.ValueType], _builtins.type
|
|
189
184
|
):
|
|
190
|
-
DESCRIPTOR:
|
|
185
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
191
186
|
OPERATION_UNSPECIFIED: _Operation.ValueType # 0
|
|
192
187
|
"""Default/unknown operation"""
|
|
193
188
|
OPERATION_INPUT: _Operation.ValueType # 1
|
|
@@ -276,17 +271,16 @@ OPERATION_PER_CONTAINER: Operation.ValueType # 10
|
|
|
276
271
|
"""Per container/session pricing for isolated environments
|
|
277
272
|
Example: $0.03/container for Code Interpreter execution
|
|
278
273
|
"""
|
|
279
|
-
|
|
274
|
+
Global___Operation: _TypeAlias = Operation # noqa: Y015
|
|
280
275
|
|
|
281
276
|
class _PriceUnit:
|
|
282
|
-
ValueType =
|
|
283
|
-
V:
|
|
277
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
278
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
284
279
|
|
|
285
280
|
class _PriceUnitEnumTypeWrapper(
|
|
286
|
-
|
|
287
|
-
builtins.type,
|
|
281
|
+
_enum_type_wrapper._EnumTypeWrapper[_PriceUnit.ValueType], _builtins.type
|
|
288
282
|
):
|
|
289
|
-
DESCRIPTOR:
|
|
283
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
290
284
|
PRICE_UNIT_UNSPECIFIED: _PriceUnit.ValueType # 0
|
|
291
285
|
"""Default/unknown unit"""
|
|
292
286
|
PRICE_UNIT_PER_1M_TOKENS: _PriceUnit.ValueType # 1
|
|
@@ -359,58 +353,57 @@ PRICE_UNIT_PER_1K_CALLS: PriceUnit.ValueType # 8
|
|
|
359
353
|
"""Price per thousand API calls
|
|
360
354
|
Example: Web search at $2.00 per 1k searches
|
|
361
355
|
"""
|
|
362
|
-
|
|
356
|
+
Global___PriceUnit: _TypeAlias = PriceUnit # noqa: Y015
|
|
363
357
|
|
|
364
|
-
@
|
|
365
|
-
class Pricing(
|
|
358
|
+
@_typing.final
|
|
359
|
+
class Pricing(_message.Message):
|
|
366
360
|
"""Pricing represents the complete pricing structure for a model or service.
|
|
367
361
|
A single model may have multiple pricing items for different operations,
|
|
368
362
|
tiers, and use cases.
|
|
369
363
|
"""
|
|
370
364
|
|
|
371
|
-
DESCRIPTOR:
|
|
365
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
372
366
|
|
|
373
|
-
@
|
|
374
|
-
class MetadataEntry(
|
|
375
|
-
DESCRIPTOR:
|
|
367
|
+
@_typing.final
|
|
368
|
+
class MetadataEntry(_message.Message):
|
|
369
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
376
370
|
|
|
377
|
-
KEY_FIELD_NUMBER:
|
|
378
|
-
VALUE_FIELD_NUMBER:
|
|
379
|
-
key:
|
|
380
|
-
value:
|
|
371
|
+
KEY_FIELD_NUMBER: _builtins.int
|
|
372
|
+
VALUE_FIELD_NUMBER: _builtins.int
|
|
373
|
+
key: _builtins.str
|
|
374
|
+
value: _builtins.str
|
|
381
375
|
def __init__(
|
|
382
376
|
self,
|
|
383
377
|
*,
|
|
384
|
-
key:
|
|
385
|
-
value:
|
|
378
|
+
key: _builtins.str | None = ...,
|
|
379
|
+
value: _builtins.str | None = ...,
|
|
386
380
|
) -> None: ...
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
381
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
|
|
382
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
383
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
384
|
+
"key", b"key", "value", b"value"
|
|
385
|
+
] # noqa: Y015
|
|
386
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
387
|
+
|
|
388
|
+
CURRENCY_FIELD_NUMBER: _builtins.int
|
|
389
|
+
ITEMS_FIELD_NUMBER: _builtins.int
|
|
390
|
+
METADATA_FIELD_NUMBER: _builtins.int
|
|
391
|
+
currency: _builtins.str
|
|
395
392
|
"""Currency code for all prices in this message.
|
|
396
393
|
Examples: "USD", "EUR", "GBP"
|
|
397
394
|
"""
|
|
398
|
-
@property
|
|
395
|
+
@_builtins.property
|
|
399
396
|
def items(
|
|
400
397
|
self,
|
|
401
|
-
) ->
|
|
402
|
-
global___PricingItem
|
|
403
|
-
]:
|
|
398
|
+
) -> _containers.RepeatedCompositeFieldContainer[Global___PricingItem]:
|
|
404
399
|
"""List of all pricing entries for this model.
|
|
405
400
|
Each item represents a specific price point for a particular
|
|
406
401
|
operation/tier combination.
|
|
407
402
|
Example: One item for standard input tokens, another for batch input tokens
|
|
408
403
|
"""
|
|
409
404
|
|
|
410
|
-
@property
|
|
411
|
-
def metadata(
|
|
412
|
-
self,
|
|
413
|
-
) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
405
|
+
@_builtins.property
|
|
406
|
+
def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]:
|
|
414
407
|
"""Additional metadata as key-value pairs.
|
|
415
408
|
Common keys:
|
|
416
409
|
- "footnote": Additional pricing notes (e.g., "[1] Limited availability")
|
|
@@ -422,35 +415,37 @@ class Pricing(google.protobuf.message.Message):
|
|
|
422
415
|
def __init__(
|
|
423
416
|
self,
|
|
424
417
|
*,
|
|
425
|
-
currency:
|
|
426
|
-
items:
|
|
427
|
-
metadata:
|
|
418
|
+
currency: _builtins.str | None = ...,
|
|
419
|
+
items: _abc.Iterable[Global___PricingItem] | None = ...,
|
|
420
|
+
metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
|
|
428
421
|
) -> None: ...
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
422
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
423
|
+
"currency", b"currency", "items", b"items", "metadata", b"metadata"
|
|
424
|
+
] # noqa: Y015
|
|
425
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
426
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
427
|
+
"currency", b"currency", "items", b"items", "metadata", b"metadata"
|
|
428
|
+
] # noqa: Y015
|
|
429
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
430
|
+
|
|
431
|
+
Global___Pricing: _TypeAlias = Pricing # noqa: Y015
|
|
432
|
+
|
|
433
|
+
@_typing.final
|
|
434
|
+
class TokenBand(_message.Message):
|
|
440
435
|
"""TokenBand represents tiered pricing based on token count thresholds.
|
|
441
436
|
Some models have different rates based on cumulative token usage.
|
|
442
437
|
"""
|
|
443
438
|
|
|
444
|
-
DESCRIPTOR:
|
|
439
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
445
440
|
|
|
446
|
-
MIN_PROMPT_TOKENS_FIELD_NUMBER:
|
|
447
|
-
MAX_PROMPT_TOKENS_FIELD_NUMBER:
|
|
448
|
-
min_prompt_tokens:
|
|
441
|
+
MIN_PROMPT_TOKENS_FIELD_NUMBER: _builtins.int
|
|
442
|
+
MAX_PROMPT_TOKENS_FIELD_NUMBER: _builtins.int
|
|
443
|
+
min_prompt_tokens: _builtins.int
|
|
449
444
|
"""Minimum number of prompt tokens for this pricing tier (inclusive).
|
|
450
445
|
Example: 0 for the first tier, 200001 for the "over 200k" tier
|
|
451
446
|
Set to 0 if not applicable or for the lowest tier
|
|
452
447
|
"""
|
|
453
|
-
max_prompt_tokens:
|
|
448
|
+
max_prompt_tokens: _builtins.int
|
|
454
449
|
"""Maximum number of prompt tokens for this pricing tier (inclusive).
|
|
455
450
|
Example: 200000 for "up to 200k tokens" tier
|
|
456
451
|
Set to 0 if unlimited or not applicable
|
|
@@ -458,89 +453,94 @@ class TokenBand(google.protobuf.message.Message):
|
|
|
458
453
|
def __init__(
|
|
459
454
|
self,
|
|
460
455
|
*,
|
|
461
|
-
min_prompt_tokens:
|
|
462
|
-
max_prompt_tokens:
|
|
456
|
+
min_prompt_tokens: _builtins.int | None = ...,
|
|
457
|
+
max_prompt_tokens: _builtins.int | None = ...,
|
|
463
458
|
) -> None: ...
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
459
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
460
|
+
"max_prompt_tokens",
|
|
461
|
+
b"max_prompt_tokens",
|
|
462
|
+
"min_prompt_tokens",
|
|
463
|
+
b"min_prompt_tokens",
|
|
464
|
+
] # noqa: Y015
|
|
465
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
466
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
467
|
+
"max_prompt_tokens",
|
|
468
|
+
b"max_prompt_tokens",
|
|
469
|
+
"min_prompt_tokens",
|
|
470
|
+
b"min_prompt_tokens",
|
|
471
|
+
] # noqa: Y015
|
|
472
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
473
|
+
|
|
474
|
+
Global___TokenBand: _TypeAlias = TokenBand # noqa: Y015
|
|
475
|
+
|
|
476
|
+
@_typing.final
|
|
477
|
+
class PricingItem(_message.Message):
|
|
478
478
|
"""PricingItem represents a specific price point for a model/service.
|
|
479
479
|
Each item captures one pricing scenario with all relevant qualifiers.
|
|
480
480
|
"""
|
|
481
481
|
|
|
482
|
-
DESCRIPTOR:
|
|
483
|
-
|
|
484
|
-
CATEGORY_FIELD_NUMBER:
|
|
485
|
-
TIER_FIELD_NUMBER:
|
|
486
|
-
OPERATION_FIELD_NUMBER:
|
|
487
|
-
PRICE_FIELD_NUMBER:
|
|
488
|
-
UNIT_FIELD_NUMBER:
|
|
489
|
-
QUALITY_FIELD_NUMBER:
|
|
490
|
-
RESOLUTION_FIELD_NUMBER:
|
|
491
|
-
TOKEN_BAND_FIELD_NUMBER:
|
|
492
|
-
INCLUDES_THINKING_TOKENS_FIELD_NUMBER:
|
|
493
|
-
TOOL_NAME_FIELD_NUMBER:
|
|
494
|
-
TOKEN_TYPE_FIELD_NUMBER:
|
|
495
|
-
NOTES_FIELD_NUMBER:
|
|
496
|
-
category:
|
|
482
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
483
|
+
|
|
484
|
+
CATEGORY_FIELD_NUMBER: _builtins.int
|
|
485
|
+
TIER_FIELD_NUMBER: _builtins.int
|
|
486
|
+
OPERATION_FIELD_NUMBER: _builtins.int
|
|
487
|
+
PRICE_FIELD_NUMBER: _builtins.int
|
|
488
|
+
UNIT_FIELD_NUMBER: _builtins.int
|
|
489
|
+
QUALITY_FIELD_NUMBER: _builtins.int
|
|
490
|
+
RESOLUTION_FIELD_NUMBER: _builtins.int
|
|
491
|
+
TOKEN_BAND_FIELD_NUMBER: _builtins.int
|
|
492
|
+
INCLUDES_THINKING_TOKENS_FIELD_NUMBER: _builtins.int
|
|
493
|
+
TOOL_NAME_FIELD_NUMBER: _builtins.int
|
|
494
|
+
TOKEN_TYPE_FIELD_NUMBER: _builtins.int
|
|
495
|
+
NOTES_FIELD_NUMBER: _builtins.int
|
|
496
|
+
category: Global___PricingCategory.ValueType
|
|
497
497
|
"""The type of AI capability this price applies to.
|
|
498
498
|
Example: PRICING_CATEGORY_TEXT for GPT-4o chat completion
|
|
499
499
|
"""
|
|
500
|
-
tier:
|
|
500
|
+
tier: Global___PricingTier.ValueType
|
|
501
501
|
"""Service tier affecting price and SLA.
|
|
502
502
|
Example: PRICING_TIER_BATCH for 50% discounted async processing
|
|
503
503
|
"""
|
|
504
|
-
operation:
|
|
504
|
+
operation: Global___Operation.ValueType
|
|
505
505
|
"""The specific operation being charged for.
|
|
506
506
|
Example: OPERATION_INPUT for prompt tokens, OPERATION_OUTPUT for completions
|
|
507
507
|
"""
|
|
508
|
-
price:
|
|
508
|
+
price: _builtins.float
|
|
509
509
|
"""The numeric cost amount.
|
|
510
510
|
Example: 2.50 for "$2.50 per 1M tokens"
|
|
511
511
|
"""
|
|
512
|
-
unit:
|
|
512
|
+
unit: Global___PriceUnit.ValueType
|
|
513
513
|
"""The unit that the price applies to.
|
|
514
514
|
Example: PRICE_UNIT_PER_1M_TOKENS for token-based pricing
|
|
515
515
|
"""
|
|
516
|
-
quality:
|
|
516
|
+
quality: _builtins.str
|
|
517
517
|
"""Optional qualifiers to disambiguate pricing variants:
|
|
518
518
|
|
|
519
519
|
Quality level for image generation.
|
|
520
520
|
Examples: "standard", "hd" for DALL-E, "low", "medium", "high" for others
|
|
521
521
|
"""
|
|
522
|
-
resolution:
|
|
522
|
+
resolution: _builtins.str
|
|
523
523
|
"""Image resolution for image generation pricing.
|
|
524
524
|
Examples: "1024x1024", "1792x1024", "1024x1792"
|
|
525
525
|
"""
|
|
526
|
-
includes_thinking_tokens:
|
|
526
|
+
includes_thinking_tokens: _builtins.bool
|
|
527
527
|
"""Whether output pricing includes hidden reasoning tokens.
|
|
528
528
|
Example: true for o1-preview which charges for internal thinking
|
|
529
529
|
"""
|
|
530
|
-
tool_name:
|
|
530
|
+
tool_name: _builtins.str
|
|
531
531
|
"""Name of the tool for PRICING_CATEGORY_TOOL items.
|
|
532
532
|
Examples: "Web Search", "File Search", "Code Interpreter"
|
|
533
533
|
"""
|
|
534
|
-
token_type:
|
|
534
|
+
token_type: _builtins.str
|
|
535
535
|
"""Token type for multi-modal pricing.
|
|
536
536
|
Examples: "text" vs "audio" for Whisper transcription models
|
|
537
537
|
"""
|
|
538
|
-
notes:
|
|
538
|
+
notes: _builtins.str
|
|
539
539
|
"""Additional human-readable notes about this pricing.
|
|
540
540
|
Example: "Discounted pricing with data sharing enabled"
|
|
541
541
|
"""
|
|
542
|
-
@property
|
|
543
|
-
def token_band(self) ->
|
|
542
|
+
@_builtins.property
|
|
543
|
+
def token_band(self) -> Global___TokenBand:
|
|
544
544
|
"""Token count thresholds for tiered pricing.
|
|
545
545
|
Example: Different rates for prompts over 200k tokens
|
|
546
546
|
"""
|
|
@@ -548,50 +548,72 @@ class PricingItem(google.protobuf.message.Message):
|
|
|
548
548
|
def __init__(
|
|
549
549
|
self,
|
|
550
550
|
*,
|
|
551
|
-
category:
|
|
552
|
-
tier:
|
|
553
|
-
operation:
|
|
554
|
-
price:
|
|
555
|
-
unit:
|
|
556
|
-
quality:
|
|
557
|
-
resolution:
|
|
558
|
-
token_band:
|
|
559
|
-
includes_thinking_tokens:
|
|
560
|
-
tool_name:
|
|
561
|
-
token_type:
|
|
562
|
-
notes:
|
|
551
|
+
category: Global___PricingCategory.ValueType | None = ...,
|
|
552
|
+
tier: Global___PricingTier.ValueType | None = ...,
|
|
553
|
+
operation: Global___Operation.ValueType | None = ...,
|
|
554
|
+
price: _builtins.float | None = ...,
|
|
555
|
+
unit: Global___PriceUnit.ValueType | None = ...,
|
|
556
|
+
quality: _builtins.str | None = ...,
|
|
557
|
+
resolution: _builtins.str | None = ...,
|
|
558
|
+
token_band: Global___TokenBand | None = ...,
|
|
559
|
+
includes_thinking_tokens: _builtins.bool | None = ...,
|
|
560
|
+
tool_name: _builtins.str | None = ...,
|
|
561
|
+
token_type: _builtins.str | None = ...,
|
|
562
|
+
notes: _builtins.str | None = ...,
|
|
563
563
|
) -> None: ...
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
564
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
565
|
+
"category",
|
|
566
|
+
b"category",
|
|
567
|
+
"includes_thinking_tokens",
|
|
568
|
+
b"includes_thinking_tokens",
|
|
569
|
+
"notes",
|
|
570
|
+
b"notes",
|
|
571
|
+
"operation",
|
|
572
|
+
b"operation",
|
|
573
|
+
"price",
|
|
574
|
+
b"price",
|
|
575
|
+
"quality",
|
|
576
|
+
b"quality",
|
|
577
|
+
"resolution",
|
|
578
|
+
b"resolution",
|
|
579
|
+
"tier",
|
|
580
|
+
b"tier",
|
|
581
|
+
"token_band",
|
|
582
|
+
b"token_band",
|
|
583
|
+
"token_type",
|
|
584
|
+
b"token_type",
|
|
585
|
+
"tool_name",
|
|
586
|
+
b"tool_name",
|
|
587
|
+
"unit",
|
|
588
|
+
b"unit",
|
|
589
|
+
] # noqa: Y015
|
|
590
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
591
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
592
|
+
"category",
|
|
593
|
+
b"category",
|
|
594
|
+
"includes_thinking_tokens",
|
|
595
|
+
b"includes_thinking_tokens",
|
|
596
|
+
"notes",
|
|
597
|
+
b"notes",
|
|
598
|
+
"operation",
|
|
599
|
+
b"operation",
|
|
600
|
+
"price",
|
|
601
|
+
b"price",
|
|
602
|
+
"quality",
|
|
603
|
+
b"quality",
|
|
604
|
+
"resolution",
|
|
605
|
+
b"resolution",
|
|
606
|
+
"tier",
|
|
607
|
+
b"tier",
|
|
608
|
+
"token_band",
|
|
609
|
+
b"token_band",
|
|
610
|
+
"token_type",
|
|
611
|
+
b"token_type",
|
|
612
|
+
"tool_name",
|
|
613
|
+
b"tool_name",
|
|
614
|
+
"unit",
|
|
615
|
+
b"unit",
|
|
616
|
+
] # noqa: Y015
|
|
617
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
618
|
+
|
|
619
|
+
Global___PricingItem: _TypeAlias = PricingItem # noqa: Y015
|