oci 2.125.1__py3-none-any.whl → 2.125.3__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.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +134 -43
- oci/ai_language/models/__init__.py +24 -0
- oci/ai_language/models/assertion_details.py +165 -0
- oci/ai_language/models/batch_detect_health_entity_details.py +223 -0
- oci/ai_language/models/batch_detect_health_entity_result.py +103 -0
- oci/ai_language/models/batch_detect_language_pii_entities_details.py +29 -2
- oci/ai_language/models/health_entity.py +351 -0
- oci/ai_language/models/health_entity_document_result.py +200 -0
- oci/ai_language/models/input_location.py +2 -1
- oci/ai_language/models/mel_concept.py +103 -0
- oci/ai_language/models/mel_concept_details.py +165 -0
- oci/ai_language/models/model_details.py +11 -3
- oci/ai_language/models/named_entity_recognition_model_details.py +1 -1
- oci/ai_language/models/pii_entity.py +118 -7
- oci/ai_language/models/pii_model_details.py +91 -0
- oci/ai_language/models/pre_trained_health_nlu_model_details.py +1 -1
- oci/ai_language/models/pre_trained_key_phrase_extraction_model_details.py +1 -1
- oci/ai_language/models/pre_trained_language_detection_model_details.py +1 -1
- oci/ai_language/models/pre_trained_named_entity_recognition_model_details.py +1 -1
- oci/ai_language/models/pre_trained_pii_model_details.py +1 -1
- oci/ai_language/models/pre_trained_sentiment_analysis_model_details.py +1 -1
- oci/ai_language/models/pre_trained_summarization.py +1 -1
- oci/ai_language/models/pre_trained_text_classification_model_details.py +1 -1
- oci/ai_language/models/pre_trained_universal_model.py +1 -1
- oci/ai_language/models/profile.py +134 -0
- oci/ai_language/models/relation_entity.py +196 -0
- oci/ai_language/models/resolved_entities.py +72 -0
- oci/ai_language/models/resolved_entity.py +227 -0
- oci/ai_language/models/text_classification_model_details.py +1 -1
- oci/ai_speech/ai_service_speech_client.py +10 -10
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +8 -8
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/application_migration/application_migration_client.py +36 -36
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +51 -51
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +19 -19
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +99 -99
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +242 -242
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +148 -148
- oci/data_flow/data_flow_client.py +52 -46
- oci/data_flow/models/sql_endpoint.py +42 -3
- oci/data_flow/models/sql_endpoint_summary.py +11 -3
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +272 -272
- oci/data_science/data_science_client.py +91 -91
- oci/data_science/models/instance_configuration.py +37 -2
- oci/database/database_client.py +1224 -537
- oci/database/database_client_composite_operations.py +204 -0
- oci/database/models/__init__.py +12 -0
- oci/database/models/autonomous_container_database.py +31 -0
- oci/database/models/autonomous_container_database_summary.py +31 -0
- oci/database/models/autonomous_database_software_image.py +489 -0
- oci/database/models/autonomous_database_software_image_collection.py +72 -0
- oci/database/models/autonomous_database_software_image_summary.py +437 -0
- oci/database/models/change_autonomous_database_software_image_compartment_details.py +76 -0
- oci/database/models/create_autonomous_container_database_details.py +35 -0
- oci/database/models/create_autonomous_database_software_image_details.py +267 -0
- oci/database/models/maintenance_window.py +33 -2
- oci/database/models/update_autonomous_database_software_image_details.py +119 -0
- oci/database_management/db_management_client.py +194 -194
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_migration/models/aws_s3_data_transfer_medium_details.py +29 -2
- oci/database_migration/models/data_transfer_medium_details_v2.py +1 -1
- oci/database_migration/models/nfs_data_transfer_medium_details.py +29 -2
- oci/database_tools/database_tools_client.py +23 -23
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +26 -26
- oci/email_data_plane/email_dp_client.py +2 -2
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +39 -39
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +24 -24
- oci/generative_ai/models/dataset.py +1 -1
- oci/generative_ai/models/dedicated_ai_cluster.py +34 -3
- oci/generative_ai/models/endpoint.py +27 -0
- oci/generative_ai/models/model.py +34 -3
- oci/generative_ai/models/model_summary.py +7 -3
- oci/generative_ai_inference/generative_ai_inference_client.py +101 -3
- oci/generative_ai_inference/models/__init__.py +30 -0
- oci/generative_ai_inference/models/base_chat_request.py +109 -0
- oci/generative_ai_inference/models/base_chat_response.py +109 -0
- oci/generative_ai_inference/models/chat_choice.py +161 -0
- oci/generative_ai_inference/models/chat_content.py +101 -0
- oci/generative_ai_inference/models/chat_details.py +126 -0
- oci/generative_ai_inference/models/chat_result.py +130 -0
- oci/generative_ai_inference/models/citation.py +165 -0
- oci/generative_ai_inference/models/cohere_chat_request.py +443 -0
- oci/generative_ai_inference/models/cohere_chat_response.py +272 -0
- oci/generative_ai_inference/models/cohere_llm_inference_response.py +1 -1
- oci/generative_ai_inference/models/cohere_message.py +119 -0
- oci/generative_ai_inference/models/embed_text_details.py +2 -2
- oci/generative_ai_inference/models/generic_chat_request.py +474 -0
- oci/generative_ai_inference/models/generic_chat_response.py +113 -0
- oci/generative_ai_inference/models/llama_llm_inference_request.py +2 -2
- oci/generative_ai_inference/models/llama_llm_inference_response.py +1 -1
- oci/generative_ai_inference/models/llm_inference_response.py +11 -3
- oci/generative_ai_inference/models/message.py +103 -0
- oci/generative_ai_inference/models/search_query.py +72 -0
- oci/generative_ai_inference/models/text_content.py +82 -0
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +29 -29
- oci/golden_gate/golden_gate_client.py +61 -61
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +300 -300
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +66 -66
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +23 -23
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +6 -6
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +80 -80
- oci/network_load_balancer/models/__init__.py +2 -0
- oci/network_load_balancer/models/backend_set.py +64 -0
- oci/network_load_balancer/models/backend_set_details.py +64 -0
- oci/network_load_balancer/models/backend_set_summary.py +64 -0
- oci/network_load_balancer/models/create_backend_set_details.py +64 -0
- oci/network_load_balancer/models/dns_health_checker_details.py +264 -0
- oci/network_load_balancer/models/health_checker.py +36 -5
- oci/network_load_balancer/models/health_checker_details.py +36 -5
- oci/network_load_balancer/models/update_backend_set_details.py +64 -0
- oci/network_load_balancer/models/update_health_checker_details.py +36 -5
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/models/opa_instance.py +7 -3
- oci/opa/models/work_request.py +11 -3
- oci/opa/models/work_request_summary.py +11 -3
- oci/opa/opa_instance_client.py +223 -13
- oci/opa/opa_instance_client_composite_operations.py +78 -0
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +175 -175
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/lifecycle_environment_client.py +11 -11
- oci/os_management_hub/managed_instance_client.py +22 -22
- oci/os_management_hub/managed_instance_group_client.py +22 -22
- oci/os_management_hub/management_station_client.py +8 -8
- oci/os_management_hub/onboarding_client.py +5 -5
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +6 -6
- oci/os_management_hub/software_source_client.py +22 -22
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +23 -23
- oci/redis/models/create_redis_cluster_details.py +31 -0
- oci/redis/models/redis_cluster.py +31 -0
- oci/redis/models/redis_cluster_summary.py +31 -0
- oci/redis/models/update_redis_cluster_details.py +31 -0
- oci/redis/redis_cluster_client.py +11 -11
- oci/regions_definitions.py +5 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/models/associated_monitored_resource.py +118 -0
- oci/stack_monitoring/models/associated_resources_summary.py +118 -0
- oci/stack_monitoring/models/create_monitored_resource_type_details.py +118 -0
- oci/stack_monitoring/models/discovery_job_log_summary.py +35 -2
- oci/stack_monitoring/models/import_oci_telemetry_resources_task_details.py +301 -0
- oci/stack_monitoring/models/monitored_resource.py +118 -0
- oci/stack_monitoring/models/monitored_resource_member_summary.py +118 -0
- oci/stack_monitoring/models/monitored_resource_summary.py +118 -0
- oci/stack_monitoring/models/monitored_resource_type.py +118 -0
- oci/stack_monitoring/models/monitored_resource_type_summary.py +118 -0
- oci/stack_monitoring/models/search_monitored_resources_details.py +184 -0
- oci/stack_monitoring/models/update_monitored_resource_type_details.py +118 -0
- oci/stack_monitoring/stack_monitoring_client.py +79 -65
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/models/__init__.py +12 -0
- oci/usage_api/models/create_email_recipients_group_details.py +103 -0
- oci/usage_api/models/email_recipient.py +181 -0
- oci/usage_api/models/email_recipients_group.py +181 -0
- oci/usage_api/models/email_recipients_group_collection.py +72 -0
- oci/usage_api/models/email_recipients_group_summary.py +272 -0
- oci/usage_api/models/update_email_recipients_group_details.py +72 -0
- oci/usage_api/usageapi_client.py +656 -34
- oci/usage_api/usageapi_client_composite_operations.py +96 -0
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/METADATA +1 -1
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/RECORD +358 -318
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/LICENSE.txt +0 -0
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/WHEEL +0 -0
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,126 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class ChatDetails(object):
|
14
|
+
"""
|
15
|
+
Details of the conversation for the model to respond.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new ChatDetails object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param compartment_id:
|
24
|
+
The value to assign to the compartment_id property of this ChatDetails.
|
25
|
+
:type compartment_id: str
|
26
|
+
|
27
|
+
:param serving_mode:
|
28
|
+
The value to assign to the serving_mode property of this ChatDetails.
|
29
|
+
:type serving_mode: oci.generative_ai_inference.models.ServingMode
|
30
|
+
|
31
|
+
:param chat_request:
|
32
|
+
The value to assign to the chat_request property of this ChatDetails.
|
33
|
+
:type chat_request: oci.generative_ai_inference.models.BaseChatRequest
|
34
|
+
|
35
|
+
"""
|
36
|
+
self.swagger_types = {
|
37
|
+
'compartment_id': 'str',
|
38
|
+
'serving_mode': 'ServingMode',
|
39
|
+
'chat_request': 'BaseChatRequest'
|
40
|
+
}
|
41
|
+
|
42
|
+
self.attribute_map = {
|
43
|
+
'compartment_id': 'compartmentId',
|
44
|
+
'serving_mode': 'servingMode',
|
45
|
+
'chat_request': 'chatRequest'
|
46
|
+
}
|
47
|
+
|
48
|
+
self._compartment_id = None
|
49
|
+
self._serving_mode = None
|
50
|
+
self._chat_request = None
|
51
|
+
|
52
|
+
@property
|
53
|
+
def compartment_id(self):
|
54
|
+
"""
|
55
|
+
**[Required]** Gets the compartment_id of this ChatDetails.
|
56
|
+
The OCID of compartment that the user is authorized to use to call into the Generative AI service.
|
57
|
+
|
58
|
+
|
59
|
+
:return: The compartment_id of this ChatDetails.
|
60
|
+
:rtype: str
|
61
|
+
"""
|
62
|
+
return self._compartment_id
|
63
|
+
|
64
|
+
@compartment_id.setter
|
65
|
+
def compartment_id(self, compartment_id):
|
66
|
+
"""
|
67
|
+
Sets the compartment_id of this ChatDetails.
|
68
|
+
The OCID of compartment that the user is authorized to use to call into the Generative AI service.
|
69
|
+
|
70
|
+
|
71
|
+
:param compartment_id: The compartment_id of this ChatDetails.
|
72
|
+
:type: str
|
73
|
+
"""
|
74
|
+
self._compartment_id = compartment_id
|
75
|
+
|
76
|
+
@property
|
77
|
+
def serving_mode(self):
|
78
|
+
"""
|
79
|
+
**[Required]** Gets the serving_mode of this ChatDetails.
|
80
|
+
|
81
|
+
:return: The serving_mode of this ChatDetails.
|
82
|
+
:rtype: oci.generative_ai_inference.models.ServingMode
|
83
|
+
"""
|
84
|
+
return self._serving_mode
|
85
|
+
|
86
|
+
@serving_mode.setter
|
87
|
+
def serving_mode(self, serving_mode):
|
88
|
+
"""
|
89
|
+
Sets the serving_mode of this ChatDetails.
|
90
|
+
|
91
|
+
:param serving_mode: The serving_mode of this ChatDetails.
|
92
|
+
:type: oci.generative_ai_inference.models.ServingMode
|
93
|
+
"""
|
94
|
+
self._serving_mode = serving_mode
|
95
|
+
|
96
|
+
@property
|
97
|
+
def chat_request(self):
|
98
|
+
"""
|
99
|
+
Gets the chat_request of this ChatDetails.
|
100
|
+
|
101
|
+
:return: The chat_request of this ChatDetails.
|
102
|
+
:rtype: oci.generative_ai_inference.models.BaseChatRequest
|
103
|
+
"""
|
104
|
+
return self._chat_request
|
105
|
+
|
106
|
+
@chat_request.setter
|
107
|
+
def chat_request(self, chat_request):
|
108
|
+
"""
|
109
|
+
Sets the chat_request of this ChatDetails.
|
110
|
+
|
111
|
+
:param chat_request: The chat_request of this ChatDetails.
|
112
|
+
:type: oci.generative_ai_inference.models.BaseChatRequest
|
113
|
+
"""
|
114
|
+
self._chat_request = chat_request
|
115
|
+
|
116
|
+
def __repr__(self):
|
117
|
+
return formatted_flat_dict(self)
|
118
|
+
|
119
|
+
def __eq__(self, other):
|
120
|
+
if other is None:
|
121
|
+
return False
|
122
|
+
|
123
|
+
return self.__dict__ == other.__dict__
|
124
|
+
|
125
|
+
def __ne__(self, other):
|
126
|
+
return not self == other
|
@@ -0,0 +1,130 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class ChatResult(object):
|
14
|
+
"""
|
15
|
+
The response to the chat conversation.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new ChatResult object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param model_id:
|
24
|
+
The value to assign to the model_id property of this ChatResult.
|
25
|
+
:type model_id: str
|
26
|
+
|
27
|
+
:param model_version:
|
28
|
+
The value to assign to the model_version property of this ChatResult.
|
29
|
+
:type model_version: str
|
30
|
+
|
31
|
+
:param chat_response:
|
32
|
+
The value to assign to the chat_response property of this ChatResult.
|
33
|
+
:type chat_response: oci.generative_ai_inference.models.BaseChatResponse
|
34
|
+
|
35
|
+
"""
|
36
|
+
self.swagger_types = {
|
37
|
+
'model_id': 'str',
|
38
|
+
'model_version': 'str',
|
39
|
+
'chat_response': 'BaseChatResponse'
|
40
|
+
}
|
41
|
+
|
42
|
+
self.attribute_map = {
|
43
|
+
'model_id': 'modelId',
|
44
|
+
'model_version': 'modelVersion',
|
45
|
+
'chat_response': 'chatResponse'
|
46
|
+
}
|
47
|
+
|
48
|
+
self._model_id = None
|
49
|
+
self._model_version = None
|
50
|
+
self._chat_response = None
|
51
|
+
|
52
|
+
@property
|
53
|
+
def model_id(self):
|
54
|
+
"""
|
55
|
+
**[Required]** Gets the model_id of this ChatResult.
|
56
|
+
The OCID of the model used in this inference request.
|
57
|
+
|
58
|
+
|
59
|
+
:return: The model_id of this ChatResult.
|
60
|
+
:rtype: str
|
61
|
+
"""
|
62
|
+
return self._model_id
|
63
|
+
|
64
|
+
@model_id.setter
|
65
|
+
def model_id(self, model_id):
|
66
|
+
"""
|
67
|
+
Sets the model_id of this ChatResult.
|
68
|
+
The OCID of the model used in this inference request.
|
69
|
+
|
70
|
+
|
71
|
+
:param model_id: The model_id of this ChatResult.
|
72
|
+
:type: str
|
73
|
+
"""
|
74
|
+
self._model_id = model_id
|
75
|
+
|
76
|
+
@property
|
77
|
+
def model_version(self):
|
78
|
+
"""
|
79
|
+
**[Required]** Gets the model_version of this ChatResult.
|
80
|
+
The version of the model.
|
81
|
+
|
82
|
+
|
83
|
+
:return: The model_version of this ChatResult.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._model_version
|
87
|
+
|
88
|
+
@model_version.setter
|
89
|
+
def model_version(self, model_version):
|
90
|
+
"""
|
91
|
+
Sets the model_version of this ChatResult.
|
92
|
+
The version of the model.
|
93
|
+
|
94
|
+
|
95
|
+
:param model_version: The model_version of this ChatResult.
|
96
|
+
:type: str
|
97
|
+
"""
|
98
|
+
self._model_version = model_version
|
99
|
+
|
100
|
+
@property
|
101
|
+
def chat_response(self):
|
102
|
+
"""
|
103
|
+
**[Required]** Gets the chat_response of this ChatResult.
|
104
|
+
|
105
|
+
:return: The chat_response of this ChatResult.
|
106
|
+
:rtype: oci.generative_ai_inference.models.BaseChatResponse
|
107
|
+
"""
|
108
|
+
return self._chat_response
|
109
|
+
|
110
|
+
@chat_response.setter
|
111
|
+
def chat_response(self, chat_response):
|
112
|
+
"""
|
113
|
+
Sets the chat_response of this ChatResult.
|
114
|
+
|
115
|
+
:param chat_response: The chat_response of this ChatResult.
|
116
|
+
:type: oci.generative_ai_inference.models.BaseChatResponse
|
117
|
+
"""
|
118
|
+
self._chat_response = chat_response
|
119
|
+
|
120
|
+
def __repr__(self):
|
121
|
+
return formatted_flat_dict(self)
|
122
|
+
|
123
|
+
def __eq__(self, other):
|
124
|
+
if other is None:
|
125
|
+
return False
|
126
|
+
|
127
|
+
return self.__dict__ == other.__dict__
|
128
|
+
|
129
|
+
def __ne__(self, other):
|
130
|
+
return not self == other
|
@@ -0,0 +1,165 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class Citation(object):
|
14
|
+
"""
|
15
|
+
A section of the generated reply which cites external knowledge.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new Citation object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param start:
|
24
|
+
The value to assign to the start property of this Citation.
|
25
|
+
:type start: int
|
26
|
+
|
27
|
+
:param end:
|
28
|
+
The value to assign to the end property of this Citation.
|
29
|
+
:type end: int
|
30
|
+
|
31
|
+
:param text:
|
32
|
+
The value to assign to the text property of this Citation.
|
33
|
+
:type text: str
|
34
|
+
|
35
|
+
:param document_ids:
|
36
|
+
The value to assign to the document_ids property of this Citation.
|
37
|
+
:type document_ids: list[str]
|
38
|
+
|
39
|
+
"""
|
40
|
+
self.swagger_types = {
|
41
|
+
'start': 'int',
|
42
|
+
'end': 'int',
|
43
|
+
'text': 'str',
|
44
|
+
'document_ids': 'list[str]'
|
45
|
+
}
|
46
|
+
|
47
|
+
self.attribute_map = {
|
48
|
+
'start': 'start',
|
49
|
+
'end': 'end',
|
50
|
+
'text': 'text',
|
51
|
+
'document_ids': 'documentIds'
|
52
|
+
}
|
53
|
+
|
54
|
+
self._start = None
|
55
|
+
self._end = None
|
56
|
+
self._text = None
|
57
|
+
self._document_ids = None
|
58
|
+
|
59
|
+
@property
|
60
|
+
def start(self):
|
61
|
+
"""
|
62
|
+
**[Required]** Gets the start of this Citation.
|
63
|
+
The index of text that the citation starts at, counting from zero.
|
64
|
+
|
65
|
+
|
66
|
+
:return: The start of this Citation.
|
67
|
+
:rtype: int
|
68
|
+
"""
|
69
|
+
return self._start
|
70
|
+
|
71
|
+
@start.setter
|
72
|
+
def start(self, start):
|
73
|
+
"""
|
74
|
+
Sets the start of this Citation.
|
75
|
+
The index of text that the citation starts at, counting from zero.
|
76
|
+
|
77
|
+
|
78
|
+
:param start: The start of this Citation.
|
79
|
+
:type: int
|
80
|
+
"""
|
81
|
+
self._start = start
|
82
|
+
|
83
|
+
@property
|
84
|
+
def end(self):
|
85
|
+
"""
|
86
|
+
**[Required]** Gets the end of this Citation.
|
87
|
+
The index of text that the citation ends after, counting from zero.
|
88
|
+
|
89
|
+
|
90
|
+
:return: The end of this Citation.
|
91
|
+
:rtype: int
|
92
|
+
"""
|
93
|
+
return self._end
|
94
|
+
|
95
|
+
@end.setter
|
96
|
+
def end(self, end):
|
97
|
+
"""
|
98
|
+
Sets the end of this Citation.
|
99
|
+
The index of text that the citation ends after, counting from zero.
|
100
|
+
|
101
|
+
|
102
|
+
:param end: The end of this Citation.
|
103
|
+
:type: int
|
104
|
+
"""
|
105
|
+
self._end = end
|
106
|
+
|
107
|
+
@property
|
108
|
+
def text(self):
|
109
|
+
"""
|
110
|
+
**[Required]** Gets the text of this Citation.
|
111
|
+
The text of the citation
|
112
|
+
|
113
|
+
|
114
|
+
:return: The text of this Citation.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._text
|
118
|
+
|
119
|
+
@text.setter
|
120
|
+
def text(self, text):
|
121
|
+
"""
|
122
|
+
Sets the text of this Citation.
|
123
|
+
The text of the citation
|
124
|
+
|
125
|
+
|
126
|
+
:param text: The text of this Citation.
|
127
|
+
:type: str
|
128
|
+
"""
|
129
|
+
self._text = text
|
130
|
+
|
131
|
+
@property
|
132
|
+
def document_ids(self):
|
133
|
+
"""
|
134
|
+
**[Required]** Gets the document_ids of this Citation.
|
135
|
+
Identifiers of documents cited by this section of the generated reply.
|
136
|
+
|
137
|
+
|
138
|
+
:return: The document_ids of this Citation.
|
139
|
+
:rtype: list[str]
|
140
|
+
"""
|
141
|
+
return self._document_ids
|
142
|
+
|
143
|
+
@document_ids.setter
|
144
|
+
def document_ids(self, document_ids):
|
145
|
+
"""
|
146
|
+
Sets the document_ids of this Citation.
|
147
|
+
Identifiers of documents cited by this section of the generated reply.
|
148
|
+
|
149
|
+
|
150
|
+
:param document_ids: The document_ids of this Citation.
|
151
|
+
:type: list[str]
|
152
|
+
"""
|
153
|
+
self._document_ids = document_ids
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
return formatted_flat_dict(self)
|
157
|
+
|
158
|
+
def __eq__(self, other):
|
159
|
+
if other is None:
|
160
|
+
return False
|
161
|
+
|
162
|
+
return self.__dict__ == other.__dict__
|
163
|
+
|
164
|
+
def __ne__(self, other):
|
165
|
+
return not self == other
|