lightning-sdk 2025.7.17__py3-none-any.whl → 2025.7.30rc0__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 (99) hide show
  1. lightning_sdk/__init__.py +3 -2
  2. lightning_sdk/api/cloud_account_api.py +204 -0
  3. lightning_sdk/api/deployment_api.py +11 -0
  4. lightning_sdk/api/job_api.py +82 -10
  5. lightning_sdk/api/llm_api.py +1 -1
  6. lightning_sdk/api/mmt_api.py +44 -5
  7. lightning_sdk/api/pipeline_api.py +4 -3
  8. lightning_sdk/api/studio_api.py +51 -8
  9. lightning_sdk/api/utils.py +6 -2
  10. lightning_sdk/cli/clusters_menu.py +3 -3
  11. lightning_sdk/cli/create.py +25 -11
  12. lightning_sdk/cli/deploy/_auth.py +19 -3
  13. lightning_sdk/cli/deploy/serve.py +21 -5
  14. lightning_sdk/cli/download.py +25 -1
  15. lightning_sdk/cli/entrypoint.py +4 -2
  16. lightning_sdk/cli/list.py +5 -1
  17. lightning_sdk/cli/run.py +3 -1
  18. lightning_sdk/cli/start.py +40 -8
  19. lightning_sdk/cli/switch.py +3 -1
  20. lightning_sdk/deployment/deployment.py +8 -0
  21. lightning_sdk/job/base.py +27 -3
  22. lightning_sdk/job/job.py +28 -4
  23. lightning_sdk/job/v1.py +10 -1
  24. lightning_sdk/job/v2.py +22 -2
  25. lightning_sdk/job/work.py +5 -1
  26. lightning_sdk/lightning_cloud/openapi/__init__.py +14 -1
  27. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +428 -0
  28. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +153 -48
  29. lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +295 -0
  30. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +93 -0
  31. lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -1
  32. lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +53 -1
  34. lightning_sdk/lightning_cloud/openapi/models/conversations_id_body1.py +123 -0
  35. lightning_sdk/lightning_cloud/openapi/models/messages_id_body.py +123 -0
  36. lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +27 -1
  37. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +81 -3
  38. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +79 -1
  39. lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +201 -0
  40. lightning_sdk/lightning_cloud/openapi/models/user_user_id_body.py +201 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_billing_subscription.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_settings.py +227 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_create_billing_upgrade_trigger_record_response.py +97 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +53 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +27 -1
  50. lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +55 -3
  51. lightning_sdk/lightning_cloud/openapi/models/v1_function_call.py +149 -0
  52. lightning_sdk/lightning_cloud/openapi/models/{v1_get_clickhouse_assistant_session_daily_aggregated_response.py → v1_get_assistant_session_daily_aggregated_response.py} +22 -22
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_health_response.py +149 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +105 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoints_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +95 -17
  61. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_quote_subscription_response.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_response_choice.py +29 -3
  65. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +79 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_service_health.py +27 -1
  67. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +79 -1
  68. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1_status.py +79 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_tool_call.py +175 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_like_response.py +149 -0
  71. lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_like_response.py +149 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -313
  73. lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +1 -0
  74. lightning_sdk/llm/llm.py +69 -11
  75. lightning_sdk/llm/public_assistants.json +32 -8
  76. lightning_sdk/machine.py +151 -43
  77. lightning_sdk/mmt/base.py +20 -2
  78. lightning_sdk/mmt/mmt.py +25 -3
  79. lightning_sdk/mmt/v1.py +7 -1
  80. lightning_sdk/mmt/v2.py +27 -3
  81. lightning_sdk/models.py +1 -1
  82. lightning_sdk/organization.py +4 -0
  83. lightning_sdk/pipeline/pipeline.py +16 -5
  84. lightning_sdk/pipeline/printer.py +5 -3
  85. lightning_sdk/pipeline/schedule.py +844 -1
  86. lightning_sdk/pipeline/steps.py +19 -4
  87. lightning_sdk/sandbox.py +4 -1
  88. lightning_sdk/serve.py +2 -0
  89. lightning_sdk/studio.py +91 -44
  90. lightning_sdk/teamspace.py +19 -10
  91. lightning_sdk/utils/resolve.py +37 -2
  92. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/METADATA +7 -5
  93. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/RECORD +98 -85
  94. lightning_sdk/api/cluster_api.py +0 -119
  95. /lightning_sdk/cli/{inspect.py → inspection.py} +0 -0
  96. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/LICENSE +0 -0
  97. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/WHEEL +0 -0
  98. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/entry_points.txt +0 -0
  99. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/top_level.txt +0 -0
@@ -1166,6 +1166,99 @@ class AssistantsServiceApi(object):
1166
1166
  _request_timeout=params.get('_request_timeout'),
1167
1167
  collection_formats=collection_formats)
1168
1168
 
1169
+ def assistants_service_get_published_managed_endpoint_by_model_id(self, id: 'str', **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
1170
+ """GetPublishedManagedEndpointModel returns a managed endpoint with a single specific managed endpoint model included in modelsMetadata # noqa: E501
1171
+
1172
+ This method makes a synchronous HTTP request by default. To make an
1173
+ asynchronous HTTP request, please pass async_req=True
1174
+ >>> thread = api.assistants_service_get_published_managed_endpoint_by_model_id(id, async_req=True)
1175
+ >>> result = thread.get()
1176
+
1177
+ :param async_req bool
1178
+ :param str id: (required)
1179
+ :return: V1ManagedEndpoint
1180
+ If the method is called asynchronously,
1181
+ returns the request thread.
1182
+ """
1183
+ kwargs['_return_http_data_only'] = True
1184
+ if kwargs.get('async_req'):
1185
+ return self.assistants_service_get_published_managed_endpoint_by_model_id_with_http_info(id, **kwargs) # noqa: E501
1186
+ else:
1187
+ (data) = self.assistants_service_get_published_managed_endpoint_by_model_id_with_http_info(id, **kwargs) # noqa: E501
1188
+ return data
1189
+
1190
+ def assistants_service_get_published_managed_endpoint_by_model_id_with_http_info(self, id: 'str', **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
1191
+ """GetPublishedManagedEndpointModel returns a managed endpoint with a single specific managed endpoint model included in modelsMetadata # noqa: E501
1192
+
1193
+ This method makes a synchronous HTTP request by default. To make an
1194
+ asynchronous HTTP request, please pass async_req=True
1195
+ >>> thread = api.assistants_service_get_published_managed_endpoint_by_model_id_with_http_info(id, async_req=True)
1196
+ >>> result = thread.get()
1197
+
1198
+ :param async_req bool
1199
+ :param str id: (required)
1200
+ :return: V1ManagedEndpoint
1201
+ If the method is called asynchronously,
1202
+ returns the request thread.
1203
+ """
1204
+
1205
+ all_params = ['id'] # noqa: E501
1206
+ all_params.append('async_req')
1207
+ all_params.append('_return_http_data_only')
1208
+ all_params.append('_preload_content')
1209
+ all_params.append('_request_timeout')
1210
+
1211
+ params = locals()
1212
+ for key, val in six.iteritems(params['kwargs']):
1213
+ if key not in all_params:
1214
+ raise TypeError(
1215
+ "Got an unexpected keyword argument '%s'"
1216
+ " to method assistants_service_get_published_managed_endpoint_by_model_id" % key
1217
+ )
1218
+ params[key] = val
1219
+ del params['kwargs']
1220
+ # verify the required parameter 'id' is set
1221
+ if ('id' not in params or
1222
+ params['id'] is None):
1223
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_get_published_managed_endpoint_by_model_id`") # noqa: E501
1224
+
1225
+ collection_formats = {}
1226
+
1227
+ path_params = {}
1228
+ if 'id' in params:
1229
+ path_params['id'] = params['id'] # noqa: E501
1230
+
1231
+ query_params = []
1232
+
1233
+ header_params = {}
1234
+
1235
+ form_params = []
1236
+ local_var_files = {}
1237
+
1238
+ body_params = None
1239
+ # HTTP header `Accept`
1240
+ header_params['Accept'] = self.api_client.select_header_accept(
1241
+ ['application/json']) # noqa: E501
1242
+
1243
+ # Authentication setting
1244
+ auth_settings = [] # noqa: E501
1245
+
1246
+ return self.api_client.call_api(
1247
+ '/v1/agent-published-managed-model/{id}', 'GET',
1248
+ path_params,
1249
+ query_params,
1250
+ header_params,
1251
+ body=body_params,
1252
+ post_params=form_params,
1253
+ files=local_var_files,
1254
+ response_type='V1ManagedEndpoint', # noqa: E501
1255
+ auth_settings=auth_settings,
1256
+ async_req=params.get('async_req'),
1257
+ _return_http_data_only=params.get('_return_http_data_only'),
1258
+ _preload_content=params.get('_preload_content', True),
1259
+ _request_timeout=params.get('_request_timeout'),
1260
+ collection_formats=collection_formats)
1261
+
1169
1262
  def assistants_service_list_assistant_managed_endpoints(self, **kwargs) -> 'V1ListManagedEndpointsResponse': # noqa: E501
1170
1263
  """ListAssistantManagedEndpoints returns a list of managed endpoint that users can use when creating their own assistant. These are served and managed by Lightning or 3rd parties # noqa: E501
1171
1264
 
@@ -1477,6 +1570,91 @@ class AssistantsServiceApi(object):
1477
1570
  _request_timeout=params.get('_request_timeout'),
1478
1571
  collection_formats=collection_formats)
1479
1572
 
1573
+ def assistants_service_list_published_managed_endpoints(self, **kwargs) -> 'V1ListPublishedManagedEndpointsResponse': # noqa: E501
1574
+ """ListPublishedManagedEndpoints returns a list of all available managed endpoints that are published as Models # noqa: E501
1575
+
1576
+ This method makes a synchronous HTTP request by default. To make an
1577
+ asynchronous HTTP request, please pass async_req=True
1578
+ >>> thread = api.assistants_service_list_published_managed_endpoints(async_req=True)
1579
+ >>> result = thread.get()
1580
+
1581
+ :param async_req bool
1582
+ :return: V1ListPublishedManagedEndpointsResponse
1583
+ If the method is called asynchronously,
1584
+ returns the request thread.
1585
+ """
1586
+ kwargs['_return_http_data_only'] = True
1587
+ if kwargs.get('async_req'):
1588
+ return self.assistants_service_list_published_managed_endpoints_with_http_info(**kwargs) # noqa: E501
1589
+ else:
1590
+ (data) = self.assistants_service_list_published_managed_endpoints_with_http_info(**kwargs) # noqa: E501
1591
+ return data
1592
+
1593
+ def assistants_service_list_published_managed_endpoints_with_http_info(self, **kwargs) -> 'V1ListPublishedManagedEndpointsResponse': # noqa: E501
1594
+ """ListPublishedManagedEndpoints returns a list of all available managed endpoints that are published as Models # noqa: E501
1595
+
1596
+ This method makes a synchronous HTTP request by default. To make an
1597
+ asynchronous HTTP request, please pass async_req=True
1598
+ >>> thread = api.assistants_service_list_published_managed_endpoints_with_http_info(async_req=True)
1599
+ >>> result = thread.get()
1600
+
1601
+ :param async_req bool
1602
+ :return: V1ListPublishedManagedEndpointsResponse
1603
+ If the method is called asynchronously,
1604
+ returns the request thread.
1605
+ """
1606
+
1607
+ all_params = [] # noqa: E501
1608
+ all_params.append('async_req')
1609
+ all_params.append('_return_http_data_only')
1610
+ all_params.append('_preload_content')
1611
+ all_params.append('_request_timeout')
1612
+
1613
+ params = locals()
1614
+ for key, val in six.iteritems(params['kwargs']):
1615
+ if key not in all_params:
1616
+ raise TypeError(
1617
+ "Got an unexpected keyword argument '%s'"
1618
+ " to method assistants_service_list_published_managed_endpoints" % key
1619
+ )
1620
+ params[key] = val
1621
+ del params['kwargs']
1622
+
1623
+ collection_formats = {}
1624
+
1625
+ path_params = {}
1626
+
1627
+ query_params = []
1628
+
1629
+ header_params = {}
1630
+
1631
+ form_params = []
1632
+ local_var_files = {}
1633
+
1634
+ body_params = None
1635
+ # HTTP header `Accept`
1636
+ header_params['Accept'] = self.api_client.select_header_accept(
1637
+ ['application/json']) # noqa: E501
1638
+
1639
+ # Authentication setting
1640
+ auth_settings = [] # noqa: E501
1641
+
1642
+ return self.api_client.call_api(
1643
+ '/v1/agent-published-managed-endpoints', 'GET',
1644
+ path_params,
1645
+ query_params,
1646
+ header_params,
1647
+ body=body_params,
1648
+ post_params=form_params,
1649
+ files=local_var_files,
1650
+ response_type='V1ListPublishedManagedEndpointsResponse', # noqa: E501
1651
+ auth_settings=auth_settings,
1652
+ async_req=params.get('async_req'),
1653
+ _return_http_data_only=params.get('_return_http_data_only'),
1654
+ _preload_content=params.get('_preload_content', True),
1655
+ _request_timeout=params.get('_request_timeout'),
1656
+ collection_formats=collection_formats)
1657
+
1480
1658
  def assistants_service_start_conversation(self, body: 'AssistantIdConversationsBody', assistant_id: 'str', **kwargs) -> 'StreamResultOfV1ConversationResponseChunk': # noqa: E501
1481
1659
  """assistants_service_start_conversation # noqa: E501
1482
1660
 
@@ -2042,6 +2220,256 @@ class AssistantsServiceApi(object):
2042
2220
  _request_timeout=params.get('_request_timeout'),
2043
2221
  collection_formats=collection_formats)
2044
2222
 
2223
+ def assistants_service_update_conversation_like(self, body: 'ConversationsIdBody1', project_id: 'str', assistant_id: 'str', id: 'str', **kwargs) -> 'V1UpdateConversationLikeResponse': # noqa: E501
2224
+ """assistants_service_update_conversation_like # noqa: E501
2225
+
2226
+ This method makes a synchronous HTTP request by default. To make an
2227
+ asynchronous HTTP request, please pass async_req=True
2228
+ >>> thread = api.assistants_service_update_conversation_like(body, project_id, assistant_id, id, async_req=True)
2229
+ >>> result = thread.get()
2230
+
2231
+ :param async_req bool
2232
+ :param ConversationsIdBody1 body: (required)
2233
+ :param str project_id: (required)
2234
+ :param str assistant_id: (required)
2235
+ :param str id: (required)
2236
+ :return: V1UpdateConversationLikeResponse
2237
+ If the method is called asynchronously,
2238
+ returns the request thread.
2239
+ """
2240
+ kwargs['_return_http_data_only'] = True
2241
+ if kwargs.get('async_req'):
2242
+ return self.assistants_service_update_conversation_like_with_http_info(body, project_id, assistant_id, id, **kwargs) # noqa: E501
2243
+ else:
2244
+ (data) = self.assistants_service_update_conversation_like_with_http_info(body, project_id, assistant_id, id, **kwargs) # noqa: E501
2245
+ return data
2246
+
2247
+ def assistants_service_update_conversation_like_with_http_info(self, body: 'ConversationsIdBody1', project_id: 'str', assistant_id: 'str', id: 'str', **kwargs) -> 'V1UpdateConversationLikeResponse': # noqa: E501
2248
+ """assistants_service_update_conversation_like # noqa: E501
2249
+
2250
+ This method makes a synchronous HTTP request by default. To make an
2251
+ asynchronous HTTP request, please pass async_req=True
2252
+ >>> thread = api.assistants_service_update_conversation_like_with_http_info(body, project_id, assistant_id, id, async_req=True)
2253
+ >>> result = thread.get()
2254
+
2255
+ :param async_req bool
2256
+ :param ConversationsIdBody1 body: (required)
2257
+ :param str project_id: (required)
2258
+ :param str assistant_id: (required)
2259
+ :param str id: (required)
2260
+ :return: V1UpdateConversationLikeResponse
2261
+ If the method is called asynchronously,
2262
+ returns the request thread.
2263
+ """
2264
+
2265
+ all_params = ['body', 'project_id', 'assistant_id', 'id'] # noqa: E501
2266
+ all_params.append('async_req')
2267
+ all_params.append('_return_http_data_only')
2268
+ all_params.append('_preload_content')
2269
+ all_params.append('_request_timeout')
2270
+
2271
+ params = locals()
2272
+ for key, val in six.iteritems(params['kwargs']):
2273
+ if key not in all_params:
2274
+ raise TypeError(
2275
+ "Got an unexpected keyword argument '%s'"
2276
+ " to method assistants_service_update_conversation_like" % key
2277
+ )
2278
+ params[key] = val
2279
+ del params['kwargs']
2280
+ # verify the required parameter 'body' is set
2281
+ if ('body' not in params or
2282
+ params['body'] is None):
2283
+ raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_conversation_like`") # noqa: E501
2284
+ # verify the required parameter 'project_id' is set
2285
+ if ('project_id' not in params or
2286
+ params['project_id'] is None):
2287
+ raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_conversation_like`") # noqa: E501
2288
+ # verify the required parameter 'assistant_id' is set
2289
+ if ('assistant_id' not in params or
2290
+ params['assistant_id'] is None):
2291
+ raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_update_conversation_like`") # noqa: E501
2292
+ # verify the required parameter 'id' is set
2293
+ if ('id' not in params or
2294
+ params['id'] is None):
2295
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_conversation_like`") # noqa: E501
2296
+
2297
+ collection_formats = {}
2298
+
2299
+ path_params = {}
2300
+ if 'project_id' in params:
2301
+ path_params['projectId'] = params['project_id'] # noqa: E501
2302
+ if 'assistant_id' in params:
2303
+ path_params['assistantId'] = params['assistant_id'] # noqa: E501
2304
+ if 'id' in params:
2305
+ path_params['id'] = params['id'] # noqa: E501
2306
+
2307
+ query_params = []
2308
+
2309
+ header_params = {}
2310
+
2311
+ form_params = []
2312
+ local_var_files = {}
2313
+
2314
+ body_params = None
2315
+ if 'body' in params:
2316
+ body_params = params['body']
2317
+ # HTTP header `Accept`
2318
+ header_params['Accept'] = self.api_client.select_header_accept(
2319
+ ['application/json']) # noqa: E501
2320
+
2321
+ # HTTP header `Content-Type`
2322
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2323
+ ['application/json']) # noqa: E501
2324
+
2325
+ # Authentication setting
2326
+ auth_settings = [] # noqa: E501
2327
+
2328
+ return self.api_client.call_api(
2329
+ '/v1/projects/{projectId}/agents/{assistantId}/conversations/{id}', 'PUT',
2330
+ path_params,
2331
+ query_params,
2332
+ header_params,
2333
+ body=body_params,
2334
+ post_params=form_params,
2335
+ files=local_var_files,
2336
+ response_type='V1UpdateConversationLikeResponse', # noqa: E501
2337
+ auth_settings=auth_settings,
2338
+ async_req=params.get('async_req'),
2339
+ _return_http_data_only=params.get('_return_http_data_only'),
2340
+ _preload_content=params.get('_preload_content', True),
2341
+ _request_timeout=params.get('_request_timeout'),
2342
+ collection_formats=collection_formats)
2343
+
2344
+ def assistants_service_update_conversation_message_like(self, body: 'MessagesIdBody', project_id: 'str', assistant_id: 'str', conversation_id: 'str', id: 'str', **kwargs) -> 'V1UpdateConversationMessageLikeResponse': # noqa: E501
2345
+ """assistants_service_update_conversation_message_like # noqa: E501
2346
+
2347
+ This method makes a synchronous HTTP request by default. To make an
2348
+ asynchronous HTTP request, please pass async_req=True
2349
+ >>> thread = api.assistants_service_update_conversation_message_like(body, project_id, assistant_id, conversation_id, id, async_req=True)
2350
+ >>> result = thread.get()
2351
+
2352
+ :param async_req bool
2353
+ :param MessagesIdBody body: (required)
2354
+ :param str project_id: (required)
2355
+ :param str assistant_id: (required)
2356
+ :param str conversation_id: (required)
2357
+ :param str id: (required)
2358
+ :return: V1UpdateConversationMessageLikeResponse
2359
+ If the method is called asynchronously,
2360
+ returns the request thread.
2361
+ """
2362
+ kwargs['_return_http_data_only'] = True
2363
+ if kwargs.get('async_req'):
2364
+ return self.assistants_service_update_conversation_message_like_with_http_info(body, project_id, assistant_id, conversation_id, id, **kwargs) # noqa: E501
2365
+ else:
2366
+ (data) = self.assistants_service_update_conversation_message_like_with_http_info(body, project_id, assistant_id, conversation_id, id, **kwargs) # noqa: E501
2367
+ return data
2368
+
2369
+ def assistants_service_update_conversation_message_like_with_http_info(self, body: 'MessagesIdBody', project_id: 'str', assistant_id: 'str', conversation_id: 'str', id: 'str', **kwargs) -> 'V1UpdateConversationMessageLikeResponse': # noqa: E501
2370
+ """assistants_service_update_conversation_message_like # noqa: E501
2371
+
2372
+ This method makes a synchronous HTTP request by default. To make an
2373
+ asynchronous HTTP request, please pass async_req=True
2374
+ >>> thread = api.assistants_service_update_conversation_message_like_with_http_info(body, project_id, assistant_id, conversation_id, id, async_req=True)
2375
+ >>> result = thread.get()
2376
+
2377
+ :param async_req bool
2378
+ :param MessagesIdBody body: (required)
2379
+ :param str project_id: (required)
2380
+ :param str assistant_id: (required)
2381
+ :param str conversation_id: (required)
2382
+ :param str id: (required)
2383
+ :return: V1UpdateConversationMessageLikeResponse
2384
+ If the method is called asynchronously,
2385
+ returns the request thread.
2386
+ """
2387
+
2388
+ all_params = ['body', 'project_id', 'assistant_id', 'conversation_id', 'id'] # noqa: E501
2389
+ all_params.append('async_req')
2390
+ all_params.append('_return_http_data_only')
2391
+ all_params.append('_preload_content')
2392
+ all_params.append('_request_timeout')
2393
+
2394
+ params = locals()
2395
+ for key, val in six.iteritems(params['kwargs']):
2396
+ if key not in all_params:
2397
+ raise TypeError(
2398
+ "Got an unexpected keyword argument '%s'"
2399
+ " to method assistants_service_update_conversation_message_like" % key
2400
+ )
2401
+ params[key] = val
2402
+ del params['kwargs']
2403
+ # verify the required parameter 'body' is set
2404
+ if ('body' not in params or
2405
+ params['body'] is None):
2406
+ raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_conversation_message_like`") # noqa: E501
2407
+ # verify the required parameter 'project_id' is set
2408
+ if ('project_id' not in params or
2409
+ params['project_id'] is None):
2410
+ raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_conversation_message_like`") # noqa: E501
2411
+ # verify the required parameter 'assistant_id' is set
2412
+ if ('assistant_id' not in params or
2413
+ params['assistant_id'] is None):
2414
+ raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_update_conversation_message_like`") # noqa: E501
2415
+ # verify the required parameter 'conversation_id' is set
2416
+ if ('conversation_id' not in params or
2417
+ params['conversation_id'] is None):
2418
+ raise ValueError("Missing the required parameter `conversation_id` when calling `assistants_service_update_conversation_message_like`") # noqa: E501
2419
+ # verify the required parameter 'id' is set
2420
+ if ('id' not in params or
2421
+ params['id'] is None):
2422
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_conversation_message_like`") # noqa: E501
2423
+
2424
+ collection_formats = {}
2425
+
2426
+ path_params = {}
2427
+ if 'project_id' in params:
2428
+ path_params['projectId'] = params['project_id'] # noqa: E501
2429
+ if 'assistant_id' in params:
2430
+ path_params['assistantId'] = params['assistant_id'] # noqa: E501
2431
+ if 'conversation_id' in params:
2432
+ path_params['conversationId'] = params['conversation_id'] # noqa: E501
2433
+ if 'id' in params:
2434
+ path_params['id'] = params['id'] # noqa: E501
2435
+
2436
+ query_params = []
2437
+
2438
+ header_params = {}
2439
+
2440
+ form_params = []
2441
+ local_var_files = {}
2442
+
2443
+ body_params = None
2444
+ if 'body' in params:
2445
+ body_params = params['body']
2446
+ # HTTP header `Accept`
2447
+ header_params['Accept'] = self.api_client.select_header_accept(
2448
+ ['application/json']) # noqa: E501
2449
+
2450
+ # HTTP header `Content-Type`
2451
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2452
+ ['application/json']) # noqa: E501
2453
+
2454
+ # Authentication setting
2455
+ auth_settings = [] # noqa: E501
2456
+
2457
+ return self.api_client.call_api(
2458
+ '/v1/projects/{projectId}/agents/{assistantId}/conversations/{conversationId}/messages/{id}', 'PUT',
2459
+ path_params,
2460
+ query_params,
2461
+ header_params,
2462
+ body=body_params,
2463
+ post_params=form_params,
2464
+ files=local_var_files,
2465
+ response_type='V1UpdateConversationMessageLikeResponse', # noqa: E501
2466
+ auth_settings=auth_settings,
2467
+ async_req=params.get('async_req'),
2468
+ _return_http_data_only=params.get('_return_http_data_only'),
2469
+ _preload_content=params.get('_preload_content', True),
2470
+ _request_timeout=params.get('_request_timeout'),
2471
+ collection_formats=collection_formats)
2472
+
2045
2473
  def assistants_service_validate_assistant_managed_endpoint(self, body: 'V1ValidateManagedEndpointRequest', **kwargs) -> 'V1ValidateManagedEndpointResponse': # noqa: E501
2046
2474
  """assistants_service_validate_assistant_managed_endpoint # noqa: E501
2047
2475