yandexcloud 0.320.0__py3-none-any.whl → 0.322.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/v1/assistant_pb2.pyi +38 -8
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.pyi +89 -15
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.py +18 -9
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.pyi +30 -6
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +37 -6
- yandex/cloud/ai/assistants/v1/runs/run_pb2.pyi +55 -9
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi +74 -11
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.py +18 -8
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.pyi +35 -5
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +15 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.pyi +8 -1
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.pyi +15 -1
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.py +10 -5
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.pyi +14 -2
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +45 -9
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.pyi +52 -9
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.py +16 -8
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.pyi +26 -5
- yandex/cloud/ai/assistants/v1/threads/message_pb2.py +18 -16
- yandex/cloud/ai/assistants/v1/threads/message_pb2.pyi +84 -10
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.pyi +21 -3
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.py +13 -6
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.pyi +24 -3
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.pyi +22 -5
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.pyi +47 -7
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.py +16 -8
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.pyi +26 -5
- yandex/cloud/ai/assistants/v1/users/user_pb2.pyi +21 -5
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.pyi +43 -6
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.py +16 -8
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.pyi +26 -5
- yandex/cloud/ai/dataset/__init__.py +0 -0
- yandex/cloud/ai/dataset/v1/__init__.py +0 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2.py +35 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2.pyi +161 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2_grpc.py +4 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +117 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +520 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.py +378 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.pyi +237 -0
- yandex/cloud/ai/files/v1/file_pb2.pyi +22 -5
- yandex/cloud/ai/files/v1/file_service_pb2.pyi +53 -6
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.py +18 -9
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.pyi +30 -6
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.py +30 -13
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.pyi +197 -0
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.py +14 -14
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.pyi +9 -1
- yandex/cloud/apploadbalancer/v1/load_balancer_pb2.py +52 -51
- yandex/cloud/apploadbalancer/v1/load_balancer_pb2.pyi +11 -1
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2.py +35 -0
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2.pyi +62 -0
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2_grpc.py +4 -0
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2_grpc.pyi +17 -0
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.py +44 -43
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.pyi +25 -6
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.py +30 -29
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.pyi +17 -4
- yandex/cloud/compute/v1/disk_pb2.py +12 -11
- yandex/cloud/compute/v1/disk_pb2.pyi +9 -2
- yandex/cloud/compute/v1/disk_service_pb2.py +36 -34
- yandex/cloud/compute/v1/disk_service_pb2.pyi +5 -1
- yandex/cloud/compute/v1/image_pb2.py +12 -11
- yandex/cloud/compute/v1/image_pb2.pyi +9 -2
- yandex/cloud/compute/v1/instance_service_pb2.py +39 -37
- yandex/cloud/compute/v1/instance_service_pb2.pyi +11 -7
- yandex/cloud/compute/v1/kek_pb2.py +26 -0
- yandex/cloud/compute/v1/kek_pb2.pyi +31 -0
- yandex/cloud/compute/v1/kek_pb2_grpc.py +4 -0
- yandex/cloud/compute/v1/kek_pb2_grpc.pyi +17 -0
- yandex/cloud/compute/v1/snapshot_pb2.py +8 -7
- yandex/cloud/compute/v1/snapshot_pb2.pyi +9 -2
- yandex/cloud/datasphere/v1/project_pb2.py +6 -8
- yandex/cloud/datasphere/v1/project_pb2.pyi +1 -35
- yandex/cloud/datasphere/v1/project_service_pb2.py +39 -70
- yandex/cloud/datasphere/v1/project_service_pb2.pyi +0 -171
- yandex/cloud/datasphere/v1/project_service_pb2_grpc.py +0 -102
- yandex/cloud/datasphere/v1/project_service_pb2_grpc.pyi +0 -60
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +21 -19
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +50 -1
- yandex/cloud/datasphere/v2/project_pb2.py +11 -15
- yandex/cloud/datasphere/v2/project_pb2.pyi +1 -55
- yandex/cloud/datasphere/v2/project_service_pb2.py +73 -84
- yandex/cloud/datasphere/v2/project_service_pb2.pyi +102 -119
- yandex/cloud/datasphere/v2/project_service_pb2_grpc.py +34 -70
- yandex/cloud/datasphere/v2/project_service_pb2_grpc.pyi +20 -52
- yandex/cloud/datasphere/v2/resource_types_pb2.py +2 -2
- yandex/cloud/datasphere/v2/resource_types_pb2.pyi +0 -4
- yandex/cloud/datatransfer/v1/endpoint/postgres_pb2.pyi +2 -2
- yandex/cloud/k8s/v1/cluster_service_pb2.py +38 -38
- yandex/cloud/k8s/v1/cluster_service_pb2.pyi +8 -2
- yandex/cloud/mdb/greenplum/v1/pxf_pb2.pyi +1 -1
- yandex/cloud/mdb/kafka/v1/cluster_pb2.py +26 -24
- yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +32 -5
- yandex/cloud/mdb/kafka/v1/connector_service_pb2.py +37 -37
- yandex/cloud/mdb/kafka/v1/user_pb2.pyi +1 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql15_1c_pb2.py +15 -15
- yandex/cloud/mdb/postgresql/v1/config/postgresql15_1c_pb2.pyi +2 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql15_pb2.py +15 -15
- yandex/cloud/mdb/postgresql/v1/config/postgresql15_pb2.pyi +2 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql16_1c_pb2.py +15 -15
- yandex/cloud/mdb/postgresql/v1/config/postgresql16_1c_pb2.pyi +2 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql16_pb2.py +15 -15
- yandex/cloud/mdb/postgresql/v1/config/postgresql16_pb2.pyi +2 -0
- yandex/cloud/mdb/redis/v1/config/redis_pb2.py +16 -8
- yandex/cloud/mdb/redis/v1/config/redis_pb2.pyi +56 -2
- {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/RECORD +113 -95
- {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/top_level.txt +0 -0
|
@@ -17,6 +17,8 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
|
17
17
|
|
|
18
18
|
@typing.final
|
|
19
19
|
class Assistant(google.protobuf.message.Message):
|
|
20
|
+
"""Assistant represents an AI assistant configuration with various settings and metadata."""
|
|
21
|
+
|
|
20
22
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
21
23
|
|
|
22
24
|
@typing.final
|
|
@@ -52,29 +54,57 @@ class Assistant(google.protobuf.message.Message):
|
|
|
52
54
|
COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
|
|
53
55
|
TOOLS_FIELD_NUMBER: builtins.int
|
|
54
56
|
id: builtins.str
|
|
57
|
+
"""Unique identifier of the assistant."""
|
|
55
58
|
folder_id: builtins.str
|
|
59
|
+
"""ID of the folder that the assistant belongs to."""
|
|
56
60
|
name: builtins.str
|
|
61
|
+
"""Name of the assistant."""
|
|
57
62
|
description: builtins.str
|
|
63
|
+
"""Description of the assistant."""
|
|
58
64
|
created_by: builtins.str
|
|
65
|
+
"""Identifier of the subject who created this assistant."""
|
|
59
66
|
updated_by: builtins.str
|
|
67
|
+
"""Identifier of the subject who last updated this assistant."""
|
|
60
68
|
model_uri: builtins.str
|
|
69
|
+
"""The [ID of the model](/docs/foundation-models/concepts/yandexgpt/models) to be used for completion generation."""
|
|
61
70
|
instruction: builtins.str
|
|
71
|
+
"""Instructions or guidelines that the assistant should follow when generating responses or performing tasks.
|
|
72
|
+
These instructions can help guide the assistant's behavior and responses.
|
|
73
|
+
"""
|
|
62
74
|
@property
|
|
63
|
-
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
75
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
76
|
+
"""Timestamp representing when the assistant was created."""
|
|
77
|
+
|
|
64
78
|
@property
|
|
65
|
-
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
79
|
+
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
80
|
+
"""Timestamp representing the last time this assistant was updated."""
|
|
81
|
+
|
|
66
82
|
@property
|
|
67
|
-
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
83
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
84
|
+
"""Configuration for the expiration of the assistant, defining when and how the assistant will expire."""
|
|
85
|
+
|
|
68
86
|
@property
|
|
69
|
-
def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
87
|
+
def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
88
|
+
"""Timestamp representing when the assistant will expire."""
|
|
89
|
+
|
|
70
90
|
@property
|
|
71
|
-
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
91
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
92
|
+
"""Set of key-value pairs that can be used to organize and categorize the assistant."""
|
|
93
|
+
|
|
72
94
|
@property
|
|
73
|
-
def prompt_truncation_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions:
|
|
95
|
+
def prompt_truncation_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions:
|
|
96
|
+
"""Configuration options for truncating the prompt when the token count exceeds a specified limit."""
|
|
97
|
+
|
|
74
98
|
@property
|
|
75
|
-
def completion_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions:
|
|
99
|
+
def completion_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions:
|
|
100
|
+
"""Configuration options for completion generation."""
|
|
101
|
+
|
|
76
102
|
@property
|
|
77
|
-
def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.common_pb2.Tool]:
|
|
103
|
+
def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.common_pb2.Tool]:
|
|
104
|
+
"""List of tools that the assistant can use to perform additional tasks.
|
|
105
|
+
One example is the SearchIndexTool, which is used for Retrieval-Augmented Generation (RAG).
|
|
106
|
+
"""
|
|
107
|
+
|
|
78
108
|
def __init__(
|
|
79
109
|
self,
|
|
80
110
|
*,
|
|
@@ -18,6 +18,8 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
|
18
18
|
|
|
19
19
|
@typing.final
|
|
20
20
|
class CreateAssistantRequest(google.protobuf.message.Message):
|
|
21
|
+
"""Request to create a new assistant."""
|
|
22
|
+
|
|
21
23
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
22
24
|
|
|
23
25
|
@typing.final
|
|
@@ -48,19 +50,37 @@ class CreateAssistantRequest(google.protobuf.message.Message):
|
|
|
48
50
|
TOOLS_FIELD_NUMBER: builtins.int
|
|
49
51
|
folder_id: builtins.str
|
|
50
52
|
name: builtins.str
|
|
53
|
+
"""Name of the assistant."""
|
|
51
54
|
description: builtins.str
|
|
55
|
+
"""Description of the assistant."""
|
|
52
56
|
model_uri: builtins.str
|
|
57
|
+
"""The [ID of the model](/docs/foundation-models/concepts/yandexgpt/models) to be used for completion generation."""
|
|
53
58
|
instruction: builtins.str
|
|
59
|
+
"""Instructions or guidelines that the assistant should follow when generating responses or performing tasks.
|
|
60
|
+
These instructions can help guide the assistant's behavior and responses.
|
|
61
|
+
"""
|
|
54
62
|
@property
|
|
55
|
-
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
63
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
64
|
+
"""Expiration configuration for the assistant."""
|
|
65
|
+
|
|
56
66
|
@property
|
|
57
|
-
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
67
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
68
|
+
"""Set of key-value pairs to label the user."""
|
|
69
|
+
|
|
58
70
|
@property
|
|
59
|
-
def prompt_truncation_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions:
|
|
71
|
+
def prompt_truncation_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions:
|
|
72
|
+
"""Configuration options for truncating the prompt when the token count exceeds a specified limit."""
|
|
73
|
+
|
|
60
74
|
@property
|
|
61
|
-
def completion_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions:
|
|
75
|
+
def completion_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions:
|
|
76
|
+
"""Configuration options for completion generation."""
|
|
77
|
+
|
|
62
78
|
@property
|
|
63
|
-
def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.common_pb2.Tool]:
|
|
79
|
+
def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.common_pb2.Tool]:
|
|
80
|
+
"""List of tools that the assistant can use to perform additional tasks.
|
|
81
|
+
One example is the SearchIndexTool, which is used for Retrieval-Augmented Generation (RAG).
|
|
82
|
+
"""
|
|
83
|
+
|
|
64
84
|
def __init__(
|
|
65
85
|
self,
|
|
66
86
|
*,
|
|
@@ -82,10 +102,13 @@ global___CreateAssistantRequest = CreateAssistantRequest
|
|
|
82
102
|
|
|
83
103
|
@typing.final
|
|
84
104
|
class GetAssistantRequest(google.protobuf.message.Message):
|
|
105
|
+
"""Request message for retrieving an assistant by ID."""
|
|
106
|
+
|
|
85
107
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
86
108
|
|
|
87
109
|
ASSISTANT_ID_FIELD_NUMBER: builtins.int
|
|
88
110
|
assistant_id: builtins.str
|
|
111
|
+
"""ID of the assistant to retrieve."""
|
|
89
112
|
def __init__(
|
|
90
113
|
self,
|
|
91
114
|
*,
|
|
@@ -97,6 +120,8 @@ global___GetAssistantRequest = GetAssistantRequest
|
|
|
97
120
|
|
|
98
121
|
@typing.final
|
|
99
122
|
class UpdateAssistantRequest(google.protobuf.message.Message):
|
|
123
|
+
"""Request message for updating an existing assistant."""
|
|
124
|
+
|
|
100
125
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
101
126
|
|
|
102
127
|
@typing.final
|
|
@@ -127,22 +152,39 @@ class UpdateAssistantRequest(google.protobuf.message.Message):
|
|
|
127
152
|
COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
|
|
128
153
|
TOOLS_FIELD_NUMBER: builtins.int
|
|
129
154
|
assistant_id: builtins.str
|
|
155
|
+
"""ID of the assistant to update."""
|
|
130
156
|
name: builtins.str
|
|
157
|
+
"""New name for the assistant."""
|
|
131
158
|
description: builtins.str
|
|
159
|
+
"""New description for the assistant."""
|
|
132
160
|
model_uri: builtins.str
|
|
161
|
+
"""The new [ID of the model](/docs/foundation-models/concepts/yandexgpt/models) to be used for completion generation."""
|
|
133
162
|
instruction: builtins.str
|
|
163
|
+
"""New instructions or guidelines for the assistant to follow."""
|
|
134
164
|
@property
|
|
135
|
-
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
165
|
+
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
166
|
+
"""Field mask specifying which fields to update."""
|
|
167
|
+
|
|
136
168
|
@property
|
|
137
|
-
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
169
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
|
|
170
|
+
"""New expiration configuration for the assistant."""
|
|
171
|
+
|
|
138
172
|
@property
|
|
139
|
-
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
173
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
174
|
+
"""New set of labels for the assistant."""
|
|
175
|
+
|
|
140
176
|
@property
|
|
141
|
-
def prompt_truncation_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions:
|
|
177
|
+
def prompt_truncation_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions:
|
|
178
|
+
"""New configuration for truncating the prompt."""
|
|
179
|
+
|
|
142
180
|
@property
|
|
143
|
-
def completion_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions:
|
|
181
|
+
def completion_options(self) -> yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions:
|
|
182
|
+
"""New configuration for completion generation."""
|
|
183
|
+
|
|
144
184
|
@property
|
|
145
|
-
def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.common_pb2.Tool]:
|
|
185
|
+
def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.common_pb2.Tool]:
|
|
186
|
+
"""New list of tools the assistant can use."""
|
|
187
|
+
|
|
146
188
|
def __init__(
|
|
147
189
|
self,
|
|
148
190
|
*,
|
|
@@ -165,10 +207,13 @@ global___UpdateAssistantRequest = UpdateAssistantRequest
|
|
|
165
207
|
|
|
166
208
|
@typing.final
|
|
167
209
|
class DeleteAssistantRequest(google.protobuf.message.Message):
|
|
210
|
+
"""Request message for deleting an assistant by ID."""
|
|
211
|
+
|
|
168
212
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
169
213
|
|
|
170
214
|
ASSISTANT_ID_FIELD_NUMBER: builtins.int
|
|
171
215
|
assistant_id: builtins.str
|
|
216
|
+
"""ID of the assistant to delete."""
|
|
172
217
|
def __init__(
|
|
173
218
|
self,
|
|
174
219
|
*,
|
|
@@ -180,6 +225,8 @@ global___DeleteAssistantRequest = DeleteAssistantRequest
|
|
|
180
225
|
|
|
181
226
|
@typing.final
|
|
182
227
|
class DeleteAssistantResponse(google.protobuf.message.Message):
|
|
228
|
+
"""Response message for the delete operation."""
|
|
229
|
+
|
|
183
230
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
184
231
|
|
|
185
232
|
def __init__(
|
|
@@ -190,14 +237,19 @@ global___DeleteAssistantResponse = DeleteAssistantResponse
|
|
|
190
237
|
|
|
191
238
|
@typing.final
|
|
192
239
|
class ListAssistantsRequest(google.protobuf.message.Message):
|
|
240
|
+
"""Request message for listing assistants in a specific folder."""
|
|
241
|
+
|
|
193
242
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
194
243
|
|
|
195
244
|
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
196
245
|
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
197
246
|
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
198
247
|
folder_id: builtins.str
|
|
248
|
+
"""Folder ID from which to list assistants."""
|
|
199
249
|
page_size: builtins.int
|
|
250
|
+
"""Maximum number of assistants to return per page."""
|
|
200
251
|
page_token: builtins.str
|
|
252
|
+
"""Token to retrieve the next page of results."""
|
|
201
253
|
def __init__(
|
|
202
254
|
self,
|
|
203
255
|
*,
|
|
@@ -211,13 +263,18 @@ global___ListAssistantsRequest = ListAssistantsRequest
|
|
|
211
263
|
|
|
212
264
|
@typing.final
|
|
213
265
|
class ListAssistantsResponse(google.protobuf.message.Message):
|
|
266
|
+
"""Response message for the list operation."""
|
|
267
|
+
|
|
214
268
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
215
269
|
|
|
216
270
|
ASSISTANTS_FIELD_NUMBER: builtins.int
|
|
217
271
|
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
218
272
|
next_page_token: builtins.str
|
|
273
|
+
"""Token to retrieve the next page of results."""
|
|
219
274
|
@property
|
|
220
|
-
def assistants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]:
|
|
275
|
+
def assistants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]:
|
|
276
|
+
"""List of assistants in the specified folder."""
|
|
277
|
+
|
|
221
278
|
def __init__(
|
|
222
279
|
self,
|
|
223
280
|
*,
|
|
@@ -230,14 +287,19 @@ global___ListAssistantsResponse = ListAssistantsResponse
|
|
|
230
287
|
|
|
231
288
|
@typing.final
|
|
232
289
|
class ListAssistantVersionsRequest(google.protobuf.message.Message):
|
|
290
|
+
"""Request to list all versions of a specific assistant."""
|
|
291
|
+
|
|
233
292
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
234
293
|
|
|
235
294
|
ASSISTANT_ID_FIELD_NUMBER: builtins.int
|
|
236
295
|
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
237
296
|
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
238
297
|
assistant_id: builtins.str
|
|
298
|
+
"""ID of the assistant whose versions are to be listed."""
|
|
239
299
|
page_size: builtins.int
|
|
300
|
+
"""Maximum number of versions to return per page."""
|
|
240
301
|
page_token: builtins.str
|
|
302
|
+
"""Token to retrieve the next page of results."""
|
|
241
303
|
def __init__(
|
|
242
304
|
self,
|
|
243
305
|
*,
|
|
@@ -251,16 +313,23 @@ global___ListAssistantVersionsRequest = ListAssistantVersionsRequest
|
|
|
251
313
|
|
|
252
314
|
@typing.final
|
|
253
315
|
class AssistantVersion(google.protobuf.message.Message):
|
|
316
|
+
"""Represents a specific version of an assistant."""
|
|
317
|
+
|
|
254
318
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
255
319
|
|
|
256
320
|
ID_FIELD_NUMBER: builtins.int
|
|
257
321
|
UPDATE_MASK_FIELD_NUMBER: builtins.int
|
|
258
322
|
ASSISTANT_FIELD_NUMBER: builtins.int
|
|
259
323
|
id: builtins.str
|
|
324
|
+
"""ID of the assistant version."""
|
|
260
325
|
@property
|
|
261
|
-
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
326
|
+
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
327
|
+
"""Mask specifying which fields were updated in this version."""
|
|
328
|
+
|
|
262
329
|
@property
|
|
263
|
-
def assistant(self) -> yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant:
|
|
330
|
+
def assistant(self) -> yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant:
|
|
331
|
+
"""Assistant configuration for this version."""
|
|
332
|
+
|
|
264
333
|
def __init__(
|
|
265
334
|
self,
|
|
266
335
|
*,
|
|
@@ -275,13 +344,18 @@ global___AssistantVersion = AssistantVersion
|
|
|
275
344
|
|
|
276
345
|
@typing.final
|
|
277
346
|
class ListAssistantVersionsResponse(google.protobuf.message.Message):
|
|
347
|
+
"""Response message containing the list versions operation."""
|
|
348
|
+
|
|
278
349
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
279
350
|
|
|
280
351
|
VERSIONS_FIELD_NUMBER: builtins.int
|
|
281
352
|
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
282
353
|
next_page_token: builtins.str
|
|
354
|
+
"""Token to retrieve the next page of results."""
|
|
283
355
|
@property
|
|
284
|
-
def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AssistantVersion]:
|
|
356
|
+
def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AssistantVersion]:
|
|
357
|
+
"""List of assistant versions."""
|
|
358
|
+
|
|
285
359
|
def __init__(
|
|
286
360
|
self,
|
|
287
361
|
*,
|
|
@@ -7,7 +7,8 @@ from yandex.cloud.ai.assistants.v1 import assistant_service_pb2 as yandex_dot_cl
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class AssistantServiceStub(object):
|
|
10
|
-
"""
|
|
10
|
+
"""AssistantService provides operations for managing assistants.
|
|
11
|
+
"""
|
|
11
12
|
|
|
12
13
|
def __init__(self, channel):
|
|
13
14
|
"""Constructor.
|
|
@@ -48,40 +49,47 @@ class AssistantServiceStub(object):
|
|
|
48
49
|
|
|
49
50
|
|
|
50
51
|
class AssistantServiceServicer(object):
|
|
51
|
-
"""
|
|
52
|
+
"""AssistantService provides operations for managing assistants.
|
|
53
|
+
"""
|
|
52
54
|
|
|
53
55
|
def Create(self, request, context):
|
|
54
|
-
"""
|
|
56
|
+
"""Create a new assistant.
|
|
57
|
+
"""
|
|
55
58
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
56
59
|
context.set_details('Method not implemented!')
|
|
57
60
|
raise NotImplementedError('Method not implemented!')
|
|
58
61
|
|
|
59
62
|
def Get(self, request, context):
|
|
60
|
-
"""
|
|
63
|
+
"""Retrieve details of a specific assistant by its ID.
|
|
64
|
+
"""
|
|
61
65
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
66
|
context.set_details('Method not implemented!')
|
|
63
67
|
raise NotImplementedError('Method not implemented!')
|
|
64
68
|
|
|
65
69
|
def Update(self, request, context):
|
|
66
|
-
"""
|
|
70
|
+
"""Update an existing assistant.
|
|
71
|
+
"""
|
|
67
72
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
68
73
|
context.set_details('Method not implemented!')
|
|
69
74
|
raise NotImplementedError('Method not implemented!')
|
|
70
75
|
|
|
71
76
|
def Delete(self, request, context):
|
|
72
|
-
"""
|
|
77
|
+
"""Delete an assistant by its ID.
|
|
78
|
+
"""
|
|
73
79
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
80
|
context.set_details('Method not implemented!')
|
|
75
81
|
raise NotImplementedError('Method not implemented!')
|
|
76
82
|
|
|
77
83
|
def List(self, request, context):
|
|
78
|
-
"""
|
|
84
|
+
"""List assistants in a specific folder.
|
|
85
|
+
"""
|
|
79
86
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
80
87
|
context.set_details('Method not implemented!')
|
|
81
88
|
raise NotImplementedError('Method not implemented!')
|
|
82
89
|
|
|
83
90
|
def ListVersions(self, request, context):
|
|
84
|
-
"""
|
|
91
|
+
"""Lists all versions of a specific assistant.
|
|
92
|
+
"""
|
|
85
93
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
86
94
|
context.set_details('Method not implemented!')
|
|
87
95
|
raise NotImplementedError('Method not implemented!')
|
|
@@ -127,7 +135,8 @@ def add_AssistantServiceServicer_to_server(servicer, server):
|
|
|
127
135
|
|
|
128
136
|
# This class is part of an EXPERIMENTAL API.
|
|
129
137
|
class AssistantService(object):
|
|
130
|
-
"""
|
|
138
|
+
"""AssistantService provides operations for managing assistants.
|
|
139
|
+
"""
|
|
131
140
|
|
|
132
141
|
@staticmethod
|
|
133
142
|
def Create(request,
|
|
@@ -19,109 +19,133 @@ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type:
|
|
|
19
19
|
...
|
|
20
20
|
|
|
21
21
|
class AssistantServiceStub:
|
|
22
|
+
"""AssistantService provides operations for managing assistants."""
|
|
23
|
+
|
|
22
24
|
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
23
25
|
Create: grpc.UnaryUnaryMultiCallable[
|
|
24
26
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.CreateAssistantRequest,
|
|
25
27
|
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
26
28
|
]
|
|
29
|
+
"""Create a new assistant."""
|
|
27
30
|
|
|
28
31
|
Get: grpc.UnaryUnaryMultiCallable[
|
|
29
32
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.GetAssistantRequest,
|
|
30
33
|
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
31
34
|
]
|
|
35
|
+
"""Retrieve details of a specific assistant by its ID."""
|
|
32
36
|
|
|
33
37
|
Update: grpc.UnaryUnaryMultiCallable[
|
|
34
38
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.UpdateAssistantRequest,
|
|
35
39
|
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
36
40
|
]
|
|
41
|
+
"""Update an existing assistant."""
|
|
37
42
|
|
|
38
43
|
Delete: grpc.UnaryUnaryMultiCallable[
|
|
39
44
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantRequest,
|
|
40
45
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantResponse,
|
|
41
46
|
]
|
|
47
|
+
"""Delete an assistant by its ID."""
|
|
42
48
|
|
|
43
49
|
List: grpc.UnaryUnaryMultiCallable[
|
|
44
50
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsRequest,
|
|
45
51
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsResponse,
|
|
46
52
|
]
|
|
53
|
+
"""List assistants in a specific folder."""
|
|
47
54
|
|
|
48
55
|
ListVersions: grpc.UnaryUnaryMultiCallable[
|
|
49
56
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsRequest,
|
|
50
57
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsResponse,
|
|
51
58
|
]
|
|
59
|
+
"""Lists all versions of a specific assistant."""
|
|
52
60
|
|
|
53
61
|
class AssistantServiceAsyncStub:
|
|
62
|
+
"""AssistantService provides operations for managing assistants."""
|
|
63
|
+
|
|
54
64
|
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
55
65
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.CreateAssistantRequest,
|
|
56
66
|
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
57
67
|
]
|
|
68
|
+
"""Create a new assistant."""
|
|
58
69
|
|
|
59
70
|
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
71
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.GetAssistantRequest,
|
|
61
72
|
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
62
73
|
]
|
|
74
|
+
"""Retrieve details of a specific assistant by its ID."""
|
|
63
75
|
|
|
64
76
|
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
65
77
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.UpdateAssistantRequest,
|
|
66
78
|
yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant,
|
|
67
79
|
]
|
|
80
|
+
"""Update an existing assistant."""
|
|
68
81
|
|
|
69
82
|
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
70
83
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantRequest,
|
|
71
84
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantResponse,
|
|
72
85
|
]
|
|
86
|
+
"""Delete an assistant by its ID."""
|
|
73
87
|
|
|
74
88
|
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
75
89
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsRequest,
|
|
76
90
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsResponse,
|
|
77
91
|
]
|
|
92
|
+
"""List assistants in a specific folder."""
|
|
78
93
|
|
|
79
94
|
ListVersions: grpc.aio.UnaryUnaryMultiCallable[
|
|
80
95
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsRequest,
|
|
81
96
|
yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsResponse,
|
|
82
97
|
]
|
|
98
|
+
"""Lists all versions of a specific assistant."""
|
|
83
99
|
|
|
84
100
|
class AssistantServiceServicer(metaclass=abc.ABCMeta):
|
|
101
|
+
"""AssistantService provides operations for managing assistants."""
|
|
102
|
+
|
|
85
103
|
@abc.abstractmethod
|
|
86
104
|
def Create(
|
|
87
105
|
self,
|
|
88
106
|
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.CreateAssistantRequest,
|
|
89
107
|
context: _ServicerContext,
|
|
90
|
-
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]]:
|
|
108
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]]:
|
|
109
|
+
"""Create a new assistant."""
|
|
91
110
|
|
|
92
111
|
@abc.abstractmethod
|
|
93
112
|
def Get(
|
|
94
113
|
self,
|
|
95
114
|
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.GetAssistantRequest,
|
|
96
115
|
context: _ServicerContext,
|
|
97
|
-
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]]:
|
|
116
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]]:
|
|
117
|
+
"""Retrieve details of a specific assistant by its ID."""
|
|
98
118
|
|
|
99
119
|
@abc.abstractmethod
|
|
100
120
|
def Update(
|
|
101
121
|
self,
|
|
102
122
|
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.UpdateAssistantRequest,
|
|
103
123
|
context: _ServicerContext,
|
|
104
|
-
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]]:
|
|
124
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_pb2.Assistant]]:
|
|
125
|
+
"""Update an existing assistant."""
|
|
105
126
|
|
|
106
127
|
@abc.abstractmethod
|
|
107
128
|
def Delete(
|
|
108
129
|
self,
|
|
109
130
|
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantRequest,
|
|
110
131
|
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]]:
|
|
132
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_service_pb2.DeleteAssistantResponse]]:
|
|
133
|
+
"""Delete an assistant by its ID."""
|
|
112
134
|
|
|
113
135
|
@abc.abstractmethod
|
|
114
136
|
def List(
|
|
115
137
|
self,
|
|
116
138
|
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsRequest,
|
|
117
139
|
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]]:
|
|
140
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantsResponse]]:
|
|
141
|
+
"""List assistants in a specific folder."""
|
|
119
142
|
|
|
120
143
|
@abc.abstractmethod
|
|
121
144
|
def ListVersions(
|
|
122
145
|
self,
|
|
123
146
|
request: yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsRequest,
|
|
124
147
|
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]]:
|
|
148
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.assistant_service_pb2.ListAssistantVersionsResponse]]:
|
|
149
|
+
"""Lists all versions of a specific assistant."""
|
|
126
150
|
|
|
127
151
|
def add_AssistantServiceServicer_to_server(servicer: AssistantServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -15,11 +15,18 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
|
15
15
|
|
|
16
16
|
@typing.final
|
|
17
17
|
class PromptTruncationOptions(google.protobuf.message.Message):
|
|
18
|
+
"""Defines the options for truncating thread messages within a prompt."""
|
|
19
|
+
|
|
18
20
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
21
|
|
|
20
22
|
MAX_PROMPT_TOKENS_FIELD_NUMBER: builtins.int
|
|
21
23
|
@property
|
|
22
|
-
def max_prompt_tokens(self) -> google.protobuf.wrappers_pb2.Int64Value:
|
|
24
|
+
def max_prompt_tokens(self) -> google.protobuf.wrappers_pb2.Int64Value:
|
|
25
|
+
"""The maximum number of tokens allowed in the prompt.
|
|
26
|
+
If the prompt exceeds this limit, the thread messages will be truncated.
|
|
27
|
+
Default max_prompt_tokens: 7000
|
|
28
|
+
"""
|
|
29
|
+
|
|
23
30
|
def __init__(
|
|
24
31
|
self,
|
|
25
32
|
*,
|
|
@@ -32,14 +39,25 @@ global___PromptTruncationOptions = PromptTruncationOptions
|
|
|
32
39
|
|
|
33
40
|
@typing.final
|
|
34
41
|
class CompletionOptions(google.protobuf.message.Message):
|
|
42
|
+
"""Defines the options for completion generation."""
|
|
43
|
+
|
|
35
44
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
36
45
|
|
|
37
46
|
MAX_TOKENS_FIELD_NUMBER: builtins.int
|
|
38
47
|
TEMPERATURE_FIELD_NUMBER: builtins.int
|
|
39
48
|
@property
|
|
40
|
-
def max_tokens(self) -> google.protobuf.wrappers_pb2.Int64Value:
|
|
49
|
+
def max_tokens(self) -> google.protobuf.wrappers_pb2.Int64Value:
|
|
50
|
+
"""The limit on the number of tokens used for single completion generation.
|
|
51
|
+
Must be greater than zero. This maximum allowed parameter value may depend on the model being used.
|
|
52
|
+
"""
|
|
53
|
+
|
|
41
54
|
@property
|
|
42
|
-
def temperature(self) -> google.protobuf.wrappers_pb2.DoubleValue:
|
|
55
|
+
def temperature(self) -> google.protobuf.wrappers_pb2.DoubleValue:
|
|
56
|
+
"""Affects creativity and randomness of responses. Should be a double number between 0 (inclusive) and 1 (inclusive).
|
|
57
|
+
Lower values produce more straightforward responses while higher values lead to increased creativity and randomness.
|
|
58
|
+
Default temperature: 0.3
|
|
59
|
+
"""
|
|
60
|
+
|
|
43
61
|
def __init__(
|
|
44
62
|
self,
|
|
45
63
|
*,
|
|
@@ -53,14 +71,23 @@ global___CompletionOptions = CompletionOptions
|
|
|
53
71
|
|
|
54
72
|
@typing.final
|
|
55
73
|
class SearchIndexTool(google.protobuf.message.Message):
|
|
74
|
+
"""Configures a tool that enables Retrieval-Augmented Generation (RAG) by allowing the assistant to search across a specified search index."""
|
|
75
|
+
|
|
56
76
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
57
77
|
|
|
58
78
|
SEARCH_INDEX_IDS_FIELD_NUMBER: builtins.int
|
|
59
79
|
MAX_NUM_RESULTS_FIELD_NUMBER: builtins.int
|
|
60
80
|
@property
|
|
61
|
-
def search_index_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
81
|
+
def search_index_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
82
|
+
"""A list of search index IDs that this tool will query. Currently, only a single index ID is supported."""
|
|
83
|
+
|
|
62
84
|
@property
|
|
63
|
-
def max_num_results(self) -> google.protobuf.wrappers_pb2.Int64Value:
|
|
85
|
+
def max_num_results(self) -> google.protobuf.wrappers_pb2.Int64Value:
|
|
86
|
+
"""The maximum number of results to return from the search.
|
|
87
|
+
Fewer results may be returned if necessary to fit within the prompt's token limit.
|
|
88
|
+
This ensures that the combined prompt and search results do not exceed the token constraints.
|
|
89
|
+
"""
|
|
90
|
+
|
|
64
91
|
def __init__(
|
|
65
92
|
self,
|
|
66
93
|
*,
|
|
@@ -74,11 +101,15 @@ global___SearchIndexTool = SearchIndexTool
|
|
|
74
101
|
|
|
75
102
|
@typing.final
|
|
76
103
|
class Tool(google.protobuf.message.Message):
|
|
104
|
+
"""Represents a general tool that can be one of several types."""
|
|
105
|
+
|
|
77
106
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
78
107
|
|
|
79
108
|
SEARCH_INDEX_FIELD_NUMBER: builtins.int
|
|
80
109
|
@property
|
|
81
|
-
def search_index(self) -> global___SearchIndexTool:
|
|
110
|
+
def search_index(self) -> global___SearchIndexTool:
|
|
111
|
+
"""SearchIndexTool tool that performs search across specified indexes."""
|
|
112
|
+
|
|
82
113
|
def __init__(
|
|
83
114
|
self,
|
|
84
115
|
*,
|