yandexcloud 0.317.0__py3-none-any.whl → 0.318.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.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/ai/assistants/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2.py +33 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2.pyi +101 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.py +88 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.pyi +293 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.py +232 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.pyi +127 -0
- yandex/cloud/ai/assistants/v1/common_pb2.py +33 -0
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +91 -0
- yandex/cloud/ai/assistants/v1/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/runs/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2.py +40 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2.pyi +154 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.py +77 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi +237 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/assistants/v1/searchindex/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.py +28 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +47 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.py +28 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.pyi +43 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.py +45 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.pyi +72 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.py +100 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.pyi +59 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.py +37 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +132 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.py +77 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.pyi +205 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.py +200 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.pyi +111 -0
- yandex/cloud/ai/assistants/v1/threads/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2.py +45 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2.pyi +176 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.py +55 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.pyi +91 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.py +133 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.pyi +76 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.py +32 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.pyi +85 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.py +76 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.pyi +200 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/assistants/v1/users/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2.py +32 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2.pyi +85 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.py +75 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.pyi +195 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/common/__init__.py +0 -0
- yandex/cloud/ai/common/common_pb2.py +30 -0
- yandex/cloud/ai/common/common_pb2.pyi +69 -0
- yandex/cloud/ai/common/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/common/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/files/__init__.py +0 -0
- yandex/cloud/ai/files/v1/__init__.py +0 -0
- yandex/cloud/ai/files/v1/file_pb2.py +32 -0
- yandex/cloud/ai/files/v1/file_pb2.pyi +85 -0
- yandex/cloud/ai/files/v1/file_pb2_grpc.py +4 -0
- yandex/cloud/ai/files/v1/file_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/files/v1/file_service_pb2.py +85 -0
- yandex/cloud/ai/files/v1/file_service_pb2.pyi +228 -0
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.py +232 -0
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.pyi +127 -0
- yandex/cloud/backup/v1/provider_service_pb2.py +12 -10
- yandex/cloud/backup/v1/provider_service_pb2.pyi +5 -1
- yandex/cloud/billing/v1/customer_pb2.pyi +32 -8
- yandex/cloud/billing/v1/customer_service_pb2.pyi +10 -2
- yandex/cloud/cloudrouter/__init__.py +0 -0
- yandex/cloud/cloudrouter/v1/__init__.py +0 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.py +42 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.pyi +215 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2_grpc.py +4 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.py +57 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.pyi +137 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.py +179 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.pyi +138 -0
- yandex/cloud/iam/v1/refresh_token_pb2.py +29 -0
- yandex/cloud/iam/v1/refresh_token_pb2.pyi +98 -0
- yandex/cloud/iam/v1/refresh_token_pb2_grpc.py +4 -0
- yandex/cloud/iam/v1/refresh_token_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2.py +67 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2.pyi +186 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2_grpc.py +105 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2_grpc.pyi +71 -0
- yandex/cloud/iam/v1/service_control_pb2.py +5 -5
- yandex/cloud/iam/v1/service_control_pb2.pyi +4 -0
- yandex/cloud/lockbox/v1/secret_pb2.py +23 -11
- yandex/cloud/lockbox/v1/secret_pb2.pyi +73 -4
- yandex/cloud/lockbox/v1/secret_service_pb2.py +46 -46
- yandex/cloud/lockbox/v1/secret_service_pb2.pyi +14 -3
- yandex/cloud/mdb/clickhouse/v1/cluster_pb2.py +27 -25
- yandex/cloud/mdb/clickhouse/v1/cluster_pb2.pyi +16 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.py +81 -57
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.pyi +144 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2_grpc.py +68 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2_grpc.pyi +40 -0
- yandex/cloud/oauth/claims_pb2.py +8 -7
- yandex/cloud/oauth/claims_pb2.pyi +9 -2
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2.pyi +1 -1
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.pyi +3 -1
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2.pyi +2 -0
- yandex/cloud/storage/v1/s3api_pb2.py +35 -0
- yandex/cloud/storage/v1/s3api_pb2.pyi +181 -0
- yandex/cloud/storage/v1/s3api_pb2_grpc.py +4 -0
- yandex/cloud/storage/v1/s3api_pb2_grpc.pyi +17 -0
- yandexcloud/_sdk.py +1 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.318.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.318.0.dist-info}/RECORD +135 -28
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.318.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.318.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.318.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.318.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from yandex.cloud.ai.assistants.v1 import assistant_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__pb2
|
|
6
|
+
from yandex.cloud.ai.assistants.v1 import assistant_service_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AssistantServiceStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.Create = channel.unary_unary(
|
|
19
|
+
'/yandex.cloud.ai.assistants.v1.AssistantService/Create',
|
|
20
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.CreateAssistantRequest.SerializeToString,
|
|
21
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__pb2.Assistant.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.Get = channel.unary_unary(
|
|
24
|
+
'/yandex.cloud.ai.assistants.v1.AssistantService/Get',
|
|
25
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.GetAssistantRequest.SerializeToString,
|
|
26
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__pb2.Assistant.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.Update = channel.unary_unary(
|
|
29
|
+
'/yandex.cloud.ai.assistants.v1.AssistantService/Update',
|
|
30
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.UpdateAssistantRequest.SerializeToString,
|
|
31
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__pb2.Assistant.FromString,
|
|
32
|
+
)
|
|
33
|
+
self.Delete = channel.unary_unary(
|
|
34
|
+
'/yandex.cloud.ai.assistants.v1.AssistantService/Delete',
|
|
35
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.DeleteAssistantRequest.SerializeToString,
|
|
36
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.DeleteAssistantResponse.FromString,
|
|
37
|
+
)
|
|
38
|
+
self.List = channel.unary_unary(
|
|
39
|
+
'/yandex.cloud.ai.assistants.v1.AssistantService/List',
|
|
40
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantsRequest.SerializeToString,
|
|
41
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantsResponse.FromString,
|
|
42
|
+
)
|
|
43
|
+
self.ListVersions = channel.unary_unary(
|
|
44
|
+
'/yandex.cloud.ai.assistants.v1.AssistantService/ListVersions',
|
|
45
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantVersionsRequest.SerializeToString,
|
|
46
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantVersionsResponse.FromString,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class AssistantServiceServicer(object):
|
|
51
|
+
"""Missing associated documentation comment in .proto file."""
|
|
52
|
+
|
|
53
|
+
def Create(self, request, context):
|
|
54
|
+
"""Missing associated documentation comment in .proto file."""
|
|
55
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
56
|
+
context.set_details('Method not implemented!')
|
|
57
|
+
raise NotImplementedError('Method not implemented!')
|
|
58
|
+
|
|
59
|
+
def Get(self, request, context):
|
|
60
|
+
"""Missing associated documentation comment in .proto file."""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
def Update(self, request, context):
|
|
66
|
+
"""Missing associated documentation comment in .proto file."""
|
|
67
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
68
|
+
context.set_details('Method not implemented!')
|
|
69
|
+
raise NotImplementedError('Method not implemented!')
|
|
70
|
+
|
|
71
|
+
def Delete(self, request, context):
|
|
72
|
+
"""Missing associated documentation comment in .proto file."""
|
|
73
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
|
+
context.set_details('Method not implemented!')
|
|
75
|
+
raise NotImplementedError('Method not implemented!')
|
|
76
|
+
|
|
77
|
+
def List(self, request, context):
|
|
78
|
+
"""Missing associated documentation comment in .proto file."""
|
|
79
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
80
|
+
context.set_details('Method not implemented!')
|
|
81
|
+
raise NotImplementedError('Method not implemented!')
|
|
82
|
+
|
|
83
|
+
def ListVersions(self, request, context):
|
|
84
|
+
"""Missing associated documentation comment in .proto file."""
|
|
85
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
86
|
+
context.set_details('Method not implemented!')
|
|
87
|
+
raise NotImplementedError('Method not implemented!')
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def add_AssistantServiceServicer_to_server(servicer, server):
|
|
91
|
+
rpc_method_handlers = {
|
|
92
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
93
|
+
servicer.Create,
|
|
94
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.CreateAssistantRequest.FromString,
|
|
95
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__pb2.Assistant.SerializeToString,
|
|
96
|
+
),
|
|
97
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
98
|
+
servicer.Get,
|
|
99
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.GetAssistantRequest.FromString,
|
|
100
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__pb2.Assistant.SerializeToString,
|
|
101
|
+
),
|
|
102
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
103
|
+
servicer.Update,
|
|
104
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.UpdateAssistantRequest.FromString,
|
|
105
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__pb2.Assistant.SerializeToString,
|
|
106
|
+
),
|
|
107
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
108
|
+
servicer.Delete,
|
|
109
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.DeleteAssistantRequest.FromString,
|
|
110
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.DeleteAssistantResponse.SerializeToString,
|
|
111
|
+
),
|
|
112
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
113
|
+
servicer.List,
|
|
114
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantsRequest.FromString,
|
|
115
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantsResponse.SerializeToString,
|
|
116
|
+
),
|
|
117
|
+
'ListVersions': grpc.unary_unary_rpc_method_handler(
|
|
118
|
+
servicer.ListVersions,
|
|
119
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantVersionsRequest.FromString,
|
|
120
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantVersionsResponse.SerializeToString,
|
|
121
|
+
),
|
|
122
|
+
}
|
|
123
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
124
|
+
'yandex.cloud.ai.assistants.v1.AssistantService', rpc_method_handlers)
|
|
125
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
# This class is part of an EXPERIMENTAL API.
|
|
129
|
+
class AssistantService(object):
|
|
130
|
+
"""Missing associated documentation comment in .proto file."""
|
|
131
|
+
|
|
132
|
+
@staticmethod
|
|
133
|
+
def Create(request,
|
|
134
|
+
target,
|
|
135
|
+
options=(),
|
|
136
|
+
channel_credentials=None,
|
|
137
|
+
call_credentials=None,
|
|
138
|
+
insecure=False,
|
|
139
|
+
compression=None,
|
|
140
|
+
wait_for_ready=None,
|
|
141
|
+
timeout=None,
|
|
142
|
+
metadata=None):
|
|
143
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.AssistantService/Create',
|
|
144
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.CreateAssistantRequest.SerializeToString,
|
|
145
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__pb2.Assistant.FromString,
|
|
146
|
+
options, channel_credentials,
|
|
147
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
148
|
+
|
|
149
|
+
@staticmethod
|
|
150
|
+
def Get(request,
|
|
151
|
+
target,
|
|
152
|
+
options=(),
|
|
153
|
+
channel_credentials=None,
|
|
154
|
+
call_credentials=None,
|
|
155
|
+
insecure=False,
|
|
156
|
+
compression=None,
|
|
157
|
+
wait_for_ready=None,
|
|
158
|
+
timeout=None,
|
|
159
|
+
metadata=None):
|
|
160
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.AssistantService/Get',
|
|
161
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.GetAssistantRequest.SerializeToString,
|
|
162
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__pb2.Assistant.FromString,
|
|
163
|
+
options, channel_credentials,
|
|
164
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
165
|
+
|
|
166
|
+
@staticmethod
|
|
167
|
+
def Update(request,
|
|
168
|
+
target,
|
|
169
|
+
options=(),
|
|
170
|
+
channel_credentials=None,
|
|
171
|
+
call_credentials=None,
|
|
172
|
+
insecure=False,
|
|
173
|
+
compression=None,
|
|
174
|
+
wait_for_ready=None,
|
|
175
|
+
timeout=None,
|
|
176
|
+
metadata=None):
|
|
177
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.AssistantService/Update',
|
|
178
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.UpdateAssistantRequest.SerializeToString,
|
|
179
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__pb2.Assistant.FromString,
|
|
180
|
+
options, channel_credentials,
|
|
181
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
182
|
+
|
|
183
|
+
@staticmethod
|
|
184
|
+
def Delete(request,
|
|
185
|
+
target,
|
|
186
|
+
options=(),
|
|
187
|
+
channel_credentials=None,
|
|
188
|
+
call_credentials=None,
|
|
189
|
+
insecure=False,
|
|
190
|
+
compression=None,
|
|
191
|
+
wait_for_ready=None,
|
|
192
|
+
timeout=None,
|
|
193
|
+
metadata=None):
|
|
194
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.AssistantService/Delete',
|
|
195
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.DeleteAssistantRequest.SerializeToString,
|
|
196
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.DeleteAssistantResponse.FromString,
|
|
197
|
+
options, channel_credentials,
|
|
198
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
199
|
+
|
|
200
|
+
@staticmethod
|
|
201
|
+
def List(request,
|
|
202
|
+
target,
|
|
203
|
+
options=(),
|
|
204
|
+
channel_credentials=None,
|
|
205
|
+
call_credentials=None,
|
|
206
|
+
insecure=False,
|
|
207
|
+
compression=None,
|
|
208
|
+
wait_for_ready=None,
|
|
209
|
+
timeout=None,
|
|
210
|
+
metadata=None):
|
|
211
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.AssistantService/List',
|
|
212
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantsRequest.SerializeToString,
|
|
213
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantsResponse.FromString,
|
|
214
|
+
options, channel_credentials,
|
|
215
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
216
|
+
|
|
217
|
+
@staticmethod
|
|
218
|
+
def ListVersions(request,
|
|
219
|
+
target,
|
|
220
|
+
options=(),
|
|
221
|
+
channel_credentials=None,
|
|
222
|
+
call_credentials=None,
|
|
223
|
+
insecure=False,
|
|
224
|
+
compression=None,
|
|
225
|
+
wait_for_ready=None,
|
|
226
|
+
timeout=None,
|
|
227
|
+
metadata=None):
|
|
228
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.AssistantService/ListVersions',
|
|
229
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantVersionsRequest.SerializeToString,
|
|
230
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_assistant__service__pb2.ListAssistantVersionsResponse.FromString,
|
|
231
|
+
options, channel_credentials,
|
|
232
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
import yandex.cloud.ai.assistants.v1.assistant_pb2
|
|
12
|
+
import yandex.cloud.ai.assistants.v1.assistant_service_pb2
|
|
13
|
+
|
|
14
|
+
_T = typing.TypeVar("_T")
|
|
15
|
+
|
|
16
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
17
|
+
|
|
18
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
19
|
+
...
|
|
20
|
+
|
|
21
|
+
class AssistantServiceStub:
|
|
22
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
23
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
24
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.CreateAssistantRequest,
|
|
25
|
+
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
29
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.GetAssistantRequest,
|
|
30
|
+
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
34
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.UpdateAssistantRequest,
|
|
35
|
+
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantRequest,
|
|
40
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantResponse,
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
44
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsRequest,
|
|
45
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsResponse,
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
ListVersions: grpc.UnaryUnaryMultiCallable[
|
|
49
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsRequest,
|
|
50
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsResponse,
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
class AssistantServiceAsyncStub:
|
|
54
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
55
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.CreateAssistantRequest,
|
|
56
|
+
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.GetAssistantRequest,
|
|
61
|
+
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
65
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.UpdateAssistantRequest,
|
|
66
|
+
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
70
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantRequest,
|
|
71
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantResponse,
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
75
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsRequest,
|
|
76
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsResponse,
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
ListVersions: grpc.aio.UnaryUnaryMultiCallable[
|
|
80
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsRequest,
|
|
81
|
+
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsResponse,
|
|
82
|
+
]
|
|
83
|
+
|
|
84
|
+
class AssistantServiceServicer(metaclass=abc.ABCMeta):
|
|
85
|
+
@abc.abstractmethod
|
|
86
|
+
def Create(
|
|
87
|
+
self,
|
|
88
|
+
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.CreateAssistantRequest,
|
|
89
|
+
context: _ServicerContext,
|
|
90
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]]: ...
|
|
91
|
+
|
|
92
|
+
@abc.abstractmethod
|
|
93
|
+
def Get(
|
|
94
|
+
self,
|
|
95
|
+
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.GetAssistantRequest,
|
|
96
|
+
context: _ServicerContext,
|
|
97
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]]: ...
|
|
98
|
+
|
|
99
|
+
@abc.abstractmethod
|
|
100
|
+
def Update(
|
|
101
|
+
self,
|
|
102
|
+
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.UpdateAssistantRequest,
|
|
103
|
+
context: _ServicerContext,
|
|
104
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]]: ...
|
|
105
|
+
|
|
106
|
+
@abc.abstractmethod
|
|
107
|
+
def Delete(
|
|
108
|
+
self,
|
|
109
|
+
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantRequest,
|
|
110
|
+
context: _ServicerContext,
|
|
111
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantResponse]]: ...
|
|
112
|
+
|
|
113
|
+
@abc.abstractmethod
|
|
114
|
+
def List(
|
|
115
|
+
self,
|
|
116
|
+
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsRequest,
|
|
117
|
+
context: _ServicerContext,
|
|
118
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsResponse]]: ...
|
|
119
|
+
|
|
120
|
+
@abc.abstractmethod
|
|
121
|
+
def ListVersions(
|
|
122
|
+
self,
|
|
123
|
+
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsRequest,
|
|
124
|
+
context: _ServicerContext,
|
|
125
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsResponse]]: ...
|
|
126
|
+
|
|
127
|
+
def add_AssistantServiceServicer_to_server(servicer: AssistantServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/ai/assistants/v1/common.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*yandex/cloud/ai/assistants/v1/common.proto\x12\x1dyandex.cloud.ai.assistants.v1\x1a\x1egoogle/protobuf/wrappers.proto\"Q\n\x17PromptTruncationOptions\x12\x36\n\x11max_prompt_tokens\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"w\n\x11\x43ompletionOptions\x12/\n\nmax_tokens\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0btemperature\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"a\n\x0fSearchIndexTool\x12\x18\n\x10search_index_ids\x18\x01 \x03(\t\x12\x34\n\x0fmax_num_results\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"Z\n\x04Tool\x12\x46\n\x0csearch_index\x18\x01 \x01(\x0b\x32..yandex.cloud.ai.assistants.v1.SearchIndexToolH\x00\x42\n\n\x08ToolTypeBq\n!yandex.cloud.api.ai.assistants.v1ZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1;assistantsb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.assistants.v1.common_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n!yandex.cloud.api.ai.assistants.v1ZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1;assistants'
|
|
25
|
+
_globals['_PROMPTTRUNCATIONOPTIONS']._serialized_start=109
|
|
26
|
+
_globals['_PROMPTTRUNCATIONOPTIONS']._serialized_end=190
|
|
27
|
+
_globals['_COMPLETIONOPTIONS']._serialized_start=192
|
|
28
|
+
_globals['_COMPLETIONOPTIONS']._serialized_end=311
|
|
29
|
+
_globals['_SEARCHINDEXTOOL']._serialized_start=313
|
|
30
|
+
_globals['_SEARCHINDEXTOOL']._serialized_end=410
|
|
31
|
+
_globals['_TOOL']._serialized_start=412
|
|
32
|
+
_globals['_TOOL']._serialized_end=502
|
|
33
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,91 @@
|
|
|
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.wrappers_pb2
|
|
12
|
+
import typing
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class PromptTruncationOptions(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
MAX_PROMPT_TOKENS_FIELD_NUMBER: builtins.int
|
|
21
|
+
@property
|
|
22
|
+
def max_prompt_tokens(self) -> google.protobuf.wrappers_pb2.Int64Value: ...
|
|
23
|
+
def __init__(
|
|
24
|
+
self,
|
|
25
|
+
*,
|
|
26
|
+
max_prompt_tokens: google.protobuf.wrappers_pb2.Int64Value | None = ...,
|
|
27
|
+
) -> None: ...
|
|
28
|
+
def HasField(self, field_name: typing.Literal["max_prompt_tokens", b"max_prompt_tokens"]) -> builtins.bool: ...
|
|
29
|
+
def ClearField(self, field_name: typing.Literal["max_prompt_tokens", b"max_prompt_tokens"]) -> None: ...
|
|
30
|
+
|
|
31
|
+
global___PromptTruncationOptions = PromptTruncationOptions
|
|
32
|
+
|
|
33
|
+
@typing.final
|
|
34
|
+
class CompletionOptions(google.protobuf.message.Message):
|
|
35
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
36
|
+
|
|
37
|
+
MAX_TOKENS_FIELD_NUMBER: builtins.int
|
|
38
|
+
TEMPERATURE_FIELD_NUMBER: builtins.int
|
|
39
|
+
@property
|
|
40
|
+
def max_tokens(self) -> google.protobuf.wrappers_pb2.Int64Value: ...
|
|
41
|
+
@property
|
|
42
|
+
def temperature(self) -> google.protobuf.wrappers_pb2.DoubleValue: ...
|
|
43
|
+
def __init__(
|
|
44
|
+
self,
|
|
45
|
+
*,
|
|
46
|
+
max_tokens: google.protobuf.wrappers_pb2.Int64Value | None = ...,
|
|
47
|
+
temperature: google.protobuf.wrappers_pb2.DoubleValue | None = ...,
|
|
48
|
+
) -> None: ...
|
|
49
|
+
def HasField(self, field_name: typing.Literal["max_tokens", b"max_tokens", "temperature", b"temperature"]) -> builtins.bool: ...
|
|
50
|
+
def ClearField(self, field_name: typing.Literal["max_tokens", b"max_tokens", "temperature", b"temperature"]) -> None: ...
|
|
51
|
+
|
|
52
|
+
global___CompletionOptions = CompletionOptions
|
|
53
|
+
|
|
54
|
+
@typing.final
|
|
55
|
+
class SearchIndexTool(google.protobuf.message.Message):
|
|
56
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
57
|
+
|
|
58
|
+
SEARCH_INDEX_IDS_FIELD_NUMBER: builtins.int
|
|
59
|
+
MAX_NUM_RESULTS_FIELD_NUMBER: builtins.int
|
|
60
|
+
@property
|
|
61
|
+
def search_index_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
62
|
+
@property
|
|
63
|
+
def max_num_results(self) -> google.protobuf.wrappers_pb2.Int64Value: ...
|
|
64
|
+
def __init__(
|
|
65
|
+
self,
|
|
66
|
+
*,
|
|
67
|
+
search_index_ids: collections.abc.Iterable[builtins.str] | None = ...,
|
|
68
|
+
max_num_results: google.protobuf.wrappers_pb2.Int64Value | None = ...,
|
|
69
|
+
) -> None: ...
|
|
70
|
+
def HasField(self, field_name: typing.Literal["max_num_results", b"max_num_results"]) -> builtins.bool: ...
|
|
71
|
+
def ClearField(self, field_name: typing.Literal["max_num_results", b"max_num_results", "search_index_ids", b"search_index_ids"]) -> None: ...
|
|
72
|
+
|
|
73
|
+
global___SearchIndexTool = SearchIndexTool
|
|
74
|
+
|
|
75
|
+
@typing.final
|
|
76
|
+
class Tool(google.protobuf.message.Message):
|
|
77
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
78
|
+
|
|
79
|
+
SEARCH_INDEX_FIELD_NUMBER: builtins.int
|
|
80
|
+
@property
|
|
81
|
+
def search_index(self) -> global___SearchIndexTool: ...
|
|
82
|
+
def __init__(
|
|
83
|
+
self,
|
|
84
|
+
*,
|
|
85
|
+
search_index: global___SearchIndexTool | None = ...,
|
|
86
|
+
) -> None: ...
|
|
87
|
+
def HasField(self, field_name: typing.Literal["ToolType", b"ToolType", "search_index", b"search_index"]) -> builtins.bool: ...
|
|
88
|
+
def ClearField(self, field_name: typing.Literal["ToolType", b"ToolType", "search_index", b"search_index"]) -> None: ...
|
|
89
|
+
def WhichOneof(self, oneof_group: typing.Literal["ToolType", b"ToolType"]) -> typing.Literal["search_index"] | None: ...
|
|
90
|
+
|
|
91
|
+
global___Tool = Tool
|
|
@@ -0,0 +1,17 @@
|
|
|
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(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
15
|
+
|
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
17
|
+
...
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/ai/assistants/v1/runs/run.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from yandex.cloud.ai.common import common_pb2 as yandex_dot_cloud_dot_ai_dot_common_dot_common__pb2
|
|
15
|
+
from yandex.cloud.ai.assistants.v1 import common_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_common__pb2
|
|
16
|
+
from yandex.cloud.ai.assistants.v1.threads import message_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_message__pb2
|
|
17
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/ai/assistants/v1/runs/run.proto\x12\"yandex.cloud.ai.assistants.v1.runs\x1a#yandex/cloud/ai/common/common.proto\x1a*yandex/cloud/ai/assistants/v1/common.proto\x1a\x33yandex/cloud/ai/assistants/v1/threads/message.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa7\x04\n\x03Run\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x61ssistant_id\x18\x02 \x01(\t\x12\x11\n\tthread_id\x18\x03 \x01(\t\x12\x12\n\ncreated_by\x18\x04 \x01(\t\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x06labels\x18\x06 \x03(\x0b\x32\x33.yandex.cloud.ai.assistants.v1.runs.Run.LabelsEntry\x12;\n\x05state\x18\x07 \x01(\x0b\x32,.yandex.cloud.ai.assistants.v1.runs.RunState\x12?\n\x05usage\x18\x08 \x01(\x0b\x32\x30.yandex.cloud.ai.assistants.v1.runs.ContentUsage\x12`\n custom_prompt_truncation_options\x18\t \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.PromptTruncationOptions\x12S\n\x19\x63ustom_completion_options\x18\n \x01(\x0b\x32\x30.yandex.cloud.ai.assistants.v1.CompletionOptions\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xbe\x02\n\x08RunState\x12\x46\n\x06status\x18\x01 \x01(\x0e\x32\x36.yandex.cloud.ai.assistants.v1.runs.RunState.RunStatus\x12.\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.yandex.cloud.ai.common.ErrorH\x00\x12K\n\x11\x63ompleted_message\x18\x03 \x01(\x0b\x32..yandex.cloud.ai.assistants.v1.threads.MessageH\x00\"`\n\tRunStatus\x12\x1a\n\x16RUN_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x42\x0b\n\tStateData\"V\n\x0c\x43ontentUsage\x12\x15\n\rprompt_tokens\x18\x01 \x01(\x03\x12\x19\n\x11\x63ompletion_tokens\x18\x02 \x01(\x03\x12\x14\n\x0ctotal_tokens\x18\x03 \x01(\x03\x42u\n&yandex.cloud.api.ai.assistants.v1.runsZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/runs;runsb\x06proto3')
|
|
21
|
+
|
|
22
|
+
_globals = globals()
|
|
23
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
24
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.assistants.v1.runs.run_pb2', _globals)
|
|
25
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
26
|
+
DESCRIPTOR._options = None
|
|
27
|
+
DESCRIPTOR._serialized_options = b'\n&yandex.cloud.api.ai.assistants.v1.runsZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/runs;runs'
|
|
28
|
+
_RUN_LABELSENTRY._options = None
|
|
29
|
+
_RUN_LABELSENTRY._serialized_options = b'8\001'
|
|
30
|
+
_globals['_RUN']._serialized_start=252
|
|
31
|
+
_globals['_RUN']._serialized_end=803
|
|
32
|
+
_globals['_RUN_LABELSENTRY']._serialized_start=758
|
|
33
|
+
_globals['_RUN_LABELSENTRY']._serialized_end=803
|
|
34
|
+
_globals['_RUNSTATE']._serialized_start=806
|
|
35
|
+
_globals['_RUNSTATE']._serialized_end=1124
|
|
36
|
+
_globals['_RUNSTATE_RUNSTATUS']._serialized_start=1015
|
|
37
|
+
_globals['_RUNSTATE_RUNSTATUS']._serialized_end=1111
|
|
38
|
+
_globals['_CONTENTUSAGE']._serialized_start=1126
|
|
39
|
+
_globals['_CONTENTUSAGE']._serialized_end=1212
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|