yandexcloud 0.317.0__py3-none-any.whl → 0.319.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.
- 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 +2 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/RECORD +135 -28
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,154 @@
|
|
|
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.internal.enum_type_wrapper
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import google.protobuf.timestamp_pb2
|
|
13
|
+
import sys
|
|
14
|
+
import typing
|
|
15
|
+
import yandex.cloud.ai.assistants.v1.common_pb2
|
|
16
|
+
import yandex.cloud.ai.assistants.v1.threads.message_pb2
|
|
17
|
+
import yandex.cloud.ai.common.common_pb2
|
|
18
|
+
|
|
19
|
+
if sys.version_info >= (3, 10):
|
|
20
|
+
import typing as typing_extensions
|
|
21
|
+
else:
|
|
22
|
+
import typing_extensions
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
25
|
+
|
|
26
|
+
@typing.final
|
|
27
|
+
class Run(google.protobuf.message.Message):
|
|
28
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
29
|
+
|
|
30
|
+
@typing.final
|
|
31
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
32
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
33
|
+
|
|
34
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
35
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
36
|
+
key: builtins.str
|
|
37
|
+
value: builtins.str
|
|
38
|
+
def __init__(
|
|
39
|
+
self,
|
|
40
|
+
*,
|
|
41
|
+
key: builtins.str = ...,
|
|
42
|
+
value: builtins.str = ...,
|
|
43
|
+
) -> None: ...
|
|
44
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
45
|
+
|
|
46
|
+
ID_FIELD_NUMBER: builtins.int
|
|
47
|
+
ASSISTANT_ID_FIELD_NUMBER: builtins.int
|
|
48
|
+
THREAD_ID_FIELD_NUMBER: builtins.int
|
|
49
|
+
CREATED_BY_FIELD_NUMBER: builtins.int
|
|
50
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
51
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
52
|
+
STATE_FIELD_NUMBER: builtins.int
|
|
53
|
+
USAGE_FIELD_NUMBER: builtins.int
|
|
54
|
+
CUSTOM_PROMPT_TRUNCATION_OPTIONS_FIELD_NUMBER: builtins.int
|
|
55
|
+
CUSTOM_COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
|
|
56
|
+
id: builtins.str
|
|
57
|
+
assistant_id: builtins.str
|
|
58
|
+
thread_id: builtins.str
|
|
59
|
+
created_by: builtins.str
|
|
60
|
+
@property
|
|
61
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
62
|
+
@property
|
|
63
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
64
|
+
@property
|
|
65
|
+
def state(self) -> global___RunState: ...
|
|
66
|
+
@property
|
|
67
|
+
def usage(self) -> global___ContentUsage: ...
|
|
68
|
+
@property
|
|
69
|
+
def custom_prompt_truncation_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions: ...
|
|
70
|
+
@property
|
|
71
|
+
def custom_completion_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions: ...
|
|
72
|
+
def __init__(
|
|
73
|
+
self,
|
|
74
|
+
*,
|
|
75
|
+
id: builtins.str = ...,
|
|
76
|
+
assistant_id: builtins.str = ...,
|
|
77
|
+
thread_id: builtins.str = ...,
|
|
78
|
+
created_by: builtins.str = ...,
|
|
79
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
80
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
81
|
+
state: global___RunState | None = ...,
|
|
82
|
+
usage: global___ContentUsage | None = ...,
|
|
83
|
+
custom_prompt_truncation_options: yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions | None = ...,
|
|
84
|
+
custom_completion_options: yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions | None = ...,
|
|
85
|
+
) -> None: ...
|
|
86
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "custom_completion_options", b"custom_completion_options", "custom_prompt_truncation_options", b"custom_prompt_truncation_options", "state", b"state", "usage", b"usage"]) -> builtins.bool: ...
|
|
87
|
+
def ClearField(self, field_name: typing.Literal["assistant_id", b"assistant_id", "created_at", b"created_at", "created_by", b"created_by", "custom_completion_options", b"custom_completion_options", "custom_prompt_truncation_options", b"custom_prompt_truncation_options", "id", b"id", "labels", b"labels", "state", b"state", "thread_id", b"thread_id", "usage", b"usage"]) -> None: ...
|
|
88
|
+
|
|
89
|
+
global___Run = Run
|
|
90
|
+
|
|
91
|
+
@typing.final
|
|
92
|
+
class RunState(google.protobuf.message.Message):
|
|
93
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
94
|
+
|
|
95
|
+
class _RunStatus:
|
|
96
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
97
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
98
|
+
|
|
99
|
+
class _RunStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[RunState._RunStatus.ValueType], builtins.type):
|
|
100
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
101
|
+
RUN_STATUS_UNSPECIFIED: RunState._RunStatus.ValueType # 0
|
|
102
|
+
PENDING: RunState._RunStatus.ValueType # 1
|
|
103
|
+
IN_PROGRESS: RunState._RunStatus.ValueType # 2
|
|
104
|
+
FAILED: RunState._RunStatus.ValueType # 3
|
|
105
|
+
COMPLETED: RunState._RunStatus.ValueType # 4
|
|
106
|
+
|
|
107
|
+
class RunStatus(_RunStatus, metaclass=_RunStatusEnumTypeWrapper): ...
|
|
108
|
+
RUN_STATUS_UNSPECIFIED: RunState.RunStatus.ValueType # 0
|
|
109
|
+
PENDING: RunState.RunStatus.ValueType # 1
|
|
110
|
+
IN_PROGRESS: RunState.RunStatus.ValueType # 2
|
|
111
|
+
FAILED: RunState.RunStatus.ValueType # 3
|
|
112
|
+
COMPLETED: RunState.RunStatus.ValueType # 4
|
|
113
|
+
|
|
114
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
115
|
+
ERROR_FIELD_NUMBER: builtins.int
|
|
116
|
+
COMPLETED_MESSAGE_FIELD_NUMBER: builtins.int
|
|
117
|
+
status: global___RunState.RunStatus.ValueType
|
|
118
|
+
@property
|
|
119
|
+
def error(self) -> yandex.cloud.ai.common.common_pb2.Error: ...
|
|
120
|
+
@property
|
|
121
|
+
def completed_message(self) -> yandex.cloud.ai.assistants.v1.threads.message_pb2.Message: ...
|
|
122
|
+
def __init__(
|
|
123
|
+
self,
|
|
124
|
+
*,
|
|
125
|
+
status: global___RunState.RunStatus.ValueType = ...,
|
|
126
|
+
error: yandex.cloud.ai.common.common_pb2.Error | None = ...,
|
|
127
|
+
completed_message: yandex.cloud.ai.assistants.v1.threads.message_pb2.Message | None = ...,
|
|
128
|
+
) -> None: ...
|
|
129
|
+
def HasField(self, field_name: typing.Literal["StateData", b"StateData", "completed_message", b"completed_message", "error", b"error"]) -> builtins.bool: ...
|
|
130
|
+
def ClearField(self, field_name: typing.Literal["StateData", b"StateData", "completed_message", b"completed_message", "error", b"error", "status", b"status"]) -> None: ...
|
|
131
|
+
def WhichOneof(self, oneof_group: typing.Literal["StateData", b"StateData"]) -> typing.Literal["error", "completed_message"] | None: ...
|
|
132
|
+
|
|
133
|
+
global___RunState = RunState
|
|
134
|
+
|
|
135
|
+
@typing.final
|
|
136
|
+
class ContentUsage(google.protobuf.message.Message):
|
|
137
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
138
|
+
|
|
139
|
+
PROMPT_TOKENS_FIELD_NUMBER: builtins.int
|
|
140
|
+
COMPLETION_TOKENS_FIELD_NUMBER: builtins.int
|
|
141
|
+
TOTAL_TOKENS_FIELD_NUMBER: builtins.int
|
|
142
|
+
prompt_tokens: builtins.int
|
|
143
|
+
completion_tokens: builtins.int
|
|
144
|
+
total_tokens: builtins.int
|
|
145
|
+
def __init__(
|
|
146
|
+
self,
|
|
147
|
+
*,
|
|
148
|
+
prompt_tokens: builtins.int = ...,
|
|
149
|
+
completion_tokens: builtins.int = ...,
|
|
150
|
+
total_tokens: builtins.int = ...,
|
|
151
|
+
) -> None: ...
|
|
152
|
+
def ClearField(self, field_name: typing.Literal["completion_tokens", b"completion_tokens", "prompt_tokens", b"prompt_tokens", "total_tokens", b"total_tokens"]) -> None: ...
|
|
153
|
+
|
|
154
|
+
global___ContentUsage = ContentUsage
|
|
@@ -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
|
+
...
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/ai/assistants/v1/runs/run_service.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 yandex.cloud.ai.assistants.v1.runs import run_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__pb2
|
|
18
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
19
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
20
|
+
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4yandex/cloud/ai/assistants/v1/runs/run_service.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,yandex/cloud/ai/assistants/v1/runs/run.proto\x1a\x1dyandex/cloud/validation.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xe0\x03\n\x10\x43reateRunRequest\x12\x1a\n\x0c\x61ssistant_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x17\n\tthread_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12P\n\x06labels\x18\x03 \x03(\x0b\x32@.yandex.cloud.ai.assistants.v1.runs.CreateRunRequest.LabelsEntry\x12O\n\x13\x61\x64\x64itional_messages\x18\x04 \x03(\x0b\x32\x32.yandex.cloud.ai.assistants.v1.threads.MessageData\x12`\n custom_prompt_truncation_options\x18\x05 \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.PromptTruncationOptions\x12S\n\x19\x63ustom_completion_options\x18\x06 \x01(\x0b\x32\x30.yandex.cloud.ai.assistants.v1.CompletionOptions\x12\x0e\n\x06stream\x18\x07 \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"_\n\x10ListenRunRequest\x12\x14\n\x06run_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x35\n\x10\x65vents_start_idx\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"%\n\rGetRunRequest\x12\x14\n\x06run_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"4\n\x19GetLastRunByThreadRequest\x12\x17\n\tthread_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"Q\n\x0fListRunsRequest\x12\x17\n\tfolder_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x11\n\tpage_size\x18\x02 \x01(\x03\x12\x12\n\npage_token\x18\x03 \x01(\t\"b\n\x10ListRunsResponse\x12\x35\n\x04runs\x18\x01 \x03(\x0b\x32\'.yandex.cloud.ai.assistants.v1.runs.Run\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x0cStreamCursor\x12\x19\n\x11\x63urrent_event_idx\x18\x01 \x01(\x03\x12 \n\x18num_user_events_received\x18\x02 \x01(\x03\"\xd4\x03\n\x0bStreamEvent\x12M\n\nevent_type\x18\x01 \x01(\x0e\x32\x39.yandex.cloud.ai.assistants.v1.runs.StreamEvent.EventType\x12G\n\rstream_cursor\x18\x02 \x01(\x0b\x32\x30.yandex.cloud.ai.assistants.v1.runs.StreamCursor\x12.\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1d.yandex.cloud.ai.common.ErrorH\x00\x12P\n\x0fpartial_message\x18\x04 \x01(\x0b\x32\x35.yandex.cloud.ai.assistants.v1.threads.MessageContentH\x00\x12K\n\x11\x63ompleted_message\x18\x05 \x01(\x0b\x32..yandex.cloud.ai.assistants.v1.threads.MessageH\x00\"Q\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fPARTIAL_MESSAGE\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x42\x0b\n\tEventData2\xee\x05\n\nRunService\x12\x87\x01\n\x06\x43reate\x12\x34.yandex.cloud.ai.assistants.v1.runs.CreateRunRequest\x1a\'.yandex.cloud.ai.assistants.v1.runs.Run\"\x1e\x82\xd3\xe4\x93\x02\x18\"\x13/assistants/v1/runs:\x01*\x12\x95\x01\n\x06Listen\x12\x34.yandex.cloud.ai.assistants.v1.runs.ListenRunRequest\x1a/.yandex.cloud.ai.assistants.v1.runs.StreamEvent\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/assistants/v1/runs/listen0\x01\x12\x87\x01\n\x03Get\x12\x31.yandex.cloud.ai.assistants.v1.runs.GetRunRequest\x1a\'.yandex.cloud.ai.assistants.v1.runs.Run\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/assistants/v1/runs/{run_id}\x12\xa2\x01\n\x0fGetLastByThread\x12=.yandex.cloud.ai.assistants.v1.runs.GetLastRunByThreadRequest\x1a\'.yandex.cloud.ai.assistants.v1.runs.Run\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/assistants/v1/runs:getByThread\x12\x8e\x01\n\x04List\x12\x33.yandex.cloud.ai.assistants.v1.runs.ListRunsRequest\x1a\x34.yandex.cloud.ai.assistants.v1.runs.ListRunsResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/assistants/v1/runsBu\n&yandex.cloud.api.ai.assistants.v1.runsZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/runs;runsb\x06proto3')
|
|
24
|
+
|
|
25
|
+
_globals = globals()
|
|
26
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
27
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.assistants.v1.runs.run_service_pb2', _globals)
|
|
28
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
29
|
+
DESCRIPTOR._options = None
|
|
30
|
+
DESCRIPTOR._serialized_options = b'\n&yandex.cloud.api.ai.assistants.v1.runsZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/runs;runs'
|
|
31
|
+
_CREATERUNREQUEST_LABELSENTRY._options = None
|
|
32
|
+
_CREATERUNREQUEST_LABELSENTRY._serialized_options = b'8\001'
|
|
33
|
+
_CREATERUNREQUEST.fields_by_name['assistant_id']._options = None
|
|
34
|
+
_CREATERUNREQUEST.fields_by_name['assistant_id']._serialized_options = b'\350\3071\001'
|
|
35
|
+
_CREATERUNREQUEST.fields_by_name['thread_id']._options = None
|
|
36
|
+
_CREATERUNREQUEST.fields_by_name['thread_id']._serialized_options = b'\350\3071\001'
|
|
37
|
+
_LISTENRUNREQUEST.fields_by_name['run_id']._options = None
|
|
38
|
+
_LISTENRUNREQUEST.fields_by_name['run_id']._serialized_options = b'\350\3071\001'
|
|
39
|
+
_GETRUNREQUEST.fields_by_name['run_id']._options = None
|
|
40
|
+
_GETRUNREQUEST.fields_by_name['run_id']._serialized_options = b'\350\3071\001'
|
|
41
|
+
_GETLASTRUNBYTHREADREQUEST.fields_by_name['thread_id']._options = None
|
|
42
|
+
_GETLASTRUNBYTHREADREQUEST.fields_by_name['thread_id']._serialized_options = b'\350\3071\001'
|
|
43
|
+
_LISTRUNSREQUEST.fields_by_name['folder_id']._options = None
|
|
44
|
+
_LISTRUNSREQUEST.fields_by_name['folder_id']._serialized_options = b'\350\3071\001'
|
|
45
|
+
_RUNSERVICE.methods_by_name['Create']._options = None
|
|
46
|
+
_RUNSERVICE.methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\030\"\023/assistants/v1/runs:\001*'
|
|
47
|
+
_RUNSERVICE.methods_by_name['Listen']._options = None
|
|
48
|
+
_RUNSERVICE.methods_by_name['Listen']._serialized_options = b'\202\323\344\223\002\034\022\032/assistants/v1/runs/listen'
|
|
49
|
+
_RUNSERVICE.methods_by_name['Get']._options = None
|
|
50
|
+
_RUNSERVICE.methods_by_name['Get']._serialized_options = b'\202\323\344\223\002\036\022\034/assistants/v1/runs/{run_id}'
|
|
51
|
+
_RUNSERVICE.methods_by_name['GetLastByThread']._options = None
|
|
52
|
+
_RUNSERVICE.methods_by_name['GetLastByThread']._serialized_options = b'\202\323\344\223\002!\022\037/assistants/v1/runs:getByThread'
|
|
53
|
+
_RUNSERVICE.methods_by_name['List']._options = None
|
|
54
|
+
_RUNSERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002\025\022\023/assistants/v1/runs'
|
|
55
|
+
_globals['_CREATERUNREQUEST']._serialized_start=366
|
|
56
|
+
_globals['_CREATERUNREQUEST']._serialized_end=846
|
|
57
|
+
_globals['_CREATERUNREQUEST_LABELSENTRY']._serialized_start=801
|
|
58
|
+
_globals['_CREATERUNREQUEST_LABELSENTRY']._serialized_end=846
|
|
59
|
+
_globals['_LISTENRUNREQUEST']._serialized_start=848
|
|
60
|
+
_globals['_LISTENRUNREQUEST']._serialized_end=943
|
|
61
|
+
_globals['_GETRUNREQUEST']._serialized_start=945
|
|
62
|
+
_globals['_GETRUNREQUEST']._serialized_end=982
|
|
63
|
+
_globals['_GETLASTRUNBYTHREADREQUEST']._serialized_start=984
|
|
64
|
+
_globals['_GETLASTRUNBYTHREADREQUEST']._serialized_end=1036
|
|
65
|
+
_globals['_LISTRUNSREQUEST']._serialized_start=1038
|
|
66
|
+
_globals['_LISTRUNSREQUEST']._serialized_end=1119
|
|
67
|
+
_globals['_LISTRUNSRESPONSE']._serialized_start=1121
|
|
68
|
+
_globals['_LISTRUNSRESPONSE']._serialized_end=1219
|
|
69
|
+
_globals['_STREAMCURSOR']._serialized_start=1221
|
|
70
|
+
_globals['_STREAMCURSOR']._serialized_end=1296
|
|
71
|
+
_globals['_STREAMEVENT']._serialized_start=1299
|
|
72
|
+
_globals['_STREAMEVENT']._serialized_end=1767
|
|
73
|
+
_globals['_STREAMEVENT_EVENTTYPE']._serialized_start=1673
|
|
74
|
+
_globals['_STREAMEVENT_EVENTTYPE']._serialized_end=1754
|
|
75
|
+
_globals['_RUNSERVICE']._serialized_start=1770
|
|
76
|
+
_globals['_RUNSERVICE']._serialized_end=2520
|
|
77
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,237 @@
|
|
|
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.internal.enum_type_wrapper
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import google.protobuf.wrappers_pb2
|
|
13
|
+
import sys
|
|
14
|
+
import typing
|
|
15
|
+
import yandex.cloud.ai.assistants.v1.common_pb2
|
|
16
|
+
import yandex.cloud.ai.assistants.v1.runs.run_pb2
|
|
17
|
+
import yandex.cloud.ai.assistants.v1.threads.message_pb2
|
|
18
|
+
import yandex.cloud.ai.common.common_pb2
|
|
19
|
+
|
|
20
|
+
if sys.version_info >= (3, 10):
|
|
21
|
+
import typing as typing_extensions
|
|
22
|
+
else:
|
|
23
|
+
import typing_extensions
|
|
24
|
+
|
|
25
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
26
|
+
|
|
27
|
+
@typing.final
|
|
28
|
+
class CreateRunRequest(google.protobuf.message.Message):
|
|
29
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
30
|
+
|
|
31
|
+
@typing.final
|
|
32
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
33
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
34
|
+
|
|
35
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
36
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
37
|
+
key: builtins.str
|
|
38
|
+
value: builtins.str
|
|
39
|
+
def __init__(
|
|
40
|
+
self,
|
|
41
|
+
*,
|
|
42
|
+
key: builtins.str = ...,
|
|
43
|
+
value: builtins.str = ...,
|
|
44
|
+
) -> None: ...
|
|
45
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
46
|
+
|
|
47
|
+
ASSISTANT_ID_FIELD_NUMBER: builtins.int
|
|
48
|
+
THREAD_ID_FIELD_NUMBER: builtins.int
|
|
49
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
50
|
+
ADDITIONAL_MESSAGES_FIELD_NUMBER: builtins.int
|
|
51
|
+
CUSTOM_PROMPT_TRUNCATION_OPTIONS_FIELD_NUMBER: builtins.int
|
|
52
|
+
CUSTOM_COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
|
|
53
|
+
STREAM_FIELD_NUMBER: builtins.int
|
|
54
|
+
assistant_id: builtins.str
|
|
55
|
+
thread_id: builtins.str
|
|
56
|
+
stream: builtins.bool
|
|
57
|
+
@property
|
|
58
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
59
|
+
@property
|
|
60
|
+
def additional_messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.threads.message_pb2.MessageData]: ...
|
|
61
|
+
@property
|
|
62
|
+
def custom_prompt_truncation_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions: ...
|
|
63
|
+
@property
|
|
64
|
+
def custom_completion_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions: ...
|
|
65
|
+
def __init__(
|
|
66
|
+
self,
|
|
67
|
+
*,
|
|
68
|
+
assistant_id: builtins.str = ...,
|
|
69
|
+
thread_id: builtins.str = ...,
|
|
70
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
71
|
+
additional_messages: collections.abc.Iterable[yandex.cloud.ai.assistants.v1.threads.message_pb2.MessageData] | None = ...,
|
|
72
|
+
custom_prompt_truncation_options: yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions | None = ...,
|
|
73
|
+
custom_completion_options: yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions | None = ...,
|
|
74
|
+
stream: builtins.bool = ...,
|
|
75
|
+
) -> None: ...
|
|
76
|
+
def HasField(self, field_name: typing.Literal["custom_completion_options", b"custom_completion_options", "custom_prompt_truncation_options", b"custom_prompt_truncation_options"]) -> builtins.bool: ...
|
|
77
|
+
def ClearField(self, field_name: typing.Literal["additional_messages", b"additional_messages", "assistant_id", b"assistant_id", "custom_completion_options", b"custom_completion_options", "custom_prompt_truncation_options", b"custom_prompt_truncation_options", "labels", b"labels", "stream", b"stream", "thread_id", b"thread_id"]) -> None: ...
|
|
78
|
+
|
|
79
|
+
global___CreateRunRequest = CreateRunRequest
|
|
80
|
+
|
|
81
|
+
@typing.final
|
|
82
|
+
class ListenRunRequest(google.protobuf.message.Message):
|
|
83
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
84
|
+
|
|
85
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
|
86
|
+
EVENTS_START_IDX_FIELD_NUMBER: builtins.int
|
|
87
|
+
run_id: builtins.str
|
|
88
|
+
@property
|
|
89
|
+
def events_start_idx(self) -> google.protobuf.wrappers_pb2.Int64Value: ...
|
|
90
|
+
def __init__(
|
|
91
|
+
self,
|
|
92
|
+
*,
|
|
93
|
+
run_id: builtins.str = ...,
|
|
94
|
+
events_start_idx: google.protobuf.wrappers_pb2.Int64Value | None = ...,
|
|
95
|
+
) -> None: ...
|
|
96
|
+
def HasField(self, field_name: typing.Literal["events_start_idx", b"events_start_idx"]) -> builtins.bool: ...
|
|
97
|
+
def ClearField(self, field_name: typing.Literal["events_start_idx", b"events_start_idx", "run_id", b"run_id"]) -> None: ...
|
|
98
|
+
|
|
99
|
+
global___ListenRunRequest = ListenRunRequest
|
|
100
|
+
|
|
101
|
+
@typing.final
|
|
102
|
+
class GetRunRequest(google.protobuf.message.Message):
|
|
103
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
104
|
+
|
|
105
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
|
106
|
+
run_id: builtins.str
|
|
107
|
+
def __init__(
|
|
108
|
+
self,
|
|
109
|
+
*,
|
|
110
|
+
run_id: builtins.str = ...,
|
|
111
|
+
) -> None: ...
|
|
112
|
+
def ClearField(self, field_name: typing.Literal["run_id", b"run_id"]) -> None: ...
|
|
113
|
+
|
|
114
|
+
global___GetRunRequest = GetRunRequest
|
|
115
|
+
|
|
116
|
+
@typing.final
|
|
117
|
+
class GetLastRunByThreadRequest(google.protobuf.message.Message):
|
|
118
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
119
|
+
|
|
120
|
+
THREAD_ID_FIELD_NUMBER: builtins.int
|
|
121
|
+
thread_id: builtins.str
|
|
122
|
+
def __init__(
|
|
123
|
+
self,
|
|
124
|
+
*,
|
|
125
|
+
thread_id: builtins.str = ...,
|
|
126
|
+
) -> None: ...
|
|
127
|
+
def ClearField(self, field_name: typing.Literal["thread_id", b"thread_id"]) -> None: ...
|
|
128
|
+
|
|
129
|
+
global___GetLastRunByThreadRequest = GetLastRunByThreadRequest
|
|
130
|
+
|
|
131
|
+
@typing.final
|
|
132
|
+
class ListRunsRequest(google.protobuf.message.Message):
|
|
133
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
134
|
+
|
|
135
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
136
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
137
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
138
|
+
folder_id: builtins.str
|
|
139
|
+
page_size: builtins.int
|
|
140
|
+
page_token: builtins.str
|
|
141
|
+
def __init__(
|
|
142
|
+
self,
|
|
143
|
+
*,
|
|
144
|
+
folder_id: builtins.str = ...,
|
|
145
|
+
page_size: builtins.int = ...,
|
|
146
|
+
page_token: builtins.str = ...,
|
|
147
|
+
) -> None: ...
|
|
148
|
+
def ClearField(self, field_name: typing.Literal["folder_id", b"folder_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
149
|
+
|
|
150
|
+
global___ListRunsRequest = ListRunsRequest
|
|
151
|
+
|
|
152
|
+
@typing.final
|
|
153
|
+
class ListRunsResponse(google.protobuf.message.Message):
|
|
154
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
155
|
+
|
|
156
|
+
RUNS_FIELD_NUMBER: builtins.int
|
|
157
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
158
|
+
next_page_token: builtins.str
|
|
159
|
+
@property
|
|
160
|
+
def runs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.runs.run_pb2.Run]: ...
|
|
161
|
+
def __init__(
|
|
162
|
+
self,
|
|
163
|
+
*,
|
|
164
|
+
runs: collections.abc.Iterable[yandex.cloud.ai.assistants.v1.runs.run_pb2.Run] | None = ...,
|
|
165
|
+
next_page_token: builtins.str = ...,
|
|
166
|
+
) -> None: ...
|
|
167
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "runs", b"runs"]) -> None: ...
|
|
168
|
+
|
|
169
|
+
global___ListRunsResponse = ListRunsResponse
|
|
170
|
+
|
|
171
|
+
@typing.final
|
|
172
|
+
class StreamCursor(google.protobuf.message.Message):
|
|
173
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
174
|
+
|
|
175
|
+
CURRENT_EVENT_IDX_FIELD_NUMBER: builtins.int
|
|
176
|
+
NUM_USER_EVENTS_RECEIVED_FIELD_NUMBER: builtins.int
|
|
177
|
+
current_event_idx: builtins.int
|
|
178
|
+
num_user_events_received: builtins.int
|
|
179
|
+
def __init__(
|
|
180
|
+
self,
|
|
181
|
+
*,
|
|
182
|
+
current_event_idx: builtins.int = ...,
|
|
183
|
+
num_user_events_received: builtins.int = ...,
|
|
184
|
+
) -> None: ...
|
|
185
|
+
def ClearField(self, field_name: typing.Literal["current_event_idx", b"current_event_idx", "num_user_events_received", b"num_user_events_received"]) -> None: ...
|
|
186
|
+
|
|
187
|
+
global___StreamCursor = StreamCursor
|
|
188
|
+
|
|
189
|
+
@typing.final
|
|
190
|
+
class StreamEvent(google.protobuf.message.Message):
|
|
191
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
192
|
+
|
|
193
|
+
class _EventType:
|
|
194
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
195
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
196
|
+
|
|
197
|
+
class _EventTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[StreamEvent._EventType.ValueType], builtins.type):
|
|
198
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
199
|
+
EVENT_TYPE_UNSPECIFIED: StreamEvent._EventType.ValueType # 0
|
|
200
|
+
PARTIAL_MESSAGE: StreamEvent._EventType.ValueType # 1
|
|
201
|
+
ERROR: StreamEvent._EventType.ValueType # 2
|
|
202
|
+
DONE: StreamEvent._EventType.ValueType # 3
|
|
203
|
+
|
|
204
|
+
class EventType(_EventType, metaclass=_EventTypeEnumTypeWrapper): ...
|
|
205
|
+
EVENT_TYPE_UNSPECIFIED: StreamEvent.EventType.ValueType # 0
|
|
206
|
+
PARTIAL_MESSAGE: StreamEvent.EventType.ValueType # 1
|
|
207
|
+
ERROR: StreamEvent.EventType.ValueType # 2
|
|
208
|
+
DONE: StreamEvent.EventType.ValueType # 3
|
|
209
|
+
|
|
210
|
+
EVENT_TYPE_FIELD_NUMBER: builtins.int
|
|
211
|
+
STREAM_CURSOR_FIELD_NUMBER: builtins.int
|
|
212
|
+
ERROR_FIELD_NUMBER: builtins.int
|
|
213
|
+
PARTIAL_MESSAGE_FIELD_NUMBER: builtins.int
|
|
214
|
+
COMPLETED_MESSAGE_FIELD_NUMBER: builtins.int
|
|
215
|
+
event_type: global___StreamEvent.EventType.ValueType
|
|
216
|
+
@property
|
|
217
|
+
def stream_cursor(self) -> global___StreamCursor: ...
|
|
218
|
+
@property
|
|
219
|
+
def error(self) -> yandex.cloud.ai.common.common_pb2.Error: ...
|
|
220
|
+
@property
|
|
221
|
+
def partial_message(self) -> yandex.cloud.ai.assistants.v1.threads.message_pb2.MessageContent: ...
|
|
222
|
+
@property
|
|
223
|
+
def completed_message(self) -> yandex.cloud.ai.assistants.v1.threads.message_pb2.Message: ...
|
|
224
|
+
def __init__(
|
|
225
|
+
self,
|
|
226
|
+
*,
|
|
227
|
+
event_type: global___StreamEvent.EventType.ValueType = ...,
|
|
228
|
+
stream_cursor: global___StreamCursor | None = ...,
|
|
229
|
+
error: yandex.cloud.ai.common.common_pb2.Error | None = ...,
|
|
230
|
+
partial_message: yandex.cloud.ai.assistants.v1.threads.message_pb2.MessageContent | None = ...,
|
|
231
|
+
completed_message: yandex.cloud.ai.assistants.v1.threads.message_pb2.Message | None = ...,
|
|
232
|
+
) -> None: ...
|
|
233
|
+
def HasField(self, field_name: typing.Literal["EventData", b"EventData", "completed_message", b"completed_message", "error", b"error", "partial_message", b"partial_message", "stream_cursor", b"stream_cursor"]) -> builtins.bool: ...
|
|
234
|
+
def ClearField(self, field_name: typing.Literal["EventData", b"EventData", "completed_message", b"completed_message", "error", b"error", "event_type", b"event_type", "partial_message", b"partial_message", "stream_cursor", b"stream_cursor"]) -> None: ...
|
|
235
|
+
def WhichOneof(self, oneof_group: typing.Literal["EventData", b"EventData"]) -> typing.Literal["error", "partial_message", "completed_message"] | None: ...
|
|
236
|
+
|
|
237
|
+
global___StreamEvent = StreamEvent
|