lightning-sdk 0.1.49__py3-none-any.whl → 2025.11.5__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.
- lightning_sdk/__init__.py +19 -9
- lightning_sdk/__version__.py +3 -0
- lightning_sdk/agents.py +2 -1
- lightning_sdk/ai_hub.py +43 -38
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +49 -6
- lightning_sdk/api/base_studio_api.py +90 -0
- lightning_sdk/api/cloud_account_api.py +225 -0
- lightning_sdk/api/deployment_api.py +133 -27
- lightning_sdk/api/job_api.py +147 -34
- lightning_sdk/api/license_api.py +37 -0
- lightning_sdk/api/lit_container_api.py +231 -19
- lightning_sdk/api/llm_api.py +306 -0
- lightning_sdk/api/mmt_api.py +112 -28
- lightning_sdk/api/pipeline_api.py +120 -0
- lightning_sdk/api/studio_api.py +440 -89
- lightning_sdk/api/teamspace_api.py +269 -31
- lightning_sdk/api/user_api.py +56 -2
- lightning_sdk/api/utils.py +185 -52
- lightning_sdk/base_studio.py +123 -0
- lightning_sdk/cli/__init__.py +1 -0
- lightning_sdk/cli/base_studio/__init__.py +10 -0
- lightning_sdk/cli/base_studio/list.py +43 -0
- lightning_sdk/cli/config/__init__.py +14 -0
- lightning_sdk/cli/config/get.py +57 -0
- lightning_sdk/cli/config/set.py +92 -0
- lightning_sdk/cli/config/show.py +9 -0
- lightning_sdk/cli/entrypoint.py +98 -56
- lightning_sdk/cli/groups.py +56 -0
- lightning_sdk/cli/job/__init__.py +7 -0
- lightning_sdk/cli/legacy/__init__.py +0 -0
- lightning_sdk/cli/legacy/ai_hub.py +65 -0
- lightning_sdk/cli/legacy/clusters_menu.py +49 -0
- lightning_sdk/cli/legacy/configure.py +129 -0
- lightning_sdk/cli/legacy/connect.py +34 -0
- lightning_sdk/cli/legacy/create.py +115 -0
- lightning_sdk/cli/legacy/delete.py +131 -0
- lightning_sdk/cli/legacy/deploy/__init__.py +0 -0
- lightning_sdk/cli/legacy/deploy/_auth.py +196 -0
- lightning_sdk/cli/legacy/deploy/devbox.py +163 -0
- lightning_sdk/cli/legacy/deploy/serve.py +452 -0
- lightning_sdk/cli/legacy/docker_cli.py +22 -0
- lightning_sdk/cli/legacy/download.py +322 -0
- lightning_sdk/cli/legacy/entrypoint.py +110 -0
- lightning_sdk/cli/legacy/generate.py +52 -0
- lightning_sdk/cli/legacy/inspection.py +45 -0
- lightning_sdk/cli/{job_and_mmt_action.py → legacy/job_and_mmt_action.py} +6 -6
- lightning_sdk/cli/{jobs_menu.py → legacy/jobs_menu.py} +3 -2
- lightning_sdk/cli/legacy/list.py +326 -0
- lightning_sdk/cli/{mmts_menu.py → legacy/mmts_menu.py} +3 -2
- lightning_sdk/cli/legacy/open.py +81 -0
- lightning_sdk/cli/legacy/run.py +443 -0
- lightning_sdk/cli/legacy/start.py +107 -0
- lightning_sdk/cli/legacy/stop.py +107 -0
- lightning_sdk/cli/{studios_menu.py → legacy/studios_menu.py} +24 -1
- lightning_sdk/cli/legacy/switch.py +63 -0
- lightning_sdk/cli/{teamspace_menu.py → legacy/teamspace_menu.py} +12 -3
- lightning_sdk/cli/legacy/upload.py +382 -0
- lightning_sdk/cli/license/__init__.py +14 -0
- lightning_sdk/cli/license/get.py +15 -0
- lightning_sdk/cli/license/list.py +45 -0
- lightning_sdk/cli/license/set.py +13 -0
- lightning_sdk/cli/mmt/__init__.py +7 -0
- lightning_sdk/cli/studio/__init__.py +24 -0
- lightning_sdk/cli/studio/connect.py +139 -0
- lightning_sdk/cli/studio/create.py +96 -0
- lightning_sdk/cli/studio/delete.py +49 -0
- lightning_sdk/cli/studio/list.py +85 -0
- lightning_sdk/cli/studio/ssh.py +64 -0
- lightning_sdk/cli/studio/start.py +115 -0
- lightning_sdk/cli/studio/stop.py +45 -0
- lightning_sdk/cli/studio/switch.py +66 -0
- lightning_sdk/cli/utils/__init__.py +7 -0
- lightning_sdk/cli/utils/cloud_account_map.py +10 -0
- lightning_sdk/cli/utils/coloring.py +60 -0
- lightning_sdk/cli/utils/get_base_studio.py +24 -0
- lightning_sdk/cli/utils/handle_machine_and_gpus_args.py +69 -0
- lightning_sdk/cli/utils/logging.py +122 -0
- lightning_sdk/cli/utils/owner_selection.py +110 -0
- lightning_sdk/cli/utils/resolve.py +28 -0
- lightning_sdk/cli/utils/richt_print.py +35 -0
- lightning_sdk/cli/utils/save_to_config.py +27 -0
- lightning_sdk/cli/utils/ssh_connection.py +59 -0
- lightning_sdk/cli/utils/studio_selection.py +113 -0
- lightning_sdk/cli/utils/teamspace_selection.py +125 -0
- lightning_sdk/cli/vm/__init__.py +20 -0
- lightning_sdk/cli/vm/create.py +33 -0
- lightning_sdk/cli/vm/delete.py +25 -0
- lightning_sdk/cli/vm/list.py +30 -0
- lightning_sdk/cli/vm/ssh.py +31 -0
- lightning_sdk/cli/vm/start.py +60 -0
- lightning_sdk/cli/vm/stop.py +25 -0
- lightning_sdk/cli/vm/switch.py +38 -0
- lightning_sdk/constants.py +1 -0
- lightning_sdk/deployment/__init__.py +4 -0
- lightning_sdk/deployment/deployment.py +208 -28
- lightning_sdk/helpers.py +73 -34
- lightning_sdk/job/base.py +112 -12
- lightning_sdk/job/job.py +73 -44
- lightning_sdk/job/v1.py +28 -35
- lightning_sdk/job/v2.py +54 -17
- lightning_sdk/job/work.py +7 -3
- lightning_sdk/lightning_cloud/login.py +325 -18
- lightning_sdk/lightning_cloud/openapi/__init__.py +346 -26
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +1801 -384
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +376 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +414 -2
- lightning_sdk/lightning_cloud/openapi/api/blog_posts_service_api.py +533 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +638 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +2563 -866
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +327 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +1720 -347
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +210 -4
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2119
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +283 -0
- lightning_sdk/lightning_cloud/openapi/api/git_credentials_service_api.py +497 -0
- lightning_sdk/lightning_cloud/openapi/api/incidents_service_api.py +1058 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +2326 -492
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +2273 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +17 -5
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +473 -5
- lightning_sdk/lightning_cloud/openapi/api/markets_service_api.py +145 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +24 -24
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +795 -0
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +106 -5
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +924 -0
- lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +1508 -251
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +121 -97
- lightning_sdk/lightning_cloud/openapi/api/volume_service_api.py +258 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +4 -20
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +332 -26
- lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_billing.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_studios.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +303 -17
- lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_systemmetrics_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_kubernetestemplates_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/conversations_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/create.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/create_machine_request_represents_the_request_to_create_a_machine.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +315 -3
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +199 -69
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +1 -53
- lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/id_fork_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_reportrestarttimings_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_sleepconfig_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body2.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_service_executions_response.py → job_id_reportroutingtelemetry_body.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/license_key_validate_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/litregistry_lit_repo_name_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/message_id_actions_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +109 -31
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +627 -3
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_storagetransfers_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/project_tab_management_messages.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +523 -3
- lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → protobuf_null_value.py} +7 -9
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/setup.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +93 -15
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +41 -15
- lightning_sdk/lightning_cloud/openapi/models/storagetransfers_validate_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/update.py +233 -129
- lightning_sdk/lightning_cloud/openapi/models/update1.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/usagerestrictions_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/user_user_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_abort_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +188 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_aggregated_pod_metrics.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alert_method.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alerts_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +6 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_session_daily_aggregated.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_subscription.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cancel_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +117 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +313 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +669 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics_stats.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_settings.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +445 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +211 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_deletion_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +1527 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +521 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_response.py → v1_cluster_upload.py} +34 -34
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_usage_restriction.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{id_complete_body.py → v1_complete_upload_temporary_artifact_request.py} +29 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_reason.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_billing_upgrade_trigger_record_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_capacity_reservation_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_git_credentials_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_incident_request.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_job_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_license_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_machine_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_managed_endpoint_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_model_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_machine_job_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_model_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_usage.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +261 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection_tier.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_blog_post_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_environment_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_usage_restriction_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_git_credentials_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_license_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_registry_repository_image_artifact_version_by_digest_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_machine_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_file_endpoint_response.py → v1_delete_pipeline_response.py} +25 -25
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +315 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +112 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_recipients.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_details.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -2
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +931 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metric.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{id_uploads_body1.py → v1_firewall_rule.py} +53 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_function_call.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_function_tool.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_gcp_data_connection_setup.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_direct_vpc.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_artifacts_page_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_assistant_session_daily_aggregated_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_cold_start_metrics_stats_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_system_metrics_aggregate_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_accelerator_demand_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_health_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_latest_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_get_lit_dataset_file_upload_urls_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_machine_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_market_pricing_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +263 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_temp_bucket_credentials_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +235 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_git_credentials.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +185 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_group_node_metrics.py +1215 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_request.py +177 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_service_artifact.py → v1_guest_user.py} +60 -60
- lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_detail.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +95 -41
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +237 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_artifacts_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_resource.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +109 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_aws_config.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +67 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_license.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_elastic_cluster_v1.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_aggregated_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_download_service_execution_artifact_response.py → v1_list_blog_posts_response.py} +41 -41
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metric_timestamps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_user_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_usage_restrictions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_container_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_conversation_message_actions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_mm_ts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_git_credentials_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_job_resources_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_license_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +257 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_machines_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_node_file_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_node_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_notification_dialogs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_platform_notifications_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoints_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedule_runs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_storage_transfers_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/{id_storage_body.py → v1_lit_dataset_file.py} +49 -49
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +35 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +81 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lustre_data_connection.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +341 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_market_price.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +121 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +159 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_message_action.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_modify_filesystem_volume_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_metrics.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_user_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +695 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +837 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_path_mapping.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pause_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_status.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_platform_notification.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +747 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_post_cloud_space_artifact_events_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +121 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +525 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +235 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_tab.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_subscription_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_deployment_routing_telemetry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_k8s_cluster_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_restart_timings_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_request_cloud_space_access_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_request.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_response_choice.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resume_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_schedule_action_type.py} +9 -8
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_run.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_service_execution_status_response.py → v1_server_alert.py} +74 -48
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_service_health.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_setup_data_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +84 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +159 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer_status.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_system_metrics_aggregated.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_owner_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tool.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tool_call.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_transfer_cloud_space_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_like_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_like_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_deployment_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_job_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_repository_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_update_organization_credits_auto_replenish_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_update_project_tab_order_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_new_features_for_user_response.py → v1_upload_temporary_artifact_request.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +894 -842
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_license_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +229 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +513 -45
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_weka_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/validate.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/volumes_id_body.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +61 -48
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +8 -3
- lightning_sdk/lightning_cloud/utils/data_connection.py +234 -7
- lightning_sdk/lit_container.py +68 -9
- lightning_sdk/llm/__init__.py +3 -0
- lightning_sdk/llm/llm.py +497 -0
- lightning_sdk/llm/public_assistants.py +54 -0
- lightning_sdk/machine.py +221 -30
- lightning_sdk/mmt/base.py +67 -32
- lightning_sdk/mmt/mmt.py +68 -50
- lightning_sdk/mmt/v1.py +16 -32
- lightning_sdk/mmt/v2.py +47 -18
- lightning_sdk/models.py +74 -24
- lightning_sdk/organization.py +4 -0
- lightning_sdk/owner.py +2 -1
- lightning_sdk/pipeline/__init__.py +14 -0
- lightning_sdk/pipeline/pipeline.py +163 -0
- lightning_sdk/pipeline/printer.py +124 -0
- lightning_sdk/pipeline/schedule.py +859 -0
- lightning_sdk/pipeline/steps.py +365 -0
- lightning_sdk/pipeline/utils.py +116 -0
- lightning_sdk/plugin.py +39 -20
- lightning_sdk/sandbox.py +160 -0
- lightning_sdk/serve.py +309 -0
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/file_endpoint.py +3 -4
- lightning_sdk/services/utilities.py +16 -2
- lightning_sdk/studio.py +515 -41
- lightning_sdk/teamspace.py +335 -30
- lightning_sdk/user.py +19 -1
- lightning_sdk/utils/config.py +179 -0
- lightning_sdk/utils/license.py +13 -0
- lightning_sdk/utils/logging.py +79 -0
- lightning_sdk/utils/names.py +1179 -0
- lightning_sdk/utils/progress.py +283 -0
- lightning_sdk/utils/resolve.py +149 -13
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/METADATA +14 -11
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/RECORD +649 -250
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/entry_points.txt +1 -0
- lightning_sdk/cli/ai_hub.py +0 -49
- lightning_sdk/cli/delete.py +0 -58
- lightning_sdk/cli/download.py +0 -132
- lightning_sdk/cli/inspect.py +0 -31
- lightning_sdk/cli/legacy.py +0 -135
- lightning_sdk/cli/list.py +0 -112
- lightning_sdk/cli/run.py +0 -225
- lightning_sdk/cli/serve.py +0 -218
- lightning_sdk/cli/stop.py +0 -37
- lightning_sdk/cli/upload.py +0 -255
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
- lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
- /lightning_sdk/cli/{exceptions.py → legacy/exceptions.py} +0 -0
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/top_level.txt +0 -0
|
@@ -43,45 +43,45 @@ class AssistantsServiceApi(object):
|
|
|
43
43
|
api_client = ApiClient()
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
|
-
def
|
|
47
|
-
"""
|
|
46
|
+
def assistants_service_contact_assistant_owner(self, body: 'IdContactownerBody', id: 'str', **kwargs) -> 'V1ContactAssistantOwnerResponse': # noqa: E501
|
|
47
|
+
"""assistants_service_contact_assistant_owner # noqa: E501
|
|
48
48
|
|
|
49
49
|
This method makes a synchronous HTTP request by default. To make an
|
|
50
50
|
asynchronous HTTP request, please pass async_req=True
|
|
51
|
-
>>> thread = api.
|
|
51
|
+
>>> thread = api.assistants_service_contact_assistant_owner(body, id, async_req=True)
|
|
52
52
|
>>> result = thread.get()
|
|
53
53
|
|
|
54
54
|
:param async_req bool
|
|
55
|
-
:param
|
|
56
|
-
:param str
|
|
57
|
-
:return:
|
|
55
|
+
:param IdContactownerBody body: (required)
|
|
56
|
+
:param str id: (required)
|
|
57
|
+
:return: V1ContactAssistantOwnerResponse
|
|
58
58
|
If the method is called asynchronously,
|
|
59
59
|
returns the request thread.
|
|
60
60
|
"""
|
|
61
61
|
kwargs['_return_http_data_only'] = True
|
|
62
62
|
if kwargs.get('async_req'):
|
|
63
|
-
return self.
|
|
63
|
+
return self.assistants_service_contact_assistant_owner_with_http_info(body, id, **kwargs) # noqa: E501
|
|
64
64
|
else:
|
|
65
|
-
(data) = self.
|
|
65
|
+
(data) = self.assistants_service_contact_assistant_owner_with_http_info(body, id, **kwargs) # noqa: E501
|
|
66
66
|
return data
|
|
67
67
|
|
|
68
|
-
def
|
|
69
|
-
"""
|
|
68
|
+
def assistants_service_contact_assistant_owner_with_http_info(self, body: 'IdContactownerBody', id: 'str', **kwargs) -> 'V1ContactAssistantOwnerResponse': # noqa: E501
|
|
69
|
+
"""assistants_service_contact_assistant_owner # noqa: E501
|
|
70
70
|
|
|
71
71
|
This method makes a synchronous HTTP request by default. To make an
|
|
72
72
|
asynchronous HTTP request, please pass async_req=True
|
|
73
|
-
>>> thread = api.
|
|
73
|
+
>>> thread = api.assistants_service_contact_assistant_owner_with_http_info(body, id, async_req=True)
|
|
74
74
|
>>> result = thread.get()
|
|
75
75
|
|
|
76
76
|
:param async_req bool
|
|
77
|
-
:param
|
|
78
|
-
:param str
|
|
79
|
-
:return:
|
|
77
|
+
:param IdContactownerBody body: (required)
|
|
78
|
+
:param str id: (required)
|
|
79
|
+
:return: V1ContactAssistantOwnerResponse
|
|
80
80
|
If the method is called asynchronously,
|
|
81
81
|
returns the request thread.
|
|
82
82
|
"""
|
|
83
83
|
|
|
84
|
-
all_params = ['body', '
|
|
84
|
+
all_params = ['body', 'id'] # noqa: E501
|
|
85
85
|
all_params.append('async_req')
|
|
86
86
|
all_params.append('_return_http_data_only')
|
|
87
87
|
all_params.append('_preload_content')
|
|
@@ -92,24 +92,24 @@ class AssistantsServiceApi(object):
|
|
|
92
92
|
if key not in all_params:
|
|
93
93
|
raise TypeError(
|
|
94
94
|
"Got an unexpected keyword argument '%s'"
|
|
95
|
-
" to method
|
|
95
|
+
" to method assistants_service_contact_assistant_owner" % key
|
|
96
96
|
)
|
|
97
97
|
params[key] = val
|
|
98
98
|
del params['kwargs']
|
|
99
99
|
# verify the required parameter 'body' is set
|
|
100
100
|
if ('body' not in params or
|
|
101
101
|
params['body'] is None):
|
|
102
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
103
|
-
# verify the required parameter '
|
|
104
|
-
if ('
|
|
105
|
-
params['
|
|
106
|
-
raise ValueError("Missing the required parameter `
|
|
102
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_contact_assistant_owner`") # noqa: E501
|
|
103
|
+
# verify the required parameter 'id' is set
|
|
104
|
+
if ('id' not in params or
|
|
105
|
+
params['id'] is None):
|
|
106
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_contact_assistant_owner`") # noqa: E501
|
|
107
107
|
|
|
108
108
|
collection_formats = {}
|
|
109
109
|
|
|
110
110
|
path_params = {}
|
|
111
|
-
if '
|
|
112
|
-
path_params['
|
|
111
|
+
if 'id' in params:
|
|
112
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
113
113
|
|
|
114
114
|
query_params = []
|
|
115
115
|
|
|
@@ -133,14 +133,14 @@ class AssistantsServiceApi(object):
|
|
|
133
133
|
auth_settings = [] # noqa: E501
|
|
134
134
|
|
|
135
135
|
return self.api_client.call_api(
|
|
136
|
-
'/v1/
|
|
136
|
+
'/v1/agents/{id}/contact-owner', 'POST',
|
|
137
137
|
path_params,
|
|
138
138
|
query_params,
|
|
139
139
|
header_params,
|
|
140
140
|
body=body_params,
|
|
141
141
|
post_params=form_params,
|
|
142
142
|
files=local_var_files,
|
|
143
|
-
response_type='
|
|
143
|
+
response_type='V1ContactAssistantOwnerResponse', # noqa: E501
|
|
144
144
|
auth_settings=auth_settings,
|
|
145
145
|
async_req=params.get('async_req'),
|
|
146
146
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -148,40 +148,40 @@ class AssistantsServiceApi(object):
|
|
|
148
148
|
_request_timeout=params.get('_request_timeout'),
|
|
149
149
|
collection_formats=collection_formats)
|
|
150
150
|
|
|
151
|
-
def
|
|
152
|
-
"""
|
|
151
|
+
def assistants_service_create_assistant(self, body: 'ProjectIdAgentsBody', project_id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
152
|
+
"""assistants_service_create_assistant # noqa: E501
|
|
153
153
|
|
|
154
154
|
This method makes a synchronous HTTP request by default. To make an
|
|
155
155
|
asynchronous HTTP request, please pass async_req=True
|
|
156
|
-
>>> thread = api.
|
|
156
|
+
>>> thread = api.assistants_service_create_assistant(body, project_id, async_req=True)
|
|
157
157
|
>>> result = thread.get()
|
|
158
158
|
|
|
159
159
|
:param async_req bool
|
|
160
|
-
:param
|
|
160
|
+
:param ProjectIdAgentsBody body: (required)
|
|
161
161
|
:param str project_id: (required)
|
|
162
|
-
:return:
|
|
162
|
+
:return: V1Assistant
|
|
163
163
|
If the method is called asynchronously,
|
|
164
164
|
returns the request thread.
|
|
165
165
|
"""
|
|
166
166
|
kwargs['_return_http_data_only'] = True
|
|
167
167
|
if kwargs.get('async_req'):
|
|
168
|
-
return self.
|
|
168
|
+
return self.assistants_service_create_assistant_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
169
169
|
else:
|
|
170
|
-
(data) = self.
|
|
170
|
+
(data) = self.assistants_service_create_assistant_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
171
171
|
return data
|
|
172
172
|
|
|
173
|
-
def
|
|
174
|
-
"""
|
|
173
|
+
def assistants_service_create_assistant_with_http_info(self, body: 'ProjectIdAgentsBody', project_id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
174
|
+
"""assistants_service_create_assistant # noqa: E501
|
|
175
175
|
|
|
176
176
|
This method makes a synchronous HTTP request by default. To make an
|
|
177
177
|
asynchronous HTTP request, please pass async_req=True
|
|
178
|
-
>>> thread = api.
|
|
178
|
+
>>> thread = api.assistants_service_create_assistant_with_http_info(body, project_id, async_req=True)
|
|
179
179
|
>>> result = thread.get()
|
|
180
180
|
|
|
181
181
|
:param async_req bool
|
|
182
|
-
:param
|
|
182
|
+
:param ProjectIdAgentsBody body: (required)
|
|
183
183
|
:param str project_id: (required)
|
|
184
|
-
:return:
|
|
184
|
+
:return: V1Assistant
|
|
185
185
|
If the method is called asynchronously,
|
|
186
186
|
returns the request thread.
|
|
187
187
|
"""
|
|
@@ -197,18 +197,18 @@ class AssistantsServiceApi(object):
|
|
|
197
197
|
if key not in all_params:
|
|
198
198
|
raise TypeError(
|
|
199
199
|
"Got an unexpected keyword argument '%s'"
|
|
200
|
-
" to method
|
|
200
|
+
" to method assistants_service_create_assistant" % key
|
|
201
201
|
)
|
|
202
202
|
params[key] = val
|
|
203
203
|
del params['kwargs']
|
|
204
204
|
# verify the required parameter 'body' is set
|
|
205
205
|
if ('body' not in params or
|
|
206
206
|
params['body'] is None):
|
|
207
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
207
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_create_assistant`") # noqa: E501
|
|
208
208
|
# verify the required parameter 'project_id' is set
|
|
209
209
|
if ('project_id' not in params or
|
|
210
210
|
params['project_id'] is None):
|
|
211
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
211
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_create_assistant`") # noqa: E501
|
|
212
212
|
|
|
213
213
|
collection_formats = {}
|
|
214
214
|
|
|
@@ -238,14 +238,14 @@ class AssistantsServiceApi(object):
|
|
|
238
238
|
auth_settings = [] # noqa: E501
|
|
239
239
|
|
|
240
240
|
return self.api_client.call_api(
|
|
241
|
-
'/v1/projects/{projectId}/
|
|
241
|
+
'/v1/projects/{projectId}/agents', 'POST',
|
|
242
242
|
path_params,
|
|
243
243
|
query_params,
|
|
244
244
|
header_params,
|
|
245
245
|
body=body_params,
|
|
246
246
|
post_params=form_params,
|
|
247
247
|
files=local_var_files,
|
|
248
|
-
response_type='
|
|
248
|
+
response_type='V1Assistant', # noqa: E501
|
|
249
249
|
auth_settings=auth_settings,
|
|
250
250
|
async_req=params.get('async_req'),
|
|
251
251
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -253,45 +253,45 @@ class AssistantsServiceApi(object):
|
|
|
253
253
|
_request_timeout=params.get('_request_timeout'),
|
|
254
254
|
collection_formats=collection_formats)
|
|
255
255
|
|
|
256
|
-
def
|
|
257
|
-
"""
|
|
256
|
+
def assistants_service_create_assistant_managed_endpoint(self, body: 'ProjectIdAgentmanagedendpointsBody', project_id: 'str', **kwargs) -> 'V1CreateManagedEndpointResponse': # noqa: E501
|
|
257
|
+
"""assistants_service_create_assistant_managed_endpoint # noqa: E501
|
|
258
258
|
|
|
259
259
|
This method makes a synchronous HTTP request by default. To make an
|
|
260
260
|
asynchronous HTTP request, please pass async_req=True
|
|
261
|
-
>>> thread = api.
|
|
261
|
+
>>> thread = api.assistants_service_create_assistant_managed_endpoint(body, project_id, async_req=True)
|
|
262
262
|
>>> result = thread.get()
|
|
263
263
|
|
|
264
264
|
:param async_req bool
|
|
265
|
+
:param ProjectIdAgentmanagedendpointsBody body: (required)
|
|
265
266
|
:param str project_id: (required)
|
|
266
|
-
:
|
|
267
|
-
:return: V1DeleteAssistantResponse
|
|
267
|
+
:return: V1CreateManagedEndpointResponse
|
|
268
268
|
If the method is called asynchronously,
|
|
269
269
|
returns the request thread.
|
|
270
270
|
"""
|
|
271
271
|
kwargs['_return_http_data_only'] = True
|
|
272
272
|
if kwargs.get('async_req'):
|
|
273
|
-
return self.
|
|
273
|
+
return self.assistants_service_create_assistant_managed_endpoint_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
274
274
|
else:
|
|
275
|
-
(data) = self.
|
|
275
|
+
(data) = self.assistants_service_create_assistant_managed_endpoint_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
276
276
|
return data
|
|
277
277
|
|
|
278
|
-
def
|
|
279
|
-
"""
|
|
278
|
+
def assistants_service_create_assistant_managed_endpoint_with_http_info(self, body: 'ProjectIdAgentmanagedendpointsBody', project_id: 'str', **kwargs) -> 'V1CreateManagedEndpointResponse': # noqa: E501
|
|
279
|
+
"""assistants_service_create_assistant_managed_endpoint # noqa: E501
|
|
280
280
|
|
|
281
281
|
This method makes a synchronous HTTP request by default. To make an
|
|
282
282
|
asynchronous HTTP request, please pass async_req=True
|
|
283
|
-
>>> thread = api.
|
|
283
|
+
>>> thread = api.assistants_service_create_assistant_managed_endpoint_with_http_info(body, project_id, async_req=True)
|
|
284
284
|
>>> result = thread.get()
|
|
285
285
|
|
|
286
286
|
:param async_req bool
|
|
287
|
+
:param ProjectIdAgentmanagedendpointsBody body: (required)
|
|
287
288
|
:param str project_id: (required)
|
|
288
|
-
:
|
|
289
|
-
:return: V1DeleteAssistantResponse
|
|
289
|
+
:return: V1CreateManagedEndpointResponse
|
|
290
290
|
If the method is called asynchronously,
|
|
291
291
|
returns the request thread.
|
|
292
292
|
"""
|
|
293
293
|
|
|
294
|
-
all_params = ['
|
|
294
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
295
295
|
all_params.append('async_req')
|
|
296
296
|
all_params.append('_return_http_data_only')
|
|
297
297
|
all_params.append('_preload_content')
|
|
@@ -302,26 +302,24 @@ class AssistantsServiceApi(object):
|
|
|
302
302
|
if key not in all_params:
|
|
303
303
|
raise TypeError(
|
|
304
304
|
"Got an unexpected keyword argument '%s'"
|
|
305
|
-
" to method
|
|
305
|
+
" to method assistants_service_create_assistant_managed_endpoint" % key
|
|
306
306
|
)
|
|
307
307
|
params[key] = val
|
|
308
308
|
del params['kwargs']
|
|
309
|
+
# verify the required parameter 'body' is set
|
|
310
|
+
if ('body' not in params or
|
|
311
|
+
params['body'] is None):
|
|
312
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_create_assistant_managed_endpoint`") # noqa: E501
|
|
309
313
|
# verify the required parameter 'project_id' is set
|
|
310
314
|
if ('project_id' not in params or
|
|
311
315
|
params['project_id'] is None):
|
|
312
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
313
|
-
# verify the required parameter 'id' is set
|
|
314
|
-
if ('id' not in params or
|
|
315
|
-
params['id'] is None):
|
|
316
|
-
raise ValueError("Missing the required parameter `id` when calling `assistants_service_delete_assistant`") # noqa: E501
|
|
316
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_create_assistant_managed_endpoint`") # noqa: E501
|
|
317
317
|
|
|
318
318
|
collection_formats = {}
|
|
319
319
|
|
|
320
320
|
path_params = {}
|
|
321
321
|
if 'project_id' in params:
|
|
322
322
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
323
|
-
if 'id' in params:
|
|
324
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
325
323
|
|
|
326
324
|
query_params = []
|
|
327
325
|
|
|
@@ -331,22 +329,28 @@ class AssistantsServiceApi(object):
|
|
|
331
329
|
local_var_files = {}
|
|
332
330
|
|
|
333
331
|
body_params = None
|
|
332
|
+
if 'body' in params:
|
|
333
|
+
body_params = params['body']
|
|
334
334
|
# HTTP header `Accept`
|
|
335
335
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
336
336
|
['application/json']) # noqa: E501
|
|
337
337
|
|
|
338
|
+
# HTTP header `Content-Type`
|
|
339
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
340
|
+
['application/json']) # noqa: E501
|
|
341
|
+
|
|
338
342
|
# Authentication setting
|
|
339
343
|
auth_settings = [] # noqa: E501
|
|
340
344
|
|
|
341
345
|
return self.api_client.call_api(
|
|
342
|
-
'/v1/projects/{projectId}/
|
|
346
|
+
'/v1/projects/{projectId}/agent-managed-endpoints', 'POST',
|
|
343
347
|
path_params,
|
|
344
348
|
query_params,
|
|
345
349
|
header_params,
|
|
346
350
|
body=body_params,
|
|
347
351
|
post_params=form_params,
|
|
348
352
|
files=local_var_files,
|
|
349
|
-
response_type='
|
|
353
|
+
response_type='V1CreateManagedEndpointResponse', # noqa: E501
|
|
350
354
|
auth_settings=auth_settings,
|
|
351
355
|
async_req=params.get('async_req'),
|
|
352
356
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -354,45 +358,49 @@ class AssistantsServiceApi(object):
|
|
|
354
358
|
_request_timeout=params.get('_request_timeout'),
|
|
355
359
|
collection_formats=collection_formats)
|
|
356
360
|
|
|
357
|
-
def
|
|
358
|
-
"""
|
|
361
|
+
def assistants_service_create_conversation_message_action(self, body: 'MessageIdActionsBody', assistant_id: 'str', conversation_id: 'str', message_id: 'str', **kwargs) -> 'V1MessageAction': # noqa: E501
|
|
362
|
+
"""assistants_service_create_conversation_message_action # noqa: E501
|
|
359
363
|
|
|
360
364
|
This method makes a synchronous HTTP request by default. To make an
|
|
361
365
|
asynchronous HTTP request, please pass async_req=True
|
|
362
|
-
>>> thread = api.
|
|
366
|
+
>>> thread = api.assistants_service_create_conversation_message_action(body, assistant_id, conversation_id, message_id, async_req=True)
|
|
363
367
|
>>> result = thread.get()
|
|
364
368
|
|
|
365
369
|
:param async_req bool
|
|
366
|
-
:param
|
|
367
|
-
:param str
|
|
368
|
-
:
|
|
370
|
+
:param MessageIdActionsBody body: (required)
|
|
371
|
+
:param str assistant_id: (required)
|
|
372
|
+
:param str conversation_id: (required)
|
|
373
|
+
:param str message_id: (required)
|
|
374
|
+
:return: V1MessageAction
|
|
369
375
|
If the method is called asynchronously,
|
|
370
376
|
returns the request thread.
|
|
371
377
|
"""
|
|
372
378
|
kwargs['_return_http_data_only'] = True
|
|
373
379
|
if kwargs.get('async_req'):
|
|
374
|
-
return self.
|
|
380
|
+
return self.assistants_service_create_conversation_message_action_with_http_info(body, assistant_id, conversation_id, message_id, **kwargs) # noqa: E501
|
|
375
381
|
else:
|
|
376
|
-
(data) = self.
|
|
382
|
+
(data) = self.assistants_service_create_conversation_message_action_with_http_info(body, assistant_id, conversation_id, message_id, **kwargs) # noqa: E501
|
|
377
383
|
return data
|
|
378
384
|
|
|
379
|
-
def
|
|
380
|
-
"""
|
|
385
|
+
def assistants_service_create_conversation_message_action_with_http_info(self, body: 'MessageIdActionsBody', assistant_id: 'str', conversation_id: 'str', message_id: 'str', **kwargs) -> 'V1MessageAction': # noqa: E501
|
|
386
|
+
"""assistants_service_create_conversation_message_action # noqa: E501
|
|
381
387
|
|
|
382
388
|
This method makes a synchronous HTTP request by default. To make an
|
|
383
389
|
asynchronous HTTP request, please pass async_req=True
|
|
384
|
-
>>> thread = api.
|
|
390
|
+
>>> thread = api.assistants_service_create_conversation_message_action_with_http_info(body, assistant_id, conversation_id, message_id, async_req=True)
|
|
385
391
|
>>> result = thread.get()
|
|
386
392
|
|
|
387
393
|
:param async_req bool
|
|
388
|
-
:param
|
|
389
|
-
:param str
|
|
390
|
-
:
|
|
394
|
+
:param MessageIdActionsBody body: (required)
|
|
395
|
+
:param str assistant_id: (required)
|
|
396
|
+
:param str conversation_id: (required)
|
|
397
|
+
:param str message_id: (required)
|
|
398
|
+
:return: V1MessageAction
|
|
391
399
|
If the method is called asynchronously,
|
|
392
400
|
returns the request thread.
|
|
393
401
|
"""
|
|
394
402
|
|
|
395
|
-
all_params = ['
|
|
403
|
+
all_params = ['body', 'assistant_id', 'conversation_id', 'message_id'] # noqa: E501
|
|
396
404
|
all_params.append('async_req')
|
|
397
405
|
all_params.append('_return_http_data_only')
|
|
398
406
|
all_params.append('_preload_content')
|
|
@@ -403,26 +411,36 @@ class AssistantsServiceApi(object):
|
|
|
403
411
|
if key not in all_params:
|
|
404
412
|
raise TypeError(
|
|
405
413
|
"Got an unexpected keyword argument '%s'"
|
|
406
|
-
" to method
|
|
414
|
+
" to method assistants_service_create_conversation_message_action" % key
|
|
407
415
|
)
|
|
408
416
|
params[key] = val
|
|
409
417
|
del params['kwargs']
|
|
410
|
-
# verify the required parameter '
|
|
411
|
-
if ('
|
|
412
|
-
params['
|
|
413
|
-
raise ValueError("Missing the required parameter `
|
|
414
|
-
# verify the required parameter '
|
|
415
|
-
if ('
|
|
416
|
-
params['
|
|
417
|
-
raise ValueError("Missing the required parameter `
|
|
418
|
+
# verify the required parameter 'body' is set
|
|
419
|
+
if ('body' not in params or
|
|
420
|
+
params['body'] is None):
|
|
421
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_create_conversation_message_action`") # noqa: E501
|
|
422
|
+
# verify the required parameter 'assistant_id' is set
|
|
423
|
+
if ('assistant_id' not in params or
|
|
424
|
+
params['assistant_id'] is None):
|
|
425
|
+
raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_create_conversation_message_action`") # noqa: E501
|
|
426
|
+
# verify the required parameter 'conversation_id' is set
|
|
427
|
+
if ('conversation_id' not in params or
|
|
428
|
+
params['conversation_id'] is None):
|
|
429
|
+
raise ValueError("Missing the required parameter `conversation_id` when calling `assistants_service_create_conversation_message_action`") # noqa: E501
|
|
430
|
+
# verify the required parameter 'message_id' is set
|
|
431
|
+
if ('message_id' not in params or
|
|
432
|
+
params['message_id'] is None):
|
|
433
|
+
raise ValueError("Missing the required parameter `message_id` when calling `assistants_service_create_conversation_message_action`") # noqa: E501
|
|
418
434
|
|
|
419
435
|
collection_formats = {}
|
|
420
436
|
|
|
421
437
|
path_params = {}
|
|
422
|
-
if '
|
|
423
|
-
path_params['
|
|
424
|
-
if '
|
|
425
|
-
path_params['
|
|
438
|
+
if 'assistant_id' in params:
|
|
439
|
+
path_params['assistantId'] = params['assistant_id'] # noqa: E501
|
|
440
|
+
if 'conversation_id' in params:
|
|
441
|
+
path_params['conversationId'] = params['conversation_id'] # noqa: E501
|
|
442
|
+
if 'message_id' in params:
|
|
443
|
+
path_params['messageId'] = params['message_id'] # noqa: E501
|
|
426
444
|
|
|
427
445
|
query_params = []
|
|
428
446
|
|
|
@@ -432,22 +450,28 @@ class AssistantsServiceApi(object):
|
|
|
432
450
|
local_var_files = {}
|
|
433
451
|
|
|
434
452
|
body_params = None
|
|
453
|
+
if 'body' in params:
|
|
454
|
+
body_params = params['body']
|
|
435
455
|
# HTTP header `Accept`
|
|
436
456
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
437
457
|
['application/json']) # noqa: E501
|
|
438
458
|
|
|
459
|
+
# HTTP header `Content-Type`
|
|
460
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
461
|
+
['application/json']) # noqa: E501
|
|
462
|
+
|
|
439
463
|
# Authentication setting
|
|
440
464
|
auth_settings = [] # noqa: E501
|
|
441
465
|
|
|
442
466
|
return self.api_client.call_api(
|
|
443
|
-
'/v1/
|
|
467
|
+
'/v1/agents/{assistantId}/conversations/{conversationId}/messages/{messageId}/actions', 'POST',
|
|
444
468
|
path_params,
|
|
445
469
|
query_params,
|
|
446
470
|
header_params,
|
|
447
471
|
body=body_params,
|
|
448
472
|
post_params=form_params,
|
|
449
473
|
files=local_var_files,
|
|
450
|
-
response_type='
|
|
474
|
+
response_type='V1MessageAction', # noqa: E501
|
|
451
475
|
auth_settings=auth_settings,
|
|
452
476
|
async_req=params.get('async_req'),
|
|
453
477
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -455,47 +479,45 @@ class AssistantsServiceApi(object):
|
|
|
455
479
|
_request_timeout=params.get('_request_timeout'),
|
|
456
480
|
collection_formats=collection_formats)
|
|
457
481
|
|
|
458
|
-
def
|
|
459
|
-
"""
|
|
482
|
+
def assistants_service_create_model_metrics(self, body: 'ModelsModelIdBody', model_id: 'str', **kwargs) -> 'V1CreateModelMetricsResponse': # noqa: E501
|
|
483
|
+
"""assistants_service_create_model_metrics # noqa: E501
|
|
460
484
|
|
|
461
485
|
This method makes a synchronous HTTP request by default. To make an
|
|
462
486
|
asynchronous HTTP request, please pass async_req=True
|
|
463
|
-
>>> thread = api.
|
|
487
|
+
>>> thread = api.assistants_service_create_model_metrics(body, model_id, async_req=True)
|
|
464
488
|
>>> result = thread.get()
|
|
465
489
|
|
|
466
490
|
:param async_req bool
|
|
467
|
-
:param
|
|
468
|
-
:param str
|
|
469
|
-
:
|
|
470
|
-
:return: V1DeleteConversationResponse
|
|
491
|
+
:param ModelsModelIdBody body: (required)
|
|
492
|
+
:param str model_id: (required)
|
|
493
|
+
:return: V1CreateModelMetricsResponse
|
|
471
494
|
If the method is called asynchronously,
|
|
472
495
|
returns the request thread.
|
|
473
496
|
"""
|
|
474
497
|
kwargs['_return_http_data_only'] = True
|
|
475
498
|
if kwargs.get('async_req'):
|
|
476
|
-
return self.
|
|
499
|
+
return self.assistants_service_create_model_metrics_with_http_info(body, model_id, **kwargs) # noqa: E501
|
|
477
500
|
else:
|
|
478
|
-
(data) = self.
|
|
501
|
+
(data) = self.assistants_service_create_model_metrics_with_http_info(body, model_id, **kwargs) # noqa: E501
|
|
479
502
|
return data
|
|
480
503
|
|
|
481
|
-
def
|
|
482
|
-
"""
|
|
504
|
+
def assistants_service_create_model_metrics_with_http_info(self, body: 'ModelsModelIdBody', model_id: 'str', **kwargs) -> 'V1CreateModelMetricsResponse': # noqa: E501
|
|
505
|
+
"""assistants_service_create_model_metrics # noqa: E501
|
|
483
506
|
|
|
484
507
|
This method makes a synchronous HTTP request by default. To make an
|
|
485
508
|
asynchronous HTTP request, please pass async_req=True
|
|
486
|
-
>>> thread = api.
|
|
509
|
+
>>> thread = api.assistants_service_create_model_metrics_with_http_info(body, model_id, async_req=True)
|
|
487
510
|
>>> result = thread.get()
|
|
488
511
|
|
|
489
512
|
:param async_req bool
|
|
490
|
-
:param
|
|
491
|
-
:param str
|
|
492
|
-
:
|
|
493
|
-
:return: V1DeleteConversationResponse
|
|
513
|
+
:param ModelsModelIdBody body: (required)
|
|
514
|
+
:param str model_id: (required)
|
|
515
|
+
:return: V1CreateModelMetricsResponse
|
|
494
516
|
If the method is called asynchronously,
|
|
495
517
|
returns the request thread.
|
|
496
518
|
"""
|
|
497
519
|
|
|
498
|
-
all_params = ['
|
|
520
|
+
all_params = ['body', 'model_id'] # noqa: E501
|
|
499
521
|
all_params.append('async_req')
|
|
500
522
|
all_params.append('_return_http_data_only')
|
|
501
523
|
all_params.append('_preload_content')
|
|
@@ -506,30 +528,26 @@ class AssistantsServiceApi(object):
|
|
|
506
528
|
if key not in all_params:
|
|
507
529
|
raise TypeError(
|
|
508
530
|
"Got an unexpected keyword argument '%s'"
|
|
509
|
-
" to method
|
|
531
|
+
" to method assistants_service_create_model_metrics" % key
|
|
510
532
|
)
|
|
511
533
|
params[key] = val
|
|
512
534
|
del params['kwargs']
|
|
513
|
-
# verify the required parameter '
|
|
514
|
-
if ('
|
|
515
|
-
params['
|
|
516
|
-
raise ValueError("Missing the required parameter `
|
|
517
|
-
# verify the required parameter '
|
|
518
|
-
if ('
|
|
519
|
-
params['
|
|
520
|
-
raise ValueError("Missing the required parameter `
|
|
535
|
+
# verify the required parameter 'body' is set
|
|
536
|
+
if ('body' not in params or
|
|
537
|
+
params['body'] is None):
|
|
538
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_create_model_metrics`") # noqa: E501
|
|
539
|
+
# verify the required parameter 'model_id' is set
|
|
540
|
+
if ('model_id' not in params or
|
|
541
|
+
params['model_id'] is None):
|
|
542
|
+
raise ValueError("Missing the required parameter `model_id` when calling `assistants_service_create_model_metrics`") # noqa: E501
|
|
521
543
|
|
|
522
544
|
collection_formats = {}
|
|
523
545
|
|
|
524
546
|
path_params = {}
|
|
525
|
-
if '
|
|
526
|
-
path_params['
|
|
527
|
-
if 'id' in params:
|
|
528
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
547
|
+
if 'model_id' in params:
|
|
548
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
529
549
|
|
|
530
550
|
query_params = []
|
|
531
|
-
if 'delete_data' in params:
|
|
532
|
-
query_params.append(('deleteData', params['delete_data'])) # noqa: E501
|
|
533
551
|
|
|
534
552
|
header_params = {}
|
|
535
553
|
|
|
@@ -537,22 +555,28 @@ class AssistantsServiceApi(object):
|
|
|
537
555
|
local_var_files = {}
|
|
538
556
|
|
|
539
557
|
body_params = None
|
|
558
|
+
if 'body' in params:
|
|
559
|
+
body_params = params['body']
|
|
540
560
|
# HTTP header `Accept`
|
|
541
561
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
542
562
|
['application/json']) # noqa: E501
|
|
543
563
|
|
|
564
|
+
# HTTP header `Content-Type`
|
|
565
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
566
|
+
['application/json']) # noqa: E501
|
|
567
|
+
|
|
544
568
|
# Authentication setting
|
|
545
569
|
auth_settings = [] # noqa: E501
|
|
546
570
|
|
|
547
571
|
return self.api_client.call_api(
|
|
548
|
-
'/v1/agents/
|
|
572
|
+
'/v1/agents/metrics/models/{modelId}', 'POST',
|
|
549
573
|
path_params,
|
|
550
574
|
query_params,
|
|
551
575
|
header_params,
|
|
552
576
|
body=body_params,
|
|
553
577
|
post_params=form_params,
|
|
554
578
|
files=local_var_files,
|
|
555
|
-
response_type='
|
|
579
|
+
response_type='V1CreateModelMetricsResponse', # noqa: E501
|
|
556
580
|
auth_settings=auth_settings,
|
|
557
581
|
async_req=params.get('async_req'),
|
|
558
582
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -560,43 +584,45 @@ class AssistantsServiceApi(object):
|
|
|
560
584
|
_request_timeout=params.get('_request_timeout'),
|
|
561
585
|
collection_formats=collection_formats)
|
|
562
586
|
|
|
563
|
-
def
|
|
564
|
-
"""
|
|
587
|
+
def assistants_service_delete_assistant(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteAssistantResponse': # noqa: E501
|
|
588
|
+
"""assistants_service_delete_assistant # noqa: E501
|
|
565
589
|
|
|
566
590
|
This method makes a synchronous HTTP request by default. To make an
|
|
567
591
|
asynchronous HTTP request, please pass async_req=True
|
|
568
|
-
>>> thread = api.
|
|
592
|
+
>>> thread = api.assistants_service_delete_assistant(project_id, id, async_req=True)
|
|
569
593
|
>>> result = thread.get()
|
|
570
594
|
|
|
571
595
|
:param async_req bool
|
|
596
|
+
:param str project_id: (required)
|
|
572
597
|
:param str id: (required)
|
|
573
|
-
:return:
|
|
598
|
+
:return: V1DeleteAssistantResponse
|
|
574
599
|
If the method is called asynchronously,
|
|
575
600
|
returns the request thread.
|
|
576
601
|
"""
|
|
577
602
|
kwargs['_return_http_data_only'] = True
|
|
578
603
|
if kwargs.get('async_req'):
|
|
579
|
-
return self.
|
|
604
|
+
return self.assistants_service_delete_assistant_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
580
605
|
else:
|
|
581
|
-
(data) = self.
|
|
606
|
+
(data) = self.assistants_service_delete_assistant_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
582
607
|
return data
|
|
583
608
|
|
|
584
|
-
def
|
|
585
|
-
"""
|
|
609
|
+
def assistants_service_delete_assistant_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteAssistantResponse': # noqa: E501
|
|
610
|
+
"""assistants_service_delete_assistant # noqa: E501
|
|
586
611
|
|
|
587
612
|
This method makes a synchronous HTTP request by default. To make an
|
|
588
613
|
asynchronous HTTP request, please pass async_req=True
|
|
589
|
-
>>> thread = api.
|
|
614
|
+
>>> thread = api.assistants_service_delete_assistant_with_http_info(project_id, id, async_req=True)
|
|
590
615
|
>>> result = thread.get()
|
|
591
616
|
|
|
592
617
|
:param async_req bool
|
|
618
|
+
:param str project_id: (required)
|
|
593
619
|
:param str id: (required)
|
|
594
|
-
:return:
|
|
620
|
+
:return: V1DeleteAssistantResponse
|
|
595
621
|
If the method is called asynchronously,
|
|
596
622
|
returns the request thread.
|
|
597
623
|
"""
|
|
598
624
|
|
|
599
|
-
all_params = ['id'] # noqa: E501
|
|
625
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
600
626
|
all_params.append('async_req')
|
|
601
627
|
all_params.append('_return_http_data_only')
|
|
602
628
|
all_params.append('_preload_content')
|
|
@@ -607,18 +633,24 @@ class AssistantsServiceApi(object):
|
|
|
607
633
|
if key not in all_params:
|
|
608
634
|
raise TypeError(
|
|
609
635
|
"Got an unexpected keyword argument '%s'"
|
|
610
|
-
" to method
|
|
636
|
+
" to method assistants_service_delete_assistant" % key
|
|
611
637
|
)
|
|
612
638
|
params[key] = val
|
|
613
639
|
del params['kwargs']
|
|
640
|
+
# verify the required parameter 'project_id' is set
|
|
641
|
+
if ('project_id' not in params or
|
|
642
|
+
params['project_id'] is None):
|
|
643
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_delete_assistant`") # noqa: E501
|
|
614
644
|
# verify the required parameter 'id' is set
|
|
615
645
|
if ('id' not in params or
|
|
616
646
|
params['id'] is None):
|
|
617
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
647
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_delete_assistant`") # noqa: E501
|
|
618
648
|
|
|
619
649
|
collection_formats = {}
|
|
620
650
|
|
|
621
651
|
path_params = {}
|
|
652
|
+
if 'project_id' in params:
|
|
653
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
622
654
|
if 'id' in params:
|
|
623
655
|
path_params['id'] = params['id'] # noqa: E501
|
|
624
656
|
|
|
@@ -638,14 +670,14 @@ class AssistantsServiceApi(object):
|
|
|
638
670
|
auth_settings = [] # noqa: E501
|
|
639
671
|
|
|
640
672
|
return self.api_client.call_api(
|
|
641
|
-
'/v1/agents/{id}', '
|
|
673
|
+
'/v1/projects/{projectId}/agents/{id}', 'DELETE',
|
|
642
674
|
path_params,
|
|
643
675
|
query_params,
|
|
644
676
|
header_params,
|
|
645
677
|
body=body_params,
|
|
646
678
|
post_params=form_params,
|
|
647
679
|
files=local_var_files,
|
|
648
|
-
response_type='
|
|
680
|
+
response_type='V1DeleteAssistantResponse', # noqa: E501
|
|
649
681
|
auth_settings=auth_settings,
|
|
650
682
|
async_req=params.get('async_req'),
|
|
651
683
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -653,43 +685,45 @@ class AssistantsServiceApi(object):
|
|
|
653
685
|
_request_timeout=params.get('_request_timeout'),
|
|
654
686
|
collection_formats=collection_formats)
|
|
655
687
|
|
|
656
|
-
def
|
|
657
|
-
"""
|
|
688
|
+
def assistants_service_delete_assistant_managed_endpoint(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteManagedEndpointResponse': # noqa: E501
|
|
689
|
+
"""assistants_service_delete_assistant_managed_endpoint # noqa: E501
|
|
658
690
|
|
|
659
691
|
This method makes a synchronous HTTP request by default. To make an
|
|
660
692
|
asynchronous HTTP request, please pass async_req=True
|
|
661
|
-
>>> thread = api.
|
|
693
|
+
>>> thread = api.assistants_service_delete_assistant_managed_endpoint(project_id, id, async_req=True)
|
|
662
694
|
>>> result = thread.get()
|
|
663
695
|
|
|
664
696
|
:param async_req bool
|
|
697
|
+
:param str project_id: (required)
|
|
665
698
|
:param str id: (required)
|
|
666
|
-
:return:
|
|
699
|
+
:return: V1DeleteManagedEndpointResponse
|
|
667
700
|
If the method is called asynchronously,
|
|
668
701
|
returns the request thread.
|
|
669
702
|
"""
|
|
670
703
|
kwargs['_return_http_data_only'] = True
|
|
671
704
|
if kwargs.get('async_req'):
|
|
672
|
-
return self.
|
|
705
|
+
return self.assistants_service_delete_assistant_managed_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
673
706
|
else:
|
|
674
|
-
(data) = self.
|
|
707
|
+
(data) = self.assistants_service_delete_assistant_managed_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
675
708
|
return data
|
|
676
709
|
|
|
677
|
-
def
|
|
678
|
-
"""
|
|
710
|
+
def assistants_service_delete_assistant_managed_endpoint_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteManagedEndpointResponse': # noqa: E501
|
|
711
|
+
"""assistants_service_delete_assistant_managed_endpoint # noqa: E501
|
|
679
712
|
|
|
680
713
|
This method makes a synchronous HTTP request by default. To make an
|
|
681
714
|
asynchronous HTTP request, please pass async_req=True
|
|
682
|
-
>>> thread = api.
|
|
715
|
+
>>> thread = api.assistants_service_delete_assistant_managed_endpoint_with_http_info(project_id, id, async_req=True)
|
|
683
716
|
>>> result = thread.get()
|
|
684
717
|
|
|
685
718
|
:param async_req bool
|
|
719
|
+
:param str project_id: (required)
|
|
686
720
|
:param str id: (required)
|
|
687
|
-
:return:
|
|
721
|
+
:return: V1DeleteManagedEndpointResponse
|
|
688
722
|
If the method is called asynchronously,
|
|
689
723
|
returns the request thread.
|
|
690
724
|
"""
|
|
691
725
|
|
|
692
|
-
all_params = ['id'] # noqa: E501
|
|
726
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
693
727
|
all_params.append('async_req')
|
|
694
728
|
all_params.append('_return_http_data_only')
|
|
695
729
|
all_params.append('_preload_content')
|
|
@@ -700,18 +734,24 @@ class AssistantsServiceApi(object):
|
|
|
700
734
|
if key not in all_params:
|
|
701
735
|
raise TypeError(
|
|
702
736
|
"Got an unexpected keyword argument '%s'"
|
|
703
|
-
" to method
|
|
737
|
+
" to method assistants_service_delete_assistant_managed_endpoint" % key
|
|
704
738
|
)
|
|
705
739
|
params[key] = val
|
|
706
740
|
del params['kwargs']
|
|
741
|
+
# verify the required parameter 'project_id' is set
|
|
742
|
+
if ('project_id' not in params or
|
|
743
|
+
params['project_id'] is None):
|
|
744
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_delete_assistant_managed_endpoint`") # noqa: E501
|
|
707
745
|
# verify the required parameter 'id' is set
|
|
708
746
|
if ('id' not in params or
|
|
709
747
|
params['id'] is None):
|
|
710
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
748
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_delete_assistant_managed_endpoint`") # noqa: E501
|
|
711
749
|
|
|
712
750
|
collection_formats = {}
|
|
713
751
|
|
|
714
752
|
path_params = {}
|
|
753
|
+
if 'project_id' in params:
|
|
754
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
715
755
|
if 'id' in params:
|
|
716
756
|
path_params['id'] = params['id'] # noqa: E501
|
|
717
757
|
|
|
@@ -731,14 +771,14 @@ class AssistantsServiceApi(object):
|
|
|
731
771
|
auth_settings = [] # noqa: E501
|
|
732
772
|
|
|
733
773
|
return self.api_client.call_api(
|
|
734
|
-
'/v1/
|
|
774
|
+
'/v1/projects/{projectId}/agent-managed-endpoints/{id}', 'DELETE',
|
|
735
775
|
path_params,
|
|
736
776
|
query_params,
|
|
737
777
|
header_params,
|
|
738
778
|
body=body_params,
|
|
739
779
|
post_params=form_params,
|
|
740
780
|
files=local_var_files,
|
|
741
|
-
response_type='
|
|
781
|
+
response_type='V1DeleteManagedEndpointResponse', # noqa: E501
|
|
742
782
|
auth_settings=auth_settings,
|
|
743
783
|
async_req=params.get('async_req'),
|
|
744
784
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -746,45 +786,47 @@ class AssistantsServiceApi(object):
|
|
|
746
786
|
_request_timeout=params.get('_request_timeout'),
|
|
747
787
|
collection_formats=collection_formats)
|
|
748
788
|
|
|
749
|
-
def
|
|
750
|
-
"""
|
|
789
|
+
def assistants_service_delete_conversation(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1DeleteConversationResponse': # noqa: E501
|
|
790
|
+
"""assistants_service_delete_conversation # noqa: E501
|
|
751
791
|
|
|
752
792
|
This method makes a synchronous HTTP request by default. To make an
|
|
753
793
|
asynchronous HTTP request, please pass async_req=True
|
|
754
|
-
>>> thread = api.
|
|
794
|
+
>>> thread = api.assistants_service_delete_conversation(assistant_id, id, async_req=True)
|
|
755
795
|
>>> result = thread.get()
|
|
756
796
|
|
|
757
797
|
:param async_req bool
|
|
758
798
|
:param str assistant_id: (required)
|
|
759
799
|
:param str id: (required)
|
|
760
|
-
:
|
|
800
|
+
:param bool delete_data:
|
|
801
|
+
:return: V1DeleteConversationResponse
|
|
761
802
|
If the method is called asynchronously,
|
|
762
803
|
returns the request thread.
|
|
763
804
|
"""
|
|
764
805
|
kwargs['_return_http_data_only'] = True
|
|
765
806
|
if kwargs.get('async_req'):
|
|
766
|
-
return self.
|
|
807
|
+
return self.assistants_service_delete_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
|
|
767
808
|
else:
|
|
768
|
-
(data) = self.
|
|
809
|
+
(data) = self.assistants_service_delete_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
|
|
769
810
|
return data
|
|
770
811
|
|
|
771
|
-
def
|
|
772
|
-
"""
|
|
812
|
+
def assistants_service_delete_conversation_with_http_info(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1DeleteConversationResponse': # noqa: E501
|
|
813
|
+
"""assistants_service_delete_conversation # noqa: E501
|
|
773
814
|
|
|
774
815
|
This method makes a synchronous HTTP request by default. To make an
|
|
775
816
|
asynchronous HTTP request, please pass async_req=True
|
|
776
|
-
>>> thread = api.
|
|
817
|
+
>>> thread = api.assistants_service_delete_conversation_with_http_info(assistant_id, id, async_req=True)
|
|
777
818
|
>>> result = thread.get()
|
|
778
819
|
|
|
779
820
|
:param async_req bool
|
|
780
821
|
:param str assistant_id: (required)
|
|
781
822
|
:param str id: (required)
|
|
782
|
-
:
|
|
823
|
+
:param bool delete_data:
|
|
824
|
+
:return: V1DeleteConversationResponse
|
|
783
825
|
If the method is called asynchronously,
|
|
784
826
|
returns the request thread.
|
|
785
827
|
"""
|
|
786
828
|
|
|
787
|
-
all_params = ['assistant_id', 'id'] # noqa: E501
|
|
829
|
+
all_params = ['assistant_id', 'id', 'delete_data'] # noqa: E501
|
|
788
830
|
all_params.append('async_req')
|
|
789
831
|
all_params.append('_return_http_data_only')
|
|
790
832
|
all_params.append('_preload_content')
|
|
@@ -795,18 +837,18 @@ class AssistantsServiceApi(object):
|
|
|
795
837
|
if key not in all_params:
|
|
796
838
|
raise TypeError(
|
|
797
839
|
"Got an unexpected keyword argument '%s'"
|
|
798
|
-
" to method
|
|
840
|
+
" to method assistants_service_delete_conversation" % key
|
|
799
841
|
)
|
|
800
842
|
params[key] = val
|
|
801
843
|
del params['kwargs']
|
|
802
844
|
# verify the required parameter 'assistant_id' is set
|
|
803
845
|
if ('assistant_id' not in params or
|
|
804
846
|
params['assistant_id'] is None):
|
|
805
|
-
raise ValueError("Missing the required parameter `assistant_id` when calling `
|
|
847
|
+
raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_delete_conversation`") # noqa: E501
|
|
806
848
|
# verify the required parameter 'id' is set
|
|
807
849
|
if ('id' not in params or
|
|
808
850
|
params['id'] is None):
|
|
809
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
851
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_delete_conversation`") # noqa: E501
|
|
810
852
|
|
|
811
853
|
collection_formats = {}
|
|
812
854
|
|
|
@@ -817,6 +859,8 @@ class AssistantsServiceApi(object):
|
|
|
817
859
|
path_params['id'] = params['id'] # noqa: E501
|
|
818
860
|
|
|
819
861
|
query_params = []
|
|
862
|
+
if 'delete_data' in params:
|
|
863
|
+
query_params.append(('deleteData', params['delete_data'])) # noqa: E501
|
|
820
864
|
|
|
821
865
|
header_params = {}
|
|
822
866
|
|
|
@@ -832,14 +876,14 @@ class AssistantsServiceApi(object):
|
|
|
832
876
|
auth_settings = [] # noqa: E501
|
|
833
877
|
|
|
834
878
|
return self.api_client.call_api(
|
|
835
|
-
'/v1/agents/{assistantId}/conversations/{id}', '
|
|
879
|
+
'/v1/agents/{assistantId}/conversations/{id}', 'DELETE',
|
|
836
880
|
path_params,
|
|
837
881
|
query_params,
|
|
838
882
|
header_params,
|
|
839
883
|
body=body_params,
|
|
840
884
|
post_params=form_params,
|
|
841
885
|
files=local_var_files,
|
|
842
|
-
response_type='
|
|
886
|
+
response_type='V1DeleteConversationResponse', # noqa: E501
|
|
843
887
|
auth_settings=auth_settings,
|
|
844
888
|
async_req=params.get('async_req'),
|
|
845
889
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -847,47 +891,43 @@ class AssistantsServiceApi(object):
|
|
|
847
891
|
_request_timeout=params.get('_request_timeout'),
|
|
848
892
|
collection_formats=collection_formats)
|
|
849
893
|
|
|
850
|
-
def
|
|
851
|
-
"""
|
|
894
|
+
def assistants_service_get_assistant(self, id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
895
|
+
"""assistants_service_get_assistant # noqa: E501
|
|
852
896
|
|
|
853
897
|
This method makes a synchronous HTTP request by default. To make an
|
|
854
898
|
asynchronous HTTP request, please pass async_req=True
|
|
855
|
-
>>> thread = api.
|
|
899
|
+
>>> thread = api.assistants_service_get_assistant(id, async_req=True)
|
|
856
900
|
>>> result = thread.get()
|
|
857
901
|
|
|
858
902
|
:param async_req bool
|
|
859
|
-
:param str
|
|
860
|
-
:
|
|
861
|
-
:param str name: (required)
|
|
862
|
-
:return: V1ManagedModel
|
|
903
|
+
:param str id: (required)
|
|
904
|
+
:return: V1Assistant
|
|
863
905
|
If the method is called asynchronously,
|
|
864
906
|
returns the request thread.
|
|
865
907
|
"""
|
|
866
908
|
kwargs['_return_http_data_only'] = True
|
|
867
909
|
if kwargs.get('async_req'):
|
|
868
|
-
return self.
|
|
910
|
+
return self.assistants_service_get_assistant_with_http_info(id, **kwargs) # noqa: E501
|
|
869
911
|
else:
|
|
870
|
-
(data) = self.
|
|
912
|
+
(data) = self.assistants_service_get_assistant_with_http_info(id, **kwargs) # noqa: E501
|
|
871
913
|
return data
|
|
872
914
|
|
|
873
|
-
def
|
|
874
|
-
"""
|
|
915
|
+
def assistants_service_get_assistant_with_http_info(self, id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
916
|
+
"""assistants_service_get_assistant # noqa: E501
|
|
875
917
|
|
|
876
918
|
This method makes a synchronous HTTP request by default. To make an
|
|
877
919
|
asynchronous HTTP request, please pass async_req=True
|
|
878
|
-
>>> thread = api.
|
|
920
|
+
>>> thread = api.assistants_service_get_assistant_with_http_info(id, async_req=True)
|
|
879
921
|
>>> result = thread.get()
|
|
880
922
|
|
|
881
923
|
:param async_req bool
|
|
882
|
-
:param str
|
|
883
|
-
:
|
|
884
|
-
:param str name: (required)
|
|
885
|
-
:return: V1ManagedModel
|
|
924
|
+
:param str id: (required)
|
|
925
|
+
:return: V1Assistant
|
|
886
926
|
If the method is called asynchronously,
|
|
887
927
|
returns the request thread.
|
|
888
928
|
"""
|
|
889
929
|
|
|
890
|
-
all_params = ['
|
|
930
|
+
all_params = ['id'] # noqa: E501
|
|
891
931
|
all_params.append('async_req')
|
|
892
932
|
all_params.append('_return_http_data_only')
|
|
893
933
|
all_params.append('_preload_content')
|
|
@@ -898,32 +938,20 @@ class AssistantsServiceApi(object):
|
|
|
898
938
|
if key not in all_params:
|
|
899
939
|
raise TypeError(
|
|
900
940
|
"Got an unexpected keyword argument '%s'"
|
|
901
|
-
" to method
|
|
941
|
+
" to method assistants_service_get_assistant" % key
|
|
902
942
|
)
|
|
903
943
|
params[key] = val
|
|
904
944
|
del params['kwargs']
|
|
905
|
-
# verify the required parameter '
|
|
906
|
-
if ('
|
|
907
|
-
params['
|
|
908
|
-
raise ValueError("Missing the required parameter `
|
|
909
|
-
# verify the required parameter 'managed_endpoint_id' is set
|
|
910
|
-
if ('managed_endpoint_id' not in params or
|
|
911
|
-
params['managed_endpoint_id'] is None):
|
|
912
|
-
raise ValueError("Missing the required parameter `managed_endpoint_id` when calling `assistants_service_get_managed_model_by_name`") # noqa: E501
|
|
913
|
-
# verify the required parameter 'name' is set
|
|
914
|
-
if ('name' not in params or
|
|
915
|
-
params['name'] is None):
|
|
916
|
-
raise ValueError("Missing the required parameter `name` when calling `assistants_service_get_managed_model_by_name`") # noqa: E501
|
|
945
|
+
# verify the required parameter 'id' is set
|
|
946
|
+
if ('id' not in params or
|
|
947
|
+
params['id'] is None):
|
|
948
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_get_assistant`") # noqa: E501
|
|
917
949
|
|
|
918
950
|
collection_formats = {}
|
|
919
951
|
|
|
920
952
|
path_params = {}
|
|
921
|
-
if '
|
|
922
|
-
path_params['
|
|
923
|
-
if 'managed_endpoint_id' in params:
|
|
924
|
-
path_params['managedEndpointId'] = params['managed_endpoint_id'] # noqa: E501
|
|
925
|
-
if 'name' in params:
|
|
926
|
-
path_params['name'] = params['name'] # noqa: E501
|
|
953
|
+
if 'id' in params:
|
|
954
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
927
955
|
|
|
928
956
|
query_params = []
|
|
929
957
|
|
|
@@ -941,14 +969,14 @@ class AssistantsServiceApi(object):
|
|
|
941
969
|
auth_settings = [] # noqa: E501
|
|
942
970
|
|
|
943
971
|
return self.api_client.call_api(
|
|
944
|
-
'/v1/
|
|
972
|
+
'/v1/agents/{id}', 'GET',
|
|
945
973
|
path_params,
|
|
946
974
|
query_params,
|
|
947
975
|
header_params,
|
|
948
976
|
body=body_params,
|
|
949
977
|
post_params=form_params,
|
|
950
978
|
files=local_var_files,
|
|
951
|
-
response_type='
|
|
979
|
+
response_type='V1Assistant', # noqa: E501
|
|
952
980
|
auth_settings=auth_settings,
|
|
953
981
|
async_req=params.get('async_req'),
|
|
954
982
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -956,45 +984,43 @@ class AssistantsServiceApi(object):
|
|
|
956
984
|
_request_timeout=params.get('_request_timeout'),
|
|
957
985
|
collection_formats=collection_formats)
|
|
958
986
|
|
|
959
|
-
def
|
|
960
|
-
"""
|
|
987
|
+
def assistants_service_get_assistant_knowledge_status(self, id: 'str', **kwargs) -> 'V1AssistantKnowledgeStatus': # noqa: E501
|
|
988
|
+
"""GetAssistantKnowledgeStatus get the status of current uploads. For new uploads (direct binary uploads ) there is a dedicated HTTP handler registered on POST /v1/agents/{id}/knowledge # noqa: E501
|
|
961
989
|
|
|
962
990
|
This method makes a synchronous HTTP request by default. To make an
|
|
963
991
|
asynchronous HTTP request, please pass async_req=True
|
|
964
|
-
>>> thread = api.
|
|
992
|
+
>>> thread = api.assistants_service_get_assistant_knowledge_status(id, async_req=True)
|
|
965
993
|
>>> result = thread.get()
|
|
966
994
|
|
|
967
995
|
:param async_req bool
|
|
968
|
-
:param str
|
|
969
|
-
:
|
|
970
|
-
:return: V1ListManagedEndpointsResponse
|
|
996
|
+
:param str id: (required)
|
|
997
|
+
:return: V1AssistantKnowledgeStatus
|
|
971
998
|
If the method is called asynchronously,
|
|
972
999
|
returns the request thread.
|
|
973
1000
|
"""
|
|
974
1001
|
kwargs['_return_http_data_only'] = True
|
|
975
1002
|
if kwargs.get('async_req'):
|
|
976
|
-
return self.
|
|
1003
|
+
return self.assistants_service_get_assistant_knowledge_status_with_http_info(id, **kwargs) # noqa: E501
|
|
977
1004
|
else:
|
|
978
|
-
(data) = self.
|
|
1005
|
+
(data) = self.assistants_service_get_assistant_knowledge_status_with_http_info(id, **kwargs) # noqa: E501
|
|
979
1006
|
return data
|
|
980
1007
|
|
|
981
|
-
def
|
|
982
|
-
"""
|
|
1008
|
+
def assistants_service_get_assistant_knowledge_status_with_http_info(self, id: 'str', **kwargs) -> 'V1AssistantKnowledgeStatus': # noqa: E501
|
|
1009
|
+
"""GetAssistantKnowledgeStatus get the status of current uploads. For new uploads (direct binary uploads ) there is a dedicated HTTP handler registered on POST /v1/agents/{id}/knowledge # noqa: E501
|
|
983
1010
|
|
|
984
1011
|
This method makes a synchronous HTTP request by default. To make an
|
|
985
1012
|
asynchronous HTTP request, please pass async_req=True
|
|
986
|
-
>>> thread = api.
|
|
1013
|
+
>>> thread = api.assistants_service_get_assistant_knowledge_status_with_http_info(id, async_req=True)
|
|
987
1014
|
>>> result = thread.get()
|
|
988
1015
|
|
|
989
1016
|
:param async_req bool
|
|
990
|
-
:param str
|
|
991
|
-
:
|
|
992
|
-
:return: V1ListManagedEndpointsResponse
|
|
1017
|
+
:param str id: (required)
|
|
1018
|
+
:return: V1AssistantKnowledgeStatus
|
|
993
1019
|
If the method is called asynchronously,
|
|
994
1020
|
returns the request thread.
|
|
995
1021
|
"""
|
|
996
1022
|
|
|
997
|
-
all_params = ['
|
|
1023
|
+
all_params = ['id'] # noqa: E501
|
|
998
1024
|
all_params.append('async_req')
|
|
999
1025
|
all_params.append('_return_http_data_only')
|
|
1000
1026
|
all_params.append('_preload_content')
|
|
@@ -1005,20 +1031,22 @@ class AssistantsServiceApi(object):
|
|
|
1005
1031
|
if key not in all_params:
|
|
1006
1032
|
raise TypeError(
|
|
1007
1033
|
"Got an unexpected keyword argument '%s'"
|
|
1008
|
-
" to method
|
|
1034
|
+
" to method assistants_service_get_assistant_knowledge_status" % key
|
|
1009
1035
|
)
|
|
1010
1036
|
params[key] = val
|
|
1011
1037
|
del params['kwargs']
|
|
1038
|
+
# verify the required parameter 'id' is set
|
|
1039
|
+
if ('id' not in params or
|
|
1040
|
+
params['id'] is None):
|
|
1041
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_get_assistant_knowledge_status`") # noqa: E501
|
|
1012
1042
|
|
|
1013
1043
|
collection_formats = {}
|
|
1014
1044
|
|
|
1015
1045
|
path_params = {}
|
|
1046
|
+
if 'id' in params:
|
|
1047
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1016
1048
|
|
|
1017
1049
|
query_params = []
|
|
1018
|
-
if 'project_id' in params:
|
|
1019
|
-
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
1020
|
-
if 'org_id' in params:
|
|
1021
|
-
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1022
1050
|
|
|
1023
1051
|
header_params = {}
|
|
1024
1052
|
|
|
@@ -1034,14 +1062,14 @@ class AssistantsServiceApi(object):
|
|
|
1034
1062
|
auth_settings = [] # noqa: E501
|
|
1035
1063
|
|
|
1036
1064
|
return self.api_client.call_api(
|
|
1037
|
-
'/v1/
|
|
1065
|
+
'/v1/agents/{id}/knowledge', 'GET',
|
|
1038
1066
|
path_params,
|
|
1039
1067
|
query_params,
|
|
1040
1068
|
header_params,
|
|
1041
1069
|
body=body_params,
|
|
1042
1070
|
post_params=form_params,
|
|
1043
1071
|
files=local_var_files,
|
|
1044
|
-
response_type='
|
|
1072
|
+
response_type='V1AssistantKnowledgeStatus', # noqa: E501
|
|
1045
1073
|
auth_settings=auth_settings,
|
|
1046
1074
|
async_req=params.get('async_req'),
|
|
1047
1075
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1049,51 +1077,45 @@ class AssistantsServiceApi(object):
|
|
|
1049
1077
|
_request_timeout=params.get('_request_timeout'),
|
|
1050
1078
|
collection_formats=collection_formats)
|
|
1051
1079
|
|
|
1052
|
-
def
|
|
1053
|
-
"""
|
|
1080
|
+
def assistants_service_get_conversation(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
|
|
1081
|
+
"""assistants_service_get_conversation # noqa: E501
|
|
1054
1082
|
|
|
1055
1083
|
This method makes a synchronous HTTP request by default. To make an
|
|
1056
1084
|
asynchronous HTTP request, please pass async_req=True
|
|
1057
|
-
>>> thread = api.
|
|
1085
|
+
>>> thread = api.assistants_service_get_conversation(assistant_id, id, async_req=True)
|
|
1058
1086
|
>>> result = thread.get()
|
|
1059
1087
|
|
|
1060
1088
|
:param async_req bool
|
|
1061
|
-
:param str
|
|
1062
|
-
:param str
|
|
1063
|
-
:
|
|
1064
|
-
:param bool published:
|
|
1065
|
-
:param str internal_name:
|
|
1066
|
-
:return: V1ListAssistantsResponse
|
|
1089
|
+
:param str assistant_id: (required)
|
|
1090
|
+
:param str id: (required)
|
|
1091
|
+
:return: V1Conversation
|
|
1067
1092
|
If the method is called asynchronously,
|
|
1068
1093
|
returns the request thread.
|
|
1069
1094
|
"""
|
|
1070
1095
|
kwargs['_return_http_data_only'] = True
|
|
1071
1096
|
if kwargs.get('async_req'):
|
|
1072
|
-
return self.
|
|
1097
|
+
return self.assistants_service_get_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
|
|
1073
1098
|
else:
|
|
1074
|
-
(data) = self.
|
|
1099
|
+
(data) = self.assistants_service_get_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
|
|
1075
1100
|
return data
|
|
1076
1101
|
|
|
1077
|
-
def
|
|
1078
|
-
"""
|
|
1102
|
+
def assistants_service_get_conversation_with_http_info(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
|
|
1103
|
+
"""assistants_service_get_conversation # noqa: E501
|
|
1079
1104
|
|
|
1080
1105
|
This method makes a synchronous HTTP request by default. To make an
|
|
1081
1106
|
asynchronous HTTP request, please pass async_req=True
|
|
1082
|
-
>>> thread = api.
|
|
1107
|
+
>>> thread = api.assistants_service_get_conversation_with_http_info(assistant_id, id, async_req=True)
|
|
1083
1108
|
>>> result = thread.get()
|
|
1084
1109
|
|
|
1085
1110
|
:param async_req bool
|
|
1086
|
-
:param str
|
|
1087
|
-
:param str
|
|
1088
|
-
:
|
|
1089
|
-
:param bool published:
|
|
1090
|
-
:param str internal_name:
|
|
1091
|
-
:return: V1ListAssistantsResponse
|
|
1111
|
+
:param str assistant_id: (required)
|
|
1112
|
+
:param str id: (required)
|
|
1113
|
+
:return: V1Conversation
|
|
1092
1114
|
If the method is called asynchronously,
|
|
1093
1115
|
returns the request thread.
|
|
1094
1116
|
"""
|
|
1095
1117
|
|
|
1096
|
-
all_params = ['
|
|
1118
|
+
all_params = ['assistant_id', 'id'] # noqa: E501
|
|
1097
1119
|
all_params.append('async_req')
|
|
1098
1120
|
all_params.append('_return_http_data_only')
|
|
1099
1121
|
all_params.append('_preload_content')
|
|
@@ -1104,26 +1126,1359 @@ class AssistantsServiceApi(object):
|
|
|
1104
1126
|
if key not in all_params:
|
|
1105
1127
|
raise TypeError(
|
|
1106
1128
|
"Got an unexpected keyword argument '%s'"
|
|
1107
|
-
" to method
|
|
1129
|
+
" to method assistants_service_get_conversation" % key
|
|
1130
|
+
)
|
|
1131
|
+
params[key] = val
|
|
1132
|
+
del params['kwargs']
|
|
1133
|
+
# verify the required parameter 'assistant_id' is set
|
|
1134
|
+
if ('assistant_id' not in params or
|
|
1135
|
+
params['assistant_id'] is None):
|
|
1136
|
+
raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_get_conversation`") # noqa: E501
|
|
1137
|
+
# verify the required parameter 'id' is set
|
|
1138
|
+
if ('id' not in params or
|
|
1139
|
+
params['id'] is None):
|
|
1140
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_get_conversation`") # noqa: E501
|
|
1141
|
+
|
|
1142
|
+
collection_formats = {}
|
|
1143
|
+
|
|
1144
|
+
path_params = {}
|
|
1145
|
+
if 'assistant_id' in params:
|
|
1146
|
+
path_params['assistantId'] = params['assistant_id'] # noqa: E501
|
|
1147
|
+
if 'id' in params:
|
|
1148
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1149
|
+
|
|
1150
|
+
query_params = []
|
|
1151
|
+
|
|
1152
|
+
header_params = {}
|
|
1153
|
+
|
|
1154
|
+
form_params = []
|
|
1155
|
+
local_var_files = {}
|
|
1156
|
+
|
|
1157
|
+
body_params = None
|
|
1158
|
+
# HTTP header `Accept`
|
|
1159
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1160
|
+
['application/json']) # noqa: E501
|
|
1161
|
+
|
|
1162
|
+
# Authentication setting
|
|
1163
|
+
auth_settings = [] # noqa: E501
|
|
1164
|
+
|
|
1165
|
+
return self.api_client.call_api(
|
|
1166
|
+
'/v1/agents/{assistantId}/conversations/{id}', 'GET',
|
|
1167
|
+
path_params,
|
|
1168
|
+
query_params,
|
|
1169
|
+
header_params,
|
|
1170
|
+
body=body_params,
|
|
1171
|
+
post_params=form_params,
|
|
1172
|
+
files=local_var_files,
|
|
1173
|
+
response_type='V1Conversation', # noqa: E501
|
|
1174
|
+
auth_settings=auth_settings,
|
|
1175
|
+
async_req=params.get('async_req'),
|
|
1176
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1177
|
+
_preload_content=params.get('_preload_content', True),
|
|
1178
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1179
|
+
collection_formats=collection_formats)
|
|
1180
|
+
|
|
1181
|
+
def assistants_service_get_latest_model_metrics(self, **kwargs) -> 'V1GetLatestModelMetricsResponse': # noqa: E501
|
|
1182
|
+
"""model metrics # noqa: E501
|
|
1183
|
+
|
|
1184
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1185
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1186
|
+
>>> thread = api.assistants_service_get_latest_model_metrics(async_req=True)
|
|
1187
|
+
>>> result = thread.get()
|
|
1188
|
+
|
|
1189
|
+
:param async_req bool
|
|
1190
|
+
:param str model_id:
|
|
1191
|
+
:return: V1GetLatestModelMetricsResponse
|
|
1192
|
+
If the method is called asynchronously,
|
|
1193
|
+
returns the request thread.
|
|
1194
|
+
"""
|
|
1195
|
+
kwargs['_return_http_data_only'] = True
|
|
1196
|
+
if kwargs.get('async_req'):
|
|
1197
|
+
return self.assistants_service_get_latest_model_metrics_with_http_info(**kwargs) # noqa: E501
|
|
1198
|
+
else:
|
|
1199
|
+
(data) = self.assistants_service_get_latest_model_metrics_with_http_info(**kwargs) # noqa: E501
|
|
1200
|
+
return data
|
|
1201
|
+
|
|
1202
|
+
def assistants_service_get_latest_model_metrics_with_http_info(self, **kwargs) -> 'V1GetLatestModelMetricsResponse': # noqa: E501
|
|
1203
|
+
"""model metrics # noqa: E501
|
|
1204
|
+
|
|
1205
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1206
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1207
|
+
>>> thread = api.assistants_service_get_latest_model_metrics_with_http_info(async_req=True)
|
|
1208
|
+
>>> result = thread.get()
|
|
1209
|
+
|
|
1210
|
+
:param async_req bool
|
|
1211
|
+
:param str model_id:
|
|
1212
|
+
:return: V1GetLatestModelMetricsResponse
|
|
1213
|
+
If the method is called asynchronously,
|
|
1214
|
+
returns the request thread.
|
|
1215
|
+
"""
|
|
1216
|
+
|
|
1217
|
+
all_params = ['model_id'] # noqa: E501
|
|
1218
|
+
all_params.append('async_req')
|
|
1219
|
+
all_params.append('_return_http_data_only')
|
|
1220
|
+
all_params.append('_preload_content')
|
|
1221
|
+
all_params.append('_request_timeout')
|
|
1222
|
+
|
|
1223
|
+
params = locals()
|
|
1224
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1225
|
+
if key not in all_params:
|
|
1226
|
+
raise TypeError(
|
|
1227
|
+
"Got an unexpected keyword argument '%s'"
|
|
1228
|
+
" to method assistants_service_get_latest_model_metrics" % key
|
|
1229
|
+
)
|
|
1230
|
+
params[key] = val
|
|
1231
|
+
del params['kwargs']
|
|
1232
|
+
|
|
1233
|
+
collection_formats = {}
|
|
1234
|
+
|
|
1235
|
+
path_params = {}
|
|
1236
|
+
|
|
1237
|
+
query_params = []
|
|
1238
|
+
if 'model_id' in params:
|
|
1239
|
+
query_params.append(('modelId', params['model_id'])) # noqa: E501
|
|
1240
|
+
|
|
1241
|
+
header_params = {}
|
|
1242
|
+
|
|
1243
|
+
form_params = []
|
|
1244
|
+
local_var_files = {}
|
|
1245
|
+
|
|
1246
|
+
body_params = None
|
|
1247
|
+
# HTTP header `Accept`
|
|
1248
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1249
|
+
['application/json']) # noqa: E501
|
|
1250
|
+
|
|
1251
|
+
# Authentication setting
|
|
1252
|
+
auth_settings = [] # noqa: E501
|
|
1253
|
+
|
|
1254
|
+
return self.api_client.call_api(
|
|
1255
|
+
'/v1/agents/latest-metrics', 'GET',
|
|
1256
|
+
path_params,
|
|
1257
|
+
query_params,
|
|
1258
|
+
header_params,
|
|
1259
|
+
body=body_params,
|
|
1260
|
+
post_params=form_params,
|
|
1261
|
+
files=local_var_files,
|
|
1262
|
+
response_type='V1GetLatestModelMetricsResponse', # noqa: E501
|
|
1263
|
+
auth_settings=auth_settings,
|
|
1264
|
+
async_req=params.get('async_req'),
|
|
1265
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1266
|
+
_preload_content=params.get('_preload_content', True),
|
|
1267
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1268
|
+
collection_formats=collection_formats)
|
|
1269
|
+
|
|
1270
|
+
def assistants_service_get_managed_model_assistant(self, model_name: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
1271
|
+
"""Each managed model has a dedicated assistant for direct interaction. By using user_name, org_name, or model_provider as query parameters, this endpoint retrieves that specific assistant only—excluding any other assistants that may use the same model. # noqa: E501
|
|
1272
|
+
|
|
1273
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1274
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1275
|
+
>>> thread = api.assistants_service_get_managed_model_assistant(model_name, async_req=True)
|
|
1276
|
+
>>> result = thread.get()
|
|
1277
|
+
|
|
1278
|
+
:param async_req bool
|
|
1279
|
+
:param str model_name: (required)
|
|
1280
|
+
:param str user_name:
|
|
1281
|
+
:param str org_name:
|
|
1282
|
+
:param str model_provider:
|
|
1283
|
+
:param str model_display_name:
|
|
1284
|
+
:return: V1Assistant
|
|
1285
|
+
If the method is called asynchronously,
|
|
1286
|
+
returns the request thread.
|
|
1287
|
+
"""
|
|
1288
|
+
kwargs['_return_http_data_only'] = True
|
|
1289
|
+
if kwargs.get('async_req'):
|
|
1290
|
+
return self.assistants_service_get_managed_model_assistant_with_http_info(model_name, **kwargs) # noqa: E501
|
|
1291
|
+
else:
|
|
1292
|
+
(data) = self.assistants_service_get_managed_model_assistant_with_http_info(model_name, **kwargs) # noqa: E501
|
|
1293
|
+
return data
|
|
1294
|
+
|
|
1295
|
+
def assistants_service_get_managed_model_assistant_with_http_info(self, model_name: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
1296
|
+
"""Each managed model has a dedicated assistant for direct interaction. By using user_name, org_name, or model_provider as query parameters, this endpoint retrieves that specific assistant only—excluding any other assistants that may use the same model. # noqa: E501
|
|
1297
|
+
|
|
1298
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1299
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1300
|
+
>>> thread = api.assistants_service_get_managed_model_assistant_with_http_info(model_name, async_req=True)
|
|
1301
|
+
>>> result = thread.get()
|
|
1302
|
+
|
|
1303
|
+
:param async_req bool
|
|
1304
|
+
:param str model_name: (required)
|
|
1305
|
+
:param str user_name:
|
|
1306
|
+
:param str org_name:
|
|
1307
|
+
:param str model_provider:
|
|
1308
|
+
:param str model_display_name:
|
|
1309
|
+
:return: V1Assistant
|
|
1310
|
+
If the method is called asynchronously,
|
|
1311
|
+
returns the request thread.
|
|
1312
|
+
"""
|
|
1313
|
+
|
|
1314
|
+
all_params = ['model_name', 'user_name', 'org_name', 'model_provider', 'model_display_name'] # noqa: E501
|
|
1315
|
+
all_params.append('async_req')
|
|
1316
|
+
all_params.append('_return_http_data_only')
|
|
1317
|
+
all_params.append('_preload_content')
|
|
1318
|
+
all_params.append('_request_timeout')
|
|
1319
|
+
|
|
1320
|
+
params = locals()
|
|
1321
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1322
|
+
if key not in all_params:
|
|
1323
|
+
raise TypeError(
|
|
1324
|
+
"Got an unexpected keyword argument '%s'"
|
|
1325
|
+
" to method assistants_service_get_managed_model_assistant" % key
|
|
1326
|
+
)
|
|
1327
|
+
params[key] = val
|
|
1328
|
+
del params['kwargs']
|
|
1329
|
+
# verify the required parameter 'model_name' is set
|
|
1330
|
+
if ('model_name' not in params or
|
|
1331
|
+
params['model_name'] is None):
|
|
1332
|
+
raise ValueError("Missing the required parameter `model_name` when calling `assistants_service_get_managed_model_assistant`") # noqa: E501
|
|
1333
|
+
|
|
1334
|
+
collection_formats = {}
|
|
1335
|
+
|
|
1336
|
+
path_params = {}
|
|
1337
|
+
if 'model_name' in params:
|
|
1338
|
+
path_params['modelName'] = params['model_name'] # noqa: E501
|
|
1339
|
+
|
|
1340
|
+
query_params = []
|
|
1341
|
+
if 'user_name' in params:
|
|
1342
|
+
query_params.append(('userName', params['user_name'])) # noqa: E501
|
|
1343
|
+
if 'org_name' in params:
|
|
1344
|
+
query_params.append(('orgName', params['org_name'])) # noqa: E501
|
|
1345
|
+
if 'model_provider' in params:
|
|
1346
|
+
query_params.append(('modelProvider', params['model_provider'])) # noqa: E501
|
|
1347
|
+
if 'model_display_name' in params:
|
|
1348
|
+
query_params.append(('modelDisplayName', params['model_display_name'])) # noqa: E501
|
|
1349
|
+
|
|
1350
|
+
header_params = {}
|
|
1351
|
+
|
|
1352
|
+
form_params = []
|
|
1353
|
+
local_var_files = {}
|
|
1354
|
+
|
|
1355
|
+
body_params = None
|
|
1356
|
+
# HTTP header `Accept`
|
|
1357
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1358
|
+
['application/json']) # noqa: E501
|
|
1359
|
+
|
|
1360
|
+
# Authentication setting
|
|
1361
|
+
auth_settings = [] # noqa: E501
|
|
1362
|
+
|
|
1363
|
+
return self.api_client.call_api(
|
|
1364
|
+
'/v1/agents/managed-model/{modelName}', 'GET',
|
|
1365
|
+
path_params,
|
|
1366
|
+
query_params,
|
|
1367
|
+
header_params,
|
|
1368
|
+
body=body_params,
|
|
1369
|
+
post_params=form_params,
|
|
1370
|
+
files=local_var_files,
|
|
1371
|
+
response_type='V1Assistant', # noqa: E501
|
|
1372
|
+
auth_settings=auth_settings,
|
|
1373
|
+
async_req=params.get('async_req'),
|
|
1374
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1375
|
+
_preload_content=params.get('_preload_content', True),
|
|
1376
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1377
|
+
collection_formats=collection_formats)
|
|
1378
|
+
|
|
1379
|
+
def assistants_service_get_managed_model_assistant2(self, **kwargs) -> 'V1Assistant': # noqa: E501
|
|
1380
|
+
"""Each managed model has a dedicated assistant for direct interaction. By using user_name, org_name, or model_provider as query parameters, this endpoint retrieves that specific assistant only—excluding any other assistants that may use the same model. # noqa: E501
|
|
1381
|
+
|
|
1382
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1383
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1384
|
+
>>> thread = api.assistants_service_get_managed_model_assistant2(async_req=True)
|
|
1385
|
+
>>> result = thread.get()
|
|
1386
|
+
|
|
1387
|
+
:param async_req bool
|
|
1388
|
+
:param str user_name:
|
|
1389
|
+
:param str org_name:
|
|
1390
|
+
:param str model_provider:
|
|
1391
|
+
:param str model_name:
|
|
1392
|
+
:param str model_display_name:
|
|
1393
|
+
:return: V1Assistant
|
|
1394
|
+
If the method is called asynchronously,
|
|
1395
|
+
returns the request thread.
|
|
1396
|
+
"""
|
|
1397
|
+
kwargs['_return_http_data_only'] = True
|
|
1398
|
+
if kwargs.get('async_req'):
|
|
1399
|
+
return self.assistants_service_get_managed_model_assistant2_with_http_info(**kwargs) # noqa: E501
|
|
1400
|
+
else:
|
|
1401
|
+
(data) = self.assistants_service_get_managed_model_assistant2_with_http_info(**kwargs) # noqa: E501
|
|
1402
|
+
return data
|
|
1403
|
+
|
|
1404
|
+
def assistants_service_get_managed_model_assistant2_with_http_info(self, **kwargs) -> 'V1Assistant': # noqa: E501
|
|
1405
|
+
"""Each managed model has a dedicated assistant for direct interaction. By using user_name, org_name, or model_provider as query parameters, this endpoint retrieves that specific assistant only—excluding any other assistants that may use the same model. # noqa: E501
|
|
1406
|
+
|
|
1407
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1408
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1409
|
+
>>> thread = api.assistants_service_get_managed_model_assistant2_with_http_info(async_req=True)
|
|
1410
|
+
>>> result = thread.get()
|
|
1411
|
+
|
|
1412
|
+
:param async_req bool
|
|
1413
|
+
:param str user_name:
|
|
1414
|
+
:param str org_name:
|
|
1415
|
+
:param str model_provider:
|
|
1416
|
+
:param str model_name:
|
|
1417
|
+
:param str model_display_name:
|
|
1418
|
+
:return: V1Assistant
|
|
1419
|
+
If the method is called asynchronously,
|
|
1420
|
+
returns the request thread.
|
|
1421
|
+
"""
|
|
1422
|
+
|
|
1423
|
+
all_params = ['user_name', 'org_name', 'model_provider', 'model_name', 'model_display_name'] # noqa: E501
|
|
1424
|
+
all_params.append('async_req')
|
|
1425
|
+
all_params.append('_return_http_data_only')
|
|
1426
|
+
all_params.append('_preload_content')
|
|
1427
|
+
all_params.append('_request_timeout')
|
|
1428
|
+
|
|
1429
|
+
params = locals()
|
|
1430
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1431
|
+
if key not in all_params:
|
|
1432
|
+
raise TypeError(
|
|
1433
|
+
"Got an unexpected keyword argument '%s'"
|
|
1434
|
+
" to method assistants_service_get_managed_model_assistant2" % key
|
|
1435
|
+
)
|
|
1436
|
+
params[key] = val
|
|
1437
|
+
del params['kwargs']
|
|
1438
|
+
|
|
1439
|
+
collection_formats = {}
|
|
1440
|
+
|
|
1441
|
+
path_params = {}
|
|
1442
|
+
|
|
1443
|
+
query_params = []
|
|
1444
|
+
if 'user_name' in params:
|
|
1445
|
+
query_params.append(('userName', params['user_name'])) # noqa: E501
|
|
1446
|
+
if 'org_name' in params:
|
|
1447
|
+
query_params.append(('orgName', params['org_name'])) # noqa: E501
|
|
1448
|
+
if 'model_provider' in params:
|
|
1449
|
+
query_params.append(('modelProvider', params['model_provider'])) # noqa: E501
|
|
1450
|
+
if 'model_name' in params:
|
|
1451
|
+
query_params.append(('modelName', params['model_name'])) # noqa: E501
|
|
1452
|
+
if 'model_display_name' in params:
|
|
1453
|
+
query_params.append(('modelDisplayName', params['model_display_name'])) # noqa: E501
|
|
1454
|
+
|
|
1455
|
+
header_params = {}
|
|
1456
|
+
|
|
1457
|
+
form_params = []
|
|
1458
|
+
local_var_files = {}
|
|
1459
|
+
|
|
1460
|
+
body_params = None
|
|
1461
|
+
# HTTP header `Accept`
|
|
1462
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1463
|
+
['application/json']) # noqa: E501
|
|
1464
|
+
|
|
1465
|
+
# Authentication setting
|
|
1466
|
+
auth_settings = [] # noqa: E501
|
|
1467
|
+
|
|
1468
|
+
return self.api_client.call_api(
|
|
1469
|
+
'/v1/agents/managed-model', 'GET',
|
|
1470
|
+
path_params,
|
|
1471
|
+
query_params,
|
|
1472
|
+
header_params,
|
|
1473
|
+
body=body_params,
|
|
1474
|
+
post_params=form_params,
|
|
1475
|
+
files=local_var_files,
|
|
1476
|
+
response_type='V1Assistant', # noqa: E501
|
|
1477
|
+
auth_settings=auth_settings,
|
|
1478
|
+
async_req=params.get('async_req'),
|
|
1479
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1480
|
+
_preload_content=params.get('_preload_content', True),
|
|
1481
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1482
|
+
collection_formats=collection_formats)
|
|
1483
|
+
|
|
1484
|
+
def assistants_service_get_managed_model_by_name(self, project_id: 'str', managed_endpoint_id: 'str', name: 'str', **kwargs) -> 'V1ManagedModel': # noqa: E501
|
|
1485
|
+
"""assistants_service_get_managed_model_by_name # noqa: E501
|
|
1486
|
+
|
|
1487
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1488
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1489
|
+
>>> thread = api.assistants_service_get_managed_model_by_name(project_id, managed_endpoint_id, name, async_req=True)
|
|
1490
|
+
>>> result = thread.get()
|
|
1491
|
+
|
|
1492
|
+
:param async_req bool
|
|
1493
|
+
:param str project_id: (required)
|
|
1494
|
+
:param str managed_endpoint_id: (required)
|
|
1495
|
+
:param str name: (required)
|
|
1496
|
+
:return: V1ManagedModel
|
|
1497
|
+
If the method is called asynchronously,
|
|
1498
|
+
returns the request thread.
|
|
1499
|
+
"""
|
|
1500
|
+
kwargs['_return_http_data_only'] = True
|
|
1501
|
+
if kwargs.get('async_req'):
|
|
1502
|
+
return self.assistants_service_get_managed_model_by_name_with_http_info(project_id, managed_endpoint_id, name, **kwargs) # noqa: E501
|
|
1503
|
+
else:
|
|
1504
|
+
(data) = self.assistants_service_get_managed_model_by_name_with_http_info(project_id, managed_endpoint_id, name, **kwargs) # noqa: E501
|
|
1505
|
+
return data
|
|
1506
|
+
|
|
1507
|
+
def assistants_service_get_managed_model_by_name_with_http_info(self, project_id: 'str', managed_endpoint_id: 'str', name: 'str', **kwargs) -> 'V1ManagedModel': # noqa: E501
|
|
1508
|
+
"""assistants_service_get_managed_model_by_name # noqa: E501
|
|
1509
|
+
|
|
1510
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1511
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1512
|
+
>>> thread = api.assistants_service_get_managed_model_by_name_with_http_info(project_id, managed_endpoint_id, name, async_req=True)
|
|
1513
|
+
>>> result = thread.get()
|
|
1514
|
+
|
|
1515
|
+
:param async_req bool
|
|
1516
|
+
:param str project_id: (required)
|
|
1517
|
+
:param str managed_endpoint_id: (required)
|
|
1518
|
+
:param str name: (required)
|
|
1519
|
+
:return: V1ManagedModel
|
|
1520
|
+
If the method is called asynchronously,
|
|
1521
|
+
returns the request thread.
|
|
1522
|
+
"""
|
|
1523
|
+
|
|
1524
|
+
all_params = ['project_id', 'managed_endpoint_id', 'name'] # noqa: E501
|
|
1525
|
+
all_params.append('async_req')
|
|
1526
|
+
all_params.append('_return_http_data_only')
|
|
1527
|
+
all_params.append('_preload_content')
|
|
1528
|
+
all_params.append('_request_timeout')
|
|
1529
|
+
|
|
1530
|
+
params = locals()
|
|
1531
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1532
|
+
if key not in all_params:
|
|
1533
|
+
raise TypeError(
|
|
1534
|
+
"Got an unexpected keyword argument '%s'"
|
|
1535
|
+
" to method assistants_service_get_managed_model_by_name" % key
|
|
1536
|
+
)
|
|
1537
|
+
params[key] = val
|
|
1538
|
+
del params['kwargs']
|
|
1539
|
+
# verify the required parameter 'project_id' is set
|
|
1540
|
+
if ('project_id' not in params or
|
|
1541
|
+
params['project_id'] is None):
|
|
1542
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_get_managed_model_by_name`") # noqa: E501
|
|
1543
|
+
# verify the required parameter 'managed_endpoint_id' is set
|
|
1544
|
+
if ('managed_endpoint_id' not in params or
|
|
1545
|
+
params['managed_endpoint_id'] is None):
|
|
1546
|
+
raise ValueError("Missing the required parameter `managed_endpoint_id` when calling `assistants_service_get_managed_model_by_name`") # noqa: E501
|
|
1547
|
+
# verify the required parameter 'name' is set
|
|
1548
|
+
if ('name' not in params or
|
|
1549
|
+
params['name'] is None):
|
|
1550
|
+
raise ValueError("Missing the required parameter `name` when calling `assistants_service_get_managed_model_by_name`") # noqa: E501
|
|
1551
|
+
|
|
1552
|
+
collection_formats = {}
|
|
1553
|
+
|
|
1554
|
+
path_params = {}
|
|
1555
|
+
if 'project_id' in params:
|
|
1556
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1557
|
+
if 'managed_endpoint_id' in params:
|
|
1558
|
+
path_params['managedEndpointId'] = params['managed_endpoint_id'] # noqa: E501
|
|
1559
|
+
if 'name' in params:
|
|
1560
|
+
path_params['name'] = params['name'] # noqa: E501
|
|
1561
|
+
|
|
1562
|
+
query_params = []
|
|
1563
|
+
|
|
1564
|
+
header_params = {}
|
|
1565
|
+
|
|
1566
|
+
form_params = []
|
|
1567
|
+
local_var_files = {}
|
|
1568
|
+
|
|
1569
|
+
body_params = None
|
|
1570
|
+
# HTTP header `Accept`
|
|
1571
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1572
|
+
['application/json']) # noqa: E501
|
|
1573
|
+
|
|
1574
|
+
# Authentication setting
|
|
1575
|
+
auth_settings = [] # noqa: E501
|
|
1576
|
+
|
|
1577
|
+
return self.api_client.call_api(
|
|
1578
|
+
'/v1/projects/{projectId}/agent-managed-endpoints/{managedEndpointId}/model/{name}', 'GET',
|
|
1579
|
+
path_params,
|
|
1580
|
+
query_params,
|
|
1581
|
+
header_params,
|
|
1582
|
+
body=body_params,
|
|
1583
|
+
post_params=form_params,
|
|
1584
|
+
files=local_var_files,
|
|
1585
|
+
response_type='V1ManagedModel', # noqa: E501
|
|
1586
|
+
auth_settings=auth_settings,
|
|
1587
|
+
async_req=params.get('async_req'),
|
|
1588
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1589
|
+
_preload_content=params.get('_preload_content', True),
|
|
1590
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1591
|
+
collection_formats=collection_formats)
|
|
1592
|
+
|
|
1593
|
+
def assistants_service_get_model_metrics(self, model_id: 'str', **kwargs) -> 'V1GetModelMetricsResponse': # noqa: E501
|
|
1594
|
+
"""assistants_service_get_model_metrics # 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_get_model_metrics(model_id, async_req=True)
|
|
1599
|
+
>>> result = thread.get()
|
|
1600
|
+
|
|
1601
|
+
:param async_req bool
|
|
1602
|
+
:param str model_id: (required)
|
|
1603
|
+
:param datetime _from:
|
|
1604
|
+
:param datetime to:
|
|
1605
|
+
:return: V1GetModelMetricsResponse
|
|
1606
|
+
If the method is called asynchronously,
|
|
1607
|
+
returns the request thread.
|
|
1608
|
+
"""
|
|
1609
|
+
kwargs['_return_http_data_only'] = True
|
|
1610
|
+
if kwargs.get('async_req'):
|
|
1611
|
+
return self.assistants_service_get_model_metrics_with_http_info(model_id, **kwargs) # noqa: E501
|
|
1612
|
+
else:
|
|
1613
|
+
(data) = self.assistants_service_get_model_metrics_with_http_info(model_id, **kwargs) # noqa: E501
|
|
1614
|
+
return data
|
|
1615
|
+
|
|
1616
|
+
def assistants_service_get_model_metrics_with_http_info(self, model_id: 'str', **kwargs) -> 'V1GetModelMetricsResponse': # noqa: E501
|
|
1617
|
+
"""assistants_service_get_model_metrics # noqa: E501
|
|
1618
|
+
|
|
1619
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1620
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1621
|
+
>>> thread = api.assistants_service_get_model_metrics_with_http_info(model_id, async_req=True)
|
|
1622
|
+
>>> result = thread.get()
|
|
1623
|
+
|
|
1624
|
+
:param async_req bool
|
|
1625
|
+
:param str model_id: (required)
|
|
1626
|
+
:param datetime _from:
|
|
1627
|
+
:param datetime to:
|
|
1628
|
+
:return: V1GetModelMetricsResponse
|
|
1629
|
+
If the method is called asynchronously,
|
|
1630
|
+
returns the request thread.
|
|
1631
|
+
"""
|
|
1632
|
+
|
|
1633
|
+
all_params = ['model_id', '_from', 'to'] # noqa: E501
|
|
1634
|
+
all_params.append('async_req')
|
|
1635
|
+
all_params.append('_return_http_data_only')
|
|
1636
|
+
all_params.append('_preload_content')
|
|
1637
|
+
all_params.append('_request_timeout')
|
|
1638
|
+
|
|
1639
|
+
params = locals()
|
|
1640
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1641
|
+
if key not in all_params:
|
|
1642
|
+
raise TypeError(
|
|
1643
|
+
"Got an unexpected keyword argument '%s'"
|
|
1644
|
+
" to method assistants_service_get_model_metrics" % key
|
|
1645
|
+
)
|
|
1646
|
+
params[key] = val
|
|
1647
|
+
del params['kwargs']
|
|
1648
|
+
# verify the required parameter 'model_id' is set
|
|
1649
|
+
if ('model_id' not in params or
|
|
1650
|
+
params['model_id'] is None):
|
|
1651
|
+
raise ValueError("Missing the required parameter `model_id` when calling `assistants_service_get_model_metrics`") # noqa: E501
|
|
1652
|
+
|
|
1653
|
+
collection_formats = {}
|
|
1654
|
+
|
|
1655
|
+
path_params = {}
|
|
1656
|
+
if 'model_id' in params:
|
|
1657
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
1658
|
+
|
|
1659
|
+
query_params = []
|
|
1660
|
+
if '_from' in params:
|
|
1661
|
+
query_params.append(('from', params['_from'])) # noqa: E501
|
|
1662
|
+
if 'to' in params:
|
|
1663
|
+
query_params.append(('to', params['to'])) # noqa: E501
|
|
1664
|
+
|
|
1665
|
+
header_params = {}
|
|
1666
|
+
|
|
1667
|
+
form_params = []
|
|
1668
|
+
local_var_files = {}
|
|
1669
|
+
|
|
1670
|
+
body_params = None
|
|
1671
|
+
# HTTP header `Accept`
|
|
1672
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1673
|
+
['application/json']) # noqa: E501
|
|
1674
|
+
|
|
1675
|
+
# Authentication setting
|
|
1676
|
+
auth_settings = [] # noqa: E501
|
|
1677
|
+
|
|
1678
|
+
return self.api_client.call_api(
|
|
1679
|
+
'/v1/agents/metrics/models/{modelId}', 'GET',
|
|
1680
|
+
path_params,
|
|
1681
|
+
query_params,
|
|
1682
|
+
header_params,
|
|
1683
|
+
body=body_params,
|
|
1684
|
+
post_params=form_params,
|
|
1685
|
+
files=local_var_files,
|
|
1686
|
+
response_type='V1GetModelMetricsResponse', # noqa: E501
|
|
1687
|
+
auth_settings=auth_settings,
|
|
1688
|
+
async_req=params.get('async_req'),
|
|
1689
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1690
|
+
_preload_content=params.get('_preload_content', True),
|
|
1691
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1692
|
+
collection_formats=collection_formats)
|
|
1693
|
+
|
|
1694
|
+
def assistants_service_get_published_managed_endpoint(self, **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
|
|
1695
|
+
"""GetPublishedManagedEndpoint returns a managed endpoint with a single specific managed endpoint model included in modelsMetadata # noqa: E501
|
|
1696
|
+
|
|
1697
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1698
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1699
|
+
>>> thread = api.assistants_service_get_published_managed_endpoint(async_req=True)
|
|
1700
|
+
>>> result = thread.get()
|
|
1701
|
+
|
|
1702
|
+
:param async_req bool
|
|
1703
|
+
:param str id:
|
|
1704
|
+
:param str name:
|
|
1705
|
+
:return: V1ManagedEndpoint
|
|
1706
|
+
If the method is called asynchronously,
|
|
1707
|
+
returns the request thread.
|
|
1708
|
+
"""
|
|
1709
|
+
kwargs['_return_http_data_only'] = True
|
|
1710
|
+
if kwargs.get('async_req'):
|
|
1711
|
+
return self.assistants_service_get_published_managed_endpoint_with_http_info(**kwargs) # noqa: E501
|
|
1712
|
+
else:
|
|
1713
|
+
(data) = self.assistants_service_get_published_managed_endpoint_with_http_info(**kwargs) # noqa: E501
|
|
1714
|
+
return data
|
|
1715
|
+
|
|
1716
|
+
def assistants_service_get_published_managed_endpoint_with_http_info(self, **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
|
|
1717
|
+
"""GetPublishedManagedEndpoint returns a managed endpoint with a single specific managed endpoint model included in modelsMetadata # noqa: E501
|
|
1718
|
+
|
|
1719
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1720
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1721
|
+
>>> thread = api.assistants_service_get_published_managed_endpoint_with_http_info(async_req=True)
|
|
1722
|
+
>>> result = thread.get()
|
|
1723
|
+
|
|
1724
|
+
:param async_req bool
|
|
1725
|
+
:param str id:
|
|
1726
|
+
:param str name:
|
|
1727
|
+
:return: V1ManagedEndpoint
|
|
1728
|
+
If the method is called asynchronously,
|
|
1729
|
+
returns the request thread.
|
|
1730
|
+
"""
|
|
1731
|
+
|
|
1732
|
+
all_params = ['id', 'name'] # noqa: E501
|
|
1733
|
+
all_params.append('async_req')
|
|
1734
|
+
all_params.append('_return_http_data_only')
|
|
1735
|
+
all_params.append('_preload_content')
|
|
1736
|
+
all_params.append('_request_timeout')
|
|
1737
|
+
|
|
1738
|
+
params = locals()
|
|
1739
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1740
|
+
if key not in all_params:
|
|
1741
|
+
raise TypeError(
|
|
1742
|
+
"Got an unexpected keyword argument '%s'"
|
|
1743
|
+
" to method assistants_service_get_published_managed_endpoint" % key
|
|
1744
|
+
)
|
|
1745
|
+
params[key] = val
|
|
1746
|
+
del params['kwargs']
|
|
1747
|
+
|
|
1748
|
+
collection_formats = {}
|
|
1749
|
+
|
|
1750
|
+
path_params = {}
|
|
1751
|
+
|
|
1752
|
+
query_params = []
|
|
1753
|
+
if 'id' in params:
|
|
1754
|
+
query_params.append(('id', params['id'])) # noqa: E501
|
|
1755
|
+
if 'name' in params:
|
|
1756
|
+
query_params.append(('name', params['name'])) # noqa: E501
|
|
1757
|
+
|
|
1758
|
+
header_params = {}
|
|
1759
|
+
|
|
1760
|
+
form_params = []
|
|
1761
|
+
local_var_files = {}
|
|
1762
|
+
|
|
1763
|
+
body_params = None
|
|
1764
|
+
# HTTP header `Accept`
|
|
1765
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1766
|
+
['application/json']) # noqa: E501
|
|
1767
|
+
|
|
1768
|
+
# Authentication setting
|
|
1769
|
+
auth_settings = [] # noqa: E501
|
|
1770
|
+
|
|
1771
|
+
return self.api_client.call_api(
|
|
1772
|
+
'/v1/agent-published-managed-model', 'GET',
|
|
1773
|
+
path_params,
|
|
1774
|
+
query_params,
|
|
1775
|
+
header_params,
|
|
1776
|
+
body=body_params,
|
|
1777
|
+
post_params=form_params,
|
|
1778
|
+
files=local_var_files,
|
|
1779
|
+
response_type='V1ManagedEndpoint', # noqa: E501
|
|
1780
|
+
auth_settings=auth_settings,
|
|
1781
|
+
async_req=params.get('async_req'),
|
|
1782
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1783
|
+
_preload_content=params.get('_preload_content', True),
|
|
1784
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1785
|
+
collection_formats=collection_formats)
|
|
1786
|
+
|
|
1787
|
+
def assistants_service_list_assistant_managed_endpoints(self, **kwargs) -> 'V1ListManagedEndpointsResponse': # noqa: E501
|
|
1788
|
+
"""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
|
|
1789
|
+
|
|
1790
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1791
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1792
|
+
>>> thread = api.assistants_service_list_assistant_managed_endpoints(async_req=True)
|
|
1793
|
+
>>> result = thread.get()
|
|
1794
|
+
|
|
1795
|
+
:param async_req bool
|
|
1796
|
+
:param str project_id:
|
|
1797
|
+
:param str org_id:
|
|
1798
|
+
:return: V1ListManagedEndpointsResponse
|
|
1799
|
+
If the method is called asynchronously,
|
|
1800
|
+
returns the request thread.
|
|
1801
|
+
"""
|
|
1802
|
+
kwargs['_return_http_data_only'] = True
|
|
1803
|
+
if kwargs.get('async_req'):
|
|
1804
|
+
return self.assistants_service_list_assistant_managed_endpoints_with_http_info(**kwargs) # noqa: E501
|
|
1805
|
+
else:
|
|
1806
|
+
(data) = self.assistants_service_list_assistant_managed_endpoints_with_http_info(**kwargs) # noqa: E501
|
|
1807
|
+
return data
|
|
1808
|
+
|
|
1809
|
+
def assistants_service_list_assistant_managed_endpoints_with_http_info(self, **kwargs) -> 'V1ListManagedEndpointsResponse': # noqa: E501
|
|
1810
|
+
"""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
|
|
1811
|
+
|
|
1812
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1813
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1814
|
+
>>> thread = api.assistants_service_list_assistant_managed_endpoints_with_http_info(async_req=True)
|
|
1815
|
+
>>> result = thread.get()
|
|
1816
|
+
|
|
1817
|
+
:param async_req bool
|
|
1818
|
+
:param str project_id:
|
|
1819
|
+
:param str org_id:
|
|
1820
|
+
:return: V1ListManagedEndpointsResponse
|
|
1821
|
+
If the method is called asynchronously,
|
|
1822
|
+
returns the request thread.
|
|
1823
|
+
"""
|
|
1824
|
+
|
|
1825
|
+
all_params = ['project_id', 'org_id'] # noqa: E501
|
|
1826
|
+
all_params.append('async_req')
|
|
1827
|
+
all_params.append('_return_http_data_only')
|
|
1828
|
+
all_params.append('_preload_content')
|
|
1829
|
+
all_params.append('_request_timeout')
|
|
1830
|
+
|
|
1831
|
+
params = locals()
|
|
1832
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1833
|
+
if key not in all_params:
|
|
1834
|
+
raise TypeError(
|
|
1835
|
+
"Got an unexpected keyword argument '%s'"
|
|
1836
|
+
" to method assistants_service_list_assistant_managed_endpoints" % key
|
|
1837
|
+
)
|
|
1838
|
+
params[key] = val
|
|
1839
|
+
del params['kwargs']
|
|
1840
|
+
|
|
1841
|
+
collection_formats = {}
|
|
1842
|
+
|
|
1843
|
+
path_params = {}
|
|
1844
|
+
|
|
1845
|
+
query_params = []
|
|
1846
|
+
if 'project_id' in params:
|
|
1847
|
+
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
1848
|
+
if 'org_id' in params:
|
|
1849
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1850
|
+
|
|
1851
|
+
header_params = {}
|
|
1852
|
+
|
|
1853
|
+
form_params = []
|
|
1854
|
+
local_var_files = {}
|
|
1855
|
+
|
|
1856
|
+
body_params = None
|
|
1857
|
+
# HTTP header `Accept`
|
|
1858
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1859
|
+
['application/json']) # noqa: E501
|
|
1860
|
+
|
|
1861
|
+
# Authentication setting
|
|
1862
|
+
auth_settings = [] # noqa: E501
|
|
1863
|
+
|
|
1864
|
+
return self.api_client.call_api(
|
|
1865
|
+
'/v1/agent-managed-endpoints', 'GET',
|
|
1866
|
+
path_params,
|
|
1867
|
+
query_params,
|
|
1868
|
+
header_params,
|
|
1869
|
+
body=body_params,
|
|
1870
|
+
post_params=form_params,
|
|
1871
|
+
files=local_var_files,
|
|
1872
|
+
response_type='V1ListManagedEndpointsResponse', # noqa: E501
|
|
1873
|
+
auth_settings=auth_settings,
|
|
1874
|
+
async_req=params.get('async_req'),
|
|
1875
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1876
|
+
_preload_content=params.get('_preload_content', True),
|
|
1877
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1878
|
+
collection_formats=collection_formats)
|
|
1879
|
+
|
|
1880
|
+
def assistants_service_list_assistants(self, **kwargs) -> 'V1ListAssistantsResponse': # noqa: E501
|
|
1881
|
+
"""assistants_service_list_assistants # noqa: E501
|
|
1882
|
+
|
|
1883
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1884
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1885
|
+
>>> thread = api.assistants_service_list_assistants(async_req=True)
|
|
1886
|
+
>>> result = thread.get()
|
|
1887
|
+
|
|
1888
|
+
:param async_req bool
|
|
1889
|
+
:param str org_id:
|
|
1890
|
+
:param str project_id:
|
|
1891
|
+
:param str cloudspace_id:
|
|
1892
|
+
:param bool published:
|
|
1893
|
+
:param str internal_name:
|
|
1894
|
+
:param str user_id:
|
|
1895
|
+
:param bool cloudy_compatible:
|
|
1896
|
+
:param bool model_assistants_only:
|
|
1897
|
+
:return: V1ListAssistantsResponse
|
|
1898
|
+
If the method is called asynchronously,
|
|
1899
|
+
returns the request thread.
|
|
1900
|
+
"""
|
|
1901
|
+
kwargs['_return_http_data_only'] = True
|
|
1902
|
+
if kwargs.get('async_req'):
|
|
1903
|
+
return self.assistants_service_list_assistants_with_http_info(**kwargs) # noqa: E501
|
|
1904
|
+
else:
|
|
1905
|
+
(data) = self.assistants_service_list_assistants_with_http_info(**kwargs) # noqa: E501
|
|
1906
|
+
return data
|
|
1907
|
+
|
|
1908
|
+
def assistants_service_list_assistants_with_http_info(self, **kwargs) -> 'V1ListAssistantsResponse': # noqa: E501
|
|
1909
|
+
"""assistants_service_list_assistants # noqa: E501
|
|
1910
|
+
|
|
1911
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1912
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1913
|
+
>>> thread = api.assistants_service_list_assistants_with_http_info(async_req=True)
|
|
1914
|
+
>>> result = thread.get()
|
|
1915
|
+
|
|
1916
|
+
:param async_req bool
|
|
1917
|
+
:param str org_id:
|
|
1918
|
+
:param str project_id:
|
|
1919
|
+
:param str cloudspace_id:
|
|
1920
|
+
:param bool published:
|
|
1921
|
+
:param str internal_name:
|
|
1922
|
+
:param str user_id:
|
|
1923
|
+
:param bool cloudy_compatible:
|
|
1924
|
+
:param bool model_assistants_only:
|
|
1925
|
+
:return: V1ListAssistantsResponse
|
|
1926
|
+
If the method is called asynchronously,
|
|
1927
|
+
returns the request thread.
|
|
1928
|
+
"""
|
|
1929
|
+
|
|
1930
|
+
all_params = ['org_id', 'project_id', 'cloudspace_id', 'published', 'internal_name', 'user_id', 'cloudy_compatible', 'model_assistants_only'] # noqa: E501
|
|
1931
|
+
all_params.append('async_req')
|
|
1932
|
+
all_params.append('_return_http_data_only')
|
|
1933
|
+
all_params.append('_preload_content')
|
|
1934
|
+
all_params.append('_request_timeout')
|
|
1935
|
+
|
|
1936
|
+
params = locals()
|
|
1937
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1938
|
+
if key not in all_params:
|
|
1939
|
+
raise TypeError(
|
|
1940
|
+
"Got an unexpected keyword argument '%s'"
|
|
1941
|
+
" to method assistants_service_list_assistants" % key
|
|
1942
|
+
)
|
|
1943
|
+
params[key] = val
|
|
1944
|
+
del params['kwargs']
|
|
1945
|
+
|
|
1946
|
+
collection_formats = {}
|
|
1947
|
+
|
|
1948
|
+
path_params = {}
|
|
1949
|
+
|
|
1950
|
+
query_params = []
|
|
1951
|
+
if 'org_id' in params:
|
|
1952
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1953
|
+
if 'project_id' in params:
|
|
1954
|
+
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
1955
|
+
if 'cloudspace_id' in params:
|
|
1956
|
+
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
1957
|
+
if 'published' in params:
|
|
1958
|
+
query_params.append(('published', params['published'])) # noqa: E501
|
|
1959
|
+
if 'internal_name' in params:
|
|
1960
|
+
query_params.append(('internalName', params['internal_name'])) # noqa: E501
|
|
1961
|
+
if 'user_id' in params:
|
|
1962
|
+
query_params.append(('userId', params['user_id'])) # noqa: E501
|
|
1963
|
+
if 'cloudy_compatible' in params:
|
|
1964
|
+
query_params.append(('cloudyCompatible', params['cloudy_compatible'])) # noqa: E501
|
|
1965
|
+
if 'model_assistants_only' in params:
|
|
1966
|
+
query_params.append(('modelAssistantsOnly', params['model_assistants_only'])) # noqa: E501
|
|
1967
|
+
|
|
1968
|
+
header_params = {}
|
|
1969
|
+
|
|
1970
|
+
form_params = []
|
|
1971
|
+
local_var_files = {}
|
|
1972
|
+
|
|
1973
|
+
body_params = None
|
|
1974
|
+
# HTTP header `Accept`
|
|
1975
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1976
|
+
['application/json']) # noqa: E501
|
|
1977
|
+
|
|
1978
|
+
# Authentication setting
|
|
1979
|
+
auth_settings = [] # noqa: E501
|
|
1980
|
+
|
|
1981
|
+
return self.api_client.call_api(
|
|
1982
|
+
'/v1/agents', 'GET',
|
|
1983
|
+
path_params,
|
|
1984
|
+
query_params,
|
|
1985
|
+
header_params,
|
|
1986
|
+
body=body_params,
|
|
1987
|
+
post_params=form_params,
|
|
1988
|
+
files=local_var_files,
|
|
1989
|
+
response_type='V1ListAssistantsResponse', # noqa: E501
|
|
1990
|
+
auth_settings=auth_settings,
|
|
1991
|
+
async_req=params.get('async_req'),
|
|
1992
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1993
|
+
_preload_content=params.get('_preload_content', True),
|
|
1994
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1995
|
+
collection_formats=collection_formats)
|
|
1996
|
+
|
|
1997
|
+
def assistants_service_list_conversation_message_actions(self, assistant_id: 'str', conversation_id: 'str', message_id: 'str', **kwargs) -> 'V1ListConversationMessageActionsResponse': # noqa: E501
|
|
1998
|
+
"""assistants_service_list_conversation_message_actions # noqa: E501
|
|
1999
|
+
|
|
2000
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2001
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2002
|
+
>>> thread = api.assistants_service_list_conversation_message_actions(assistant_id, conversation_id, message_id, async_req=True)
|
|
2003
|
+
>>> result = thread.get()
|
|
2004
|
+
|
|
2005
|
+
:param async_req bool
|
|
2006
|
+
:param str assistant_id: (required)
|
|
2007
|
+
:param str conversation_id: (required)
|
|
2008
|
+
:param str message_id: (required)
|
|
2009
|
+
:param str project_id:
|
|
2010
|
+
:return: V1ListConversationMessageActionsResponse
|
|
2011
|
+
If the method is called asynchronously,
|
|
2012
|
+
returns the request thread.
|
|
2013
|
+
"""
|
|
2014
|
+
kwargs['_return_http_data_only'] = True
|
|
2015
|
+
if kwargs.get('async_req'):
|
|
2016
|
+
return self.assistants_service_list_conversation_message_actions_with_http_info(assistant_id, conversation_id, message_id, **kwargs) # noqa: E501
|
|
2017
|
+
else:
|
|
2018
|
+
(data) = self.assistants_service_list_conversation_message_actions_with_http_info(assistant_id, conversation_id, message_id, **kwargs) # noqa: E501
|
|
2019
|
+
return data
|
|
2020
|
+
|
|
2021
|
+
def assistants_service_list_conversation_message_actions_with_http_info(self, assistant_id: 'str', conversation_id: 'str', message_id: 'str', **kwargs) -> 'V1ListConversationMessageActionsResponse': # noqa: E501
|
|
2022
|
+
"""assistants_service_list_conversation_message_actions # 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.assistants_service_list_conversation_message_actions_with_http_info(assistant_id, conversation_id, message_id, async_req=True)
|
|
2027
|
+
>>> result = thread.get()
|
|
2028
|
+
|
|
2029
|
+
:param async_req bool
|
|
2030
|
+
:param str assistant_id: (required)
|
|
2031
|
+
:param str conversation_id: (required)
|
|
2032
|
+
:param str message_id: (required)
|
|
2033
|
+
:param str project_id:
|
|
2034
|
+
:return: V1ListConversationMessageActionsResponse
|
|
2035
|
+
If the method is called asynchronously,
|
|
2036
|
+
returns the request thread.
|
|
2037
|
+
"""
|
|
2038
|
+
|
|
2039
|
+
all_params = ['assistant_id', 'conversation_id', 'message_id', 'project_id'] # noqa: E501
|
|
2040
|
+
all_params.append('async_req')
|
|
2041
|
+
all_params.append('_return_http_data_only')
|
|
2042
|
+
all_params.append('_preload_content')
|
|
2043
|
+
all_params.append('_request_timeout')
|
|
2044
|
+
|
|
2045
|
+
params = locals()
|
|
2046
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2047
|
+
if key not in all_params:
|
|
2048
|
+
raise TypeError(
|
|
2049
|
+
"Got an unexpected keyword argument '%s'"
|
|
2050
|
+
" to method assistants_service_list_conversation_message_actions" % key
|
|
2051
|
+
)
|
|
2052
|
+
params[key] = val
|
|
2053
|
+
del params['kwargs']
|
|
2054
|
+
# verify the required parameter 'assistant_id' is set
|
|
2055
|
+
if ('assistant_id' not in params or
|
|
2056
|
+
params['assistant_id'] is None):
|
|
2057
|
+
raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_list_conversation_message_actions`") # noqa: E501
|
|
2058
|
+
# verify the required parameter 'conversation_id' is set
|
|
2059
|
+
if ('conversation_id' not in params or
|
|
2060
|
+
params['conversation_id'] is None):
|
|
2061
|
+
raise ValueError("Missing the required parameter `conversation_id` when calling `assistants_service_list_conversation_message_actions`") # noqa: E501
|
|
2062
|
+
# verify the required parameter 'message_id' is set
|
|
2063
|
+
if ('message_id' not in params or
|
|
2064
|
+
params['message_id'] is None):
|
|
2065
|
+
raise ValueError("Missing the required parameter `message_id` when calling `assistants_service_list_conversation_message_actions`") # noqa: E501
|
|
2066
|
+
|
|
2067
|
+
collection_formats = {}
|
|
2068
|
+
|
|
2069
|
+
path_params = {}
|
|
2070
|
+
if 'assistant_id' in params:
|
|
2071
|
+
path_params['assistantId'] = params['assistant_id'] # noqa: E501
|
|
2072
|
+
if 'conversation_id' in params:
|
|
2073
|
+
path_params['conversationId'] = params['conversation_id'] # noqa: E501
|
|
2074
|
+
if 'message_id' in params:
|
|
2075
|
+
path_params['messageId'] = params['message_id'] # noqa: E501
|
|
2076
|
+
|
|
2077
|
+
query_params = []
|
|
2078
|
+
if 'project_id' in params:
|
|
2079
|
+
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
2080
|
+
|
|
2081
|
+
header_params = {}
|
|
2082
|
+
|
|
2083
|
+
form_params = []
|
|
2084
|
+
local_var_files = {}
|
|
2085
|
+
|
|
2086
|
+
body_params = None
|
|
2087
|
+
# HTTP header `Accept`
|
|
2088
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2089
|
+
['application/json']) # noqa: E501
|
|
2090
|
+
|
|
2091
|
+
# Authentication setting
|
|
2092
|
+
auth_settings = [] # noqa: E501
|
|
2093
|
+
|
|
2094
|
+
return self.api_client.call_api(
|
|
2095
|
+
'/v1/agents/{assistantId}/conversations/{conversationId}/messages/{messageId}/actions', 'GET',
|
|
2096
|
+
path_params,
|
|
2097
|
+
query_params,
|
|
2098
|
+
header_params,
|
|
2099
|
+
body=body_params,
|
|
2100
|
+
post_params=form_params,
|
|
2101
|
+
files=local_var_files,
|
|
2102
|
+
response_type='V1ListConversationMessageActionsResponse', # noqa: E501
|
|
2103
|
+
auth_settings=auth_settings,
|
|
2104
|
+
async_req=params.get('async_req'),
|
|
2105
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2106
|
+
_preload_content=params.get('_preload_content', True),
|
|
2107
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2108
|
+
collection_formats=collection_formats)
|
|
2109
|
+
|
|
2110
|
+
def assistants_service_list_conversations(self, assistant_id: 'str', **kwargs) -> 'V1ListConversationsResponse': # noqa: E501
|
|
2111
|
+
"""Conversations # noqa: E501
|
|
2112
|
+
|
|
2113
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2114
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2115
|
+
>>> thread = api.assistants_service_list_conversations(assistant_id, async_req=True)
|
|
2116
|
+
>>> result = thread.get()
|
|
2117
|
+
|
|
2118
|
+
:param async_req bool
|
|
2119
|
+
:param str assistant_id: (required)
|
|
2120
|
+
:param str page_token:
|
|
2121
|
+
:param bool filter_internal:
|
|
2122
|
+
:return: V1ListConversationsResponse
|
|
2123
|
+
If the method is called asynchronously,
|
|
2124
|
+
returns the request thread.
|
|
2125
|
+
"""
|
|
2126
|
+
kwargs['_return_http_data_only'] = True
|
|
2127
|
+
if kwargs.get('async_req'):
|
|
2128
|
+
return self.assistants_service_list_conversations_with_http_info(assistant_id, **kwargs) # noqa: E501
|
|
2129
|
+
else:
|
|
2130
|
+
(data) = self.assistants_service_list_conversations_with_http_info(assistant_id, **kwargs) # noqa: E501
|
|
2131
|
+
return data
|
|
2132
|
+
|
|
2133
|
+
def assistants_service_list_conversations_with_http_info(self, assistant_id: 'str', **kwargs) -> 'V1ListConversationsResponse': # noqa: E501
|
|
2134
|
+
"""Conversations # noqa: E501
|
|
2135
|
+
|
|
2136
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2137
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2138
|
+
>>> thread = api.assistants_service_list_conversations_with_http_info(assistant_id, async_req=True)
|
|
2139
|
+
>>> result = thread.get()
|
|
2140
|
+
|
|
2141
|
+
:param async_req bool
|
|
2142
|
+
:param str assistant_id: (required)
|
|
2143
|
+
:param str page_token:
|
|
2144
|
+
:param bool filter_internal:
|
|
2145
|
+
:return: V1ListConversationsResponse
|
|
2146
|
+
If the method is called asynchronously,
|
|
2147
|
+
returns the request thread.
|
|
2148
|
+
"""
|
|
2149
|
+
|
|
2150
|
+
all_params = ['assistant_id', 'page_token', 'filter_internal'] # noqa: E501
|
|
2151
|
+
all_params.append('async_req')
|
|
2152
|
+
all_params.append('_return_http_data_only')
|
|
2153
|
+
all_params.append('_preload_content')
|
|
2154
|
+
all_params.append('_request_timeout')
|
|
2155
|
+
|
|
2156
|
+
params = locals()
|
|
2157
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2158
|
+
if key not in all_params:
|
|
2159
|
+
raise TypeError(
|
|
2160
|
+
"Got an unexpected keyword argument '%s'"
|
|
2161
|
+
" to method assistants_service_list_conversations" % key
|
|
2162
|
+
)
|
|
2163
|
+
params[key] = val
|
|
2164
|
+
del params['kwargs']
|
|
2165
|
+
# verify the required parameter 'assistant_id' is set
|
|
2166
|
+
if ('assistant_id' not in params or
|
|
2167
|
+
params['assistant_id'] is None):
|
|
2168
|
+
raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_list_conversations`") # noqa: E501
|
|
2169
|
+
|
|
2170
|
+
collection_formats = {}
|
|
2171
|
+
|
|
2172
|
+
path_params = {}
|
|
2173
|
+
if 'assistant_id' in params:
|
|
2174
|
+
path_params['assistantId'] = params['assistant_id'] # noqa: E501
|
|
2175
|
+
|
|
2176
|
+
query_params = []
|
|
2177
|
+
if 'page_token' in params:
|
|
2178
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
2179
|
+
if 'filter_internal' in params:
|
|
2180
|
+
query_params.append(('filterInternal', params['filter_internal'])) # noqa: E501
|
|
2181
|
+
|
|
2182
|
+
header_params = {}
|
|
2183
|
+
|
|
2184
|
+
form_params = []
|
|
2185
|
+
local_var_files = {}
|
|
2186
|
+
|
|
2187
|
+
body_params = None
|
|
2188
|
+
# HTTP header `Accept`
|
|
2189
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2190
|
+
['application/json']) # noqa: E501
|
|
2191
|
+
|
|
2192
|
+
# Authentication setting
|
|
2193
|
+
auth_settings = [] # noqa: E501
|
|
2194
|
+
|
|
2195
|
+
return self.api_client.call_api(
|
|
2196
|
+
'/v1/agents/{assistantId}/conversations', 'GET',
|
|
2197
|
+
path_params,
|
|
2198
|
+
query_params,
|
|
2199
|
+
header_params,
|
|
2200
|
+
body=body_params,
|
|
2201
|
+
post_params=form_params,
|
|
2202
|
+
files=local_var_files,
|
|
2203
|
+
response_type='V1ListConversationsResponse', # noqa: E501
|
|
2204
|
+
auth_settings=auth_settings,
|
|
2205
|
+
async_req=params.get('async_req'),
|
|
2206
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2207
|
+
_preload_content=params.get('_preload_content', True),
|
|
2208
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2209
|
+
collection_formats=collection_formats)
|
|
2210
|
+
|
|
2211
|
+
def assistants_service_list_published_managed_endpoints(self, **kwargs) -> 'V1ListPublishedManagedEndpointsResponse': # noqa: E501
|
|
2212
|
+
"""ListPublishedManagedEndpoints returns a list of all available managed endpoints that are published as Models # noqa: E501
|
|
2213
|
+
|
|
2214
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2215
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2216
|
+
>>> thread = api.assistants_service_list_published_managed_endpoints(async_req=True)
|
|
2217
|
+
>>> result = thread.get()
|
|
2218
|
+
|
|
2219
|
+
:param async_req bool
|
|
2220
|
+
:param str org_id:
|
|
2221
|
+
:return: V1ListPublishedManagedEndpointsResponse
|
|
2222
|
+
If the method is called asynchronously,
|
|
2223
|
+
returns the request thread.
|
|
2224
|
+
"""
|
|
2225
|
+
kwargs['_return_http_data_only'] = True
|
|
2226
|
+
if kwargs.get('async_req'):
|
|
2227
|
+
return self.assistants_service_list_published_managed_endpoints_with_http_info(**kwargs) # noqa: E501
|
|
2228
|
+
else:
|
|
2229
|
+
(data) = self.assistants_service_list_published_managed_endpoints_with_http_info(**kwargs) # noqa: E501
|
|
2230
|
+
return data
|
|
2231
|
+
|
|
2232
|
+
def assistants_service_list_published_managed_endpoints_with_http_info(self, **kwargs) -> 'V1ListPublishedManagedEndpointsResponse': # noqa: E501
|
|
2233
|
+
"""ListPublishedManagedEndpoints returns a list of all available managed endpoints that are published as Models # noqa: E501
|
|
2234
|
+
|
|
2235
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2236
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2237
|
+
>>> thread = api.assistants_service_list_published_managed_endpoints_with_http_info(async_req=True)
|
|
2238
|
+
>>> result = thread.get()
|
|
2239
|
+
|
|
2240
|
+
:param async_req bool
|
|
2241
|
+
:param str org_id:
|
|
2242
|
+
:return: V1ListPublishedManagedEndpointsResponse
|
|
2243
|
+
If the method is called asynchronously,
|
|
2244
|
+
returns the request thread.
|
|
2245
|
+
"""
|
|
2246
|
+
|
|
2247
|
+
all_params = ['org_id'] # noqa: E501
|
|
2248
|
+
all_params.append('async_req')
|
|
2249
|
+
all_params.append('_return_http_data_only')
|
|
2250
|
+
all_params.append('_preload_content')
|
|
2251
|
+
all_params.append('_request_timeout')
|
|
2252
|
+
|
|
2253
|
+
params = locals()
|
|
2254
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2255
|
+
if key not in all_params:
|
|
2256
|
+
raise TypeError(
|
|
2257
|
+
"Got an unexpected keyword argument '%s'"
|
|
2258
|
+
" to method assistants_service_list_published_managed_endpoints" % key
|
|
2259
|
+
)
|
|
2260
|
+
params[key] = val
|
|
2261
|
+
del params['kwargs']
|
|
2262
|
+
|
|
2263
|
+
collection_formats = {}
|
|
2264
|
+
|
|
2265
|
+
path_params = {}
|
|
2266
|
+
|
|
2267
|
+
query_params = []
|
|
2268
|
+
if 'org_id' in params:
|
|
2269
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
2270
|
+
|
|
2271
|
+
header_params = {}
|
|
2272
|
+
|
|
2273
|
+
form_params = []
|
|
2274
|
+
local_var_files = {}
|
|
2275
|
+
|
|
2276
|
+
body_params = None
|
|
2277
|
+
# HTTP header `Accept`
|
|
2278
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2279
|
+
['application/json']) # noqa: E501
|
|
2280
|
+
|
|
2281
|
+
# Authentication setting
|
|
2282
|
+
auth_settings = [] # noqa: E501
|
|
2283
|
+
|
|
2284
|
+
return self.api_client.call_api(
|
|
2285
|
+
'/v1/agent-published-managed-endpoints', 'GET',
|
|
2286
|
+
path_params,
|
|
2287
|
+
query_params,
|
|
2288
|
+
header_params,
|
|
2289
|
+
body=body_params,
|
|
2290
|
+
post_params=form_params,
|
|
2291
|
+
files=local_var_files,
|
|
2292
|
+
response_type='V1ListPublishedManagedEndpointsResponse', # noqa: E501
|
|
2293
|
+
auth_settings=auth_settings,
|
|
2294
|
+
async_req=params.get('async_req'),
|
|
2295
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2296
|
+
_preload_content=params.get('_preload_content', True),
|
|
2297
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2298
|
+
collection_formats=collection_formats)
|
|
2299
|
+
|
|
2300
|
+
def assistants_service_start_conversation(self, body: 'AssistantIdConversationsBody', assistant_id: 'str', **kwargs) -> 'StreamResultOfV1ConversationResponseChunk': # noqa: E501
|
|
2301
|
+
"""assistants_service_start_conversation # noqa: E501
|
|
2302
|
+
|
|
2303
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2304
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2305
|
+
>>> thread = api.assistants_service_start_conversation(body, assistant_id, async_req=True)
|
|
2306
|
+
>>> result = thread.get()
|
|
2307
|
+
|
|
2308
|
+
:param async_req bool
|
|
2309
|
+
:param AssistantIdConversationsBody body: (required)
|
|
2310
|
+
:param str assistant_id: (required)
|
|
2311
|
+
:return: StreamResultOfV1ConversationResponseChunk
|
|
2312
|
+
If the method is called asynchronously,
|
|
2313
|
+
returns the request thread.
|
|
2314
|
+
"""
|
|
2315
|
+
kwargs['_return_http_data_only'] = True
|
|
2316
|
+
if kwargs.get('async_req'):
|
|
2317
|
+
return self.assistants_service_start_conversation_with_http_info(body, assistant_id, **kwargs) # noqa: E501
|
|
2318
|
+
else:
|
|
2319
|
+
(data) = self.assistants_service_start_conversation_with_http_info(body, assistant_id, **kwargs) # noqa: E501
|
|
2320
|
+
return data
|
|
2321
|
+
|
|
2322
|
+
def assistants_service_start_conversation_with_http_info(self, body: 'AssistantIdConversationsBody', assistant_id: 'str', **kwargs) -> 'StreamResultOfV1ConversationResponseChunk': # noqa: E501
|
|
2323
|
+
"""assistants_service_start_conversation # noqa: E501
|
|
2324
|
+
|
|
2325
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2326
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2327
|
+
>>> thread = api.assistants_service_start_conversation_with_http_info(body, assistant_id, async_req=True)
|
|
2328
|
+
>>> result = thread.get()
|
|
2329
|
+
|
|
2330
|
+
:param async_req bool
|
|
2331
|
+
:param AssistantIdConversationsBody body: (required)
|
|
2332
|
+
:param str assistant_id: (required)
|
|
2333
|
+
:return: StreamResultOfV1ConversationResponseChunk
|
|
2334
|
+
If the method is called asynchronously,
|
|
2335
|
+
returns the request thread.
|
|
2336
|
+
"""
|
|
2337
|
+
|
|
2338
|
+
all_params = ['body', 'assistant_id'] # noqa: E501
|
|
2339
|
+
all_params.append('async_req')
|
|
2340
|
+
all_params.append('_return_http_data_only')
|
|
2341
|
+
all_params.append('_preload_content')
|
|
2342
|
+
all_params.append('_request_timeout')
|
|
2343
|
+
|
|
2344
|
+
params = locals()
|
|
2345
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2346
|
+
if key not in all_params:
|
|
2347
|
+
raise TypeError(
|
|
2348
|
+
"Got an unexpected keyword argument '%s'"
|
|
2349
|
+
" to method assistants_service_start_conversation" % key
|
|
2350
|
+
)
|
|
2351
|
+
params[key] = val
|
|
2352
|
+
del params['kwargs']
|
|
2353
|
+
# verify the required parameter 'body' is set
|
|
2354
|
+
if ('body' not in params or
|
|
2355
|
+
params['body'] is None):
|
|
2356
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_start_conversation`") # noqa: E501
|
|
2357
|
+
# verify the required parameter 'assistant_id' is set
|
|
2358
|
+
if ('assistant_id' not in params or
|
|
2359
|
+
params['assistant_id'] is None):
|
|
2360
|
+
raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_start_conversation`") # noqa: E501
|
|
2361
|
+
|
|
2362
|
+
collection_formats = {}
|
|
2363
|
+
|
|
2364
|
+
path_params = {}
|
|
2365
|
+
if 'assistant_id' in params:
|
|
2366
|
+
path_params['assistantId'] = params['assistant_id'] # noqa: E501
|
|
2367
|
+
|
|
2368
|
+
query_params = []
|
|
2369
|
+
|
|
2370
|
+
header_params = {}
|
|
2371
|
+
|
|
2372
|
+
form_params = []
|
|
2373
|
+
local_var_files = {}
|
|
2374
|
+
|
|
2375
|
+
body_params = None
|
|
2376
|
+
if 'body' in params:
|
|
2377
|
+
body_params = params['body']
|
|
2378
|
+
# HTTP header `Accept`
|
|
2379
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2380
|
+
['application/json']) # noqa: E501
|
|
2381
|
+
|
|
2382
|
+
# HTTP header `Content-Type`
|
|
2383
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2384
|
+
['application/json']) # noqa: E501
|
|
2385
|
+
|
|
2386
|
+
# Authentication setting
|
|
2387
|
+
auth_settings = [] # noqa: E501
|
|
2388
|
+
|
|
2389
|
+
return self.api_client.call_api(
|
|
2390
|
+
'/v1/agents/{assistantId}/conversations', 'POST',
|
|
2391
|
+
path_params,
|
|
2392
|
+
query_params,
|
|
2393
|
+
header_params,
|
|
2394
|
+
body=body_params,
|
|
2395
|
+
post_params=form_params,
|
|
2396
|
+
files=local_var_files,
|
|
2397
|
+
response_type='StreamResultOfV1ConversationResponseChunk', # noqa: E501
|
|
2398
|
+
auth_settings=auth_settings,
|
|
2399
|
+
async_req=params.get('async_req'),
|
|
2400
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2401
|
+
_preload_content=params.get('_preload_content', True),
|
|
2402
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2403
|
+
collection_formats=collection_formats)
|
|
2404
|
+
|
|
2405
|
+
def assistants_service_update_assistant(self, body: 'AgentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
2406
|
+
"""assistants_service_update_assistant # noqa: E501
|
|
2407
|
+
|
|
2408
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2409
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2410
|
+
>>> thread = api.assistants_service_update_assistant(body, project_id, id, async_req=True)
|
|
2411
|
+
>>> result = thread.get()
|
|
2412
|
+
|
|
2413
|
+
:param async_req bool
|
|
2414
|
+
:param AgentsIdBody body: (required)
|
|
2415
|
+
:param str project_id: (required)
|
|
2416
|
+
:param str id: (required)
|
|
2417
|
+
:return: V1Assistant
|
|
2418
|
+
If the method is called asynchronously,
|
|
2419
|
+
returns the request thread.
|
|
2420
|
+
"""
|
|
2421
|
+
kwargs['_return_http_data_only'] = True
|
|
2422
|
+
if kwargs.get('async_req'):
|
|
2423
|
+
return self.assistants_service_update_assistant_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2424
|
+
else:
|
|
2425
|
+
(data) = self.assistants_service_update_assistant_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
2426
|
+
return data
|
|
2427
|
+
|
|
2428
|
+
def assistants_service_update_assistant_with_http_info(self, body: 'AgentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
|
|
2429
|
+
"""assistants_service_update_assistant # noqa: E501
|
|
2430
|
+
|
|
2431
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2432
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2433
|
+
>>> thread = api.assistants_service_update_assistant_with_http_info(body, project_id, id, async_req=True)
|
|
2434
|
+
>>> result = thread.get()
|
|
2435
|
+
|
|
2436
|
+
:param async_req bool
|
|
2437
|
+
:param AgentsIdBody body: (required)
|
|
2438
|
+
:param str project_id: (required)
|
|
2439
|
+
:param str id: (required)
|
|
2440
|
+
:return: V1Assistant
|
|
2441
|
+
If the method is called asynchronously,
|
|
2442
|
+
returns the request thread.
|
|
2443
|
+
"""
|
|
2444
|
+
|
|
2445
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
2446
|
+
all_params.append('async_req')
|
|
2447
|
+
all_params.append('_return_http_data_only')
|
|
2448
|
+
all_params.append('_preload_content')
|
|
2449
|
+
all_params.append('_request_timeout')
|
|
2450
|
+
|
|
2451
|
+
params = locals()
|
|
2452
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2453
|
+
if key not in all_params:
|
|
2454
|
+
raise TypeError(
|
|
2455
|
+
"Got an unexpected keyword argument '%s'"
|
|
2456
|
+
" to method assistants_service_update_assistant" % key
|
|
1108
2457
|
)
|
|
1109
2458
|
params[key] = val
|
|
1110
2459
|
del params['kwargs']
|
|
2460
|
+
# verify the required parameter 'body' is set
|
|
2461
|
+
if ('body' not in params or
|
|
2462
|
+
params['body'] is None):
|
|
2463
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_assistant`") # noqa: E501
|
|
2464
|
+
# verify the required parameter 'project_id' is set
|
|
2465
|
+
if ('project_id' not in params or
|
|
2466
|
+
params['project_id'] is None):
|
|
2467
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_assistant`") # noqa: E501
|
|
2468
|
+
# verify the required parameter 'id' is set
|
|
2469
|
+
if ('id' not in params or
|
|
2470
|
+
params['id'] is None):
|
|
2471
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_assistant`") # noqa: E501
|
|
1111
2472
|
|
|
1112
2473
|
collection_formats = {}
|
|
1113
2474
|
|
|
1114
2475
|
path_params = {}
|
|
2476
|
+
if 'project_id' in params:
|
|
2477
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2478
|
+
if 'id' in params:
|
|
2479
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1115
2480
|
|
|
1116
2481
|
query_params = []
|
|
1117
|
-
if 'org_id' in params:
|
|
1118
|
-
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1119
|
-
if 'project_id' in params:
|
|
1120
|
-
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
1121
|
-
if 'cloudspace_id' in params:
|
|
1122
|
-
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
1123
|
-
if 'published' in params:
|
|
1124
|
-
query_params.append(('published', params['published'])) # noqa: E501
|
|
1125
|
-
if 'internal_name' in params:
|
|
1126
|
-
query_params.append(('internalName', params['internal_name'])) # noqa: E501
|
|
1127
2482
|
|
|
1128
2483
|
header_params = {}
|
|
1129
2484
|
|
|
@@ -1131,22 +2486,28 @@ class AssistantsServiceApi(object):
|
|
|
1131
2486
|
local_var_files = {}
|
|
1132
2487
|
|
|
1133
2488
|
body_params = None
|
|
2489
|
+
if 'body' in params:
|
|
2490
|
+
body_params = params['body']
|
|
1134
2491
|
# HTTP header `Accept`
|
|
1135
2492
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1136
2493
|
['application/json']) # noqa: E501
|
|
1137
2494
|
|
|
2495
|
+
# HTTP header `Content-Type`
|
|
2496
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2497
|
+
['application/json']) # noqa: E501
|
|
2498
|
+
|
|
1138
2499
|
# Authentication setting
|
|
1139
2500
|
auth_settings = [] # noqa: E501
|
|
1140
2501
|
|
|
1141
2502
|
return self.api_client.call_api(
|
|
1142
|
-
'/v1/agents', '
|
|
2503
|
+
'/v1/projects/{projectId}/agents/{id}', 'PUT',
|
|
1143
2504
|
path_params,
|
|
1144
2505
|
query_params,
|
|
1145
2506
|
header_params,
|
|
1146
2507
|
body=body_params,
|
|
1147
2508
|
post_params=form_params,
|
|
1148
2509
|
files=local_var_files,
|
|
1149
|
-
response_type='
|
|
2510
|
+
response_type='V1Assistant', # noqa: E501
|
|
1150
2511
|
auth_settings=auth_settings,
|
|
1151
2512
|
async_req=params.get('async_req'),
|
|
1152
2513
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1154,45 +2515,47 @@ class AssistantsServiceApi(object):
|
|
|
1154
2515
|
_request_timeout=params.get('_request_timeout'),
|
|
1155
2516
|
collection_formats=collection_formats)
|
|
1156
2517
|
|
|
1157
|
-
def
|
|
1158
|
-
"""
|
|
2518
|
+
def assistants_service_update_assistant_managed_endpoint(self, body: 'AgentmanagedendpointsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
|
|
2519
|
+
"""assistants_service_update_assistant_managed_endpoint # noqa: E501
|
|
1159
2520
|
|
|
1160
2521
|
This method makes a synchronous HTTP request by default. To make an
|
|
1161
2522
|
asynchronous HTTP request, please pass async_req=True
|
|
1162
|
-
>>> thread = api.
|
|
2523
|
+
>>> thread = api.assistants_service_update_assistant_managed_endpoint(body, project_id, id, async_req=True)
|
|
1163
2524
|
>>> result = thread.get()
|
|
1164
2525
|
|
|
1165
2526
|
:param async_req bool
|
|
1166
|
-
:param
|
|
1167
|
-
:param str
|
|
1168
|
-
:
|
|
2527
|
+
:param AgentmanagedendpointsIdBody body: (required)
|
|
2528
|
+
:param str project_id: (required)
|
|
2529
|
+
:param str id: (required)
|
|
2530
|
+
:return: V1ManagedEndpoint
|
|
1169
2531
|
If the method is called asynchronously,
|
|
1170
2532
|
returns the request thread.
|
|
1171
2533
|
"""
|
|
1172
2534
|
kwargs['_return_http_data_only'] = True
|
|
1173
2535
|
if kwargs.get('async_req'):
|
|
1174
|
-
return self.
|
|
2536
|
+
return self.assistants_service_update_assistant_managed_endpoint_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1175
2537
|
else:
|
|
1176
|
-
(data) = self.
|
|
2538
|
+
(data) = self.assistants_service_update_assistant_managed_endpoint_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1177
2539
|
return data
|
|
1178
2540
|
|
|
1179
|
-
def
|
|
1180
|
-
"""
|
|
2541
|
+
def assistants_service_update_assistant_managed_endpoint_with_http_info(self, body: 'AgentmanagedendpointsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
|
|
2542
|
+
"""assistants_service_update_assistant_managed_endpoint # noqa: E501
|
|
1181
2543
|
|
|
1182
2544
|
This method makes a synchronous HTTP request by default. To make an
|
|
1183
2545
|
asynchronous HTTP request, please pass async_req=True
|
|
1184
|
-
>>> thread = api.
|
|
2546
|
+
>>> thread = api.assistants_service_update_assistant_managed_endpoint_with_http_info(body, project_id, id, async_req=True)
|
|
1185
2547
|
>>> result = thread.get()
|
|
1186
2548
|
|
|
1187
2549
|
:param async_req bool
|
|
1188
|
-
:param
|
|
1189
|
-
:param str
|
|
1190
|
-
:
|
|
2550
|
+
:param AgentmanagedendpointsIdBody body: (required)
|
|
2551
|
+
:param str project_id: (required)
|
|
2552
|
+
:param str id: (required)
|
|
2553
|
+
:return: V1ManagedEndpoint
|
|
1191
2554
|
If the method is called asynchronously,
|
|
1192
2555
|
returns the request thread.
|
|
1193
2556
|
"""
|
|
1194
2557
|
|
|
1195
|
-
all_params = ['
|
|
2558
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
1196
2559
|
all_params.append('async_req')
|
|
1197
2560
|
all_params.append('_return_http_data_only')
|
|
1198
2561
|
all_params.append('_preload_content')
|
|
@@ -1203,24 +2566,32 @@ class AssistantsServiceApi(object):
|
|
|
1203
2566
|
if key not in all_params:
|
|
1204
2567
|
raise TypeError(
|
|
1205
2568
|
"Got an unexpected keyword argument '%s'"
|
|
1206
|
-
" to method
|
|
2569
|
+
" to method assistants_service_update_assistant_managed_endpoint" % key
|
|
1207
2570
|
)
|
|
1208
2571
|
params[key] = val
|
|
1209
2572
|
del params['kwargs']
|
|
1210
|
-
# verify the required parameter '
|
|
1211
|
-
if ('
|
|
1212
|
-
params['
|
|
1213
|
-
raise ValueError("Missing the required parameter `
|
|
2573
|
+
# verify the required parameter 'body' is set
|
|
2574
|
+
if ('body' not in params or
|
|
2575
|
+
params['body'] is None):
|
|
2576
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_assistant_managed_endpoint`") # noqa: E501
|
|
2577
|
+
# verify the required parameter 'project_id' is set
|
|
2578
|
+
if ('project_id' not in params or
|
|
2579
|
+
params['project_id'] is None):
|
|
2580
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_assistant_managed_endpoint`") # noqa: E501
|
|
2581
|
+
# verify the required parameter 'id' is set
|
|
2582
|
+
if ('id' not in params or
|
|
2583
|
+
params['id'] is None):
|
|
2584
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_assistant_managed_endpoint`") # noqa: E501
|
|
1214
2585
|
|
|
1215
2586
|
collection_formats = {}
|
|
1216
2587
|
|
|
1217
2588
|
path_params = {}
|
|
1218
|
-
if '
|
|
1219
|
-
path_params['
|
|
2589
|
+
if 'project_id' in params:
|
|
2590
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2591
|
+
if 'id' in params:
|
|
2592
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1220
2593
|
|
|
1221
2594
|
query_params = []
|
|
1222
|
-
if 'page_token' in params:
|
|
1223
|
-
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
1224
2595
|
|
|
1225
2596
|
header_params = {}
|
|
1226
2597
|
|
|
@@ -1228,22 +2599,28 @@ class AssistantsServiceApi(object):
|
|
|
1228
2599
|
local_var_files = {}
|
|
1229
2600
|
|
|
1230
2601
|
body_params = None
|
|
2602
|
+
if 'body' in params:
|
|
2603
|
+
body_params = params['body']
|
|
1231
2604
|
# HTTP header `Accept`
|
|
1232
2605
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1233
2606
|
['application/json']) # noqa: E501
|
|
1234
2607
|
|
|
2608
|
+
# HTTP header `Content-Type`
|
|
2609
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2610
|
+
['application/json']) # noqa: E501
|
|
2611
|
+
|
|
1235
2612
|
# Authentication setting
|
|
1236
2613
|
auth_settings = [] # noqa: E501
|
|
1237
2614
|
|
|
1238
2615
|
return self.api_client.call_api(
|
|
1239
|
-
'/v1/
|
|
2616
|
+
'/v1/projects/{projectId}/agent-managed-endpoints/{id}', 'PUT',
|
|
1240
2617
|
path_params,
|
|
1241
2618
|
query_params,
|
|
1242
2619
|
header_params,
|
|
1243
2620
|
body=body_params,
|
|
1244
2621
|
post_params=form_params,
|
|
1245
2622
|
files=local_var_files,
|
|
1246
|
-
response_type='
|
|
2623
|
+
response_type='V1ManagedEndpoint', # noqa: E501
|
|
1247
2624
|
auth_settings=auth_settings,
|
|
1248
2625
|
async_req=params.get('async_req'),
|
|
1249
2626
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1251,45 +2628,49 @@ class AssistantsServiceApi(object):
|
|
|
1251
2628
|
_request_timeout=params.get('_request_timeout'),
|
|
1252
2629
|
collection_formats=collection_formats)
|
|
1253
2630
|
|
|
1254
|
-
def
|
|
1255
|
-
"""
|
|
2631
|
+
def assistants_service_update_assistant_managed_endpoint_model(self, body: 'ModelsIdBody', project_id: 'str', managed_endpoint_id: 'str', id: 'str', **kwargs) -> 'V1ManagedModel': # noqa: E501
|
|
2632
|
+
"""assistants_service_update_assistant_managed_endpoint_model # noqa: E501
|
|
1256
2633
|
|
|
1257
2634
|
This method makes a synchronous HTTP request by default. To make an
|
|
1258
2635
|
asynchronous HTTP request, please pass async_req=True
|
|
1259
|
-
>>> thread = api.
|
|
2636
|
+
>>> thread = api.assistants_service_update_assistant_managed_endpoint_model(body, project_id, managed_endpoint_id, id, async_req=True)
|
|
1260
2637
|
>>> result = thread.get()
|
|
1261
2638
|
|
|
1262
2639
|
:param async_req bool
|
|
1263
|
-
:param
|
|
1264
|
-
:param str
|
|
1265
|
-
:
|
|
2640
|
+
:param ModelsIdBody body: (required)
|
|
2641
|
+
:param str project_id: (required)
|
|
2642
|
+
:param str managed_endpoint_id: (required)
|
|
2643
|
+
:param str id: (required)
|
|
2644
|
+
:return: V1ManagedModel
|
|
1266
2645
|
If the method is called asynchronously,
|
|
1267
2646
|
returns the request thread.
|
|
1268
2647
|
"""
|
|
1269
2648
|
kwargs['_return_http_data_only'] = True
|
|
1270
2649
|
if kwargs.get('async_req'):
|
|
1271
|
-
return self.
|
|
2650
|
+
return self.assistants_service_update_assistant_managed_endpoint_model_with_http_info(body, project_id, managed_endpoint_id, id, **kwargs) # noqa: E501
|
|
1272
2651
|
else:
|
|
1273
|
-
(data) = self.
|
|
2652
|
+
(data) = self.assistants_service_update_assistant_managed_endpoint_model_with_http_info(body, project_id, managed_endpoint_id, id, **kwargs) # noqa: E501
|
|
1274
2653
|
return data
|
|
1275
2654
|
|
|
1276
|
-
def
|
|
1277
|
-
"""
|
|
2655
|
+
def assistants_service_update_assistant_managed_endpoint_model_with_http_info(self, body: 'ModelsIdBody', project_id: 'str', managed_endpoint_id: 'str', id: 'str', **kwargs) -> 'V1ManagedModel': # noqa: E501
|
|
2656
|
+
"""assistants_service_update_assistant_managed_endpoint_model # noqa: E501
|
|
1278
2657
|
|
|
1279
2658
|
This method makes a synchronous HTTP request by default. To make an
|
|
1280
2659
|
asynchronous HTTP request, please pass async_req=True
|
|
1281
|
-
>>> thread = api.
|
|
2660
|
+
>>> thread = api.assistants_service_update_assistant_managed_endpoint_model_with_http_info(body, project_id, managed_endpoint_id, id, async_req=True)
|
|
1282
2661
|
>>> result = thread.get()
|
|
1283
2662
|
|
|
1284
2663
|
:param async_req bool
|
|
1285
|
-
:param
|
|
1286
|
-
:param str
|
|
1287
|
-
:
|
|
2664
|
+
:param ModelsIdBody body: (required)
|
|
2665
|
+
:param str project_id: (required)
|
|
2666
|
+
:param str managed_endpoint_id: (required)
|
|
2667
|
+
:param str id: (required)
|
|
2668
|
+
:return: V1ManagedModel
|
|
1288
2669
|
If the method is called asynchronously,
|
|
1289
2670
|
returns the request thread.
|
|
1290
2671
|
"""
|
|
1291
2672
|
|
|
1292
|
-
all_params = ['body', '
|
|
2673
|
+
all_params = ['body', 'project_id', 'managed_endpoint_id', 'id'] # noqa: E501
|
|
1293
2674
|
all_params.append('async_req')
|
|
1294
2675
|
all_params.append('_return_http_data_only')
|
|
1295
2676
|
all_params.append('_preload_content')
|
|
@@ -1300,24 +2681,36 @@ class AssistantsServiceApi(object):
|
|
|
1300
2681
|
if key not in all_params:
|
|
1301
2682
|
raise TypeError(
|
|
1302
2683
|
"Got an unexpected keyword argument '%s'"
|
|
1303
|
-
" to method
|
|
2684
|
+
" to method assistants_service_update_assistant_managed_endpoint_model" % key
|
|
1304
2685
|
)
|
|
1305
2686
|
params[key] = val
|
|
1306
2687
|
del params['kwargs']
|
|
1307
2688
|
# verify the required parameter 'body' is set
|
|
1308
2689
|
if ('body' not in params or
|
|
1309
2690
|
params['body'] is None):
|
|
1310
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
1311
|
-
# verify the required parameter '
|
|
1312
|
-
if ('
|
|
1313
|
-
params['
|
|
1314
|
-
raise ValueError("Missing the required parameter `
|
|
2691
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_assistant_managed_endpoint_model`") # noqa: E501
|
|
2692
|
+
# verify the required parameter 'project_id' is set
|
|
2693
|
+
if ('project_id' not in params or
|
|
2694
|
+
params['project_id'] is None):
|
|
2695
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_assistant_managed_endpoint_model`") # noqa: E501
|
|
2696
|
+
# verify the required parameter 'managed_endpoint_id' is set
|
|
2697
|
+
if ('managed_endpoint_id' not in params or
|
|
2698
|
+
params['managed_endpoint_id'] is None):
|
|
2699
|
+
raise ValueError("Missing the required parameter `managed_endpoint_id` when calling `assistants_service_update_assistant_managed_endpoint_model`") # noqa: E501
|
|
2700
|
+
# verify the required parameter 'id' is set
|
|
2701
|
+
if ('id' not in params or
|
|
2702
|
+
params['id'] is None):
|
|
2703
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_assistant_managed_endpoint_model`") # noqa: E501
|
|
1315
2704
|
|
|
1316
2705
|
collection_formats = {}
|
|
1317
2706
|
|
|
1318
2707
|
path_params = {}
|
|
1319
|
-
if '
|
|
1320
|
-
path_params['
|
|
2708
|
+
if 'project_id' in params:
|
|
2709
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2710
|
+
if 'managed_endpoint_id' in params:
|
|
2711
|
+
path_params['managedEndpointId'] = params['managed_endpoint_id'] # noqa: E501
|
|
2712
|
+
if 'id' in params:
|
|
2713
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1321
2714
|
|
|
1322
2715
|
query_params = []
|
|
1323
2716
|
|
|
@@ -1341,14 +2734,14 @@ class AssistantsServiceApi(object):
|
|
|
1341
2734
|
auth_settings = [] # noqa: E501
|
|
1342
2735
|
|
|
1343
2736
|
return self.api_client.call_api(
|
|
1344
|
-
'/v1/
|
|
2737
|
+
'/v1/projects/{projectId}/agent-managed-endpoints/{managedEndpointId}/models/{id}', 'PUT',
|
|
1345
2738
|
path_params,
|
|
1346
2739
|
query_params,
|
|
1347
2740
|
header_params,
|
|
1348
2741
|
body=body_params,
|
|
1349
2742
|
post_params=form_params,
|
|
1350
2743
|
files=local_var_files,
|
|
1351
|
-
response_type='
|
|
2744
|
+
response_type='V1ManagedModel', # noqa: E501
|
|
1352
2745
|
auth_settings=auth_settings,
|
|
1353
2746
|
async_req=params.get('async_req'),
|
|
1354
2747
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1356,47 +2749,47 @@ class AssistantsServiceApi(object):
|
|
|
1356
2749
|
_request_timeout=params.get('_request_timeout'),
|
|
1357
2750
|
collection_formats=collection_formats)
|
|
1358
2751
|
|
|
1359
|
-
def
|
|
1360
|
-
"""
|
|
2752
|
+
def assistants_service_update_conversation(self, body: 'ConversationsIdBody', assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
|
|
2753
|
+
"""assistants_service_update_conversation # noqa: E501
|
|
1361
2754
|
|
|
1362
2755
|
This method makes a synchronous HTTP request by default. To make an
|
|
1363
2756
|
asynchronous HTTP request, please pass async_req=True
|
|
1364
|
-
>>> thread = api.
|
|
2757
|
+
>>> thread = api.assistants_service_update_conversation(body, assistant_id, id, async_req=True)
|
|
1365
2758
|
>>> result = thread.get()
|
|
1366
2759
|
|
|
1367
2760
|
:param async_req bool
|
|
1368
|
-
:param
|
|
1369
|
-
:param str
|
|
2761
|
+
:param ConversationsIdBody body: (required)
|
|
2762
|
+
:param str assistant_id: (required)
|
|
1370
2763
|
:param str id: (required)
|
|
1371
|
-
:return:
|
|
2764
|
+
:return: V1Conversation
|
|
1372
2765
|
If the method is called asynchronously,
|
|
1373
2766
|
returns the request thread.
|
|
1374
2767
|
"""
|
|
1375
2768
|
kwargs['_return_http_data_only'] = True
|
|
1376
2769
|
if kwargs.get('async_req'):
|
|
1377
|
-
return self.
|
|
2770
|
+
return self.assistants_service_update_conversation_with_http_info(body, assistant_id, id, **kwargs) # noqa: E501
|
|
1378
2771
|
else:
|
|
1379
|
-
(data) = self.
|
|
2772
|
+
(data) = self.assistants_service_update_conversation_with_http_info(body, assistant_id, id, **kwargs) # noqa: E501
|
|
1380
2773
|
return data
|
|
1381
2774
|
|
|
1382
|
-
def
|
|
1383
|
-
"""
|
|
2775
|
+
def assistants_service_update_conversation_with_http_info(self, body: 'ConversationsIdBody', assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
|
|
2776
|
+
"""assistants_service_update_conversation # noqa: E501
|
|
1384
2777
|
|
|
1385
2778
|
This method makes a synchronous HTTP request by default. To make an
|
|
1386
2779
|
asynchronous HTTP request, please pass async_req=True
|
|
1387
|
-
>>> thread = api.
|
|
2780
|
+
>>> thread = api.assistants_service_update_conversation_with_http_info(body, assistant_id, id, async_req=True)
|
|
1388
2781
|
>>> result = thread.get()
|
|
1389
2782
|
|
|
1390
2783
|
:param async_req bool
|
|
1391
|
-
:param
|
|
1392
|
-
:param str
|
|
2784
|
+
:param ConversationsIdBody body: (required)
|
|
2785
|
+
:param str assistant_id: (required)
|
|
1393
2786
|
:param str id: (required)
|
|
1394
|
-
:return:
|
|
2787
|
+
:return: V1Conversation
|
|
1395
2788
|
If the method is called asynchronously,
|
|
1396
2789
|
returns the request thread.
|
|
1397
2790
|
"""
|
|
1398
2791
|
|
|
1399
|
-
all_params = ['body', '
|
|
2792
|
+
all_params = ['body', 'assistant_id', 'id'] # noqa: E501
|
|
1400
2793
|
all_params.append('async_req')
|
|
1401
2794
|
all_params.append('_return_http_data_only')
|
|
1402
2795
|
all_params.append('_preload_content')
|
|
@@ -1407,28 +2800,28 @@ class AssistantsServiceApi(object):
|
|
|
1407
2800
|
if key not in all_params:
|
|
1408
2801
|
raise TypeError(
|
|
1409
2802
|
"Got an unexpected keyword argument '%s'"
|
|
1410
|
-
" to method
|
|
2803
|
+
" to method assistants_service_update_conversation" % key
|
|
1411
2804
|
)
|
|
1412
2805
|
params[key] = val
|
|
1413
2806
|
del params['kwargs']
|
|
1414
2807
|
# verify the required parameter 'body' is set
|
|
1415
2808
|
if ('body' not in params or
|
|
1416
2809
|
params['body'] is None):
|
|
1417
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
1418
|
-
# verify the required parameter '
|
|
1419
|
-
if ('
|
|
1420
|
-
params['
|
|
1421
|
-
raise ValueError("Missing the required parameter `
|
|
2810
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_conversation`") # noqa: E501
|
|
2811
|
+
# verify the required parameter 'assistant_id' is set
|
|
2812
|
+
if ('assistant_id' not in params or
|
|
2813
|
+
params['assistant_id'] is None):
|
|
2814
|
+
raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_update_conversation`") # noqa: E501
|
|
1422
2815
|
# verify the required parameter 'id' is set
|
|
1423
2816
|
if ('id' not in params or
|
|
1424
2817
|
params['id'] is None):
|
|
1425
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
2818
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_conversation`") # noqa: E501
|
|
1426
2819
|
|
|
1427
2820
|
collection_formats = {}
|
|
1428
2821
|
|
|
1429
2822
|
path_params = {}
|
|
1430
|
-
if '
|
|
1431
|
-
path_params['
|
|
2823
|
+
if 'assistant_id' in params:
|
|
2824
|
+
path_params['assistantId'] = params['assistant_id'] # noqa: E501
|
|
1432
2825
|
if 'id' in params:
|
|
1433
2826
|
path_params['id'] = params['id'] # noqa: E501
|
|
1434
2827
|
|
|
@@ -1454,14 +2847,14 @@ class AssistantsServiceApi(object):
|
|
|
1454
2847
|
auth_settings = [] # noqa: E501
|
|
1455
2848
|
|
|
1456
2849
|
return self.api_client.call_api(
|
|
1457
|
-
'/v1/
|
|
2850
|
+
'/v1/agents/{assistantId}/conversations/{id}', 'PUT',
|
|
1458
2851
|
path_params,
|
|
1459
2852
|
query_params,
|
|
1460
2853
|
header_params,
|
|
1461
2854
|
body=body_params,
|
|
1462
2855
|
post_params=form_params,
|
|
1463
2856
|
files=local_var_files,
|
|
1464
|
-
response_type='
|
|
2857
|
+
response_type='V1Conversation', # noqa: E501
|
|
1465
2858
|
auth_settings=auth_settings,
|
|
1466
2859
|
async_req=params.get('async_req'),
|
|
1467
2860
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1469,47 +2862,49 @@ class AssistantsServiceApi(object):
|
|
|
1469
2862
|
_request_timeout=params.get('_request_timeout'),
|
|
1470
2863
|
collection_formats=collection_formats)
|
|
1471
2864
|
|
|
1472
|
-
def
|
|
1473
|
-
"""
|
|
2865
|
+
def assistants_service_update_conversation_like(self, body: 'ConversationsIdBody1', project_id: 'str', assistant_id: 'str', id: 'str', **kwargs) -> 'V1UpdateConversationLikeResponse': # noqa: E501
|
|
2866
|
+
"""assistants_service_update_conversation_like # noqa: E501
|
|
1474
2867
|
|
|
1475
2868
|
This method makes a synchronous HTTP request by default. To make an
|
|
1476
2869
|
asynchronous HTTP request, please pass async_req=True
|
|
1477
|
-
>>> thread = api.
|
|
2870
|
+
>>> thread = api.assistants_service_update_conversation_like(body, project_id, assistant_id, id, async_req=True)
|
|
1478
2871
|
>>> result = thread.get()
|
|
1479
2872
|
|
|
1480
2873
|
:param async_req bool
|
|
1481
|
-
:param
|
|
2874
|
+
:param ConversationsIdBody1 body: (required)
|
|
1482
2875
|
:param str project_id: (required)
|
|
2876
|
+
:param str assistant_id: (required)
|
|
1483
2877
|
:param str id: (required)
|
|
1484
|
-
:return:
|
|
2878
|
+
:return: V1UpdateConversationLikeResponse
|
|
1485
2879
|
If the method is called asynchronously,
|
|
1486
2880
|
returns the request thread.
|
|
1487
2881
|
"""
|
|
1488
2882
|
kwargs['_return_http_data_only'] = True
|
|
1489
2883
|
if kwargs.get('async_req'):
|
|
1490
|
-
return self.
|
|
2884
|
+
return self.assistants_service_update_conversation_like_with_http_info(body, project_id, assistant_id, id, **kwargs) # noqa: E501
|
|
1491
2885
|
else:
|
|
1492
|
-
(data) = self.
|
|
2886
|
+
(data) = self.assistants_service_update_conversation_like_with_http_info(body, project_id, assistant_id, id, **kwargs) # noqa: E501
|
|
1493
2887
|
return data
|
|
1494
2888
|
|
|
1495
|
-
def
|
|
1496
|
-
"""
|
|
2889
|
+
def assistants_service_update_conversation_like_with_http_info(self, body: 'ConversationsIdBody1', project_id: 'str', assistant_id: 'str', id: 'str', **kwargs) -> 'V1UpdateConversationLikeResponse': # noqa: E501
|
|
2890
|
+
"""assistants_service_update_conversation_like # noqa: E501
|
|
1497
2891
|
|
|
1498
2892
|
This method makes a synchronous HTTP request by default. To make an
|
|
1499
2893
|
asynchronous HTTP request, please pass async_req=True
|
|
1500
|
-
>>> thread = api.
|
|
2894
|
+
>>> thread = api.assistants_service_update_conversation_like_with_http_info(body, project_id, assistant_id, id, async_req=True)
|
|
1501
2895
|
>>> result = thread.get()
|
|
1502
2896
|
|
|
1503
2897
|
:param async_req bool
|
|
1504
|
-
:param
|
|
2898
|
+
:param ConversationsIdBody1 body: (required)
|
|
1505
2899
|
:param str project_id: (required)
|
|
2900
|
+
:param str assistant_id: (required)
|
|
1506
2901
|
:param str id: (required)
|
|
1507
|
-
:return:
|
|
2902
|
+
:return: V1UpdateConversationLikeResponse
|
|
1508
2903
|
If the method is called asynchronously,
|
|
1509
2904
|
returns the request thread.
|
|
1510
2905
|
"""
|
|
1511
2906
|
|
|
1512
|
-
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
2907
|
+
all_params = ['body', 'project_id', 'assistant_id', 'id'] # noqa: E501
|
|
1513
2908
|
all_params.append('async_req')
|
|
1514
2909
|
all_params.append('_return_http_data_only')
|
|
1515
2910
|
all_params.append('_preload_content')
|
|
@@ -1520,28 +2915,34 @@ class AssistantsServiceApi(object):
|
|
|
1520
2915
|
if key not in all_params:
|
|
1521
2916
|
raise TypeError(
|
|
1522
2917
|
"Got an unexpected keyword argument '%s'"
|
|
1523
|
-
" to method
|
|
2918
|
+
" to method assistants_service_update_conversation_like" % key
|
|
1524
2919
|
)
|
|
1525
2920
|
params[key] = val
|
|
1526
2921
|
del params['kwargs']
|
|
1527
2922
|
# verify the required parameter 'body' is set
|
|
1528
2923
|
if ('body' not in params or
|
|
1529
2924
|
params['body'] is None):
|
|
1530
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
2925
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_conversation_like`") # noqa: E501
|
|
1531
2926
|
# verify the required parameter 'project_id' is set
|
|
1532
2927
|
if ('project_id' not in params or
|
|
1533
2928
|
params['project_id'] is None):
|
|
1534
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
2929
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_conversation_like`") # noqa: E501
|
|
2930
|
+
# verify the required parameter 'assistant_id' is set
|
|
2931
|
+
if ('assistant_id' not in params or
|
|
2932
|
+
params['assistant_id'] is None):
|
|
2933
|
+
raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_update_conversation_like`") # noqa: E501
|
|
1535
2934
|
# verify the required parameter 'id' is set
|
|
1536
2935
|
if ('id' not in params or
|
|
1537
2936
|
params['id'] is None):
|
|
1538
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
2937
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_conversation_like`") # noqa: E501
|
|
1539
2938
|
|
|
1540
2939
|
collection_formats = {}
|
|
1541
2940
|
|
|
1542
2941
|
path_params = {}
|
|
1543
2942
|
if 'project_id' in params:
|
|
1544
2943
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2944
|
+
if 'assistant_id' in params:
|
|
2945
|
+
path_params['assistantId'] = params['assistant_id'] # noqa: E501
|
|
1545
2946
|
if 'id' in params:
|
|
1546
2947
|
path_params['id'] = params['id'] # noqa: E501
|
|
1547
2948
|
|
|
@@ -1567,14 +2968,14 @@ class AssistantsServiceApi(object):
|
|
|
1567
2968
|
auth_settings = [] # noqa: E501
|
|
1568
2969
|
|
|
1569
2970
|
return self.api_client.call_api(
|
|
1570
|
-
'/v1/projects/{projectId}/
|
|
2971
|
+
'/v1/projects/{projectId}/agents/{assistantId}/conversations/{id}', 'PUT',
|
|
1571
2972
|
path_params,
|
|
1572
2973
|
query_params,
|
|
1573
2974
|
header_params,
|
|
1574
2975
|
body=body_params,
|
|
1575
2976
|
post_params=form_params,
|
|
1576
2977
|
files=local_var_files,
|
|
1577
|
-
response_type='
|
|
2978
|
+
response_type='V1UpdateConversationLikeResponse', # noqa: E501
|
|
1578
2979
|
auth_settings=auth_settings,
|
|
1579
2980
|
async_req=params.get('async_req'),
|
|
1580
2981
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1582,47 +2983,51 @@ class AssistantsServiceApi(object):
|
|
|
1582
2983
|
_request_timeout=params.get('_request_timeout'),
|
|
1583
2984
|
collection_formats=collection_formats)
|
|
1584
2985
|
|
|
1585
|
-
def
|
|
1586
|
-
"""
|
|
2986
|
+
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
|
|
2987
|
+
"""assistants_service_update_conversation_message_like # noqa: E501
|
|
1587
2988
|
|
|
1588
2989
|
This method makes a synchronous HTTP request by default. To make an
|
|
1589
2990
|
asynchronous HTTP request, please pass async_req=True
|
|
1590
|
-
>>> thread = api.
|
|
2991
|
+
>>> thread = api.assistants_service_update_conversation_message_like(body, project_id, assistant_id, conversation_id, id, async_req=True)
|
|
1591
2992
|
>>> result = thread.get()
|
|
1592
2993
|
|
|
1593
2994
|
:param async_req bool
|
|
1594
|
-
:param
|
|
2995
|
+
:param MessagesIdBody body: (required)
|
|
2996
|
+
:param str project_id: (required)
|
|
1595
2997
|
:param str assistant_id: (required)
|
|
2998
|
+
:param str conversation_id: (required)
|
|
1596
2999
|
:param str id: (required)
|
|
1597
|
-
:return:
|
|
3000
|
+
:return: V1UpdateConversationMessageLikeResponse
|
|
1598
3001
|
If the method is called asynchronously,
|
|
1599
3002
|
returns the request thread.
|
|
1600
3003
|
"""
|
|
1601
3004
|
kwargs['_return_http_data_only'] = True
|
|
1602
3005
|
if kwargs.get('async_req'):
|
|
1603
|
-
return self.
|
|
3006
|
+
return self.assistants_service_update_conversation_message_like_with_http_info(body, project_id, assistant_id, conversation_id, id, **kwargs) # noqa: E501
|
|
1604
3007
|
else:
|
|
1605
|
-
(data) = self.
|
|
3008
|
+
(data) = self.assistants_service_update_conversation_message_like_with_http_info(body, project_id, assistant_id, conversation_id, id, **kwargs) # noqa: E501
|
|
1606
3009
|
return data
|
|
1607
3010
|
|
|
1608
|
-
def
|
|
1609
|
-
"""
|
|
3011
|
+
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
|
|
3012
|
+
"""assistants_service_update_conversation_message_like # noqa: E501
|
|
1610
3013
|
|
|
1611
3014
|
This method makes a synchronous HTTP request by default. To make an
|
|
1612
3015
|
asynchronous HTTP request, please pass async_req=True
|
|
1613
|
-
>>> thread = api.
|
|
3016
|
+
>>> thread = api.assistants_service_update_conversation_message_like_with_http_info(body, project_id, assistant_id, conversation_id, id, async_req=True)
|
|
1614
3017
|
>>> result = thread.get()
|
|
1615
3018
|
|
|
1616
3019
|
:param async_req bool
|
|
1617
|
-
:param
|
|
3020
|
+
:param MessagesIdBody body: (required)
|
|
3021
|
+
:param str project_id: (required)
|
|
1618
3022
|
:param str assistant_id: (required)
|
|
3023
|
+
:param str conversation_id: (required)
|
|
1619
3024
|
:param str id: (required)
|
|
1620
|
-
:return:
|
|
3025
|
+
:return: V1UpdateConversationMessageLikeResponse
|
|
1621
3026
|
If the method is called asynchronously,
|
|
1622
3027
|
returns the request thread.
|
|
1623
3028
|
"""
|
|
1624
3029
|
|
|
1625
|
-
all_params = ['body', 'assistant_id', 'id'] # noqa: E501
|
|
3030
|
+
all_params = ['body', 'project_id', 'assistant_id', 'conversation_id', 'id'] # noqa: E501
|
|
1626
3031
|
all_params.append('async_req')
|
|
1627
3032
|
all_params.append('_return_http_data_only')
|
|
1628
3033
|
all_params.append('_preload_content')
|
|
@@ -1633,28 +3038,40 @@ class AssistantsServiceApi(object):
|
|
|
1633
3038
|
if key not in all_params:
|
|
1634
3039
|
raise TypeError(
|
|
1635
3040
|
"Got an unexpected keyword argument '%s'"
|
|
1636
|
-
" to method
|
|
3041
|
+
" to method assistants_service_update_conversation_message_like" % key
|
|
1637
3042
|
)
|
|
1638
3043
|
params[key] = val
|
|
1639
3044
|
del params['kwargs']
|
|
1640
3045
|
# verify the required parameter 'body' is set
|
|
1641
3046
|
if ('body' not in params or
|
|
1642
3047
|
params['body'] is None):
|
|
1643
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
3048
|
+
raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_conversation_message_like`") # noqa: E501
|
|
3049
|
+
# verify the required parameter 'project_id' is set
|
|
3050
|
+
if ('project_id' not in params or
|
|
3051
|
+
params['project_id'] is None):
|
|
3052
|
+
raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_conversation_message_like`") # noqa: E501
|
|
1644
3053
|
# verify the required parameter 'assistant_id' is set
|
|
1645
3054
|
if ('assistant_id' not in params or
|
|
1646
3055
|
params['assistant_id'] is None):
|
|
1647
|
-
raise ValueError("Missing the required parameter `assistant_id` when calling `
|
|
3056
|
+
raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_update_conversation_message_like`") # noqa: E501
|
|
3057
|
+
# verify the required parameter 'conversation_id' is set
|
|
3058
|
+
if ('conversation_id' not in params or
|
|
3059
|
+
params['conversation_id'] is None):
|
|
3060
|
+
raise ValueError("Missing the required parameter `conversation_id` when calling `assistants_service_update_conversation_message_like`") # noqa: E501
|
|
1648
3061
|
# verify the required parameter 'id' is set
|
|
1649
3062
|
if ('id' not in params or
|
|
1650
3063
|
params['id'] is None):
|
|
1651
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
3064
|
+
raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_conversation_message_like`") # noqa: E501
|
|
1652
3065
|
|
|
1653
3066
|
collection_formats = {}
|
|
1654
3067
|
|
|
1655
3068
|
path_params = {}
|
|
3069
|
+
if 'project_id' in params:
|
|
3070
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1656
3071
|
if 'assistant_id' in params:
|
|
1657
3072
|
path_params['assistantId'] = params['assistant_id'] # noqa: E501
|
|
3073
|
+
if 'conversation_id' in params:
|
|
3074
|
+
path_params['conversationId'] = params['conversation_id'] # noqa: E501
|
|
1658
3075
|
if 'id' in params:
|
|
1659
3076
|
path_params['id'] = params['id'] # noqa: E501
|
|
1660
3077
|
|
|
@@ -1680,14 +3097,14 @@ class AssistantsServiceApi(object):
|
|
|
1680
3097
|
auth_settings = [] # noqa: E501
|
|
1681
3098
|
|
|
1682
3099
|
return self.api_client.call_api(
|
|
1683
|
-
'/v1/agents/{assistantId}/conversations/{id}', 'PUT',
|
|
3100
|
+
'/v1/projects/{projectId}/agents/{assistantId}/conversations/{conversationId}/messages/{id}', 'PUT',
|
|
1684
3101
|
path_params,
|
|
1685
3102
|
query_params,
|
|
1686
3103
|
header_params,
|
|
1687
3104
|
body=body_params,
|
|
1688
3105
|
post_params=form_params,
|
|
1689
3106
|
files=local_var_files,
|
|
1690
|
-
response_type='
|
|
3107
|
+
response_type='V1UpdateConversationMessageLikeResponse', # noqa: E501
|
|
1691
3108
|
auth_settings=auth_settings,
|
|
1692
3109
|
async_req=params.get('async_req'),
|
|
1693
3110
|
_return_http_data_only=params.get('_return_http_data_only'),
|