yandexcloud 0.349.0__py3-none-any.whl → 0.351.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.
Files changed (160) hide show
  1. yandex/cloud/ai/assistants/v1/assistant_pb2.py +4 -4
  2. yandex/cloud/ai/assistants/v1/assistant_pb2.pyi +8 -2
  3. yandex/cloud/ai/assistants/v1/assistant_service_pb2.py +26 -26
  4. yandex/cloud/ai/assistants/v1/assistant_service_pb2.pyi +14 -4
  5. yandex/cloud/ai/assistants/v1/common_pb2.py +5 -1
  6. yandex/cloud/ai/assistants/v1/common_pb2.pyi +50 -0
  7. yandex/cloud/ai/assistants/v1/runs/run_pb2.py +10 -10
  8. yandex/cloud/ai/assistants/v1/runs/run_pb2.pyi +8 -2
  9. yandex/cloud/ai/assistants/v1/runs/run_service_pb2.py +28 -28
  10. yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi +8 -2
  11. yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_pb2.pyi +2 -2
  12. yandex/cloud/ai/foundation_models/v1/text_common_pb2.py +20 -16
  13. yandex/cloud/ai/foundation_models/v1/text_common_pb2.pyi +62 -1
  14. yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.py +24 -23
  15. yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.pyi +15 -2
  16. yandex/cloud/ai/ocr/v1/ocr_pb2.py +24 -20
  17. yandex/cloud/ai/ocr/v1/ocr_pb2.pyi +72 -2
  18. yandex/cloud/ai/stt/v3/stt_pb2.pyi +1 -1
  19. yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +13 -3
  20. yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +40 -0
  21. yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.py +43 -0
  22. yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.pyi +17 -0
  23. yandex/cloud/ai/tuning/v1/tuning_task_pb2.py +4 -4
  24. yandex/cloud/ai/tuning/v1/tuning_task_pb2.pyi +2 -0
  25. yandex/cloud/apploadbalancer/v1/load_balancer_pb2.py +39 -37
  26. yandex/cloud/apploadbalancer/v1/load_balancer_pb2.pyi +10 -2
  27. yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2.py +110 -87
  28. yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2.pyi +96 -0
  29. yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2_grpc.py +88 -0
  30. yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2_grpc.pyi +40 -0
  31. yandex/cloud/backup/v1/policy_pb2.py +56 -52
  32. yandex/cloud/backup/v1/policy_pb2.pyi +64 -1
  33. yandex/cloud/baremetal/v1alpha/private_cloud_connection_pb2.py +4 -4
  34. yandex/cloud/baremetal/v1alpha/private_cloud_connection_pb2.pyi +5 -1
  35. yandex/cloud/clouddesktop/v1/desktop_group_pb2.py +20 -14
  36. yandex/cloud/clouddesktop/v1/desktop_group_pb2.pyi +31 -2
  37. yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.py +16 -16
  38. yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.pyi +11 -2
  39. yandex/cloud/clouddesktop/v1/desktop_image_service_pb2.pyi +8 -2
  40. yandex/cloud/dataproc/v1/cluster_pb2.py +20 -20
  41. yandex/cloud/dataproc/v1/cluster_pb2.pyi +5 -1
  42. yandex/cloud/dataproc/v1/cluster_service_pb2.py +40 -40
  43. yandex/cloud/dataproc/v1/cluster_service_pb2.pyi +10 -2
  44. yandex/cloud/datatransfer/v1/endpoint/common_pb2.py +8 -8
  45. yandex/cloud/datatransfer/v1/endpoint/common_pb2.pyi +1 -5
  46. yandex/cloud/datatransfer/v1/endpoint/mongo_pb2.py +12 -10
  47. yandex/cloud/datatransfer/v1/endpoint/mongo_pb2.pyi +26 -3
  48. yandex/cloud/datatransfer/v1/endpoint_service_pb2.pyi +1 -1
  49. yandex/cloud/datatransfer/v1/transfer_service_pb2.pyi +1 -1
  50. yandex/cloud/gitlab/v1/instance_pb2.pyi +58 -4
  51. yandex/cloud/gitlab/v1/instance_service_pb2.py +50 -27
  52. yandex/cloud/gitlab/v1/instance_service_pb2.pyi +163 -2
  53. yandex/cloud/gitlab/v1/instance_service_pb2_grpc.py +62 -9
  54. yandex/cloud/gitlab/v1/instance_service_pb2_grpc.pyi +50 -6
  55. yandex/cloud/gitlab/v1/maintenance_pb2.pyi +10 -3
  56. yandex/cloud/loadbalancer/v1/network_load_balancer_pb2.py +26 -22
  57. yandex/cloud/loadbalancer/v1/network_load_balancer_pb2.pyi +34 -1
  58. yandex/cloud/loadbalancer/v1/network_load_balancer_service_pb2.py +86 -63
  59. yandex/cloud/loadbalancer/v1/network_load_balancer_service_pb2.pyi +86 -0
  60. yandex/cloud/loadbalancer/v1/network_load_balancer_service_pb2_grpc.py +88 -0
  61. yandex/cloud/loadbalancer/v1/network_load_balancer_service_pb2_grpc.pyi +40 -0
  62. yandex/cloud/mdb/clickhouse/v1/cluster_pb2.py +52 -46
  63. yandex/cloud/mdb/clickhouse/v1/cluster_pb2.pyi +63 -8
  64. yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.py +170 -170
  65. yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.pyi +54 -10
  66. yandex/cloud/mdb/clickhouse/v1/database_pb2.py +6 -4
  67. yandex/cloud/mdb/clickhouse/v1/database_pb2.pyi +35 -3
  68. yandex/cloud/mdb/greenplum/v1/hba_rule_pb2.py +3 -3
  69. yandex/cloud/mdb/greenplum/v1/hba_rule_pb2.pyi +4 -0
  70. yandex/cloud/mdb/kafka/v1/cluster_pb2.py +42 -38
  71. yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +48 -4
  72. yandex/cloud/mdb/mongodb/v1/cluster_pb2.py +142 -142
  73. yandex/cloud/mdb/mongodb/v1/cluster_pb2.pyi +8 -2
  74. yandex/cloud/mdb/mongodb/v1/cluster_service_pb2.py +234 -234
  75. yandex/cloud/mdb/mongodb/v1/cluster_service_pb2.pyi +16 -4
  76. yandex/cloud/mdb/mysql/v1/cluster_pb2.py +38 -32
  77. yandex/cloud/mdb/mysql/v1/cluster_pb2.pyi +40 -4
  78. yandex/cloud/mdb/mysql/v1/cluster_service_pb2.py +96 -96
  79. yandex/cloud/mdb/mysql/v1/cluster_service_pb2.pyi +24 -6
  80. yandex/cloud/mdb/mysql/v1/config/mysql5_7_pb2.py +26 -24
  81. yandex/cloud/mdb/mysql/v1/config/mysql5_7_pb2.pyi +12 -2
  82. yandex/cloud/mdb/mysql/v1/config/mysql8_0_pb2.py +26 -24
  83. yandex/cloud/mdb/mysql/v1/config/mysql8_0_pb2.pyi +12 -2
  84. yandex/cloud/mdb/opensearch/v1/cluster_pb2.py +46 -45
  85. yandex/cloud/mdb/opensearch/v1/cluster_pb2.pyi +9 -2
  86. yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.py +140 -139
  87. yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.pyi +17 -4
  88. yandex/cloud/mdb/postgresql/v1/cluster_pb2.py +42 -42
  89. yandex/cloud/mdb/postgresql/v1/cluster_pb2.pyi +8 -2
  90. yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.py +98 -98
  91. yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.pyi +16 -4
  92. yandex/cloud/mdb/postgresql/v1/config/postgresql14_1c_pb2.py +38 -36
  93. yandex/cloud/mdb/postgresql/v1/config/postgresql14_1c_pb2.pyi +24 -1
  94. yandex/cloud/mdb/postgresql/v1/config/postgresql14_pb2.py +38 -36
  95. yandex/cloud/mdb/postgresql/v1/config/postgresql14_pb2.pyi +24 -1
  96. yandex/cloud/mdb/postgresql/v1/config/postgresql15_1c_pb2.py +38 -36
  97. yandex/cloud/mdb/postgresql/v1/config/postgresql15_1c_pb2.pyi +24 -1
  98. yandex/cloud/mdb/postgresql/v1/config/postgresql15_pb2.py +38 -36
  99. yandex/cloud/mdb/postgresql/v1/config/postgresql15_pb2.pyi +24 -1
  100. yandex/cloud/mdb/postgresql/v1/config/postgresql16_1c_pb2.py +38 -36
  101. yandex/cloud/mdb/postgresql/v1/config/postgresql16_1c_pb2.pyi +24 -1
  102. yandex/cloud/mdb/postgresql/v1/config/postgresql16_pb2.py +38 -36
  103. yandex/cloud/mdb/postgresql/v1/config/postgresql16_pb2.pyi +24 -1
  104. yandex/cloud/mdb/postgresql/v1/database_pb2.py +6 -4
  105. yandex/cloud/mdb/postgresql/v1/database_pb2.pyi +1 -1
  106. yandex/cloud/mdb/redis/v1/cluster_pb2.py +36 -36
  107. yandex/cloud/mdb/redis/v1/cluster_pb2.pyi +8 -2
  108. yandex/cloud/mdb/redis/v1/cluster_service_pb2.py +114 -114
  109. yandex/cloud/mdb/redis/v1/cluster_service_pb2.pyi +16 -4
  110. yandex/cloud/metastore/v1/cluster_pb2.py +16 -20
  111. yandex/cloud/metastore/v1/cluster_pb2.pyi +1 -31
  112. yandex/cloud/metastore/v1/cluster_service_pb2.py +44 -50
  113. yandex/cloud/metastore/v1/cluster_service_pb2.pyi +3 -35
  114. yandex/cloud/metastore/v1/cluster_service_pb2_grpc.py +4 -4
  115. yandex/cloud/metastore/v1/cluster_service_pb2_grpc.pyi +12 -12
  116. yandex/cloud/monitoring/v3/chart_widget_pb2.py +60 -44
  117. yandex/cloud/monitoring/v3/chart_widget_pb2.pyi +151 -6
  118. yandex/cloud/monitoring/v3/dashboard_service_pb2.py +36 -34
  119. yandex/cloud/monitoring/v3/dashboard_service_pb2.pyi +13 -7
  120. yandex/cloud/monitoring/v3/link_pb2.py +8 -4
  121. yandex/cloud/monitoring/v3/link_pb2.pyi +27 -1
  122. yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.py +60 -44
  123. yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.pyi +151 -6
  124. yandex/cloud/searchapi/v2/gen_search_service_pb2.py +26 -31
  125. yandex/cloud/searchapi/v2/gen_search_service_pb2.pyi +6 -1
  126. yandex/cloud/searchapi/v2/img_search_service_pb2.py +8 -8
  127. yandex/cloud/searchapi/v2/img_search_service_pb2.pyi +5 -1
  128. yandex/cloud/serverless/eventrouter/v1/bus_pb2.py +8 -8
  129. yandex/cloud/serverless/eventrouter/v1/bus_pb2.pyi +1 -5
  130. yandex/cloud/spark/v1/cluster_pb2.py +29 -25
  131. yandex/cloud/spark/v1/cluster_pb2.pyi +53 -0
  132. yandex/cloud/spark/v1/cluster_service_pb2.py +54 -31
  133. yandex/cloud/spark/v1/cluster_service_pb2.pyi +93 -0
  134. yandex/cloud/spark/v1/cluster_service_pb2_grpc.py +44 -0
  135. yandex/cloud/spark/v1/cluster_service_pb2_grpc.pyi +20 -0
  136. yandex/cloud/storage/v1/bucket_pb2.py +78 -78
  137. yandex/cloud/storage/v1/bucket_pb2.pyi +5 -1
  138. yandex/cloud/storage/v1/bucket_service_pb2.py +4 -2
  139. yandex/cloud/storage/v1/bucket_service_pb2_grpc.py +43 -0
  140. yandex/cloud/storage/v1/bucket_service_pb2_grpc.pyi +17 -0
  141. yandex/cloud/video/v1/channel_service_pb2.py +34 -28
  142. yandex/cloud/video/v1/episode_service_pb2.py +58 -52
  143. yandex/cloud/video/v1/playlist_pb2.py +14 -5
  144. yandex/cloud/video/v1/playlist_service_pb2.py +36 -30
  145. yandex/cloud/video/v1/stream_line_service_pb2.py +46 -46
  146. yandex/cloud/video/v1/stream_service_pb2.py +50 -44
  147. yandex/cloud/video/v1/subtitle_pb2.pyi +1 -4
  148. yandex/cloud/video/v1/subtitle_service_pb2.py +19 -17
  149. yandex/cloud/video/v1/subtitle_service_pb2.pyi +1 -4
  150. yandex/cloud/video/v1/video_pb2.pyi +1 -1
  151. yandex/cloud/video/v1/video_service_pb2.py +90 -84
  152. yandex/cloud/video/v1/video_service_pb2.pyi +4 -12
  153. yandexcloud/__init__.py +1 -1
  154. yandexcloud/_wrappers/dataproc/__init__.py +10 -2
  155. {yandexcloud-0.349.0.dist-info → yandexcloud-0.351.0.dist-info}/METADATA +1 -1
  156. {yandexcloud-0.349.0.dist-info → yandexcloud-0.351.0.dist-info}/RECORD +160 -160
  157. {yandexcloud-0.349.0.dist-info → yandexcloud-0.351.0.dist-info}/AUTHORS +0 -0
  158. {yandexcloud-0.349.0.dist-info → yandexcloud-0.351.0.dist-info}/LICENSE +0 -0
  159. {yandexcloud-0.349.0.dist-info → yandexcloud-0.351.0.dist-info}/WHEEL +0 -0
  160. {yandexcloud-0.349.0.dist-info → yandexcloud-0.351.0.dist-info}/top_level.txt +0 -0
@@ -27,7 +27,7 @@ from yandex.cloud.ai.assistants.v1 import common_pb2 as yandex_dot_cloud_dot_ai_
27
27
  from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
28
28
 
29
29
 
30
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-yandex/cloud/ai/assistants/v1/assistant.proto\x12\x1dyandex.cloud.ai.assistants.v1\x1a#yandex/cloud/ai/common/common.proto\x1a*yandex/cloud/ai/assistants/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\x05\n\tAssistant\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x12\n\ncreated_by\x18\x05 \x01(\t\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nupdated_by\x18\x07 \x01(\t\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x11\x65xpiration_config\x18\t \x01(\x0b\x32(.yandex.cloud.ai.common.ExpirationConfig\x12.\n\nexpires_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x06labels\x18\x0b \x03(\x0b\x32\x34.yandex.cloud.ai.assistants.v1.Assistant.LabelsEntry\x12\x11\n\tmodel_uri\x18\x0c \x01(\t\x12\x13\n\x0binstruction\x18\r \x01(\t\x12Y\n\x19prompt_truncation_options\x18\x0e \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.PromptTruncationOptions\x12L\n\x12\x63ompletion_options\x18\x0f \x01(\x0b\x32\x30.yandex.cloud.ai.assistants.v1.CompletionOptions\x12\x32\n\x05tools\x18\x10 \x03(\x0b\x32#.yandex.cloud.ai.assistants.v1.Tool\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42q\n!yandex.cloud.api.ai.assistants.v1ZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1;assistantsb\x06proto3')
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-yandex/cloud/ai/assistants/v1/assistant.proto\x12\x1dyandex.cloud.ai.assistants.v1\x1a#yandex/cloud/ai/common/common.proto\x1a*yandex/cloud/ai/assistants/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8c\x06\n\tAssistant\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x12\n\ncreated_by\x18\x05 \x01(\t\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nupdated_by\x18\x07 \x01(\t\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x11\x65xpiration_config\x18\t \x01(\x0b\x32(.yandex.cloud.ai.common.ExpirationConfig\x12.\n\nexpires_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x06labels\x18\x0b \x03(\x0b\x32\x34.yandex.cloud.ai.assistants.v1.Assistant.LabelsEntry\x12\x11\n\tmodel_uri\x18\x0c \x01(\t\x12\x13\n\x0binstruction\x18\r \x01(\t\x12Y\n\x19prompt_truncation_options\x18\x0e \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.PromptTruncationOptions\x12L\n\x12\x63ompletion_options\x18\x0f \x01(\x0b\x32\x30.yandex.cloud.ai.assistants.v1.CompletionOptions\x12\x32\n\x05tools\x18\x10 \x03(\x0b\x32#.yandex.cloud.ai.assistants.v1.Tool\x12\x46\n\x0fresponse_format\x18\x11 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.ResponseFormat\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42q\n!yandex.cloud.api.ai.assistants.v1ZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1;assistantsb\x06proto3')
31
31
 
32
32
  _globals = globals()
33
33
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -38,7 +38,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
38
38
  _globals['_ASSISTANT_LABELSENTRY']._loaded_options = None
39
39
  _globals['_ASSISTANT_LABELSENTRY']._serialized_options = b'8\001'
40
40
  _globals['_ASSISTANT']._serialized_start=195
41
- _globals['_ASSISTANT']._serialized_end=903
42
- _globals['_ASSISTANT_LABELSENTRY']._serialized_start=858
43
- _globals['_ASSISTANT_LABELSENTRY']._serialized_end=903
41
+ _globals['_ASSISTANT']._serialized_end=975
42
+ _globals['_ASSISTANT_LABELSENTRY']._serialized_start=930
43
+ _globals['_ASSISTANT_LABELSENTRY']._serialized_end=975
44
44
  # @@protoc_insertion_point(module_scope)
@@ -53,6 +53,7 @@ class Assistant(google.protobuf.message.Message):
53
53
  PROMPT_TRUNCATION_OPTIONS_FIELD_NUMBER: builtins.int
54
54
  COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
55
55
  TOOLS_FIELD_NUMBER: builtins.int
56
+ RESPONSE_FORMAT_FIELD_NUMBER: builtins.int
56
57
  id: builtins.str
57
58
  """Unique identifier of the assistant."""
58
59
  folder_id: builtins.str
@@ -105,6 +106,10 @@ class Assistant(google.protobuf.message.Message):
105
106
  One example is the SearchIndexTool, which is used for Retrieval-Augmented Generation (RAG).
106
107
  """
107
108
 
109
+ @property
110
+ def response_format(self) -> yandex.cloud.ai.assistants.v1.common_pb2.ResponseFormat:
111
+ """Specifies the format of the model's response."""
112
+
108
113
  def __init__(
109
114
  self,
110
115
  *,
@@ -124,8 +129,9 @@ class Assistant(google.protobuf.message.Message):
124
129
  prompt_truncation_options: yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions | None = ...,
125
130
  completion_options: yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions | None = ...,
126
131
  tools: collections.abc.Iterable[yandex.cloud.ai.assistants.v1.common_pb2.Tool] | None = ...,
132
+ response_format: yandex.cloud.ai.assistants.v1.common_pb2.ResponseFormat | None = ...,
127
133
  ) -> None: ...
128
- def HasField(self, field_name: typing.Literal["completion_options", b"completion_options", "created_at", b"created_at", "expiration_config", b"expiration_config", "expires_at", b"expires_at", "prompt_truncation_options", b"prompt_truncation_options", "updated_at", b"updated_at"]) -> builtins.bool: ...
129
- def ClearField(self, field_name: typing.Literal["completion_options", b"completion_options", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "expiration_config", b"expiration_config", "expires_at", b"expires_at", "folder_id", b"folder_id", "id", b"id", "instruction", b"instruction", "labels", b"labels", "model_uri", b"model_uri", "name", b"name", "prompt_truncation_options", b"prompt_truncation_options", "tools", b"tools", "updated_at", b"updated_at", "updated_by", b"updated_by"]) -> None: ...
134
+ def HasField(self, field_name: typing.Literal["completion_options", b"completion_options", "created_at", b"created_at", "expiration_config", b"expiration_config", "expires_at", b"expires_at", "prompt_truncation_options", b"prompt_truncation_options", "response_format", b"response_format", "updated_at", b"updated_at"]) -> builtins.bool: ...
135
+ def ClearField(self, field_name: typing.Literal["completion_options", b"completion_options", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "expiration_config", b"expiration_config", "expires_at", b"expires_at", "folder_id", b"folder_id", "id", b"id", "instruction", b"instruction", "labels", b"labels", "model_uri", b"model_uri", "name", b"name", "prompt_truncation_options", b"prompt_truncation_options", "response_format", b"response_format", "tools", b"tools", "updated_at", b"updated_at", "updated_by", b"updated_by"]) -> None: ...
130
136
 
131
137
  global___Assistant = Assistant
@@ -30,7 +30,7 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
30
30
  from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
31
31
 
32
32
 
33
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5yandex/cloud/ai/assistants/v1/assistant_service.proto\x12\x1dyandex.cloud.ai.assistants.v1\x1a#yandex/cloud/ai/common/common.proto\x1a-yandex/cloud/ai/assistants/v1/assistant.proto\x1a*yandex/cloud/ai/assistants/v1/common.proto\x1a\x1dyandex/cloud/validation.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\"\xa6\x04\n\x16\x43reateAssistantRequest\x12\x17\n\tfolder_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x43\n\x11\x65xpiration_config\x18\x04 \x01(\x0b\x32(.yandex.cloud.ai.common.ExpirationConfig\x12Q\n\x06labels\x18\x05 \x03(\x0b\x32\x41.yandex.cloud.ai.assistants.v1.CreateAssistantRequest.LabelsEntry\x12\x17\n\tmodel_uri\x18\x06 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x13\n\x0binstruction\x18\x07 \x01(\t\x12Y\n\x19prompt_truncation_options\x18\x08 \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.PromptTruncationOptions\x12L\n\x12\x63ompletion_options\x18\t \x01(\x0b\x32\x30.yandex.cloud.ai.assistants.v1.CompletionOptions\x12\x32\n\x05tools\x18\n \x03(\x0b\x32#.yandex.cloud.ai.assistants.v1.Tool\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"1\n\x13GetAssistantRequest\x12\x1a\n\x0c\x61ssistant_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"\xda\x04\n\x16UpdateAssistantRequest\x12\x1a\n\x0c\x61ssistant_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe8\xc7\x31\x01\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x43\n\x11\x65xpiration_config\x18\x05 \x01(\x0b\x32(.yandex.cloud.ai.common.ExpirationConfig\x12Q\n\x06labels\x18\x06 \x03(\x0b\x32\x41.yandex.cloud.ai.assistants.v1.UpdateAssistantRequest.LabelsEntry\x12\x11\n\tmodel_uri\x18\x07 \x01(\t\x12\x13\n\x0binstruction\x18\x08 \x01(\t\x12Y\n\x19prompt_truncation_options\x18\t \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.PromptTruncationOptions\x12L\n\x12\x63ompletion_options\x18\n \x01(\x0b\x32\x30.yandex.cloud.ai.assistants.v1.CompletionOptions\x12\x32\n\x05tools\x18\x0b \x03(\x0b\x32#.yandex.cloud.ai.assistants.v1.Tool\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"4\n\x16\x44\x65leteAssistantRequest\x12\x1a\n\x0c\x61ssistant_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"\x19\n\x17\x44\x65leteAssistantResponse\"W\n\x15ListAssistantsRequest\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\"o\n\x16ListAssistantsResponse\x12<\n\nassistants\x18\x01 \x03(\x0b\x32(.yandex.cloud.ai.assistants.v1.Assistant\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1cListAssistantVersionsRequest\x12\x1a\n\x0c\x61ssistant_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\"\x8c\x01\n\x10\x41ssistantVersion\x12\n\n\x02id\x18\x01 \x01(\t\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12;\n\tassistant\x18\x03 \x01(\x0b\x32(.yandex.cloud.ai.assistants.v1.Assistant\"{\n\x1dListAssistantVersionsResponse\x12\x41\n\x08versions\x18\x01 \x03(\x0b\x32/.yandex.cloud.ai.assistants.v1.AssistantVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xde\x07\n\x10\x41ssistantService\x12\x8f\x01\n\x06\x43reate\x12\x35.yandex.cloud.ai.assistants.v1.CreateAssistantRequest\x1a(.yandex.cloud.ai.assistants.v1.Assistant\"$\x82\xd3\xe4\x93\x02\x1e\"\x19/assistants/v1/assistants:\x01*\x12\x95\x01\n\x03Get\x12\x32.yandex.cloud.ai.assistants.v1.GetAssistantRequest\x1a(.yandex.cloud.ai.assistants.v1.Assistant\"0\x82\xd3\xe4\x93\x02*\x12(/assistants/v1/assistants/{assistant_id}\x12\x9e\x01\n\x06Update\x12\x35.yandex.cloud.ai.assistants.v1.UpdateAssistantRequest\x1a(.yandex.cloud.ai.assistants.v1.Assistant\"3\x82\xd3\xe4\x93\x02-2(/assistants/v1/assistants/{assistant_id}:\x01*\x12\xa9\x01\n\x06\x44\x65lete\x12\x35.yandex.cloud.ai.assistants.v1.DeleteAssistantRequest\x1a\x36.yandex.cloud.ai.assistants.v1.DeleteAssistantResponse\"0\x82\xd3\xe4\x93\x02**(/assistants/v1/assistants/{assistant_id}\x12\x96\x01\n\x04List\x12\x34.yandex.cloud.ai.assistants.v1.ListAssistantsRequest\x1a\x35.yandex.cloud.ai.assistants.v1.ListAssistantsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/assistants/v1/assistants\x12\xb9\x01\n\x0cListVersions\x12;.yandex.cloud.ai.assistants.v1.ListAssistantVersionsRequest\x1a<.yandex.cloud.ai.assistants.v1.ListAssistantVersionsResponse\".\x82\xd3\xe4\x93\x02(\x12&/assistants/v1/assistants:listVersionsBq\n!yandex.cloud.api.ai.assistants.v1ZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1;assistantsb\x06proto3')
33
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5yandex/cloud/ai/assistants/v1/assistant_service.proto\x12\x1dyandex.cloud.ai.assistants.v1\x1a#yandex/cloud/ai/common/common.proto\x1a-yandex/cloud/ai/assistants/v1/assistant.proto\x1a*yandex/cloud/ai/assistants/v1/common.proto\x1a\x1dyandex/cloud/validation.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\"\xee\x04\n\x16\x43reateAssistantRequest\x12\x17\n\tfolder_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x43\n\x11\x65xpiration_config\x18\x04 \x01(\x0b\x32(.yandex.cloud.ai.common.ExpirationConfig\x12Q\n\x06labels\x18\x05 \x03(\x0b\x32\x41.yandex.cloud.ai.assistants.v1.CreateAssistantRequest.LabelsEntry\x12\x17\n\tmodel_uri\x18\x06 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x13\n\x0binstruction\x18\x07 \x01(\t\x12Y\n\x19prompt_truncation_options\x18\x08 \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.PromptTruncationOptions\x12L\n\x12\x63ompletion_options\x18\t \x01(\x0b\x32\x30.yandex.cloud.ai.assistants.v1.CompletionOptions\x12\x32\n\x05tools\x18\n \x03(\x0b\x32#.yandex.cloud.ai.assistants.v1.Tool\x12\x46\n\x0fresponse_format\x18\x0b \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.ResponseFormat\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"1\n\x13GetAssistantRequest\x12\x1a\n\x0c\x61ssistant_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"\xa2\x05\n\x16UpdateAssistantRequest\x12\x1a\n\x0c\x61ssistant_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe8\xc7\x31\x01\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x43\n\x11\x65xpiration_config\x18\x05 \x01(\x0b\x32(.yandex.cloud.ai.common.ExpirationConfig\x12Q\n\x06labels\x18\x06 \x03(\x0b\x32\x41.yandex.cloud.ai.assistants.v1.UpdateAssistantRequest.LabelsEntry\x12\x11\n\tmodel_uri\x18\x07 \x01(\t\x12\x13\n\x0binstruction\x18\x08 \x01(\t\x12Y\n\x19prompt_truncation_options\x18\t \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.PromptTruncationOptions\x12L\n\x12\x63ompletion_options\x18\n \x01(\x0b\x32\x30.yandex.cloud.ai.assistants.v1.CompletionOptions\x12\x32\n\x05tools\x18\x0b \x03(\x0b\x32#.yandex.cloud.ai.assistants.v1.Tool\x12\x46\n\x0fresponse_format\x18\x0c \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.ResponseFormat\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"4\n\x16\x44\x65leteAssistantRequest\x12\x1a\n\x0c\x61ssistant_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"\x19\n\x17\x44\x65leteAssistantResponse\"W\n\x15ListAssistantsRequest\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\"o\n\x16ListAssistantsResponse\x12<\n\nassistants\x18\x01 \x03(\x0b\x32(.yandex.cloud.ai.assistants.v1.Assistant\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1cListAssistantVersionsRequest\x12\x1a\n\x0c\x61ssistant_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\"\x8c\x01\n\x10\x41ssistantVersion\x12\n\n\x02id\x18\x01 \x01(\t\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12;\n\tassistant\x18\x03 \x01(\x0b\x32(.yandex.cloud.ai.assistants.v1.Assistant\"{\n\x1dListAssistantVersionsResponse\x12\x41\n\x08versions\x18\x01 \x03(\x0b\x32/.yandex.cloud.ai.assistants.v1.AssistantVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xde\x07\n\x10\x41ssistantService\x12\x8f\x01\n\x06\x43reate\x12\x35.yandex.cloud.ai.assistants.v1.CreateAssistantRequest\x1a(.yandex.cloud.ai.assistants.v1.Assistant\"$\x82\xd3\xe4\x93\x02\x1e\"\x19/assistants/v1/assistants:\x01*\x12\x95\x01\n\x03Get\x12\x32.yandex.cloud.ai.assistants.v1.GetAssistantRequest\x1a(.yandex.cloud.ai.assistants.v1.Assistant\"0\x82\xd3\xe4\x93\x02*\x12(/assistants/v1/assistants/{assistant_id}\x12\x9e\x01\n\x06Update\x12\x35.yandex.cloud.ai.assistants.v1.UpdateAssistantRequest\x1a(.yandex.cloud.ai.assistants.v1.Assistant\"3\x82\xd3\xe4\x93\x02-2(/assistants/v1/assistants/{assistant_id}:\x01*\x12\xa9\x01\n\x06\x44\x65lete\x12\x35.yandex.cloud.ai.assistants.v1.DeleteAssistantRequest\x1a\x36.yandex.cloud.ai.assistants.v1.DeleteAssistantResponse\"0\x82\xd3\xe4\x93\x02**(/assistants/v1/assistants/{assistant_id}\x12\x96\x01\n\x04List\x12\x34.yandex.cloud.ai.assistants.v1.ListAssistantsRequest\x1a\x35.yandex.cloud.ai.assistants.v1.ListAssistantsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/assistants/v1/assistants\x12\xb9\x01\n\x0cListVersions\x12;.yandex.cloud.ai.assistants.v1.ListAssistantVersionsRequest\x1a<.yandex.cloud.ai.assistants.v1.ListAssistantVersionsResponse\".\x82\xd3\xe4\x93\x02(\x12&/assistants/v1/assistants:listVersionsBq\n!yandex.cloud.api.ai.assistants.v1ZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1;assistantsb\x06proto3')
34
34
 
35
35
  _globals = globals()
36
36
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -71,29 +71,29 @@ if not _descriptor._USE_C_DESCRIPTORS:
71
71
  _globals['_ASSISTANTSERVICE'].methods_by_name['ListVersions']._loaded_options = None
72
72
  _globals['_ASSISTANTSERVICE'].methods_by_name['ListVersions']._serialized_options = b'\202\323\344\223\002(\022&/assistants/v1/assistants:listVersions'
73
73
  _globals['_CREATEASSISTANTREQUEST']._serialized_start=312
74
- _globals['_CREATEASSISTANTREQUEST']._serialized_end=862
75
- _globals['_CREATEASSISTANTREQUEST_LABELSENTRY']._serialized_start=817
76
- _globals['_CREATEASSISTANTREQUEST_LABELSENTRY']._serialized_end=862
77
- _globals['_GETASSISTANTREQUEST']._serialized_start=864
78
- _globals['_GETASSISTANTREQUEST']._serialized_end=913
79
- _globals['_UPDATEASSISTANTREQUEST']._serialized_start=916
80
- _globals['_UPDATEASSISTANTREQUEST']._serialized_end=1518
81
- _globals['_UPDATEASSISTANTREQUEST_LABELSENTRY']._serialized_start=817
82
- _globals['_UPDATEASSISTANTREQUEST_LABELSENTRY']._serialized_end=862
83
- _globals['_DELETEASSISTANTREQUEST']._serialized_start=1520
84
- _globals['_DELETEASSISTANTREQUEST']._serialized_end=1572
85
- _globals['_DELETEASSISTANTRESPONSE']._serialized_start=1574
86
- _globals['_DELETEASSISTANTRESPONSE']._serialized_end=1599
87
- _globals['_LISTASSISTANTSREQUEST']._serialized_start=1601
88
- _globals['_LISTASSISTANTSREQUEST']._serialized_end=1688
89
- _globals['_LISTASSISTANTSRESPONSE']._serialized_start=1690
90
- _globals['_LISTASSISTANTSRESPONSE']._serialized_end=1801
91
- _globals['_LISTASSISTANTVERSIONSREQUEST']._serialized_start=1803
92
- _globals['_LISTASSISTANTVERSIONSREQUEST']._serialized_end=1900
93
- _globals['_ASSISTANTVERSION']._serialized_start=1903
94
- _globals['_ASSISTANTVERSION']._serialized_end=2043
95
- _globals['_LISTASSISTANTVERSIONSRESPONSE']._serialized_start=2045
96
- _globals['_LISTASSISTANTVERSIONSRESPONSE']._serialized_end=2168
97
- _globals['_ASSISTANTSERVICE']._serialized_start=2171
98
- _globals['_ASSISTANTSERVICE']._serialized_end=3161
74
+ _globals['_CREATEASSISTANTREQUEST']._serialized_end=934
75
+ _globals['_CREATEASSISTANTREQUEST_LABELSENTRY']._serialized_start=889
76
+ _globals['_CREATEASSISTANTREQUEST_LABELSENTRY']._serialized_end=934
77
+ _globals['_GETASSISTANTREQUEST']._serialized_start=936
78
+ _globals['_GETASSISTANTREQUEST']._serialized_end=985
79
+ _globals['_UPDATEASSISTANTREQUEST']._serialized_start=988
80
+ _globals['_UPDATEASSISTANTREQUEST']._serialized_end=1662
81
+ _globals['_UPDATEASSISTANTREQUEST_LABELSENTRY']._serialized_start=889
82
+ _globals['_UPDATEASSISTANTREQUEST_LABELSENTRY']._serialized_end=934
83
+ _globals['_DELETEASSISTANTREQUEST']._serialized_start=1664
84
+ _globals['_DELETEASSISTANTREQUEST']._serialized_end=1716
85
+ _globals['_DELETEASSISTANTRESPONSE']._serialized_start=1718
86
+ _globals['_DELETEASSISTANTRESPONSE']._serialized_end=1743
87
+ _globals['_LISTASSISTANTSREQUEST']._serialized_start=1745
88
+ _globals['_LISTASSISTANTSREQUEST']._serialized_end=1832
89
+ _globals['_LISTASSISTANTSRESPONSE']._serialized_start=1834
90
+ _globals['_LISTASSISTANTSRESPONSE']._serialized_end=1945
91
+ _globals['_LISTASSISTANTVERSIONSREQUEST']._serialized_start=1947
92
+ _globals['_LISTASSISTANTVERSIONSREQUEST']._serialized_end=2044
93
+ _globals['_ASSISTANTVERSION']._serialized_start=2047
94
+ _globals['_ASSISTANTVERSION']._serialized_end=2187
95
+ _globals['_LISTASSISTANTVERSIONSRESPONSE']._serialized_start=2189
96
+ _globals['_LISTASSISTANTVERSIONSRESPONSE']._serialized_end=2312
97
+ _globals['_ASSISTANTSERVICE']._serialized_start=2315
98
+ _globals['_ASSISTANTSERVICE']._serialized_end=3305
99
99
  # @@protoc_insertion_point(module_scope)
@@ -48,6 +48,7 @@ class CreateAssistantRequest(google.protobuf.message.Message):
48
48
  PROMPT_TRUNCATION_OPTIONS_FIELD_NUMBER: builtins.int
49
49
  COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
50
50
  TOOLS_FIELD_NUMBER: builtins.int
51
+ RESPONSE_FORMAT_FIELD_NUMBER: builtins.int
51
52
  folder_id: builtins.str
52
53
  name: builtins.str
53
54
  """Name of the assistant."""
@@ -81,6 +82,10 @@ class CreateAssistantRequest(google.protobuf.message.Message):
81
82
  One example is the SearchIndexTool, which is used for Retrieval-Augmented Generation (RAG).
82
83
  """
83
84
 
85
+ @property
86
+ def response_format(self) -> yandex.cloud.ai.assistants.v1.common_pb2.ResponseFormat:
87
+ """Specifies the format of the model's response."""
88
+
84
89
  def __init__(
85
90
  self,
86
91
  *,
@@ -94,9 +99,10 @@ class CreateAssistantRequest(google.protobuf.message.Message):
94
99
  prompt_truncation_options: yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions | None = ...,
95
100
  completion_options: yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions | None = ...,
96
101
  tools: collections.abc.Iterable[yandex.cloud.ai.assistants.v1.common_pb2.Tool] | None = ...,
102
+ response_format: yandex.cloud.ai.assistants.v1.common_pb2.ResponseFormat | None = ...,
97
103
  ) -> None: ...
98
- def HasField(self, field_name: typing.Literal["completion_options", b"completion_options", "expiration_config", b"expiration_config", "prompt_truncation_options", b"prompt_truncation_options"]) -> builtins.bool: ...
99
- def ClearField(self, field_name: typing.Literal["completion_options", b"completion_options", "description", b"description", "expiration_config", b"expiration_config", "folder_id", b"folder_id", "instruction", b"instruction", "labels", b"labels", "model_uri", b"model_uri", "name", b"name", "prompt_truncation_options", b"prompt_truncation_options", "tools", b"tools"]) -> None: ...
104
+ def HasField(self, field_name: typing.Literal["completion_options", b"completion_options", "expiration_config", b"expiration_config", "prompt_truncation_options", b"prompt_truncation_options", "response_format", b"response_format"]) -> builtins.bool: ...
105
+ def ClearField(self, field_name: typing.Literal["completion_options", b"completion_options", "description", b"description", "expiration_config", b"expiration_config", "folder_id", b"folder_id", "instruction", b"instruction", "labels", b"labels", "model_uri", b"model_uri", "name", b"name", "prompt_truncation_options", b"prompt_truncation_options", "response_format", b"response_format", "tools", b"tools"]) -> None: ...
100
106
 
101
107
  global___CreateAssistantRequest = CreateAssistantRequest
102
108
 
@@ -151,6 +157,7 @@ class UpdateAssistantRequest(google.protobuf.message.Message):
151
157
  PROMPT_TRUNCATION_OPTIONS_FIELD_NUMBER: builtins.int
152
158
  COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
153
159
  TOOLS_FIELD_NUMBER: builtins.int
160
+ RESPONSE_FORMAT_FIELD_NUMBER: builtins.int
154
161
  assistant_id: builtins.str
155
162
  """ID of the assistant to update."""
156
163
  name: builtins.str
@@ -185,6 +192,8 @@ class UpdateAssistantRequest(google.protobuf.message.Message):
185
192
  def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.common_pb2.Tool]:
186
193
  """New list of tools the assistant can use."""
187
194
 
195
+ @property
196
+ def response_format(self) -> yandex.cloud.ai.assistants.v1.common_pb2.ResponseFormat: ...
188
197
  def __init__(
189
198
  self,
190
199
  *,
@@ -199,9 +208,10 @@ class UpdateAssistantRequest(google.protobuf.message.Message):
199
208
  prompt_truncation_options: yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions | None = ...,
200
209
  completion_options: yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions | None = ...,
201
210
  tools: collections.abc.Iterable[yandex.cloud.ai.assistants.v1.common_pb2.Tool] | None = ...,
211
+ response_format: yandex.cloud.ai.assistants.v1.common_pb2.ResponseFormat | None = ...,
202
212
  ) -> None: ...
203
- def HasField(self, field_name: typing.Literal["completion_options", b"completion_options", "expiration_config", b"expiration_config", "prompt_truncation_options", b"prompt_truncation_options", "update_mask", b"update_mask"]) -> builtins.bool: ...
204
- def ClearField(self, field_name: typing.Literal["assistant_id", b"assistant_id", "completion_options", b"completion_options", "description", b"description", "expiration_config", b"expiration_config", "instruction", b"instruction", "labels", b"labels", "model_uri", b"model_uri", "name", b"name", "prompt_truncation_options", b"prompt_truncation_options", "tools", b"tools", "update_mask", b"update_mask"]) -> None: ...
213
+ def HasField(self, field_name: typing.Literal["completion_options", b"completion_options", "expiration_config", b"expiration_config", "prompt_truncation_options", b"prompt_truncation_options", "response_format", b"response_format", "update_mask", b"update_mask"]) -> builtins.bool: ...
214
+ def ClearField(self, field_name: typing.Literal["assistant_id", b"assistant_id", "completion_options", b"completion_options", "description", b"description", "expiration_config", b"expiration_config", "instruction", b"instruction", "labels", b"labels", "model_uri", b"model_uri", "name", b"name", "prompt_truncation_options", b"prompt_truncation_options", "response_format", b"response_format", "tools", b"tools", "update_mask", b"update_mask"]) -> None: ...
205
215
 
206
216
  global___UpdateAssistantRequest = UpdateAssistantRequest
207
217
 
@@ -27,7 +27,7 @@ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb
27
27
  from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
28
28
 
29
29
 
30
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*yandex/cloud/ai/assistants/v1/common.proto\x12\x1dyandex.cloud.ai.assistants.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\xf2\x02\n\x17PromptTruncationOptions\x12\x36\n\x11max_prompt_tokens\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\\\n\rauto_strategy\x18\x02 \x01(\x0b\x32\x43.yandex.cloud.ai.assistants.v1.PromptTruncationOptions.AutoStrategyH\x00\x12m\n\x16last_messages_strategy\x18\x03 \x01(\x0b\x32K.yandex.cloud.ai.assistants.v1.PromptTruncationOptions.LastMessagesStrategyH\x00\x1a\x0e\n\x0c\x41utoStrategy\x1a,\n\x14LastMessagesStrategy\x12\x14\n\x0cnum_messages\x18\x01 \x01(\x03\x42\x14\n\x12TruncationStrategy\"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\"\x9b\x01\n\x04Tool\x12\x46\n\x0csearch_index\x18\x01 \x01(\x0b\x32..yandex.cloud.ai.assistants.v1.SearchIndexToolH\x00\x12?\n\x08\x66unction\x18\x02 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.FunctionToolH\x00\x42\n\n\x08ToolType\"`\n\x08ToolCall\x12\x44\n\rfunction_call\x18\x01 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.FunctionCallH\x00\x42\x0e\n\x0cToolCallType\"K\n\x0cToolCallList\x12;\n\ntool_calls\x18\x01 \x03(\x0b\x32\'.yandex.cloud.ai.assistants.v1.ToolCall\"h\n\nToolResult\x12H\n\x0f\x66unction_result\x18\x01 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.FunctionResultH\x00\x42\x10\n\x0eToolResultType\"Q\n\x0eToolResultList\x12?\n\x0ctool_results\x18\x01 \x03(\x0b\x32).yandex.cloud.ai.assistants.v1.ToolResult\"\xf1\x01\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\x12J\n\x11rephraser_options\x18\x03 \x01(\x0b\x32/.yandex.cloud.ai.assistants.v1.RephraserOptions\x12\x42\n\rcall_strategy\x18\x04 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.CallStrategy\"\xf7\x01\n\x0c\x43\x61llStrategy\x12M\n\x0b\x61lways_call\x18\x01 \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.CallStrategy.AlwaysCallH\x00\x12I\n\tauto_call\x18\x02 \x01(\x0b\x32\x34.yandex.cloud.ai.assistants.v1.CallStrategy.AutoCallH\x00\x1a\x0c\n\nAlwaysCall\x1a\x33\n\x08\x41utoCall\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0binstruction\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x42\n\n\x08Strategy\"^\n\x0c\x46unctionTool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12+\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"H\n\x0c\x46unctionCall\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\targuments\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"@\n\x0e\x46unctionResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x42\r\n\x0b\x43ontentType\"/\n\x10RephraserOptions\x12\x1b\n\rrephraser_uri\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x42q\n!yandex.cloud.api.ai.assistants.v1ZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1;assistantsb\x06proto3')
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*yandex/cloud/ai/assistants/v1/common.proto\x12\x1dyandex.cloud.ai.assistants.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\xf2\x02\n\x17PromptTruncationOptions\x12\x36\n\x11max_prompt_tokens\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\\\n\rauto_strategy\x18\x02 \x01(\x0b\x32\x43.yandex.cloud.ai.assistants.v1.PromptTruncationOptions.AutoStrategyH\x00\x12m\n\x16last_messages_strategy\x18\x03 \x01(\x0b\x32K.yandex.cloud.ai.assistants.v1.PromptTruncationOptions.LastMessagesStrategyH\x00\x1a\x0e\n\x0c\x41utoStrategy\x1a,\n\x14LastMessagesStrategy\x12\x14\n\x0cnum_messages\x18\x01 \x01(\x03\x42\x14\n\x12TruncationStrategy\"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\"\x9b\x01\n\x04Tool\x12\x46\n\x0csearch_index\x18\x01 \x01(\x0b\x32..yandex.cloud.ai.assistants.v1.SearchIndexToolH\x00\x12?\n\x08\x66unction\x18\x02 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.FunctionToolH\x00\x42\n\n\x08ToolType\"`\n\x08ToolCall\x12\x44\n\rfunction_call\x18\x01 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.FunctionCallH\x00\x42\x0e\n\x0cToolCallType\"K\n\x0cToolCallList\x12;\n\ntool_calls\x18\x01 \x03(\x0b\x32\'.yandex.cloud.ai.assistants.v1.ToolCall\"h\n\nToolResult\x12H\n\x0f\x66unction_result\x18\x01 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.FunctionResultH\x00\x42\x10\n\x0eToolResultType\"Q\n\x0eToolResultList\x12?\n\x0ctool_results\x18\x01 \x03(\x0b\x32).yandex.cloud.ai.assistants.v1.ToolResult\"\xf1\x01\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\x12J\n\x11rephraser_options\x18\x03 \x01(\x0b\x32/.yandex.cloud.ai.assistants.v1.RephraserOptions\x12\x42\n\rcall_strategy\x18\x04 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.CallStrategy\"\xf7\x01\n\x0c\x43\x61llStrategy\x12M\n\x0b\x61lways_call\x18\x01 \x01(\x0b\x32\x36.yandex.cloud.ai.assistants.v1.CallStrategy.AlwaysCallH\x00\x12I\n\tauto_call\x18\x02 \x01(\x0b\x32\x34.yandex.cloud.ai.assistants.v1.CallStrategy.AutoCallH\x00\x1a\x0c\n\nAlwaysCall\x1a\x33\n\x08\x41utoCall\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0binstruction\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x42\n\n\x08Strategy\"^\n\x0c\x46unctionTool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12+\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"H\n\x0c\x46unctionCall\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\targuments\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"@\n\x0e\x46unctionResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x42\r\n\x0b\x43ontentType\"/\n\x10RephraserOptions\x12\x1b\n\rrephraser_uri\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"5\n\nJsonSchema\x12\'\n\x06schema\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"{\n\x0eResponseFormat\x12\x15\n\x0bjson_object\x18\x01 \x01(\x08H\x00\x12@\n\x0bjson_schema\x18\x02 \x01(\x0b\x32).yandex.cloud.ai.assistants.v1.JsonSchemaH\x00\x42\x10\n\x0eResponseFormatBq\n!yandex.cloud.api.ai.assistants.v1ZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1;assistantsb\x06proto3')
31
31
 
32
32
  _globals = globals()
33
33
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -73,4 +73,8 @@ if not _descriptor._USE_C_DESCRIPTORS:
73
73
  _globals['_FUNCTIONRESULT']._serialized_end=1914
74
74
  _globals['_REPHRASEROPTIONS']._serialized_start=1916
75
75
  _globals['_REPHRASEROPTIONS']._serialized_end=1963
76
+ _globals['_JSONSCHEMA']._serialized_start=1965
77
+ _globals['_JSONSCHEMA']._serialized_end=2018
78
+ _globals['_RESPONSEFORMAT']._serialized_start=2020
79
+ _globals['_RESPONSEFORMAT']._serialized_end=2143
76
80
  # @@protoc_insertion_point(module_scope)
@@ -431,3 +431,53 @@ class RephraserOptions(google.protobuf.message.Message):
431
431
  def ClearField(self, field_name: typing.Literal["rephraser_uri", b"rephraser_uri"]) -> None: ...
432
432
 
433
433
  global___RephraserOptions = RephraserOptions
434
+
435
+ @typing.final
436
+ class JsonSchema(google.protobuf.message.Message):
437
+ """Represents the expected structure of the model's response using a JSON Schema."""
438
+
439
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
440
+
441
+ SCHEMA_FIELD_NUMBER: builtins.int
442
+ @property
443
+ def schema(self) -> google.protobuf.struct_pb2.Struct:
444
+ """The JSON Schema that the model's output must conform to."""
445
+
446
+ def __init__(
447
+ self,
448
+ *,
449
+ schema: google.protobuf.struct_pb2.Struct | None = ...,
450
+ ) -> None: ...
451
+ def HasField(self, field_name: typing.Literal["schema", b"schema"]) -> builtins.bool: ...
452
+ def ClearField(self, field_name: typing.Literal["schema", b"schema"]) -> None: ...
453
+
454
+ global___JsonSchema = JsonSchema
455
+
456
+ @typing.final
457
+ class ResponseFormat(google.protobuf.message.Message):
458
+ """Specifies the format of the model's response."""
459
+
460
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
461
+
462
+ JSON_OBJECT_FIELD_NUMBER: builtins.int
463
+ JSON_SCHEMA_FIELD_NUMBER: builtins.int
464
+ json_object: builtins.bool
465
+ """When set to true, the model will respond with a valid JSON object.
466
+ Be sure to explicitly ask the model for JSON.
467
+ Otherwise, it may generate excessive whitespace and run indefinitely until it reaches the token limit.
468
+ """
469
+ @property
470
+ def json_schema(self) -> global___JsonSchema:
471
+ """Enforces a specific JSON structure for the model's response based on a provided schema."""
472
+
473
+ def __init__(
474
+ self,
475
+ *,
476
+ json_object: builtins.bool = ...,
477
+ json_schema: global___JsonSchema | None = ...,
478
+ ) -> None: ...
479
+ def HasField(self, field_name: typing.Literal["ResponseFormat", b"ResponseFormat", "json_object", b"json_object", "json_schema", b"json_schema"]) -> builtins.bool: ...
480
+ def ClearField(self, field_name: typing.Literal["ResponseFormat", b"ResponseFormat", "json_object", b"json_object", "json_schema", b"json_schema"]) -> None: ...
481
+ def WhichOneof(self, oneof_group: typing.Literal["ResponseFormat", b"ResponseFormat"]) -> typing.Literal["json_object", "json_schema"] | None: ...
482
+
483
+ global___ResponseFormat = ResponseFormat
@@ -28,7 +28,7 @@ from yandex.cloud.ai.assistants.v1.threads import message_pb2 as yandex_dot_clou
28
28
  from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
29
29
 
30
30
 
31
- 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\"\xdb\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\x12\x32\n\x05tools\x18\x0b \x03(\x0b\x32#.yandex.cloud.ai.assistants.v1.Tool\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x95\x03\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\x12\x45\n\x0etool_call_list\x18\x04 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.ToolCallListH\x00\"p\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\x12\x0e\n\nTOOL_CALLS\x10\x05\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')
31
+ 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\"\xaa\x05\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\x12\x32\n\x05tools\x18\x0b \x03(\x0b\x32#.yandex.cloud.ai.assistants.v1.Tool\x12M\n\x16\x63ustom_response_format\x18\x0c \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.ResponseFormat\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x95\x03\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\x12\x45\n\x0etool_call_list\x18\x04 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.ToolCallListH\x00\"p\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\x12\x0e\n\nTOOL_CALLS\x10\x05\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')
32
32
 
33
33
  _globals = globals()
34
34
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -39,13 +39,13 @@ if not _descriptor._USE_C_DESCRIPTORS:
39
39
  _globals['_RUN_LABELSENTRY']._loaded_options = None
40
40
  _globals['_RUN_LABELSENTRY']._serialized_options = b'8\001'
41
41
  _globals['_RUN']._serialized_start=252
42
- _globals['_RUN']._serialized_end=855
43
- _globals['_RUN_LABELSENTRY']._serialized_start=810
44
- _globals['_RUN_LABELSENTRY']._serialized_end=855
45
- _globals['_RUNSTATE']._serialized_start=858
46
- _globals['_RUNSTATE']._serialized_end=1263
47
- _globals['_RUNSTATE_RUNSTATUS']._serialized_start=1138
48
- _globals['_RUNSTATE_RUNSTATUS']._serialized_end=1250
49
- _globals['_CONTENTUSAGE']._serialized_start=1265
50
- _globals['_CONTENTUSAGE']._serialized_end=1351
42
+ _globals['_RUN']._serialized_end=934
43
+ _globals['_RUN_LABELSENTRY']._serialized_start=889
44
+ _globals['_RUN_LABELSENTRY']._serialized_end=934
45
+ _globals['_RUNSTATE']._serialized_start=937
46
+ _globals['_RUNSTATE']._serialized_end=1342
47
+ _globals['_RUNSTATE_RUNSTATUS']._serialized_start=1217
48
+ _globals['_RUNSTATE_RUNSTATUS']._serialized_end=1329
49
+ _globals['_CONTENTUSAGE']._serialized_start=1344
50
+ _globals['_CONTENTUSAGE']._serialized_end=1430
51
51
  # @@protoc_insertion_point(module_scope)
@@ -56,6 +56,7 @@ class Run(google.protobuf.message.Message):
56
56
  CUSTOM_PROMPT_TRUNCATION_OPTIONS_FIELD_NUMBER: builtins.int
57
57
  CUSTOM_COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
58
58
  TOOLS_FIELD_NUMBER: builtins.int
59
+ CUSTOM_RESPONSE_FORMAT_FIELD_NUMBER: builtins.int
59
60
  id: builtins.str
60
61
  """Unique identifier of the run."""
61
62
  assistant_id: builtins.str
@@ -96,6 +97,10 @@ class Run(google.protobuf.message.Message):
96
97
  def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.common_pb2.Tool]:
97
98
  """List of tools that are available for the assistant to use in this run."""
98
99
 
100
+ @property
101
+ def custom_response_format(self) -> yandex.cloud.ai.assistants.v1.common_pb2.ResponseFormat:
102
+ """Specifies the format of the model's response."""
103
+
99
104
  def __init__(
100
105
  self,
101
106
  *,
@@ -110,9 +115,10 @@ class Run(google.protobuf.message.Message):
110
115
  custom_prompt_truncation_options: yandex.cloud.ai.assistants.v1.common_pb2.PromptTruncationOptions | None = ...,
111
116
  custom_completion_options: yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions | None = ...,
112
117
  tools: collections.abc.Iterable[yandex.cloud.ai.assistants.v1.common_pb2.Tool] | None = ...,
118
+ custom_response_format: yandex.cloud.ai.assistants.v1.common_pb2.ResponseFormat | None = ...,
113
119
  ) -> None: ...
114
- 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: ...
115
- 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", "tools", b"tools", "usage", b"usage"]) -> None: ...
120
+ 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", "custom_response_format", b"custom_response_format", "state", b"state", "usage", b"usage"]) -> builtins.bool: ...
121
+ 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", "custom_response_format", b"custom_response_format", "id", b"id", "labels", b"labels", "state", b"state", "thread_id", b"thread_id", "tools", b"tools", "usage", b"usage"]) -> None: ...
116
122
 
117
123
  global___Run = Run
118
124
 
@@ -31,7 +31,7 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
31
31
  from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
32
32
 
33
33
 
34
- 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\"\x94\x04\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\x12\x32\n\x05tools\x18\x08 \x03(\x0b\x32#.yandex.cloud.ai.assistants.v1.Tool\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\"\xb3\x01\n\x10\x41ttachRunRequest\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\x12I\n\x10tool_result_list\x18\x03 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.ToolResultListH\x00\x42\x07\n\x05\x45vent\"%\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\"\xab\x04\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\x12\x45\n\x0etool_call_list\x18\x06 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.ToolCallListH\x00\"a\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\x12\x0e\n\nTOOL_CALLS\x10\x04\x42\x0b\n\tEventData\"~\n\x12SubmitToRunRequest\x12\x14\n\x06run_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12I\n\x10tool_result_list\x18\x02 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.ToolResultListH\x00\x42\x07\n\x05\x45vent\"\x15\n\x13SubmitToRunResponse2\x86\x08\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\x12s\n\x06\x41ttach\x12\x34.yandex.cloud.ai.assistants.v1.runs.AttachRunRequest\x1a/.yandex.cloud.ai.assistants.v1.runs.StreamEvent(\x01\x30\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/runs\x12\xa0\x01\n\x06Submit\x12\x36.yandex.cloud.ai.assistants.v1.runs.SubmitToRunRequest\x1a\x37.yandex.cloud.ai.assistants.v1.runs.SubmitToRunResponse\"%\x82\xd3\xe4\x93\x02\x1f\x32\x1a/assistants/v1/runs/submit:\x01*Bu\n&yandex.cloud.api.ai.assistants.v1.runsZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/runs;runsb\x06proto3')
34
+ 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\"\xe3\x04\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\x12\x32\n\x05tools\x18\x08 \x03(\x0b\x32#.yandex.cloud.ai.assistants.v1.Tool\x12M\n\x16\x63ustom_response_format\x18\t \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.ResponseFormat\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\"\xb3\x01\n\x10\x41ttachRunRequest\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\x12I\n\x10tool_result_list\x18\x03 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.ToolResultListH\x00\x42\x07\n\x05\x45vent\"%\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\"\xab\x04\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\x12\x45\n\x0etool_call_list\x18\x06 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.ToolCallListH\x00\"a\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\x12\x0e\n\nTOOL_CALLS\x10\x04\x42\x0b\n\tEventData\"~\n\x12SubmitToRunRequest\x12\x14\n\x06run_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12I\n\x10tool_result_list\x18\x02 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.ToolResultListH\x00\x42\x07\n\x05\x45vent\"\x15\n\x13SubmitToRunResponse2\x86\x08\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\x12s\n\x06\x41ttach\x12\x34.yandex.cloud.ai.assistants.v1.runs.AttachRunRequest\x1a/.yandex.cloud.ai.assistants.v1.runs.StreamEvent(\x01\x30\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/runs\x12\xa0\x01\n\x06Submit\x12\x36.yandex.cloud.ai.assistants.v1.runs.SubmitToRunRequest\x1a\x37.yandex.cloud.ai.assistants.v1.runs.SubmitToRunResponse\"%\x82\xd3\xe4\x93\x02\x1f\x32\x1a/assistants/v1/runs/submit:\x01*Bu\n&yandex.cloud.api.ai.assistants.v1.runsZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/runs;runsb\x06proto3')
35
35
 
36
36
  _globals = globals()
37
37
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -70,31 +70,31 @@ if not _descriptor._USE_C_DESCRIPTORS:
70
70
  _globals['_RUNSERVICE'].methods_by_name['Submit']._loaded_options = None
71
71
  _globals['_RUNSERVICE'].methods_by_name['Submit']._serialized_options = b'\202\323\344\223\002\0372\032/assistants/v1/runs/submit:\001*'
72
72
  _globals['_CREATERUNREQUEST']._serialized_start=366
73
- _globals['_CREATERUNREQUEST']._serialized_end=898
74
- _globals['_CREATERUNREQUEST_LABELSENTRY']._serialized_start=853
75
- _globals['_CREATERUNREQUEST_LABELSENTRY']._serialized_end=898
76
- _globals['_LISTENRUNREQUEST']._serialized_start=900
77
- _globals['_LISTENRUNREQUEST']._serialized_end=995
78
- _globals['_ATTACHRUNREQUEST']._serialized_start=998
79
- _globals['_ATTACHRUNREQUEST']._serialized_end=1177
80
- _globals['_GETRUNREQUEST']._serialized_start=1179
81
- _globals['_GETRUNREQUEST']._serialized_end=1216
82
- _globals['_GETLASTRUNBYTHREADREQUEST']._serialized_start=1218
83
- _globals['_GETLASTRUNBYTHREADREQUEST']._serialized_end=1270
84
- _globals['_LISTRUNSREQUEST']._serialized_start=1272
85
- _globals['_LISTRUNSREQUEST']._serialized_end=1353
86
- _globals['_LISTRUNSRESPONSE']._serialized_start=1355
87
- _globals['_LISTRUNSRESPONSE']._serialized_end=1453
88
- _globals['_STREAMCURSOR']._serialized_start=1455
89
- _globals['_STREAMCURSOR']._serialized_end=1530
90
- _globals['_STREAMEVENT']._serialized_start=1533
91
- _globals['_STREAMEVENT']._serialized_end=2088
92
- _globals['_STREAMEVENT_EVENTTYPE']._serialized_start=1978
93
- _globals['_STREAMEVENT_EVENTTYPE']._serialized_end=2075
94
- _globals['_SUBMITTORUNREQUEST']._serialized_start=2090
95
- _globals['_SUBMITTORUNREQUEST']._serialized_end=2216
96
- _globals['_SUBMITTORUNRESPONSE']._serialized_start=2218
97
- _globals['_SUBMITTORUNRESPONSE']._serialized_end=2239
98
- _globals['_RUNSERVICE']._serialized_start=2242
99
- _globals['_RUNSERVICE']._serialized_end=3272
73
+ _globals['_CREATERUNREQUEST']._serialized_end=977
74
+ _globals['_CREATERUNREQUEST_LABELSENTRY']._serialized_start=932
75
+ _globals['_CREATERUNREQUEST_LABELSENTRY']._serialized_end=977
76
+ _globals['_LISTENRUNREQUEST']._serialized_start=979
77
+ _globals['_LISTENRUNREQUEST']._serialized_end=1074
78
+ _globals['_ATTACHRUNREQUEST']._serialized_start=1077
79
+ _globals['_ATTACHRUNREQUEST']._serialized_end=1256
80
+ _globals['_GETRUNREQUEST']._serialized_start=1258
81
+ _globals['_GETRUNREQUEST']._serialized_end=1295
82
+ _globals['_GETLASTRUNBYTHREADREQUEST']._serialized_start=1297
83
+ _globals['_GETLASTRUNBYTHREADREQUEST']._serialized_end=1349
84
+ _globals['_LISTRUNSREQUEST']._serialized_start=1351
85
+ _globals['_LISTRUNSREQUEST']._serialized_end=1432
86
+ _globals['_LISTRUNSRESPONSE']._serialized_start=1434
87
+ _globals['_LISTRUNSRESPONSE']._serialized_end=1532
88
+ _globals['_STREAMCURSOR']._serialized_start=1534
89
+ _globals['_STREAMCURSOR']._serialized_end=1609
90
+ _globals['_STREAMEVENT']._serialized_start=1612
91
+ _globals['_STREAMEVENT']._serialized_end=2167
92
+ _globals['_STREAMEVENT_EVENTTYPE']._serialized_start=2057
93
+ _globals['_STREAMEVENT_EVENTTYPE']._serialized_end=2154
94
+ _globals['_SUBMITTORUNREQUEST']._serialized_start=2169
95
+ _globals['_SUBMITTORUNREQUEST']._serialized_end=2295
96
+ _globals['_SUBMITTORUNRESPONSE']._serialized_start=2297
97
+ _globals['_SUBMITTORUNRESPONSE']._serialized_end=2318
98
+ _globals['_RUNSERVICE']._serialized_start=2321
99
+ _globals['_RUNSERVICE']._serialized_end=3351
100
100
  # @@protoc_insertion_point(module_scope)
@@ -54,6 +54,7 @@ class CreateRunRequest(google.protobuf.message.Message):
54
54
  CUSTOM_COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
55
55
  STREAM_FIELD_NUMBER: builtins.int
56
56
  TOOLS_FIELD_NUMBER: builtins.int
57
+ CUSTOM_RESPONSE_FORMAT_FIELD_NUMBER: builtins.int
57
58
  assistant_id: builtins.str
58
59
  """ID of the assistant for which the run is being created"""
59
60
  thread_id: builtins.str
@@ -84,6 +85,10 @@ class CreateRunRequest(google.protobuf.message.Message):
84
85
  def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.common_pb2.Tool]:
85
86
  """List of tools that are available for the assistant to use in this run."""
86
87
 
88
+ @property
89
+ def custom_response_format(self) -> yandex.cloud.ai.assistants.v1.common_pb2.ResponseFormat:
90
+ """Specifies the format of the model's response."""
91
+
87
92
  def __init__(
88
93
  self,
89
94
  *,
@@ -95,9 +100,10 @@ class CreateRunRequest(google.protobuf.message.Message):
95
100
  custom_completion_options: yandex.cloud.ai.assistants.v1.common_pb2.CompletionOptions | None = ...,
96
101
  stream: builtins.bool = ...,
97
102
  tools: collections.abc.Iterable[yandex.cloud.ai.assistants.v1.common_pb2.Tool] | None = ...,
103
+ custom_response_format: yandex.cloud.ai.assistants.v1.common_pb2.ResponseFormat | None = ...,
98
104
  ) -> None: ...
99
- 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: ...
100
- 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", "tools", b"tools"]) -> None: ...
105
+ def HasField(self, field_name: typing.Literal["custom_completion_options", b"custom_completion_options", "custom_prompt_truncation_options", b"custom_prompt_truncation_options", "custom_response_format", b"custom_response_format"]) -> builtins.bool: ...
106
+ 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", "custom_response_format", b"custom_response_format", "labels", b"labels", "stream", b"stream", "thread_id", b"thread_id", "tools", b"tools"]) -> None: ...
101
107
 
102
108
  global___CreateRunRequest = CreateRunRequest
103
109
 
@@ -21,7 +21,7 @@ class Message(google.protobuf.message.Message):
21
21
  text: builtins.str
22
22
  """Text describing the image."""
23
23
  weight: builtins.float
24
- """Message weight. Negative values indicate negative messages."""
24
+ """Message weight. Negative values indicate negative messages. Note: Currently not supported."""
25
25
  def __init__(
26
26
  self,
27
27
  *,
@@ -64,7 +64,7 @@ class ImageGenerationOptions(google.protobuf.message.Message):
64
64
  For possible specifications, see [documentation](/docs/foundation-models/concepts).
65
65
  """
66
66
  seed: builtins.int
67
- """Seed for image generation. It serves as a starting point for image generation from noise."""
67
+ """Seed for image generation. It serves as a starting point for image generation from noise. If set to 0 or not provided, a randomly generated value will be used."""
68
68
  @property
69
69
  def aspect_ratio(self) -> global___AspectRatio:
70
70
  """Aspect ratio of generated image."""
@@ -26,7 +26,7 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
26
26
  from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
27
27
 
28
28
 
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/ai/foundation_models/v1/text_common.proto\x12$yandex.cloud.ai.foundation_models.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xda\x01\n\x11\x43ompletionOptions\x12\x0e\n\x06stream\x18\x01 \x01(\x08\x12\x31\n\x0btemperature\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12/\n\nmax_tokens\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12Q\n\x11reasoning_options\x18\x04 \x01(\x0b\x32\x36.yandex.cloud.ai.foundation_models.v1.ReasoningOptions\"\xb9\x01\n\x10ReasoningOptions\x12R\n\x04mode\x18\x01 \x01(\x0e\x32\x44.yandex.cloud.ai.foundation_models.v1.ReasoningOptions.ReasoningMode\"Q\n\rReasoningMode\x12\x1e\n\x1aREASONING_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x12\n\x0e\x45NABLED_HIDDEN\x10\x02\"\xd2\x01\n\x07Message\x12\x0c\n\x04role\x18\x01 \x01(\t\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12L\n\x0etool_call_list\x18\x03 \x01(\x0b\x32\x32.yandex.cloud.ai.foundation_models.v1.ToolCallListH\x00\x12P\n\x10tool_result_list\x18\x04 \x01(\x0b\x32\x34.yandex.cloud.ai.foundation_models.v1.ToolResultListH\x00\x42\t\n\x07\x43ontent\"\xfe\x01\n\x0c\x43ontentUsage\x12\x19\n\x11input_text_tokens\x18\x01 \x01(\x03\x12\x19\n\x11\x63ompletion_tokens\x18\x02 \x01(\x03\x12\x14\n\x0ctotal_tokens\x18\x03 \x01(\x03\x12m\n\x19\x63ompletion_tokens_details\x18\x04 \x01(\x0b\x32J.yandex.cloud.ai.foundation_models.v1.ContentUsage.CompletionTokensDetails\x1a\x33\n\x17\x43ompletionTokensDetails\x12\x18\n\x10reasoning_tokens\x18\x01 \x01(\x03\"\x8c\x03\n\x0b\x41lternative\x12>\n\x07message\x18\x01 \x01(\x0b\x32-.yandex.cloud.ai.foundation_models.v1.Message\x12S\n\x06status\x18\x02 \x01(\x0e\x32\x43.yandex.cloud.ai.foundation_models.v1.Alternative.AlternativeStatus\"\xe7\x01\n\x11\x41lternativeStatus\x12\"\n\x1e\x41LTERNATIVE_STATUS_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x41LTERNATIVE_STATUS_PARTIAL\x10\x01\x12&\n\"ALTERNATIVE_STATUS_TRUNCATED_FINAL\x10\x02\x12\x1c\n\x18\x41LTERNATIVE_STATUS_FINAL\x10\x03\x12%\n!ALTERNATIVE_STATUS_CONTENT_FILTER\x10\x04\x12!\n\x1d\x41LTERNATIVE_STATUS_TOOL_CALLS\x10\x05\"2\n\x05Token\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04text\x18\x02 \x01(\t\x12\x0f\n\x07special\x18\x03 \x01(\x08\"Z\n\x04Tool\x12\x46\n\x08\x66unction\x18\x01 \x01(\x0b\x32\x32.yandex.cloud.ai.foundation_models.v1.FunctionToolH\x00\x42\n\n\x08ToolType\"^\n\x0c\x46unctionTool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12+\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"g\n\x08ToolCall\x12K\n\rfunction_call\x18\x01 \x01(\x0b\x32\x32.yandex.cloud.ai.foundation_models.v1.FunctionCallH\x00\x42\x0e\n\x0cToolCallType\"H\n\x0c\x46unctionCall\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\targuments\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"R\n\x0cToolCallList\x12\x42\n\ntool_calls\x18\x01 \x03(\x0b\x32..yandex.cloud.ai.foundation_models.v1.ToolCall\"o\n\nToolResult\x12O\n\x0f\x66unction_result\x18\x01 \x01(\x0b\x32\x34.yandex.cloud.ai.foundation_models.v1.FunctionResultH\x00\x42\x10\n\x0eToolResultType\"@\n\x0e\x46unctionResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x42\r\n\x0b\x43ontentType\"X\n\x0eToolResultList\x12\x46\n\x0ctool_results\x18\x01 \x03(\x0b\x32\x30.yandex.cloud.ai.foundation_models.v1.ToolResult\"5\n\nJsonSchema\x12\'\n\x06schema\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x86\x01\n(yandex.cloud.api.ai.foundation_models.v1ZZgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/foundation_models/v1;foundation_modelsb\x06proto3')
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/ai/foundation_models/v1/text_common.proto\x12$yandex.cloud.ai.foundation_models.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xda\x01\n\x11\x43ompletionOptions\x12\x0e\n\x06stream\x18\x01 \x01(\x08\x12\x31\n\x0btemperature\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12/\n\nmax_tokens\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12Q\n\x11reasoning_options\x18\x04 \x01(\x0b\x32\x36.yandex.cloud.ai.foundation_models.v1.ReasoningOptions\"\xb9\x01\n\x10ReasoningOptions\x12R\n\x04mode\x18\x01 \x01(\x0e\x32\x44.yandex.cloud.ai.foundation_models.v1.ReasoningOptions.ReasoningMode\"Q\n\rReasoningMode\x12\x1e\n\x1aREASONING_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x12\n\x0e\x45NABLED_HIDDEN\x10\x02\"\xd2\x01\n\x07Message\x12\x0c\n\x04role\x18\x01 \x01(\t\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12L\n\x0etool_call_list\x18\x03 \x01(\x0b\x32\x32.yandex.cloud.ai.foundation_models.v1.ToolCallListH\x00\x12P\n\x10tool_result_list\x18\x04 \x01(\x0b\x32\x34.yandex.cloud.ai.foundation_models.v1.ToolResultListH\x00\x42\t\n\x07\x43ontent\"\xfe\x01\n\x0c\x43ontentUsage\x12\x19\n\x11input_text_tokens\x18\x01 \x01(\x03\x12\x19\n\x11\x63ompletion_tokens\x18\x02 \x01(\x03\x12\x14\n\x0ctotal_tokens\x18\x03 \x01(\x03\x12m\n\x19\x63ompletion_tokens_details\x18\x04 \x01(\x0b\x32J.yandex.cloud.ai.foundation_models.v1.ContentUsage.CompletionTokensDetails\x1a\x33\n\x17\x43ompletionTokensDetails\x12\x18\n\x10reasoning_tokens\x18\x01 \x01(\x03\"\x8c\x03\n\x0b\x41lternative\x12>\n\x07message\x18\x01 \x01(\x0b\x32-.yandex.cloud.ai.foundation_models.v1.Message\x12S\n\x06status\x18\x02 \x01(\x0e\x32\x43.yandex.cloud.ai.foundation_models.v1.Alternative.AlternativeStatus\"\xe7\x01\n\x11\x41lternativeStatus\x12\"\n\x1e\x41LTERNATIVE_STATUS_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x41LTERNATIVE_STATUS_PARTIAL\x10\x01\x12&\n\"ALTERNATIVE_STATUS_TRUNCATED_FINAL\x10\x02\x12\x1c\n\x18\x41LTERNATIVE_STATUS_FINAL\x10\x03\x12%\n!ALTERNATIVE_STATUS_CONTENT_FILTER\x10\x04\x12!\n\x1d\x41LTERNATIVE_STATUS_TOOL_CALLS\x10\x05\"2\n\x05Token\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04text\x18\x02 \x01(\t\x12\x0f\n\x07special\x18\x03 \x01(\x08\"Z\n\x04Tool\x12\x46\n\x08\x66unction\x18\x01 \x01(\x0b\x32\x32.yandex.cloud.ai.foundation_models.v1.FunctionToolH\x00\x42\n\n\x08ToolType\"n\n\x0c\x46unctionTool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12+\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0e\n\x06strict\x18\x04 \x01(\x08\"g\n\x08ToolCall\x12K\n\rfunction_call\x18\x01 \x01(\x0b\x32\x32.yandex.cloud.ai.foundation_models.v1.FunctionCallH\x00\x42\x0e\n\x0cToolCallType\"H\n\x0c\x46unctionCall\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\targuments\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"R\n\x0cToolCallList\x12\x42\n\ntool_calls\x18\x01 \x03(\x0b\x32..yandex.cloud.ai.foundation_models.v1.ToolCall\"o\n\nToolResult\x12O\n\x0f\x66unction_result\x18\x01 \x01(\x0b\x32\x34.yandex.cloud.ai.foundation_models.v1.FunctionResultH\x00\x42\x10\n\x0eToolResultType\"@\n\x0e\x46unctionResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x42\r\n\x0b\x43ontentType\"X\n\x0eToolResultList\x12\x46\n\x0ctool_results\x18\x01 \x03(\x0b\x32\x30.yandex.cloud.ai.foundation_models.v1.ToolResult\"5\n\nJsonSchema\x12\'\n\x06schema\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xda\x01\n\nToolChoice\x12O\n\x04mode\x18\x01 \x01(\x0e\x32?.yandex.cloud.ai.foundation_models.v1.ToolChoice.ToolChoiceModeH\x00\x12\x17\n\rfunction_name\x18\x02 \x01(\tH\x00\"T\n\x0eToolChoiceMode\x12 \n\x1cTOOL_CHOICE_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x08\n\x04\x41UTO\x10\x02\x12\x0c\n\x08REQUIRED\x10\x03\x42\x0c\n\nToolChoiceB\x86\x01\n(yandex.cloud.api.ai.foundation_models.v1ZZgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/foundation_models/v1;foundation_modelsb\x06proto3')
30
30
 
31
31
  _globals = globals()
32
32
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -55,19 +55,23 @@ if not _descriptor._USE_C_DESCRIPTORS:
55
55
  _globals['_TOOL']._serialized_start=1488
56
56
  _globals['_TOOL']._serialized_end=1578
57
57
  _globals['_FUNCTIONTOOL']._serialized_start=1580
58
- _globals['_FUNCTIONTOOL']._serialized_end=1674
59
- _globals['_TOOLCALL']._serialized_start=1676
60
- _globals['_TOOLCALL']._serialized_end=1779
61
- _globals['_FUNCTIONCALL']._serialized_start=1781
62
- _globals['_FUNCTIONCALL']._serialized_end=1853
63
- _globals['_TOOLCALLLIST']._serialized_start=1855
64
- _globals['_TOOLCALLLIST']._serialized_end=1937
65
- _globals['_TOOLRESULT']._serialized_start=1939
66
- _globals['_TOOLRESULT']._serialized_end=2050
67
- _globals['_FUNCTIONRESULT']._serialized_start=2052
68
- _globals['_FUNCTIONRESULT']._serialized_end=2116
69
- _globals['_TOOLRESULTLIST']._serialized_start=2118
70
- _globals['_TOOLRESULTLIST']._serialized_end=2206
71
- _globals['_JSONSCHEMA']._serialized_start=2208
72
- _globals['_JSONSCHEMA']._serialized_end=2261
58
+ _globals['_FUNCTIONTOOL']._serialized_end=1690
59
+ _globals['_TOOLCALL']._serialized_start=1692
60
+ _globals['_TOOLCALL']._serialized_end=1795
61
+ _globals['_FUNCTIONCALL']._serialized_start=1797
62
+ _globals['_FUNCTIONCALL']._serialized_end=1869
63
+ _globals['_TOOLCALLLIST']._serialized_start=1871
64
+ _globals['_TOOLCALLLIST']._serialized_end=1953
65
+ _globals['_TOOLRESULT']._serialized_start=1955
66
+ _globals['_TOOLRESULT']._serialized_end=2066
67
+ _globals['_FUNCTIONRESULT']._serialized_start=2068
68
+ _globals['_FUNCTIONRESULT']._serialized_end=2132
69
+ _globals['_TOOLRESULTLIST']._serialized_start=2134
70
+ _globals['_TOOLRESULTLIST']._serialized_end=2222
71
+ _globals['_JSONSCHEMA']._serialized_start=2224
72
+ _globals['_JSONSCHEMA']._serialized_end=2277
73
+ _globals['_TOOLCHOICE']._serialized_start=2280
74
+ _globals['_TOOLCHOICE']._serialized_end=2498
75
+ _globals['_TOOLCHOICE_TOOLCHOICEMODE']._serialized_start=2400
76
+ _globals['_TOOLCHOICE_TOOLCHOICEMODE']._serialized_end=2484
73
77
  # @@protoc_insertion_point(module_scope)