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,264 +3,221 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import abc
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
6
|
+
from collections import abc as _abc
|
|
7
|
+
from grpc import aio as _aio
|
|
8
|
+
from weaveapi.llmx.v1 import service_pb2 as _service_pb2
|
|
9
|
+
import abc as _abc_1
|
|
10
|
+
import grpc as _grpc
|
|
11
|
+
import sys
|
|
12
|
+
import typing as _typing
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
if sys.version_info >= (3, 11):
|
|
15
|
+
from typing import Self as _Self
|
|
16
|
+
else:
|
|
17
|
+
from typing_extensions import Self as _Self
|
|
18
|
+
|
|
19
|
+
_T = _typing.TypeVar("_T")
|
|
14
20
|
|
|
15
21
|
class _MaybeAsyncIterator(
|
|
16
|
-
|
|
17
|
-
collections.abc.Iterator[_T],
|
|
18
|
-
metaclass=abc.ABCMeta,
|
|
22
|
+
_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta
|
|
19
23
|
): ...
|
|
20
|
-
class _ServicerContext(
|
|
24
|
+
class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
21
25
|
...
|
|
22
26
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]
|
|
26
|
-
) -> None: ...
|
|
27
|
-
ListProviders: grpc.UnaryUnaryMultiCallable[
|
|
28
|
-
weaveapi.llmx.v1.service_pb2.ListProvidersRequest,
|
|
29
|
-
weaveapi.llmx.v1.service_pb2.ListProvidersResponse,
|
|
30
|
-
]
|
|
31
|
-
|
|
32
|
-
GetProvider: grpc.UnaryUnaryMultiCallable[
|
|
33
|
-
weaveapi.llmx.v1.service_pb2.GetProviderRequest,
|
|
34
|
-
weaveapi.llmx.v1.service_pb2.GetProviderResponse,
|
|
35
|
-
]
|
|
36
|
-
|
|
37
|
-
ListModels: grpc.UnaryUnaryMultiCallable[
|
|
38
|
-
weaveapi.llmx.v1.service_pb2.ListModelsRequest,
|
|
39
|
-
weaveapi.llmx.v1.service_pb2.ListModelsResponse,
|
|
40
|
-
]
|
|
41
|
-
|
|
42
|
-
GetModel: grpc.UnaryUnaryMultiCallable[
|
|
43
|
-
weaveapi.llmx.v1.service_pb2.GetModelRequest,
|
|
44
|
-
weaveapi.llmx.v1.service_pb2.GetModelResponse,
|
|
45
|
-
]
|
|
46
|
-
|
|
47
|
-
SearchModels: grpc.UnaryUnaryMultiCallable[
|
|
48
|
-
weaveapi.llmx.v1.service_pb2.SearchModelsRequest,
|
|
49
|
-
weaveapi.llmx.v1.service_pb2.SearchModelsResponse,
|
|
50
|
-
]
|
|
51
|
-
|
|
52
|
-
CompareModels: grpc.UnaryUnaryMultiCallable[
|
|
53
|
-
weaveapi.llmx.v1.service_pb2.CompareModelsRequest,
|
|
54
|
-
weaveapi.llmx.v1.service_pb2.CompareModelsResponse,
|
|
55
|
-
]
|
|
56
|
-
|
|
57
|
-
GetModelPriceHistory: grpc.UnaryUnaryMultiCallable[
|
|
58
|
-
weaveapi.llmx.v1.service_pb2.GetModelPriceHistoryRequest,
|
|
59
|
-
weaveapi.llmx.v1.service_pb2.GetModelPriceHistoryResponse,
|
|
60
|
-
]
|
|
61
|
-
|
|
62
|
-
GetModelChanges: grpc.UnaryUnaryMultiCallable[
|
|
63
|
-
weaveapi.llmx.v1.service_pb2.GetModelChangesRequest,
|
|
64
|
-
weaveapi.llmx.v1.service_pb2.GetModelChangesResponse,
|
|
65
|
-
]
|
|
66
|
-
|
|
67
|
-
GetTrendingModels: grpc.UnaryUnaryMultiCallable[
|
|
68
|
-
weaveapi.llmx.v1.service_pb2.GetTrendingModelsRequest,
|
|
69
|
-
weaveapi.llmx.v1.service_pb2.GetTrendingModelsResponse,
|
|
70
|
-
]
|
|
71
|
-
|
|
72
|
-
GetRecentUpdates: grpc.UnaryUnaryMultiCallable[
|
|
73
|
-
weaveapi.llmx.v1.service_pb2.GetRecentUpdatesRequest,
|
|
74
|
-
weaveapi.llmx.v1.service_pb2.GetRecentUpdatesResponse,
|
|
75
|
-
]
|
|
76
|
-
|
|
77
|
-
ExportData: grpc.UnaryUnaryMultiCallable[
|
|
78
|
-
weaveapi.llmx.v1.service_pb2.ExportDataRequest,
|
|
79
|
-
weaveapi.llmx.v1.service_pb2.ExportDataResponse,
|
|
80
|
-
]
|
|
81
|
-
|
|
82
|
-
GetStatistics: grpc.UnaryUnaryMultiCallable[
|
|
83
|
-
weaveapi.llmx.v1.service_pb2.GetStatisticsRequest,
|
|
84
|
-
weaveapi.llmx.v1.service_pb2.GetStatisticsResponse,
|
|
85
|
-
]
|
|
86
|
-
|
|
87
|
-
class LlmXAsyncStub:
|
|
88
|
-
ListProviders: grpc.aio.UnaryUnaryMultiCallable[
|
|
89
|
-
weaveapi.llmx.v1.service_pb2.ListProvidersRequest,
|
|
90
|
-
weaveapi.llmx.v1.service_pb2.ListProvidersResponse,
|
|
91
|
-
]
|
|
92
|
-
|
|
93
|
-
GetProvider: grpc.aio.UnaryUnaryMultiCallable[
|
|
94
|
-
weaveapi.llmx.v1.service_pb2.GetProviderRequest,
|
|
95
|
-
weaveapi.llmx.v1.service_pb2.GetProviderResponse,
|
|
96
|
-
]
|
|
27
|
+
GRPC_GENERATED_VERSION: str
|
|
28
|
+
GRPC_VERSION: str
|
|
97
29
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
]
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
GetTrendingModels:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
]
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
]
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
30
|
+
class LlmXStub:
|
|
31
|
+
@_typing.overload
|
|
32
|
+
def __new__(cls, channel: _grpc.Channel) -> _Self: ...
|
|
33
|
+
@_typing.overload
|
|
34
|
+
def __new__(cls, channel: _aio.Channel) -> LlmXAsyncStub: ...
|
|
35
|
+
ListProviders: _grpc.UnaryUnaryMultiCallable[
|
|
36
|
+
_service_pb2.ListProvidersRequest, _service_pb2.ListProvidersResponse
|
|
37
|
+
]
|
|
38
|
+
GetProvider: _grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
_service_pb2.GetProviderRequest, _service_pb2.GetProviderResponse
|
|
40
|
+
]
|
|
41
|
+
ListModels: _grpc.UnaryUnaryMultiCallable[
|
|
42
|
+
_service_pb2.ListModelsRequest, _service_pb2.ListModelsResponse
|
|
43
|
+
]
|
|
44
|
+
GetModel: _grpc.UnaryUnaryMultiCallable[
|
|
45
|
+
_service_pb2.GetModelRequest, _service_pb2.GetModelResponse
|
|
46
|
+
]
|
|
47
|
+
SearchModels: _grpc.UnaryUnaryMultiCallable[
|
|
48
|
+
_service_pb2.SearchModelsRequest, _service_pb2.SearchModelsResponse
|
|
49
|
+
]
|
|
50
|
+
CompareModels: _grpc.UnaryUnaryMultiCallable[
|
|
51
|
+
_service_pb2.CompareModelsRequest, _service_pb2.CompareModelsResponse
|
|
52
|
+
]
|
|
53
|
+
GetModelPriceHistory: _grpc.UnaryUnaryMultiCallable[
|
|
54
|
+
_service_pb2.GetModelPriceHistoryRequest,
|
|
55
|
+
_service_pb2.GetModelPriceHistoryResponse,
|
|
56
|
+
]
|
|
57
|
+
GetModelChanges: _grpc.UnaryUnaryMultiCallable[
|
|
58
|
+
_service_pb2.GetModelChangesRequest, _service_pb2.GetModelChangesResponse
|
|
59
|
+
]
|
|
60
|
+
GetTrendingModels: _grpc.UnaryUnaryMultiCallable[
|
|
61
|
+
_service_pb2.GetTrendingModelsRequest, _service_pb2.GetTrendingModelsResponse
|
|
62
|
+
]
|
|
63
|
+
GetRecentUpdates: _grpc.UnaryUnaryMultiCallable[
|
|
64
|
+
_service_pb2.GetRecentUpdatesRequest, _service_pb2.GetRecentUpdatesResponse
|
|
65
|
+
]
|
|
66
|
+
ExportData: _grpc.UnaryUnaryMultiCallable[
|
|
67
|
+
_service_pb2.ExportDataRequest, _service_pb2.ExportDataResponse
|
|
68
|
+
]
|
|
69
|
+
GetStatistics: _grpc.UnaryUnaryMultiCallable[
|
|
70
|
+
_service_pb2.GetStatisticsRequest, _service_pb2.GetStatisticsResponse
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
@_typing.type_check_only
|
|
74
|
+
class LlmXAsyncStub(LlmXStub):
|
|
75
|
+
def __init__(self, channel: _aio.Channel) -> None: ...
|
|
76
|
+
ListProviders: _aio.UnaryUnaryMultiCallable[
|
|
77
|
+
_service_pb2.ListProvidersRequest, _service_pb2.ListProvidersResponse
|
|
78
|
+
] # type: ignore[assignment]
|
|
79
|
+
GetProvider: _aio.UnaryUnaryMultiCallable[
|
|
80
|
+
_service_pb2.GetProviderRequest, _service_pb2.GetProviderResponse
|
|
81
|
+
] # type: ignore[assignment]
|
|
82
|
+
ListModels: _aio.UnaryUnaryMultiCallable[
|
|
83
|
+
_service_pb2.ListModelsRequest, _service_pb2.ListModelsResponse
|
|
84
|
+
] # type: ignore[assignment]
|
|
85
|
+
GetModel: _aio.UnaryUnaryMultiCallable[
|
|
86
|
+
_service_pb2.GetModelRequest, _service_pb2.GetModelResponse
|
|
87
|
+
] # type: ignore[assignment]
|
|
88
|
+
SearchModels: _aio.UnaryUnaryMultiCallable[
|
|
89
|
+
_service_pb2.SearchModelsRequest, _service_pb2.SearchModelsResponse
|
|
90
|
+
] # type: ignore[assignment]
|
|
91
|
+
CompareModels: _aio.UnaryUnaryMultiCallable[
|
|
92
|
+
_service_pb2.CompareModelsRequest, _service_pb2.CompareModelsResponse
|
|
93
|
+
] # type: ignore[assignment]
|
|
94
|
+
GetModelPriceHistory: _aio.UnaryUnaryMultiCallable[
|
|
95
|
+
_service_pb2.GetModelPriceHistoryRequest,
|
|
96
|
+
_service_pb2.GetModelPriceHistoryResponse,
|
|
97
|
+
] # type: ignore[assignment]
|
|
98
|
+
GetModelChanges: _aio.UnaryUnaryMultiCallable[
|
|
99
|
+
_service_pb2.GetModelChangesRequest, _service_pb2.GetModelChangesResponse
|
|
100
|
+
] # type: ignore[assignment]
|
|
101
|
+
GetTrendingModels: _aio.UnaryUnaryMultiCallable[
|
|
102
|
+
_service_pb2.GetTrendingModelsRequest, _service_pb2.GetTrendingModelsResponse
|
|
103
|
+
] # type: ignore[assignment]
|
|
104
|
+
GetRecentUpdates: _aio.UnaryUnaryMultiCallable[
|
|
105
|
+
_service_pb2.GetRecentUpdatesRequest, _service_pb2.GetRecentUpdatesResponse
|
|
106
|
+
] # type: ignore[assignment]
|
|
107
|
+
ExportData: _aio.UnaryUnaryMultiCallable[
|
|
108
|
+
_service_pb2.ExportDataRequest, _service_pb2.ExportDataResponse
|
|
109
|
+
] # type: ignore[assignment]
|
|
110
|
+
GetStatistics: _aio.UnaryUnaryMultiCallable[
|
|
111
|
+
_service_pb2.GetStatisticsRequest, _service_pb2.GetStatisticsResponse
|
|
112
|
+
] # type: ignore[assignment]
|
|
113
|
+
|
|
114
|
+
class LlmXServicer(metaclass=_abc_1.ABCMeta):
|
|
115
|
+
@_abc_1.abstractmethod
|
|
150
116
|
def ListProviders(
|
|
151
117
|
self,
|
|
152
|
-
request:
|
|
118
|
+
request: _service_pb2.ListProvidersRequest,
|
|
153
119
|
context: _ServicerContext,
|
|
154
|
-
) ->
|
|
155
|
-
|
|
156
|
-
|
|
120
|
+
) -> _typing.Union[
|
|
121
|
+
_service_pb2.ListProvidersResponse,
|
|
122
|
+
_abc.Awaitable[_service_pb2.ListProvidersResponse],
|
|
157
123
|
]: ...
|
|
158
|
-
@
|
|
124
|
+
@_abc_1.abstractmethod
|
|
159
125
|
def GetProvider(
|
|
160
126
|
self,
|
|
161
|
-
request:
|
|
127
|
+
request: _service_pb2.GetProviderRequest,
|
|
162
128
|
context: _ServicerContext,
|
|
163
|
-
) ->
|
|
164
|
-
|
|
165
|
-
|
|
129
|
+
) -> _typing.Union[
|
|
130
|
+
_service_pb2.GetProviderResponse,
|
|
131
|
+
_abc.Awaitable[_service_pb2.GetProviderResponse],
|
|
166
132
|
]: ...
|
|
167
|
-
@
|
|
133
|
+
@_abc_1.abstractmethod
|
|
168
134
|
def ListModels(
|
|
169
135
|
self,
|
|
170
|
-
request:
|
|
136
|
+
request: _service_pb2.ListModelsRequest,
|
|
171
137
|
context: _ServicerContext,
|
|
172
|
-
) ->
|
|
173
|
-
|
|
174
|
-
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.ListModelsResponse],
|
|
138
|
+
) -> _typing.Union[
|
|
139
|
+
_service_pb2.ListModelsResponse, _abc.Awaitable[_service_pb2.ListModelsResponse]
|
|
175
140
|
]: ...
|
|
176
|
-
@
|
|
141
|
+
@_abc_1.abstractmethod
|
|
177
142
|
def GetModel(
|
|
178
143
|
self,
|
|
179
|
-
request:
|
|
144
|
+
request: _service_pb2.GetModelRequest,
|
|
180
145
|
context: _ServicerContext,
|
|
181
|
-
) ->
|
|
182
|
-
|
|
183
|
-
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.GetModelResponse],
|
|
146
|
+
) -> _typing.Union[
|
|
147
|
+
_service_pb2.GetModelResponse, _abc.Awaitable[_service_pb2.GetModelResponse]
|
|
184
148
|
]: ...
|
|
185
|
-
@
|
|
149
|
+
@_abc_1.abstractmethod
|
|
186
150
|
def SearchModels(
|
|
187
151
|
self,
|
|
188
|
-
request:
|
|
152
|
+
request: _service_pb2.SearchModelsRequest,
|
|
189
153
|
context: _ServicerContext,
|
|
190
|
-
) ->
|
|
191
|
-
|
|
192
|
-
|
|
154
|
+
) -> _typing.Union[
|
|
155
|
+
_service_pb2.SearchModelsResponse,
|
|
156
|
+
_abc.Awaitable[_service_pb2.SearchModelsResponse],
|
|
193
157
|
]: ...
|
|
194
|
-
@
|
|
158
|
+
@_abc_1.abstractmethod
|
|
195
159
|
def CompareModels(
|
|
196
160
|
self,
|
|
197
|
-
request:
|
|
161
|
+
request: _service_pb2.CompareModelsRequest,
|
|
198
162
|
context: _ServicerContext,
|
|
199
|
-
) ->
|
|
200
|
-
|
|
201
|
-
|
|
163
|
+
) -> _typing.Union[
|
|
164
|
+
_service_pb2.CompareModelsResponse,
|
|
165
|
+
_abc.Awaitable[_service_pb2.CompareModelsResponse],
|
|
202
166
|
]: ...
|
|
203
|
-
@
|
|
167
|
+
@_abc_1.abstractmethod
|
|
204
168
|
def GetModelPriceHistory(
|
|
205
169
|
self,
|
|
206
|
-
request:
|
|
170
|
+
request: _service_pb2.GetModelPriceHistoryRequest,
|
|
207
171
|
context: _ServicerContext,
|
|
208
|
-
) ->
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
weaveapi.llmx.v1.service_pb2.GetModelPriceHistoryResponse
|
|
212
|
-
],
|
|
172
|
+
) -> _typing.Union[
|
|
173
|
+
_service_pb2.GetModelPriceHistoryResponse,
|
|
174
|
+
_abc.Awaitable[_service_pb2.GetModelPriceHistoryResponse],
|
|
213
175
|
]: ...
|
|
214
|
-
@
|
|
176
|
+
@_abc_1.abstractmethod
|
|
215
177
|
def GetModelChanges(
|
|
216
178
|
self,
|
|
217
|
-
request:
|
|
179
|
+
request: _service_pb2.GetModelChangesRequest,
|
|
218
180
|
context: _ServicerContext,
|
|
219
|
-
) ->
|
|
220
|
-
|
|
221
|
-
|
|
181
|
+
) -> _typing.Union[
|
|
182
|
+
_service_pb2.GetModelChangesResponse,
|
|
183
|
+
_abc.Awaitable[_service_pb2.GetModelChangesResponse],
|
|
222
184
|
]: ...
|
|
223
|
-
@
|
|
185
|
+
@_abc_1.abstractmethod
|
|
224
186
|
def GetTrendingModels(
|
|
225
187
|
self,
|
|
226
|
-
request:
|
|
188
|
+
request: _service_pb2.GetTrendingModelsRequest,
|
|
227
189
|
context: _ServicerContext,
|
|
228
|
-
) ->
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
weaveapi.llmx.v1.service_pb2.GetTrendingModelsResponse
|
|
232
|
-
],
|
|
190
|
+
) -> _typing.Union[
|
|
191
|
+
_service_pb2.GetTrendingModelsResponse,
|
|
192
|
+
_abc.Awaitable[_service_pb2.GetTrendingModelsResponse],
|
|
233
193
|
]: ...
|
|
234
|
-
@
|
|
194
|
+
@_abc_1.abstractmethod
|
|
235
195
|
def GetRecentUpdates(
|
|
236
196
|
self,
|
|
237
|
-
request:
|
|
197
|
+
request: _service_pb2.GetRecentUpdatesRequest,
|
|
238
198
|
context: _ServicerContext,
|
|
239
|
-
) ->
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
weaveapi.llmx.v1.service_pb2.GetRecentUpdatesResponse
|
|
243
|
-
],
|
|
199
|
+
) -> _typing.Union[
|
|
200
|
+
_service_pb2.GetRecentUpdatesResponse,
|
|
201
|
+
_abc.Awaitable[_service_pb2.GetRecentUpdatesResponse],
|
|
244
202
|
]: ...
|
|
245
|
-
@
|
|
203
|
+
@_abc_1.abstractmethod
|
|
246
204
|
def ExportData(
|
|
247
205
|
self,
|
|
248
|
-
request:
|
|
206
|
+
request: _service_pb2.ExportDataRequest,
|
|
249
207
|
context: _ServicerContext,
|
|
250
|
-
) ->
|
|
251
|
-
|
|
252
|
-
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.ExportDataResponse],
|
|
208
|
+
) -> _typing.Union[
|
|
209
|
+
_service_pb2.ExportDataResponse, _abc.Awaitable[_service_pb2.ExportDataResponse]
|
|
253
210
|
]: ...
|
|
254
|
-
@
|
|
211
|
+
@_abc_1.abstractmethod
|
|
255
212
|
def GetStatistics(
|
|
256
213
|
self,
|
|
257
|
-
request:
|
|
214
|
+
request: _service_pb2.GetStatisticsRequest,
|
|
258
215
|
context: _ServicerContext,
|
|
259
|
-
) ->
|
|
260
|
-
|
|
261
|
-
|
|
216
|
+
) -> _typing.Union[
|
|
217
|
+
_service_pb2.GetStatisticsResponse,
|
|
218
|
+
_abc.Awaitable[_service_pb2.GetStatisticsResponse],
|
|
262
219
|
]: ...
|
|
263
220
|
|
|
264
221
|
def add_LlmXServicer_to_server(
|
|
265
|
-
servicer: LlmXServicer, server:
|
|
222
|
+
servicer: LlmXServicer, server: _typing.Union[_grpc.Server, _aio.Server]
|
|
266
223
|
) -> None: ...
|
|
@@ -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/mcpregistry/v1/server.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/mcpregistry/v1/server.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$weaveapi/mcpregistry/v1/server.proto\x12\x17weaveapi.mcpregistry.v1\x1a\x1cgoogle/protobuf/struct.proto"\
|
|
23
|
+
b'\n$weaveapi/mcpregistry/v1/server.proto\x12\x17weaveapi.mcpregistry.v1\x1a!google/protobuf/go_features.proto\x1a\x1cgoogle/protobuf/struct.proto"\xe2\x02\n\x06Server\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12\x12\n\x04host\x18\x05 \x01(\tR\x04host\x12M\n\x0etransport_type\x18\x06 \x01(\x0e\x32&.weaveapi.mcpregistry.v1.TransportTypeR\rtransportType\x12H\n\x11transport_options\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x10transportOptions\x12\x37\n\x05tools\x18\x08 \x03(\x0b\x32\x1d.weaveapi.mcpregistry.v1.ToolB\x02(\x01R\x05tools\x12\x12\n\x04port\x18\t \x01(\x05R\x04port"\xb7\x01\n\x04Tool\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x14\n\x05title\x18\x03 \x01(\tR\x05title\x12!\n\x0cinput_schema\x18\x04 \x01(\x0cR\x0binputSchema\x12#\n\routput_schema\x18\x05 \x01(\x0cR\x0coutputSchema\x12\x1b\n\tserver_id\x18\x06 \x01(\tR\x08serverId*\x9e\x01\n\rTransportType\x12\x1e\n\x1aTRANSPORT_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12TRANSPORT_TYPE_SSE\x10\x01\x12\x1d\n\x19TRANSPORT_TYPE_STREAMABLE\x10\x02\x12\x18\n\x14TRANSPORT_TYPE_STDIO\x10\x03\x12\x1c\n\x18TRANSPORT_TYPE_IN_MEMORY\x10\x04\x42\xf4\x01\n\x1b\x63om.weaveapi.mcpregistry.v1B\x0bServerProtoP\x01ZBgithub.com/weave-labs/weave-go/weaveapi/mcpregistry/v1;mcpregistry\xa2\x02\x03WMX\xaa\x02\x17Weaveapi.Mcpregistry.V1\xca\x02\x17Weaveapi\\Mcpregistry\\V1\xe2\x02#Weaveapi\\Mcpregistry\\V1\\GPBMetadata\xea\x02\x19Weaveapi::Mcpregistry::V1\x92\x03\x05\xd2>\x02\x10\x03\x62\x08\x65\x64itionsp\xe8\x07'
|
|
24
24
|
)
|
|
25
25
|
|
|
26
26
|
_globals = globals()
|
|
@@ -32,11 +32,17 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
32
32
|
_globals["DESCRIPTOR"]._loaded_options = None
|
|
33
33
|
_globals[
|
|
34
34
|
"DESCRIPTOR"
|
|
35
|
-
]._serialized_options = b"\n\033com.weaveapi.mcpregistry.v1B\013ServerProtoP\001ZBgithub.com/weave-labs/weave-go/weaveapi/mcpregistry/v1;mcpregistry\242\002\003WMX\252\002\027Weaveapi.Mcpregistry.V1\312\002\027Weaveapi\\Mcpregistry\\V1\342\002#Weaveapi\\Mcpregistry\\V1\\GPBMetadata\352\002\031Weaveapi::Mcpregistry::V1"
|
|
36
|
-
_globals["
|
|
37
|
-
_globals["
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
_globals["
|
|
41
|
-
_globals["
|
|
35
|
+
]._serialized_options = b"\n\033com.weaveapi.mcpregistry.v1B\013ServerProtoP\001ZBgithub.com/weave-labs/weave-go/weaveapi/mcpregistry/v1;mcpregistry\242\002\003WMX\252\002\027Weaveapi.Mcpregistry.V1\312\002\027Weaveapi\\Mcpregistry\\V1\342\002#Weaveapi\\Mcpregistry\\V1\\GPBMetadata\352\002\031Weaveapi::Mcpregistry::V1\222\003\005\322>\002\020\003"
|
|
36
|
+
_globals["_SERVER"].fields_by_name["transport_options"]._loaded_options = None
|
|
37
|
+
_globals["_SERVER"].fields_by_name[
|
|
38
|
+
"transport_options"
|
|
39
|
+
]._serialized_options = b"(\001"
|
|
40
|
+
_globals["_SERVER"].fields_by_name["tools"]._loaded_options = None
|
|
41
|
+
_globals["_SERVER"].fields_by_name["tools"]._serialized_options = b"(\001"
|
|
42
|
+
_globals["_TRANSPORTTYPE"]._serialized_start = 674
|
|
43
|
+
_globals["_TRANSPORTTYPE"]._serialized_end = 832
|
|
44
|
+
_globals["_SERVER"]._serialized_start = 131
|
|
45
|
+
_globals["_SERVER"]._serialized_end = 485
|
|
46
|
+
_globals["_TOOL"]._serialized_start = 488
|
|
47
|
+
_globals["_TOOL"]._serialized_end = 671
|
|
42
48
|
# @@protoc_insertion_point(module_scope)
|