weave-python 0.26.1__py3-none-any.whl → 0.27.0__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 +228 -0
- weave/weaveapi/auth/v1/service_pb2.pyi +1406 -0
- weave/weaveapi/auth/v1/service_pb2_grpc.py +1091 -0
- weave/weaveapi/auth/v1/service_pb2_grpc.pyi +606 -0
- weave/weaveapi/auth/v1/session_pb2.py +38 -0
- weave/weaveapi/auth/v1/session_pb2.pyi +111 -0
- weave/weaveapi/auth/v1/session_pb2_grpc.py +2 -0
- weave/weaveapi/auth/v1/session_pb2_grpc.pyi +20 -0
- weave/weaveapi/auth/v1/usage_pb2.py +52 -0
- weave/weaveapi/auth/v1/usage_pb2.pyi +241 -0
- weave/weaveapi/auth/v1/usage_pb2_grpc.py +2 -0
- weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +20 -0
- weave/weaveapi/auth/v1/user_pb2.py +52 -0
- weave/weaveapi/auth/v1/user_pb2.pyi +594 -0
- weave/weaveapi/auth/v1/user_pb2_grpc.py +2 -0
- weave/weaveapi/auth/v1/user_pb2_grpc.pyi +20 -0
- weave/weaveapi/generate/v1/configuration_pb2.py +3 -3
- weave/weaveapi/generate/v1/generate_pb2.py +2 -2
- weave/weaveapi/generate/v1/service_pb2.py +2 -2
- weave/weaveapi/mcpregistry/v1/server_pb2.py +2 -2
- weave/weaveapi/mcpregistry/v1/service_pb2.py +3 -3
- weave/weaveapi/modex/v1/model_pb2.py +58 -0
- weave/weaveapi/modex/v1/model_pb2.pyi +642 -0
- weave/weaveapi/modex/v1/model_pb2_grpc.py +2 -0
- weave/weaveapi/modex/v1/model_pb2_grpc.pyi +20 -0
- weave/weaveapi/modex/v1/provider_pb2.py +38 -0
- weave/weaveapi/modex/v1/provider_pb2.pyi +91 -0
- weave/weaveapi/modex/v1/provider_pb2_grpc.py +2 -0
- weave/weaveapi/modex/v1/provider_pb2_grpc.pyi +20 -0
- weave/weaveapi/modex/v1/service_pb2.py +180 -0
- weave/weaveapi/modex/v1/service_pb2.pyi +1641 -0
- weave/weaveapi/modex/v1/service_pb2_grpc.py +602 -0
- weave/weaveapi/modex/v1/service_pb2_grpc.pyi +268 -0
- weave/weaveapi/payment/v1/invoice_pb2.py +46 -0
- weave/weaveapi/payment/v1/invoice_pb2.pyi +349 -0
- weave/weaveapi/payment/v1/invoice_pb2_grpc.py +2 -0
- weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +20 -0
- weave/weaveapi/payment/v1/service_pb2.py +244 -0
- weave/weaveapi/payment/v1/service_pb2.pyi +1492 -0
- weave/weaveapi/payment/v1/service_pb2_grpc.py +957 -0
- weave/weaveapi/payment/v1/service_pb2_grpc.pyi +572 -0
- weave/weaveapi/payment/v1/subscription_pb2.py +59 -0
- weave/weaveapi/payment/v1/subscription_pb2.pyi +695 -0
- weave/weaveapi/payment/v1/subscription_pb2_grpc.py +2 -0
- weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +20 -0
- weave/weaveapi/storage/v1/auth_pb2.py +2 -2
- weave/weaveapi/storage/v1/nosql_database_pb2.py +3 -3
- weave/weaveapi/storage/v1/object_store_pb2.py +3 -3
- weave/weaveapi/storage/v1/service_pb2.py +2 -2
- weave/weaveapi/storage/v1/sql_database_pb2.py +3 -3
- weave/weaveapi/storage/v1/storage_pb2.py +2 -2
- weave/weaveapi/synthesize/v1/dataset_pb2.py +2 -2
- weave/weaveapi/synthesize/v1/inline_data_pb2.py +3 -3
- weave/weaveapi/synthesize/v1/relationship_pb2.py +3 -3
- weave/weaveapi/synthesize/v1/service_pb2.py +2 -2
- weave/weaveapi/synthesize/v1/training_pb2.py +3 -3
- weave/weavesql/{db → weavedb}/queries.py +1 -1
- {weave_python-0.26.1.dist-info → weave_python-0.27.0.dist-info}/METADATA +1 -1
- weave_python-0.27.0.dist-info/RECORD +109 -0
- weave_python-0.26.1.dist-info/RECORD +0 -69
- /weave/weavesql/{db → weavedb}/models.py +0 -0
- {weave_python-0.26.1.dist-info → weave_python-0.27.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import google.protobuf.timestamp_pb2
|
|
12
|
+
import typing
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class Model(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
PROVIDER_ID_FIELD_NUMBER: builtins.int
|
|
22
|
+
PROVIDER_SLUG_FIELD_NUMBER: builtins.int
|
|
23
|
+
PROVIDER_NAME_FIELD_NUMBER: builtins.int
|
|
24
|
+
MODEL_ID_FIELD_NUMBER: builtins.int
|
|
25
|
+
SLUG_FIELD_NUMBER: builtins.int
|
|
26
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
27
|
+
DISPLAY_NAME_FIELD_NUMBER: builtins.int
|
|
28
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
29
|
+
VERSION_FIELD_NUMBER: builtins.int
|
|
30
|
+
RELEASE_DATE_FIELD_NUMBER: builtins.int
|
|
31
|
+
TRAINING_DATA_CUTOFF_FIELD_NUMBER: builtins.int
|
|
32
|
+
DEPRECATION_DATE_FIELD_NUMBER: builtins.int
|
|
33
|
+
CAPABILITIES_FIELD_NUMBER: builtins.int
|
|
34
|
+
CLASSIFICATION_FIELD_NUMBER: builtins.int
|
|
35
|
+
PERFORMANCE_FIELD_NUMBER: builtins.int
|
|
36
|
+
TOKENS_FIELD_NUMBER: builtins.int
|
|
37
|
+
PRICING_FIELD_NUMBER: builtins.int
|
|
38
|
+
CONFIGURATION_FIELD_NUMBER: builtins.int
|
|
39
|
+
API_DETAILS_FIELD_NUMBER: builtins.int
|
|
40
|
+
AVAILABILITY_FIELD_NUMBER: builtins.int
|
|
41
|
+
LAST_SCRAPED_AT_FIELD_NUMBER: builtins.int
|
|
42
|
+
DATA_SOURCES_FIELD_NUMBER: builtins.int
|
|
43
|
+
IS_ACTIVE_FIELD_NUMBER: builtins.int
|
|
44
|
+
IS_DEPRECATED_FIELD_NUMBER: builtins.int
|
|
45
|
+
REPLACEMENT_MODEL_ID_FIELD_NUMBER: builtins.int
|
|
46
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
47
|
+
UPDATED_AT_FIELD_NUMBER: builtins.int
|
|
48
|
+
id: builtins.str
|
|
49
|
+
provider_id: builtins.str
|
|
50
|
+
provider_slug: builtins.str
|
|
51
|
+
provider_name: builtins.str
|
|
52
|
+
model_id: builtins.str
|
|
53
|
+
slug: builtins.str
|
|
54
|
+
"""provider/model_id"""
|
|
55
|
+
name: builtins.str
|
|
56
|
+
display_name: builtins.str
|
|
57
|
+
description: builtins.str
|
|
58
|
+
version: builtins.str
|
|
59
|
+
is_active: builtins.bool
|
|
60
|
+
is_deprecated: builtins.bool
|
|
61
|
+
replacement_model_id: builtins.str
|
|
62
|
+
@property
|
|
63
|
+
def release_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
64
|
+
"""Dates"""
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def training_data_cutoff(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
68
|
+
@property
|
|
69
|
+
def deprecation_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
70
|
+
@property
|
|
71
|
+
def capabilities(self) -> global___ModelCapabilities:
|
|
72
|
+
"""Capabilities"""
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def classification(self) -> global___ModelClassification:
|
|
76
|
+
"""Classification"""
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def performance(self) -> global___ModelPerformance:
|
|
80
|
+
"""Performance"""
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def tokens(self) -> global___TokenInfo:
|
|
84
|
+
"""Tokens"""
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def pricing(self) -> global___Pricing:
|
|
88
|
+
"""Pricing"""
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def configuration(self) -> global___Configuration:
|
|
92
|
+
"""Configuration"""
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def api_details(self) -> global___APIDetails:
|
|
96
|
+
"""API Details"""
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def availability(self) -> global___Availability:
|
|
100
|
+
"""Availability"""
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def last_scraped_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
104
|
+
"""Metadata"""
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def data_sources(
|
|
108
|
+
self,
|
|
109
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
|
|
110
|
+
builtins.str
|
|
111
|
+
]: ...
|
|
112
|
+
@property
|
|
113
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
114
|
+
@property
|
|
115
|
+
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
116
|
+
def __init__(
|
|
117
|
+
self,
|
|
118
|
+
*,
|
|
119
|
+
id: builtins.str = ...,
|
|
120
|
+
provider_id: builtins.str = ...,
|
|
121
|
+
provider_slug: builtins.str = ...,
|
|
122
|
+
provider_name: builtins.str = ...,
|
|
123
|
+
model_id: builtins.str = ...,
|
|
124
|
+
slug: builtins.str = ...,
|
|
125
|
+
name: builtins.str = ...,
|
|
126
|
+
display_name: builtins.str = ...,
|
|
127
|
+
description: builtins.str = ...,
|
|
128
|
+
version: builtins.str = ...,
|
|
129
|
+
release_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
130
|
+
training_data_cutoff: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
131
|
+
deprecation_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
132
|
+
capabilities: global___ModelCapabilities | None = ...,
|
|
133
|
+
classification: global___ModelClassification | None = ...,
|
|
134
|
+
performance: global___ModelPerformance | None = ...,
|
|
135
|
+
tokens: global___TokenInfo | None = ...,
|
|
136
|
+
pricing: global___Pricing | None = ...,
|
|
137
|
+
configuration: global___Configuration | None = ...,
|
|
138
|
+
api_details: global___APIDetails | None = ...,
|
|
139
|
+
availability: global___Availability | None = ...,
|
|
140
|
+
last_scraped_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
141
|
+
data_sources: collections.abc.Iterable[builtins.str] | None = ...,
|
|
142
|
+
is_active: builtins.bool = ...,
|
|
143
|
+
is_deprecated: builtins.bool = ...,
|
|
144
|
+
replacement_model_id: builtins.str = ...,
|
|
145
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
146
|
+
updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
147
|
+
) -> None: ...
|
|
148
|
+
def HasField(
|
|
149
|
+
self,
|
|
150
|
+
field_name: typing.Literal[
|
|
151
|
+
"api_details",
|
|
152
|
+
b"api_details",
|
|
153
|
+
"availability",
|
|
154
|
+
b"availability",
|
|
155
|
+
"capabilities",
|
|
156
|
+
b"capabilities",
|
|
157
|
+
"classification",
|
|
158
|
+
b"classification",
|
|
159
|
+
"configuration",
|
|
160
|
+
b"configuration",
|
|
161
|
+
"created_at",
|
|
162
|
+
b"created_at",
|
|
163
|
+
"deprecation_date",
|
|
164
|
+
b"deprecation_date",
|
|
165
|
+
"last_scraped_at",
|
|
166
|
+
b"last_scraped_at",
|
|
167
|
+
"performance",
|
|
168
|
+
b"performance",
|
|
169
|
+
"pricing",
|
|
170
|
+
b"pricing",
|
|
171
|
+
"release_date",
|
|
172
|
+
b"release_date",
|
|
173
|
+
"tokens",
|
|
174
|
+
b"tokens",
|
|
175
|
+
"training_data_cutoff",
|
|
176
|
+
b"training_data_cutoff",
|
|
177
|
+
"updated_at",
|
|
178
|
+
b"updated_at",
|
|
179
|
+
],
|
|
180
|
+
) -> builtins.bool: ...
|
|
181
|
+
def ClearField(
|
|
182
|
+
self,
|
|
183
|
+
field_name: typing.Literal[
|
|
184
|
+
"api_details",
|
|
185
|
+
b"api_details",
|
|
186
|
+
"availability",
|
|
187
|
+
b"availability",
|
|
188
|
+
"capabilities",
|
|
189
|
+
b"capabilities",
|
|
190
|
+
"classification",
|
|
191
|
+
b"classification",
|
|
192
|
+
"configuration",
|
|
193
|
+
b"configuration",
|
|
194
|
+
"created_at",
|
|
195
|
+
b"created_at",
|
|
196
|
+
"data_sources",
|
|
197
|
+
b"data_sources",
|
|
198
|
+
"deprecation_date",
|
|
199
|
+
b"deprecation_date",
|
|
200
|
+
"description",
|
|
201
|
+
b"description",
|
|
202
|
+
"display_name",
|
|
203
|
+
b"display_name",
|
|
204
|
+
"id",
|
|
205
|
+
b"id",
|
|
206
|
+
"is_active",
|
|
207
|
+
b"is_active",
|
|
208
|
+
"is_deprecated",
|
|
209
|
+
b"is_deprecated",
|
|
210
|
+
"last_scraped_at",
|
|
211
|
+
b"last_scraped_at",
|
|
212
|
+
"model_id",
|
|
213
|
+
b"model_id",
|
|
214
|
+
"name",
|
|
215
|
+
b"name",
|
|
216
|
+
"performance",
|
|
217
|
+
b"performance",
|
|
218
|
+
"pricing",
|
|
219
|
+
b"pricing",
|
|
220
|
+
"provider_id",
|
|
221
|
+
b"provider_id",
|
|
222
|
+
"provider_name",
|
|
223
|
+
b"provider_name",
|
|
224
|
+
"provider_slug",
|
|
225
|
+
b"provider_slug",
|
|
226
|
+
"release_date",
|
|
227
|
+
b"release_date",
|
|
228
|
+
"replacement_model_id",
|
|
229
|
+
b"replacement_model_id",
|
|
230
|
+
"slug",
|
|
231
|
+
b"slug",
|
|
232
|
+
"tokens",
|
|
233
|
+
b"tokens",
|
|
234
|
+
"training_data_cutoff",
|
|
235
|
+
b"training_data_cutoff",
|
|
236
|
+
"updated_at",
|
|
237
|
+
b"updated_at",
|
|
238
|
+
"version",
|
|
239
|
+
b"version",
|
|
240
|
+
],
|
|
241
|
+
) -> None: ...
|
|
242
|
+
|
|
243
|
+
global___Model = Model
|
|
244
|
+
|
|
245
|
+
@typing.final
|
|
246
|
+
class ModelCapabilities(google.protobuf.message.Message):
|
|
247
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
248
|
+
|
|
249
|
+
SUPPORTS_CHAT_FIELD_NUMBER: builtins.int
|
|
250
|
+
SUPPORTS_COMPLETION_FIELD_NUMBER: builtins.int
|
|
251
|
+
SUPPORTS_EMBEDDINGS_FIELD_NUMBER: builtins.int
|
|
252
|
+
SUPPORTS_VISION_FIELD_NUMBER: builtins.int
|
|
253
|
+
SUPPORTS_AUDIO_FIELD_NUMBER: builtins.int
|
|
254
|
+
SUPPORTS_VIDEO_FIELD_NUMBER: builtins.int
|
|
255
|
+
SUPPORTS_TOOL_CALLS_FIELD_NUMBER: builtins.int
|
|
256
|
+
SUPPORTS_FUNCTION_CALLS_FIELD_NUMBER: builtins.int
|
|
257
|
+
SUPPORTS_JSON_MODE_FIELD_NUMBER: builtins.int
|
|
258
|
+
SUPPORTS_STREAMING_FIELD_NUMBER: builtins.int
|
|
259
|
+
SUPPORTS_REASONING_FIELD_NUMBER: builtins.int
|
|
260
|
+
INPUT_MODALITIES_FIELD_NUMBER: builtins.int
|
|
261
|
+
OUTPUT_MODALITIES_FIELD_NUMBER: builtins.int
|
|
262
|
+
supports_chat: builtins.bool
|
|
263
|
+
supports_completion: builtins.bool
|
|
264
|
+
supports_embeddings: builtins.bool
|
|
265
|
+
supports_vision: builtins.bool
|
|
266
|
+
supports_audio: builtins.bool
|
|
267
|
+
supports_video: builtins.bool
|
|
268
|
+
supports_tool_calls: builtins.bool
|
|
269
|
+
supports_function_calls: builtins.bool
|
|
270
|
+
supports_json_mode: builtins.bool
|
|
271
|
+
supports_streaming: builtins.bool
|
|
272
|
+
supports_reasoning: builtins.bool
|
|
273
|
+
@property
|
|
274
|
+
def input_modalities(
|
|
275
|
+
self,
|
|
276
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
|
|
277
|
+
builtins.str
|
|
278
|
+
]: ...
|
|
279
|
+
@property
|
|
280
|
+
def output_modalities(
|
|
281
|
+
self,
|
|
282
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
|
|
283
|
+
builtins.str
|
|
284
|
+
]: ...
|
|
285
|
+
def __init__(
|
|
286
|
+
self,
|
|
287
|
+
*,
|
|
288
|
+
supports_chat: builtins.bool = ...,
|
|
289
|
+
supports_completion: builtins.bool = ...,
|
|
290
|
+
supports_embeddings: builtins.bool = ...,
|
|
291
|
+
supports_vision: builtins.bool = ...,
|
|
292
|
+
supports_audio: builtins.bool = ...,
|
|
293
|
+
supports_video: builtins.bool = ...,
|
|
294
|
+
supports_tool_calls: builtins.bool = ...,
|
|
295
|
+
supports_function_calls: builtins.bool = ...,
|
|
296
|
+
supports_json_mode: builtins.bool = ...,
|
|
297
|
+
supports_streaming: builtins.bool = ...,
|
|
298
|
+
supports_reasoning: builtins.bool = ...,
|
|
299
|
+
input_modalities: collections.abc.Iterable[builtins.str] | None = ...,
|
|
300
|
+
output_modalities: collections.abc.Iterable[builtins.str] | None = ...,
|
|
301
|
+
) -> None: ...
|
|
302
|
+
def ClearField(
|
|
303
|
+
self,
|
|
304
|
+
field_name: typing.Literal[
|
|
305
|
+
"input_modalities",
|
|
306
|
+
b"input_modalities",
|
|
307
|
+
"output_modalities",
|
|
308
|
+
b"output_modalities",
|
|
309
|
+
"supports_audio",
|
|
310
|
+
b"supports_audio",
|
|
311
|
+
"supports_chat",
|
|
312
|
+
b"supports_chat",
|
|
313
|
+
"supports_completion",
|
|
314
|
+
b"supports_completion",
|
|
315
|
+
"supports_embeddings",
|
|
316
|
+
b"supports_embeddings",
|
|
317
|
+
"supports_function_calls",
|
|
318
|
+
b"supports_function_calls",
|
|
319
|
+
"supports_json_mode",
|
|
320
|
+
b"supports_json_mode",
|
|
321
|
+
"supports_reasoning",
|
|
322
|
+
b"supports_reasoning",
|
|
323
|
+
"supports_streaming",
|
|
324
|
+
b"supports_streaming",
|
|
325
|
+
"supports_tool_calls",
|
|
326
|
+
b"supports_tool_calls",
|
|
327
|
+
"supports_video",
|
|
328
|
+
b"supports_video",
|
|
329
|
+
"supports_vision",
|
|
330
|
+
b"supports_vision",
|
|
331
|
+
],
|
|
332
|
+
) -> None: ...
|
|
333
|
+
|
|
334
|
+
global___ModelCapabilities = ModelCapabilities
|
|
335
|
+
|
|
336
|
+
@typing.final
|
|
337
|
+
class ModelClassification(google.protobuf.message.Message):
|
|
338
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
339
|
+
|
|
340
|
+
MODEL_TYPE_FIELD_NUMBER: builtins.int
|
|
341
|
+
ARCHITECTURE_FIELD_NUMBER: builtins.int
|
|
342
|
+
PARAMETER_COUNT_FIELD_NUMBER: builtins.int
|
|
343
|
+
IS_OPEN_SOURCE_FIELD_NUMBER: builtins.int
|
|
344
|
+
LICENSE_TYPE_FIELD_NUMBER: builtins.int
|
|
345
|
+
model_type: builtins.str
|
|
346
|
+
"""foundation, fine-tuned, instruct, chat, reasoning"""
|
|
347
|
+
architecture: builtins.str
|
|
348
|
+
"""GPT, LLaMA, BERT, etc"""
|
|
349
|
+
parameter_count: builtins.int
|
|
350
|
+
is_open_source: builtins.bool
|
|
351
|
+
license_type: builtins.str
|
|
352
|
+
def __init__(
|
|
353
|
+
self,
|
|
354
|
+
*,
|
|
355
|
+
model_type: builtins.str = ...,
|
|
356
|
+
architecture: builtins.str = ...,
|
|
357
|
+
parameter_count: builtins.int = ...,
|
|
358
|
+
is_open_source: builtins.bool = ...,
|
|
359
|
+
license_type: builtins.str = ...,
|
|
360
|
+
) -> None: ...
|
|
361
|
+
def ClearField(
|
|
362
|
+
self,
|
|
363
|
+
field_name: typing.Literal[
|
|
364
|
+
"architecture",
|
|
365
|
+
b"architecture",
|
|
366
|
+
"is_open_source",
|
|
367
|
+
b"is_open_source",
|
|
368
|
+
"license_type",
|
|
369
|
+
b"license_type",
|
|
370
|
+
"model_type",
|
|
371
|
+
b"model_type",
|
|
372
|
+
"parameter_count",
|
|
373
|
+
b"parameter_count",
|
|
374
|
+
],
|
|
375
|
+
) -> None: ...
|
|
376
|
+
|
|
377
|
+
global___ModelClassification = ModelClassification
|
|
378
|
+
|
|
379
|
+
@typing.final
|
|
380
|
+
class ModelPerformance(google.protobuf.message.Message):
|
|
381
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
382
|
+
|
|
383
|
+
@typing.final
|
|
384
|
+
class BenchmarkScoresEntry(google.protobuf.message.Message):
|
|
385
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
386
|
+
|
|
387
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
388
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
389
|
+
key: builtins.str
|
|
390
|
+
value: builtins.float
|
|
391
|
+
def __init__(
|
|
392
|
+
self,
|
|
393
|
+
*,
|
|
394
|
+
key: builtins.str = ...,
|
|
395
|
+
value: builtins.float = ...,
|
|
396
|
+
) -> None: ...
|
|
397
|
+
def ClearField(
|
|
398
|
+
self, field_name: typing.Literal["key", b"key", "value", b"value"]
|
|
399
|
+
) -> None: ...
|
|
400
|
+
|
|
401
|
+
REASONING_SCORE_FIELD_NUMBER: builtins.int
|
|
402
|
+
CODING_SCORE_FIELD_NUMBER: builtins.int
|
|
403
|
+
CREATIVE_SCORE_FIELD_NUMBER: builtins.int
|
|
404
|
+
FACTUAL_SCORE_FIELD_NUMBER: builtins.int
|
|
405
|
+
MATH_SCORE_FIELD_NUMBER: builtins.int
|
|
406
|
+
BENCHMARK_SCORES_FIELD_NUMBER: builtins.int
|
|
407
|
+
reasoning_score: builtins.float
|
|
408
|
+
"""0-10"""
|
|
409
|
+
coding_score: builtins.float
|
|
410
|
+
creative_score: builtins.float
|
|
411
|
+
factual_score: builtins.float
|
|
412
|
+
math_score: builtins.float
|
|
413
|
+
@property
|
|
414
|
+
def benchmark_scores(
|
|
415
|
+
self,
|
|
416
|
+
) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.float]:
|
|
417
|
+
"""mmlu, humaneval, etc"""
|
|
418
|
+
|
|
419
|
+
def __init__(
|
|
420
|
+
self,
|
|
421
|
+
*,
|
|
422
|
+
reasoning_score: builtins.float = ...,
|
|
423
|
+
coding_score: builtins.float = ...,
|
|
424
|
+
creative_score: builtins.float = ...,
|
|
425
|
+
factual_score: builtins.float = ...,
|
|
426
|
+
math_score: builtins.float = ...,
|
|
427
|
+
benchmark_scores: collections.abc.Mapping[builtins.str, builtins.float]
|
|
428
|
+
| None = ...,
|
|
429
|
+
) -> None: ...
|
|
430
|
+
def ClearField(
|
|
431
|
+
self,
|
|
432
|
+
field_name: typing.Literal[
|
|
433
|
+
"benchmark_scores",
|
|
434
|
+
b"benchmark_scores",
|
|
435
|
+
"coding_score",
|
|
436
|
+
b"coding_score",
|
|
437
|
+
"creative_score",
|
|
438
|
+
b"creative_score",
|
|
439
|
+
"factual_score",
|
|
440
|
+
b"factual_score",
|
|
441
|
+
"math_score",
|
|
442
|
+
b"math_score",
|
|
443
|
+
"reasoning_score",
|
|
444
|
+
b"reasoning_score",
|
|
445
|
+
],
|
|
446
|
+
) -> None: ...
|
|
447
|
+
|
|
448
|
+
global___ModelPerformance = ModelPerformance
|
|
449
|
+
|
|
450
|
+
@typing.final
|
|
451
|
+
class TokenInfo(google.protobuf.message.Message):
|
|
452
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
453
|
+
|
|
454
|
+
CONTEXT_WINDOW_FIELD_NUMBER: builtins.int
|
|
455
|
+
MAX_OUTPUT_TOKENS_FIELD_NUMBER: builtins.int
|
|
456
|
+
TOKENIZER_FIELD_NUMBER: builtins.int
|
|
457
|
+
TOKENS_PER_SECOND_FIELD_NUMBER: builtins.int
|
|
458
|
+
context_window: builtins.int
|
|
459
|
+
max_output_tokens: builtins.int
|
|
460
|
+
tokenizer: builtins.str
|
|
461
|
+
tokens_per_second: builtins.int
|
|
462
|
+
def __init__(
|
|
463
|
+
self,
|
|
464
|
+
*,
|
|
465
|
+
context_window: builtins.int = ...,
|
|
466
|
+
max_output_tokens: builtins.int = ...,
|
|
467
|
+
tokenizer: builtins.str = ...,
|
|
468
|
+
tokens_per_second: builtins.int = ...,
|
|
469
|
+
) -> None: ...
|
|
470
|
+
def ClearField(
|
|
471
|
+
self,
|
|
472
|
+
field_name: typing.Literal[
|
|
473
|
+
"context_window",
|
|
474
|
+
b"context_window",
|
|
475
|
+
"max_output_tokens",
|
|
476
|
+
b"max_output_tokens",
|
|
477
|
+
"tokenizer",
|
|
478
|
+
b"tokenizer",
|
|
479
|
+
"tokens_per_second",
|
|
480
|
+
b"tokens_per_second",
|
|
481
|
+
],
|
|
482
|
+
) -> None: ...
|
|
483
|
+
|
|
484
|
+
global___TokenInfo = TokenInfo
|
|
485
|
+
|
|
486
|
+
@typing.final
|
|
487
|
+
class Pricing(google.protobuf.message.Message):
|
|
488
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
489
|
+
|
|
490
|
+
INPUT_PRICE_FIELD_NUMBER: builtins.int
|
|
491
|
+
OUTPUT_PRICE_FIELD_NUMBER: builtins.int
|
|
492
|
+
CACHE_READ_PRICE_FIELD_NUMBER: builtins.int
|
|
493
|
+
CACHE_WRITE_PRICE_FIELD_NUMBER: builtins.int
|
|
494
|
+
FINE_TUNING_PRICE_FIELD_NUMBER: builtins.int
|
|
495
|
+
CURRENCY_FIELD_NUMBER: builtins.int
|
|
496
|
+
input_price: builtins.float
|
|
497
|
+
"""per 1M tokens"""
|
|
498
|
+
output_price: builtins.float
|
|
499
|
+
cache_read_price: builtins.float
|
|
500
|
+
cache_write_price: builtins.float
|
|
501
|
+
fine_tuning_price: builtins.float
|
|
502
|
+
currency: builtins.str
|
|
503
|
+
"""USD"""
|
|
504
|
+
def __init__(
|
|
505
|
+
self,
|
|
506
|
+
*,
|
|
507
|
+
input_price: builtins.float = ...,
|
|
508
|
+
output_price: builtins.float = ...,
|
|
509
|
+
cache_read_price: builtins.float = ...,
|
|
510
|
+
cache_write_price: builtins.float = ...,
|
|
511
|
+
fine_tuning_price: builtins.float = ...,
|
|
512
|
+
currency: builtins.str = ...,
|
|
513
|
+
) -> None: ...
|
|
514
|
+
def ClearField(
|
|
515
|
+
self,
|
|
516
|
+
field_name: typing.Literal[
|
|
517
|
+
"cache_read_price",
|
|
518
|
+
b"cache_read_price",
|
|
519
|
+
"cache_write_price",
|
|
520
|
+
b"cache_write_price",
|
|
521
|
+
"currency",
|
|
522
|
+
b"currency",
|
|
523
|
+
"fine_tuning_price",
|
|
524
|
+
b"fine_tuning_price",
|
|
525
|
+
"input_price",
|
|
526
|
+
b"input_price",
|
|
527
|
+
"output_price",
|
|
528
|
+
b"output_price",
|
|
529
|
+
],
|
|
530
|
+
) -> None: ...
|
|
531
|
+
|
|
532
|
+
global___Pricing = Pricing
|
|
533
|
+
|
|
534
|
+
@typing.final
|
|
535
|
+
class Configuration(google.protobuf.message.Message):
|
|
536
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
537
|
+
|
|
538
|
+
TEMPERATURE_MIN_FIELD_NUMBER: builtins.int
|
|
539
|
+
TEMPERATURE_MAX_FIELD_NUMBER: builtins.int
|
|
540
|
+
TEMPERATURE_DEFAULT_FIELD_NUMBER: builtins.int
|
|
541
|
+
TOP_P_MIN_FIELD_NUMBER: builtins.int
|
|
542
|
+
TOP_P_MAX_FIELD_NUMBER: builtins.int
|
|
543
|
+
temperature_min: builtins.float
|
|
544
|
+
temperature_max: builtins.float
|
|
545
|
+
temperature_default: builtins.float
|
|
546
|
+
top_p_min: builtins.float
|
|
547
|
+
top_p_max: builtins.float
|
|
548
|
+
def __init__(
|
|
549
|
+
self,
|
|
550
|
+
*,
|
|
551
|
+
temperature_min: builtins.float = ...,
|
|
552
|
+
temperature_max: builtins.float = ...,
|
|
553
|
+
temperature_default: builtins.float = ...,
|
|
554
|
+
top_p_min: builtins.float = ...,
|
|
555
|
+
top_p_max: builtins.float = ...,
|
|
556
|
+
) -> None: ...
|
|
557
|
+
def ClearField(
|
|
558
|
+
self,
|
|
559
|
+
field_name: typing.Literal[
|
|
560
|
+
"temperature_default",
|
|
561
|
+
b"temperature_default",
|
|
562
|
+
"temperature_max",
|
|
563
|
+
b"temperature_max",
|
|
564
|
+
"temperature_min",
|
|
565
|
+
b"temperature_min",
|
|
566
|
+
"top_p_max",
|
|
567
|
+
b"top_p_max",
|
|
568
|
+
"top_p_min",
|
|
569
|
+
b"top_p_min",
|
|
570
|
+
],
|
|
571
|
+
) -> None: ...
|
|
572
|
+
|
|
573
|
+
global___Configuration = Configuration
|
|
574
|
+
|
|
575
|
+
@typing.final
|
|
576
|
+
class APIDetails(google.protobuf.message.Message):
|
|
577
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
578
|
+
|
|
579
|
+
ENDPOINT_FIELD_NUMBER: builtins.int
|
|
580
|
+
VERSION_FIELD_NUMBER: builtins.int
|
|
581
|
+
RATE_LIMIT_RPM_FIELD_NUMBER: builtins.int
|
|
582
|
+
RATE_LIMIT_TPM_FIELD_NUMBER: builtins.int
|
|
583
|
+
endpoint: builtins.str
|
|
584
|
+
version: builtins.str
|
|
585
|
+
rate_limit_rpm: builtins.int
|
|
586
|
+
"""requests per minute"""
|
|
587
|
+
rate_limit_tpm: builtins.int
|
|
588
|
+
"""tokens per minute"""
|
|
589
|
+
def __init__(
|
|
590
|
+
self,
|
|
591
|
+
*,
|
|
592
|
+
endpoint: builtins.str = ...,
|
|
593
|
+
version: builtins.str = ...,
|
|
594
|
+
rate_limit_rpm: builtins.int = ...,
|
|
595
|
+
rate_limit_tpm: builtins.int = ...,
|
|
596
|
+
) -> None: ...
|
|
597
|
+
def ClearField(
|
|
598
|
+
self,
|
|
599
|
+
field_name: typing.Literal[
|
|
600
|
+
"endpoint",
|
|
601
|
+
b"endpoint",
|
|
602
|
+
"rate_limit_rpm",
|
|
603
|
+
b"rate_limit_rpm",
|
|
604
|
+
"rate_limit_tpm",
|
|
605
|
+
b"rate_limit_tpm",
|
|
606
|
+
"version",
|
|
607
|
+
b"version",
|
|
608
|
+
],
|
|
609
|
+
) -> None: ...
|
|
610
|
+
|
|
611
|
+
global___APIDetails = APIDetails
|
|
612
|
+
|
|
613
|
+
@typing.final
|
|
614
|
+
class Availability(google.protobuf.message.Message):
|
|
615
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
616
|
+
|
|
617
|
+
REGIONS_FIELD_NUMBER: builtins.int
|
|
618
|
+
PLATFORMS_FIELD_NUMBER: builtins.int
|
|
619
|
+
@property
|
|
620
|
+
def regions(
|
|
621
|
+
self,
|
|
622
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
|
|
623
|
+
builtins.str
|
|
624
|
+
]: ...
|
|
625
|
+
@property
|
|
626
|
+
def platforms(
|
|
627
|
+
self,
|
|
628
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
|
|
629
|
+
builtins.str
|
|
630
|
+
]: ...
|
|
631
|
+
def __init__(
|
|
632
|
+
self,
|
|
633
|
+
*,
|
|
634
|
+
regions: collections.abc.Iterable[builtins.str] | None = ...,
|
|
635
|
+
platforms: collections.abc.Iterable[builtins.str] | None = ...,
|
|
636
|
+
) -> None: ...
|
|
637
|
+
def ClearField(
|
|
638
|
+
self,
|
|
639
|
+
field_name: typing.Literal["platforms", b"platforms", "regions", b"regions"],
|
|
640
|
+
) -> None: ...
|
|
641
|
+
|
|
642
|
+
global___Availability = Availability
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(
|
|
15
|
+
collections.abc.AsyncIterator[_T],
|
|
16
|
+
collections.abc.Iterator[_T],
|
|
17
|
+
metaclass=abc.ABCMeta,
|
|
18
|
+
): ...
|
|
19
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
20
|
+
...
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: weaveapi/modex/v1/provider.proto
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC, 6, 32, 0, "", "weaveapi/modex/v1/provider.proto"
|
|
16
|
+
)
|
|
17
|
+
# @@protoc_insertion_point(imports)
|
|
18
|
+
|
|
19
|
+
_sym_db = _symbol_database.Default()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
23
|
+
b'\n weaveapi/modex/v1/provider.proto\x12\x11weaveapi.modex.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x81\x03\n\x08Provider\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04slug\x18\x02 \x01(\tR\x04slug\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12\x1f\n\x0bwebsite_url\x18\x05 \x01(\tR\nwebsiteUrl\x12+\n\x11\x64ocumentation_url\x18\x06 \x01(\tR\x10\x64ocumentationUrl\x12\x19\n\x08logo_url\x18\x07 \x01(\tR\x07logoUrl\x12\x1b\n\tis_active\x18\x08 \x01(\x08R\x08isActive\x12\x1f\n\x0bmodel_count\x18\t \x01(\x05R\nmodelCount\x12\x39\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAtB\xc4\x01\n\x15\x63om.weaveapi.modex.v1B\rProviderProtoP\x01Z6github.com/weave-labs/weave-go/weaveapi/modex/v1;modex\xa2\x02\x03WMX\xaa\x02\x11Weaveapi.Modex.V1\xca\x02\x11Weaveapi\\Modex\\V1\xe2\x02\x1dWeaveapi\\Modex\\V1\\GPBMetadata\xea\x02\x13Weaveapi::Modex::V1b\x06proto3'
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(
|
|
29
|
+
DESCRIPTOR, "weaveapi.modex.v1.provider_pb2", _globals
|
|
30
|
+
)
|
|
31
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
32
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
33
|
+
_globals[
|
|
34
|
+
"DESCRIPTOR"
|
|
35
|
+
]._serialized_options = b"\n\025com.weaveapi.modex.v1B\rProviderProtoP\001Z6github.com/weave-labs/weave-go/weaveapi/modex/v1;modex\242\002\003WMX\252\002\021Weaveapi.Modex.V1\312\002\021Weaveapi\\Modex\\V1\342\002\035Weaveapi\\Modex\\V1\\GPBMetadata\352\002\023Weaveapi::Modex::V1"
|
|
36
|
+
_globals["_PROVIDER"]._serialized_start = 89
|
|
37
|
+
_globals["_PROVIDER"]._serialized_end = 474
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|