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
@@ -2018,6 +2018,99 @@ class ClusterServiceApi(object):
2018
2018
  _request_timeout=params.get('_request_timeout'),
2019
2019
  collection_formats=collection_formats)
2020
2020
 
2021
+ def cluster_service_get_cluster_health(self, id: 'str', **kwargs) -> 'V1GetClusterHealthResponse': # noqa: E501
2022
+ """cluster_service_get_cluster_health # noqa: E501
2023
+
2024
+ This method makes a synchronous HTTP request by default. To make an
2025
+ asynchronous HTTP request, please pass async_req=True
2026
+ >>> thread = api.cluster_service_get_cluster_health(id, async_req=True)
2027
+ >>> result = thread.get()
2028
+
2029
+ :param async_req bool
2030
+ :param str id: (required)
2031
+ :return: V1GetClusterHealthResponse
2032
+ If the method is called asynchronously,
2033
+ returns the request thread.
2034
+ """
2035
+ kwargs['_return_http_data_only'] = True
2036
+ if kwargs.get('async_req'):
2037
+ return self.cluster_service_get_cluster_health_with_http_info(id, **kwargs) # noqa: E501
2038
+ else:
2039
+ (data) = self.cluster_service_get_cluster_health_with_http_info(id, **kwargs) # noqa: E501
2040
+ return data
2041
+
2042
+ def cluster_service_get_cluster_health_with_http_info(self, id: 'str', **kwargs) -> 'V1GetClusterHealthResponse': # noqa: E501
2043
+ """cluster_service_get_cluster_health # noqa: E501
2044
+
2045
+ This method makes a synchronous HTTP request by default. To make an
2046
+ asynchronous HTTP request, please pass async_req=True
2047
+ >>> thread = api.cluster_service_get_cluster_health_with_http_info(id, async_req=True)
2048
+ >>> result = thread.get()
2049
+
2050
+ :param async_req bool
2051
+ :param str id: (required)
2052
+ :return: V1GetClusterHealthResponse
2053
+ If the method is called asynchronously,
2054
+ returns the request thread.
2055
+ """
2056
+
2057
+ all_params = ['id'] # noqa: E501
2058
+ all_params.append('async_req')
2059
+ all_params.append('_return_http_data_only')
2060
+ all_params.append('_preload_content')
2061
+ all_params.append('_request_timeout')
2062
+
2063
+ params = locals()
2064
+ for key, val in six.iteritems(params['kwargs']):
2065
+ if key not in all_params:
2066
+ raise TypeError(
2067
+ "Got an unexpected keyword argument '%s'"
2068
+ " to method cluster_service_get_cluster_health" % key
2069
+ )
2070
+ params[key] = val
2071
+ del params['kwargs']
2072
+ # verify the required parameter 'id' is set
2073
+ if ('id' not in params or
2074
+ params['id'] is None):
2075
+ raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster_health`") # noqa: E501
2076
+
2077
+ collection_formats = {}
2078
+
2079
+ path_params = {}
2080
+ if 'id' in params:
2081
+ path_params['id'] = params['id'] # noqa: E501
2082
+
2083
+ query_params = []
2084
+
2085
+ header_params = {}
2086
+
2087
+ form_params = []
2088
+ local_var_files = {}
2089
+
2090
+ body_params = None
2091
+ # HTTP header `Accept`
2092
+ header_params['Accept'] = self.api_client.select_header_accept(
2093
+ ['application/json']) # noqa: E501
2094
+
2095
+ # Authentication setting
2096
+ auth_settings = [] # noqa: E501
2097
+
2098
+ return self.api_client.call_api(
2099
+ '/v1/core/clusters/{id}/health', 'GET',
2100
+ path_params,
2101
+ query_params,
2102
+ header_params,
2103
+ body=body_params,
2104
+ post_params=form_params,
2105
+ files=local_var_files,
2106
+ response_type='V1GetClusterHealthResponse', # noqa: E501
2107
+ auth_settings=auth_settings,
2108
+ async_req=params.get('async_req'),
2109
+ _return_http_data_only=params.get('_return_http_data_only'),
2110
+ _preload_content=params.get('_preload_content', True),
2111
+ _request_timeout=params.get('_request_timeout'),
2112
+ collection_formats=collection_formats)
2113
+
2021
2114
  def cluster_service_get_project_cluster(self, project_id: 'str', id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
2022
2115
  """cluster_service_get_project_cluster # noqa: E501
2023
2116
 
@@ -55,6 +55,7 @@ from lightning_sdk.lightning_cloud.openapi.models.clusters_id_body import Cluste
55
55
  from lightning_sdk.lightning_cloud.openapi.models.clusters_id_body1 import ClustersIdBody1
56
56
  from lightning_sdk.lightning_cloud.openapi.models.command_argument_command_argument_type import CommandArgumentCommandArgumentType
57
57
  from lightning_sdk.lightning_cloud.openapi.models.conversations_id_body import ConversationsIdBody
58
+ from lightning_sdk.lightning_cloud.openapi.models.conversations_id_body1 import ConversationsIdBody1
58
59
  from lightning_sdk.lightning_cloud.openapi.models.create import Create
59
60
  from lightning_sdk.lightning_cloud.openapi.models.create_checkout_session_request_wallet_type import CreateCheckoutSessionRequestWalletType
60
61
  from lightning_sdk.lightning_cloud.openapi.models.create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs import CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs
@@ -118,6 +119,7 @@ from lightning_sdk.lightning_cloud.openapi.models.litloggermetrics_id_body impor
118
119
  from lightning_sdk.lightning_cloud.openapi.models.litpages_id_body import LitpagesIdBody
119
120
  from lightning_sdk.lightning_cloud.openapi.models.litregistry_lit_repo_name_body import LitregistryLitRepoNameBody
120
121
  from lightning_sdk.lightning_cloud.openapi.models.loggermetrics_id_body import LoggermetricsIdBody
122
+ from lightning_sdk.lightning_cloud.openapi.models.messages_id_body import MessagesIdBody
121
123
  from lightning_sdk.lightning_cloud.openapi.models.metrics_stream_id_loggerartifacts_body import MetricsStreamIdLoggerartifactsBody
122
124
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_create_body import MetricsstreamCreateBody
123
125
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_delete_body import MetricsstreamDeleteBody
@@ -193,6 +195,8 @@ from lightning_sdk.lightning_cloud.openapi.models.usagerestrictions_id_body impo
193
195
  from lightning_sdk.lightning_cloud.openapi.models.user_id_affiliatelinks_body import UserIdAffiliatelinksBody
194
196
  from lightning_sdk.lightning_cloud.openapi.models.user_id_membershiprolebindings_body import UserIdMembershiprolebindingsBody
195
197
  from lightning_sdk.lightning_cloud.openapi.models.user_id_membershiprolebindings_body1 import UserIdMembershiprolebindingsBody1
198
+ from lightning_sdk.lightning_cloud.openapi.models.user_id_upgradetrigger_body import UserIdUpgradetriggerBody
199
+ from lightning_sdk.lightning_cloud.openapi.models.user_user_id_body import UserUserIdBody
196
200
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_cluster_credentials import V1AWSClusterCredentials
197
201
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_direct_v1 import V1AWSDirectV1
198
202
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_direct_v1_status import V1AWSDirectV1Status
@@ -275,6 +279,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_version import
275
279
  from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_version_publication import V1CloudSpaceVersionPublication
276
280
  from lightning_sdk.lightning_cloud.openapi.models.v1_cloudflare_v1 import V1CloudflareV1
277
281
  from lightning_sdk.lightning_cloud.openapi.models.v1_cloudy_expert import V1CloudyExpert
282
+ from lightning_sdk.lightning_cloud.openapi.models.v1_cloudy_settings import V1CloudySettings
278
283
  from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_accelerator import V1ClusterAccelerator
279
284
  from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_availability import V1ClusterAvailability
280
285
  from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_capacity_reservation import V1ClusterCapacityReservation
@@ -314,6 +319,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_count_metrics_streams_respo
314
319
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_agent_multipart_upload_response import V1CreateAgentMultipartUploadResponse
315
320
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_portal_session_request import V1CreateBillingPortalSessionRequest
316
321
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_portal_session_response import V1CreateBillingPortalSessionResponse
322
+ from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_upgrade_trigger_record_response import V1CreateBillingUpgradeTriggerRecordResponse
317
323
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_blog_post_request import V1CreateBlogPostRequest
318
324
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_checkout_session_request import V1CreateCheckoutSessionRequest
319
325
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_checkout_session_response import V1CreateCheckoutSessionResponse
@@ -482,6 +488,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_work import V1Fi
482
488
  from lightning_sdk.lightning_cloud.openapi.models.v1_find_capacity_block_offering_response import V1FindCapacityBlockOfferingResponse
483
489
  from lightning_sdk.lightning_cloud.openapi.models.v1_flowserver import V1Flowserver
484
490
  from lightning_sdk.lightning_cloud.openapi.models.v1_folder_index_status import V1FolderIndexStatus
491
+ from lightning_sdk.lightning_cloud.openapi.models.v1_function_call import V1FunctionCall
485
492
  from lightning_sdk.lightning_cloud.openapi.models.v1_function_tool import V1FunctionTool
486
493
  from lightning_sdk.lightning_cloud.openapi.models.v1_gcp_direct_vpc import V1GCPDirectVPC
487
494
  from lightning_sdk.lightning_cloud.openapi.models.v1_gcs_folder_data_connection import V1GCSFolderDataConnection
@@ -496,7 +503,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_affiliate_link_response
496
503
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_env_response import V1GetAgentJobEnvResponse
497
504
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_logs_metadata_response import V1GetAgentJobLogsMetadataResponse
498
505
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_artifacts_page_response import V1GetArtifactsPageResponse
499
- from lightning_sdk.lightning_cloud.openapi.models.v1_get_clickhouse_assistant_session_daily_aggregated_response import V1GetClickhouseAssistantSessionDailyAggregatedResponse
506
+ from lightning_sdk.lightning_cloud.openapi.models.v1_get_assistant_session_daily_aggregated_response import V1GetAssistantSessionDailyAggregatedResponse
500
507
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_cold_start_metrics_stats_response import V1GetCloudSpaceColdStartMetricsStatsResponse
501
508
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_open_ports_response import V1GetCloudSpaceInstanceOpenPortsResponse
502
509
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_status_response import V1GetCloudSpaceInstanceStatusResponse
@@ -504,6 +511,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_sy
504
511
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_size_response import V1GetCloudSpaceSizeResponse
505
512
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_accelerator_demand_response import V1GetClusterAcceleratorDemandResponse
506
513
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_credentials_response import V1GetClusterCredentialsResponse
514
+ from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_health_response import V1GetClusterHealthResponse
507
515
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_deployment_routing_telemetry_aggregated_response import V1GetDeploymentRoutingTelemetryAggregatedResponse
508
516
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_deployment_routing_telemetry_content_response import V1GetDeploymentRoutingTelemetryContentResponse
509
517
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_deployment_routing_telemetry_response import V1GetDeploymentRoutingTelemetryResponse
@@ -587,6 +595,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_spec import V
587
595
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_state import V1LightningworkState
588
596
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_status import V1LightningworkStatus
589
597
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_status_reason import V1LightningworkStatusReason
598
+ from lightning_sdk.lightning_cloud.openapi.models.v1_like_status import V1LikeStatus
590
599
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_affiliate_links_response import V1ListAffiliateLinksResponse
591
600
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_job_artifacts_response import V1ListAgentJobArtifactsResponse
592
601
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_jobs_response import V1ListAgentJobsResponse
@@ -677,6 +686,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_project_memberships_re
677
686
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_project_roles_response import V1ListProjectRolesResponse
678
687
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_published_cloud_spaces_response import V1ListPublishedCloudSpacesResponse
679
688
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_published_deployment_templates_response import V1ListPublishedDeploymentTemplatesResponse
689
+ from lightning_sdk.lightning_cloud.openapi.models.v1_list_published_managed_endpoints_response import V1ListPublishedManagedEndpointsResponse
680
690
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_quests_response import V1ListQuestsResponse
681
691
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_slurm_cluster_users_response import V1ListSLURMClusterUsersResponse
682
692
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_ssh_public_keys_response import V1ListSSHPublicKeysResponse
@@ -877,6 +887,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_telemetry import V1Telemetr
877
887
  from lightning_sdk.lightning_cloud.openapi.models.v1_timestamp_code_telemetry import V1TimestampCodeTelemetry
878
888
  from lightning_sdk.lightning_cloud.openapi.models.v1_token_usage import V1TokenUsage
879
889
  from lightning_sdk.lightning_cloud.openapi.models.v1_tool import V1Tool
890
+ from lightning_sdk.lightning_cloud.openapi.models.v1_tool_call import V1ToolCall
880
891
  from lightning_sdk.lightning_cloud.openapi.models.v1_transaction import V1Transaction
881
892
  from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_cloud_space_response import V1TransferCloudSpaceResponse
882
893
  from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_org_balance_response import V1TransferOrgBalanceResponse
@@ -894,6 +905,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_update_cloud_space_visibili
894
905
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators_request import V1UpdateClusterAcceleratorsRequest
895
906
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators_response import V1UpdateClusterAcceleratorsResponse
896
907
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_availability_request import V1UpdateClusterAvailabilityRequest
908
+ from lightning_sdk.lightning_cloud.openapi.models.v1_update_conversation_like_response import V1UpdateConversationLikeResponse
909
+ from lightning_sdk.lightning_cloud.openapi.models.v1_update_conversation_message_like_response import V1UpdateConversationMessageLikeResponse
897
910
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_deployment_visibility_response import V1UpdateDeploymentVisibilityResponse
898
911
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_index_response import V1UpdateIndexResponse
899
912
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_job_visibility_response import V1UpdateJobVisibilityResponse
@@ -47,6 +47,7 @@ class AgentmanagedendpointsIdBody(object):
47
47
  'models_metadata': 'list[V1ManagedModel]',
48
48
  'name': 'str',
49
49
  'org_id': 'str',
50
+ 'provider_display_name': 'str',
50
51
  'publish_status': 'str',
51
52
  'user_id': 'str'
52
53
  }
@@ -58,11 +59,12 @@ class AgentmanagedendpointsIdBody(object):
58
59
  'models_metadata': 'modelsMetadata',
59
60
  'name': 'name',
60
61
  'org_id': 'orgId',
62
+ 'provider_display_name': 'providerDisplayName',
61
63
  'publish_status': 'publishStatus',
62
64
  'user_id': 'userId'
63
65
  }
64
66
 
65
- def __init__(self, api_key: 'str' =None, base_url: 'str' =None, description: 'str' =None, models_metadata: 'list[V1ManagedModel]' =None, name: 'str' =None, org_id: 'str' =None, publish_status: 'str' =None, user_id: 'str' =None): # noqa: E501
67
+ def __init__(self, api_key: 'str' =None, base_url: 'str' =None, description: 'str' =None, models_metadata: 'list[V1ManagedModel]' =None, name: 'str' =None, org_id: 'str' =None, provider_display_name: 'str' =None, publish_status: 'str' =None, user_id: 'str' =None): # noqa: E501
66
68
  """AgentmanagedendpointsIdBody - a model defined in Swagger""" # noqa: E501
67
69
  self._api_key = None
68
70
  self._base_url = None
@@ -70,6 +72,7 @@ class AgentmanagedendpointsIdBody(object):
70
72
  self._models_metadata = None
71
73
  self._name = None
72
74
  self._org_id = None
75
+ self._provider_display_name = None
73
76
  self._publish_status = None
74
77
  self._user_id = None
75
78
  self.discriminator = None
@@ -85,6 +88,8 @@ class AgentmanagedendpointsIdBody(object):
85
88
  self.name = name
86
89
  if org_id is not None:
87
90
  self.org_id = org_id
91
+ if provider_display_name is not None:
92
+ self.provider_display_name = provider_display_name
88
93
  if publish_status is not None:
89
94
  self.publish_status = publish_status
90
95
  if user_id is not None:
@@ -216,6 +221,27 @@ class AgentmanagedendpointsIdBody(object):
216
221
 
217
222
  self._org_id = org_id
218
223
 
224
+ @property
225
+ def provider_display_name(self) -> 'str':
226
+ """Gets the provider_display_name of this AgentmanagedendpointsIdBody. # noqa: E501
227
+
228
+
229
+ :return: The provider_display_name of this AgentmanagedendpointsIdBody. # noqa: E501
230
+ :rtype: str
231
+ """
232
+ return self._provider_display_name
233
+
234
+ @provider_display_name.setter
235
+ def provider_display_name(self, provider_display_name: 'str'):
236
+ """Sets the provider_display_name of this AgentmanagedendpointsIdBody.
237
+
238
+
239
+ :param provider_display_name: The provider_display_name of this AgentmanagedendpointsIdBody. # noqa: E501
240
+ :type: str
241
+ """
242
+
243
+ self._provider_display_name = provider_display_name
244
+
219
245
  @property
220
246
  def publish_status(self) -> 'str':
221
247
  """Gets the publish_status of this AgentmanagedendpointsIdBody. # noqa: E501
@@ -43,6 +43,8 @@ class BlogpostsIdBody(object):
43
43
  swagger_types = {
44
44
  'author_id': 'str',
45
45
  'category': 'str',
46
+ 'customer_logo_url': 'str',
47
+ 'customer_name': 'str',
46
48
  'description': 'str',
47
49
  'image_url': 'str',
48
50
  'lit_page_id': 'str',
@@ -52,16 +54,20 @@ class BlogpostsIdBody(object):
52
54
  attribute_map = {
53
55
  'author_id': 'authorId',
54
56
  'category': 'category',
57
+ 'customer_logo_url': 'customerLogoUrl',
58
+ 'customer_name': 'customerName',
55
59
  'description': 'description',
56
60
  'image_url': 'imageUrl',
57
61
  'lit_page_id': 'litPageId',
58
62
  'title': 'title'
59
63
  }
60
64
 
61
- def __init__(self, author_id: 'str' =None, category: 'str' =None, description: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None): # noqa: E501
65
+ def __init__(self, author_id: 'str' =None, category: 'str' =None, customer_logo_url: 'str' =None, customer_name: 'str' =None, description: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None): # noqa: E501
62
66
  """BlogpostsIdBody - a model defined in Swagger""" # noqa: E501
63
67
  self._author_id = None
64
68
  self._category = None
69
+ self._customer_logo_url = None
70
+ self._customer_name = None
65
71
  self._description = None
66
72
  self._image_url = None
67
73
  self._lit_page_id = None
@@ -71,6 +77,10 @@ class BlogpostsIdBody(object):
71
77
  self.author_id = author_id
72
78
  if category is not None:
73
79
  self.category = category
80
+ if customer_logo_url is not None:
81
+ self.customer_logo_url = customer_logo_url
82
+ if customer_name is not None:
83
+ self.customer_name = customer_name
74
84
  if description is not None:
75
85
  self.description = description
76
86
  if image_url is not None:
@@ -122,6 +132,48 @@ class BlogpostsIdBody(object):
122
132
 
123
133
  self._category = category
124
134
 
135
+ @property
136
+ def customer_logo_url(self) -> 'str':
137
+ """Gets the customer_logo_url of this BlogpostsIdBody. # noqa: E501
138
+
139
+
140
+ :return: The customer_logo_url of this BlogpostsIdBody. # noqa: E501
141
+ :rtype: str
142
+ """
143
+ return self._customer_logo_url
144
+
145
+ @customer_logo_url.setter
146
+ def customer_logo_url(self, customer_logo_url: 'str'):
147
+ """Sets the customer_logo_url of this BlogpostsIdBody.
148
+
149
+
150
+ :param customer_logo_url: The customer_logo_url of this BlogpostsIdBody. # noqa: E501
151
+ :type: str
152
+ """
153
+
154
+ self._customer_logo_url = customer_logo_url
155
+
156
+ @property
157
+ def customer_name(self) -> 'str':
158
+ """Gets the customer_name of this BlogpostsIdBody. # noqa: E501
159
+
160
+
161
+ :return: The customer_name of this BlogpostsIdBody. # noqa: E501
162
+ :rtype: str
163
+ """
164
+ return self._customer_name
165
+
166
+ @customer_name.setter
167
+ def customer_name(self, customer_name: 'str'):
168
+ """Sets the customer_name of this BlogpostsIdBody.
169
+
170
+
171
+ :param customer_name: The customer_name of this BlogpostsIdBody. # noqa: E501
172
+ :type: str
173
+ """
174
+
175
+ self._customer_name = customer_name
176
+
125
177
  @property
126
178
  def description(self) -> 'str':
127
179
  """Gets the description of this BlogpostsIdBody. # noqa: E501
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class ConversationsIdBody1(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'like': 'V1LikeStatus'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'like': 'like'
49
+ }
50
+
51
+ def __init__(self, like: 'V1LikeStatus' =None): # noqa: E501
52
+ """ConversationsIdBody1 - a model defined in Swagger""" # noqa: E501
53
+ self._like = None
54
+ self.discriminator = None
55
+ if like is not None:
56
+ self.like = like
57
+
58
+ @property
59
+ def like(self) -> 'V1LikeStatus':
60
+ """Gets the like of this ConversationsIdBody1. # noqa: E501
61
+
62
+
63
+ :return: The like of this ConversationsIdBody1. # noqa: E501
64
+ :rtype: V1LikeStatus
65
+ """
66
+ return self._like
67
+
68
+ @like.setter
69
+ def like(self, like: 'V1LikeStatus'):
70
+ """Sets the like of this ConversationsIdBody1.
71
+
72
+
73
+ :param like: The like of this ConversationsIdBody1. # noqa: E501
74
+ :type: V1LikeStatus
75
+ """
76
+
77
+ self._like = like
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(ConversationsIdBody1, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'ConversationsIdBody1') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, ConversationsIdBody1):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'ConversationsIdBody1') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class MessagesIdBody(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'like': 'V1LikeStatus'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'like': 'like'
49
+ }
50
+
51
+ def __init__(self, like: 'V1LikeStatus' =None): # noqa: E501
52
+ """MessagesIdBody - a model defined in Swagger""" # noqa: E501
53
+ self._like = None
54
+ self.discriminator = None
55
+ if like is not None:
56
+ self.like = like
57
+
58
+ @property
59
+ def like(self) -> 'V1LikeStatus':
60
+ """Gets the like of this MessagesIdBody. # noqa: E501
61
+
62
+
63
+ :return: The like of this MessagesIdBody. # noqa: E501
64
+ :rtype: V1LikeStatus
65
+ """
66
+ return self._like
67
+
68
+ @like.setter
69
+ def like(self, like: 'V1LikeStatus'):
70
+ """Sets the like of this MessagesIdBody.
71
+
72
+
73
+ :param like: The like of this MessagesIdBody. # noqa: E501
74
+ :type: V1LikeStatus
75
+ """
76
+
77
+ self._like = like
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(MessagesIdBody, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'MessagesIdBody') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, MessagesIdBody):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'MessagesIdBody') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -41,23 +41,28 @@ class MetricsstreamIdBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'name': 'str',
44
45
  'persisted': 'bool',
45
46
  'phase': 'V1PhaseType',
46
47
  'trackers': 'dict(str, V1MetricsTracker)'
47
48
  }
48
49
 
49
50
  attribute_map = {
51
+ 'name': 'name',
50
52
  'persisted': 'persisted',
51
53
  'phase': 'phase',
52
54
  'trackers': 'trackers'
53
55
  }
54
56
 
55
- def __init__(self, persisted: 'bool' =None, phase: 'V1PhaseType' =None, trackers: 'dict(str, V1MetricsTracker)' =None): # noqa: E501
57
+ def __init__(self, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, trackers: 'dict(str, V1MetricsTracker)' =None): # noqa: E501
56
58
  """MetricsstreamIdBody - a model defined in Swagger""" # noqa: E501
59
+ self._name = None
57
60
  self._persisted = None
58
61
  self._phase = None
59
62
  self._trackers = None
60
63
  self.discriminator = None
64
+ if name is not None:
65
+ self.name = name
61
66
  if persisted is not None:
62
67
  self.persisted = persisted
63
68
  if phase is not None:
@@ -65,6 +70,27 @@ class MetricsstreamIdBody(object):
65
70
  if trackers is not None:
66
71
  self.trackers = trackers
67
72
 
73
+ @property
74
+ def name(self) -> 'str':
75
+ """Gets the name of this MetricsstreamIdBody. # noqa: E501
76
+
77
+
78
+ :return: The name of this MetricsstreamIdBody. # noqa: E501
79
+ :rtype: str
80
+ """
81
+ return self._name
82
+
83
+ @name.setter
84
+ def name(self, name: 'str'):
85
+ """Sets the name of this MetricsstreamIdBody.
86
+
87
+
88
+ :param name: The name of this MetricsstreamIdBody. # noqa: E501
89
+ :type: str
90
+ """
91
+
92
+ self._name = name
93
+
68
94
  @property
69
95
  def persisted(self) -> 'bool':
70
96
  """Gets the persisted of this MetricsstreamIdBody. # noqa: E501