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.
Files changed (358) hide show
  1. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  2. oci/adm/application_dependency_management_client.py +36 -36
  3. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  4. oci/ai_document/ai_service_document_client.py +22 -22
  5. oci/ai_language/ai_service_language_client.py +134 -43
  6. oci/ai_language/models/__init__.py +24 -0
  7. oci/ai_language/models/assertion_details.py +165 -0
  8. oci/ai_language/models/batch_detect_health_entity_details.py +223 -0
  9. oci/ai_language/models/batch_detect_health_entity_result.py +103 -0
  10. oci/ai_language/models/batch_detect_language_pii_entities_details.py +29 -2
  11. oci/ai_language/models/health_entity.py +351 -0
  12. oci/ai_language/models/health_entity_document_result.py +200 -0
  13. oci/ai_language/models/input_location.py +2 -1
  14. oci/ai_language/models/mel_concept.py +103 -0
  15. oci/ai_language/models/mel_concept_details.py +165 -0
  16. oci/ai_language/models/model_details.py +11 -3
  17. oci/ai_language/models/named_entity_recognition_model_details.py +1 -1
  18. oci/ai_language/models/pii_entity.py +118 -7
  19. oci/ai_language/models/pii_model_details.py +91 -0
  20. oci/ai_language/models/pre_trained_health_nlu_model_details.py +1 -1
  21. oci/ai_language/models/pre_trained_key_phrase_extraction_model_details.py +1 -1
  22. oci/ai_language/models/pre_trained_language_detection_model_details.py +1 -1
  23. oci/ai_language/models/pre_trained_named_entity_recognition_model_details.py +1 -1
  24. oci/ai_language/models/pre_trained_pii_model_details.py +1 -1
  25. oci/ai_language/models/pre_trained_sentiment_analysis_model_details.py +1 -1
  26. oci/ai_language/models/pre_trained_summarization.py +1 -1
  27. oci/ai_language/models/pre_trained_text_classification_model_details.py +1 -1
  28. oci/ai_language/models/pre_trained_universal_model.py +1 -1
  29. oci/ai_language/models/profile.py +134 -0
  30. oci/ai_language/models/relation_entity.py +196 -0
  31. oci/ai_language/models/resolved_entities.py +72 -0
  32. oci/ai_language/models/resolved_entity.py +227 -0
  33. oci/ai_language/models/text_classification_model_details.py +1 -1
  34. oci/ai_speech/ai_service_speech_client.py +10 -10
  35. oci/ai_vision/ai_service_vision_client.py +25 -25
  36. oci/analytics/analytics_client.py +23 -23
  37. oci/announcements_service/announcement_client.py +4 -4
  38. oci/announcements_service/announcement_subscription_client.py +9 -9
  39. oci/announcements_service/announcements_preferences_client.py +4 -4
  40. oci/apigateway/api_gateway_client.py +21 -21
  41. oci/apigateway/deployment_client.py +6 -6
  42. oci/apigateway/gateway_client.py +6 -6
  43. oci/apigateway/subscribers_client.py +6 -6
  44. oci/apigateway/usage_plans_client.py +6 -6
  45. oci/apigateway/work_requests_client.py +5 -5
  46. oci/apm_config/config_client.py +8 -8
  47. oci/apm_control_plane/apm_domain_client.py +14 -14
  48. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  49. oci/apm_traces/attributes_client.py +8 -8
  50. oci/apm_traces/query_client.py +2 -2
  51. oci/apm_traces/trace_client.py +4 -4
  52. oci/application_migration/application_migration_client.py +36 -36
  53. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  54. oci/artifacts/artifacts_client.py +32 -32
  55. oci/audit/audit_client.py +3 -3
  56. oci/autoscaling/auto_scaling_client.py +11 -11
  57. oci/bastion/bastion_client.py +15 -15
  58. oci/bds/bds_client.py +51 -51
  59. oci/blockchain/blockchain_platform_client.py +27 -27
  60. oci/budget/budget_client.py +10 -10
  61. oci/capacity_management/capacity_management_client.py +19 -19
  62. oci/certificates/certificates_client.py +5 -5
  63. oci/certificates_management/certificates_management_client.py +32 -32
  64. oci/cims/incident_client.py +8 -8
  65. oci/cims/user_client.py +1 -1
  66. oci/cloud_bridge/common_client.py +5 -5
  67. oci/cloud_bridge/discovery_client.py +14 -14
  68. oci/cloud_bridge/inventory_client.py +16 -16
  69. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  70. oci/cloud_guard/cloud_guard_client.py +133 -133
  71. oci/cloud_migrations/migration_client.py +43 -43
  72. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  73. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  74. oci/compute_instance_agent/plugin_client.py +2 -2
  75. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  76. oci/container_engine/container_engine_client.py +44 -44
  77. oci/container_instances/container_instance_client.py +18 -18
  78. oci/core/blockstorage_client.py +60 -60
  79. oci/core/compute_client.py +99 -99
  80. oci/core/compute_management_client.py +32 -32
  81. oci/core/virtual_network_client.py +242 -242
  82. oci/dashboard_service/dashboard_client.py +6 -6
  83. oci/dashboard_service/dashboard_group_client.py +6 -6
  84. oci/data_catalog/data_catalog_client.py +148 -148
  85. oci/data_flow/data_flow_client.py +52 -46
  86. oci/data_flow/models/sql_endpoint.py +42 -3
  87. oci/data_flow/models/sql_endpoint_summary.py +11 -3
  88. oci/data_integration/data_integration_client.py +163 -163
  89. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  90. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  91. oci/data_safe/data_safe_client.py +272 -272
  92. oci/data_science/data_science_client.py +91 -91
  93. oci/data_science/models/instance_configuration.py +37 -2
  94. oci/database/database_client.py +1224 -537
  95. oci/database/database_client_composite_operations.py +204 -0
  96. oci/database/models/__init__.py +12 -0
  97. oci/database/models/autonomous_container_database.py +31 -0
  98. oci/database/models/autonomous_container_database_summary.py +31 -0
  99. oci/database/models/autonomous_database_software_image.py +489 -0
  100. oci/database/models/autonomous_database_software_image_collection.py +72 -0
  101. oci/database/models/autonomous_database_software_image_summary.py +437 -0
  102. oci/database/models/change_autonomous_database_software_image_compartment_details.py +76 -0
  103. oci/database/models/create_autonomous_container_database_details.py +35 -0
  104. oci/database/models/create_autonomous_database_software_image_details.py +267 -0
  105. oci/database/models/maintenance_window.py +33 -2
  106. oci/database/models/update_autonomous_database_software_image_details.py +119 -0
  107. oci/database_management/db_management_client.py +194 -194
  108. oci/database_management/diagnosability_client.py +4 -4
  109. oci/database_management/managed_my_sql_databases_client.py +7 -7
  110. oci/database_management/perfhub_client.py +1 -1
  111. oci/database_management/sql_tuning_client.py +17 -17
  112. oci/database_migration/database_migration_client.py +41 -41
  113. oci/database_migration/models/aws_s3_data_transfer_medium_details.py +29 -2
  114. oci/database_migration/models/data_transfer_medium_details_v2.py +1 -1
  115. oci/database_migration/models/nfs_data_transfer_medium_details.py +29 -2
  116. oci/database_tools/database_tools_client.py +23 -23
  117. oci/desktops/desktop_service_client.py +21 -21
  118. oci/devops/devops_client.py +89 -89
  119. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  120. oci/dns/dns_client.py +52 -52
  121. oci/dts/appliance_export_job_client.py +6 -6
  122. oci/dts/shipping_vendors_client.py +1 -1
  123. oci/dts/transfer_appliance_client.py +8 -8
  124. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  125. oci/dts/transfer_device_client.py +5 -5
  126. oci/dts/transfer_job_client.py +6 -6
  127. oci/dts/transfer_package_client.py +7 -7
  128. oci/em_warehouse/em_data_lake_client.py +13 -13
  129. oci/em_warehouse/em_warehouse_client.py +13 -13
  130. oci/email/email_client.py +26 -26
  131. oci/email_data_plane/email_dp_client.py +2 -2
  132. oci/events/events_client.py +6 -6
  133. oci/file_storage/file_storage_client.py +50 -50
  134. oci/fleet_software_update/fleet_software_update_client.py +44 -44
  135. oci/functions/functions_invoke_client.py +1 -1
  136. oci/functions/functions_management_client.py +16 -16
  137. oci/fusion_apps/data_masking_activity_client.py +3 -3
  138. oci/fusion_apps/fusion_applications_client.py +39 -39
  139. oci/fusion_apps/fusion_environment_client.py +15 -15
  140. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  141. oci/fusion_apps/refresh_activity_client.py +4 -4
  142. oci/fusion_apps/scheduled_activity_client.py +2 -2
  143. oci/fusion_apps/service_attachment_client.py +2 -2
  144. oci/generative_ai/generative_ai_client.py +24 -24
  145. oci/generative_ai/models/dataset.py +1 -1
  146. oci/generative_ai/models/dedicated_ai_cluster.py +34 -3
  147. oci/generative_ai/models/endpoint.py +27 -0
  148. oci/generative_ai/models/model.py +34 -3
  149. oci/generative_ai/models/model_summary.py +7 -3
  150. oci/generative_ai_inference/generative_ai_inference_client.py +101 -3
  151. oci/generative_ai_inference/models/__init__.py +30 -0
  152. oci/generative_ai_inference/models/base_chat_request.py +109 -0
  153. oci/generative_ai_inference/models/base_chat_response.py +109 -0
  154. oci/generative_ai_inference/models/chat_choice.py +161 -0
  155. oci/generative_ai_inference/models/chat_content.py +101 -0
  156. oci/generative_ai_inference/models/chat_details.py +126 -0
  157. oci/generative_ai_inference/models/chat_result.py +130 -0
  158. oci/generative_ai_inference/models/citation.py +165 -0
  159. oci/generative_ai_inference/models/cohere_chat_request.py +443 -0
  160. oci/generative_ai_inference/models/cohere_chat_response.py +272 -0
  161. oci/generative_ai_inference/models/cohere_llm_inference_response.py +1 -1
  162. oci/generative_ai_inference/models/cohere_message.py +119 -0
  163. oci/generative_ai_inference/models/embed_text_details.py +2 -2
  164. oci/generative_ai_inference/models/generic_chat_request.py +474 -0
  165. oci/generative_ai_inference/models/generic_chat_response.py +113 -0
  166. oci/generative_ai_inference/models/llama_llm_inference_request.py +2 -2
  167. oci/generative_ai_inference/models/llama_llm_inference_response.py +1 -1
  168. oci/generative_ai_inference/models/llm_inference_response.py +11 -3
  169. oci/generative_ai_inference/models/message.py +103 -0
  170. oci/generative_ai_inference/models/search_query.py +72 -0
  171. oci/generative_ai_inference/models/text_content.py +82 -0
  172. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  173. oci/globally_distributed_database/sharded_database_service_client.py +29 -29
  174. oci/golden_gate/golden_gate_client.py +61 -61
  175. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  176. oci/governance_rules_control_plane/work_request_client.py +5 -5
  177. oci/healthchecks/health_checks_client.py +17 -17
  178. oci/identity/identity_client.py +145 -145
  179. oci/identity_data_plane/dataplane_client.py +2 -2
  180. oci/identity_domains/identity_domains_client.py +300 -300
  181. oci/integration/integration_instance_client.py +15 -15
  182. oci/jms/java_management_service_client.py +66 -66
  183. oci/jms_java_downloads/java_download_client.py +25 -25
  184. oci/key_management/ekm_client.py +5 -5
  185. oci/key_management/kms_crypto_client.py +6 -6
  186. oci/key_management/kms_hsm_cluster_client.py +12 -12
  187. oci/key_management/kms_management_client.py +21 -21
  188. oci/key_management/kms_vault_client.py +14 -14
  189. oci/license_manager/license_manager_client.py +18 -18
  190. oci/limits/limits_client.py +4 -4
  191. oci/limits/quotas_client.py +7 -7
  192. oci/load_balancer/load_balancer_client.py +61 -61
  193. oci/lockbox/lockbox_client.py +23 -23
  194. oci/log_analytics/log_analytics_client.py +193 -193
  195. oci/logging/logging_management_client.py +30 -30
  196. oci/loggingingestion/logging_client.py +1 -1
  197. oci/loggingsearch/log_search_client.py +1 -1
  198. oci/management_agent/management_agent_client.py +28 -28
  199. oci/management_dashboard/dashx_apis_client.py +14 -14
  200. oci/marketplace/account_client.py +2 -2
  201. oci/marketplace/marketplace_client.py +30 -30
  202. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  203. oci/media_services/media_services_client.py +60 -60
  204. oci/media_services/media_stream_client.py +2 -2
  205. oci/monitoring/monitoring_client.py +18 -18
  206. oci/mysql/channels_client.py +7 -7
  207. oci/mysql/db_backups_client.py +6 -6
  208. oci/mysql/db_system_client.py +17 -17
  209. oci/mysql/mysqlaas_client.py +7 -7
  210. oci/mysql/replicas_client.py +5 -5
  211. oci/mysql/work_requests_client.py +4 -4
  212. oci/network_firewall/network_firewall_client.py +80 -80
  213. oci/network_load_balancer/models/__init__.py +2 -0
  214. oci/network_load_balancer/models/backend_set.py +64 -0
  215. oci/network_load_balancer/models/backend_set_details.py +64 -0
  216. oci/network_load_balancer/models/backend_set_summary.py +64 -0
  217. oci/network_load_balancer/models/create_backend_set_details.py +64 -0
  218. oci/network_load_balancer/models/dns_health_checker_details.py +264 -0
  219. oci/network_load_balancer/models/health_checker.py +36 -5
  220. oci/network_load_balancer/models/health_checker_details.py +36 -5
  221. oci/network_load_balancer/models/update_backend_set_details.py +64 -0
  222. oci/network_load_balancer/models/update_health_checker_details.py +36 -5
  223. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  224. oci/nosql/nosql_client.py +24 -24
  225. oci/object_storage/object_storage_client.py +50 -50
  226. oci/oce/oce_instance_client.py +10 -10
  227. oci/oci_control_center/occ_metrics_client.py +3 -3
  228. oci/ocvp/cluster_client.py +5 -5
  229. oci/ocvp/esxi_host_client.py +8 -8
  230. oci/ocvp/sddc_client.py +14 -14
  231. oci/ocvp/work_request_client.py +4 -4
  232. oci/oda/management_client.py +59 -59
  233. oci/oda/oda_client.py +17 -17
  234. oci/oda/odapackage_client.py +7 -7
  235. oci/onesubscription/billing_schedule_client.py +1 -1
  236. oci/onesubscription/commitment_client.py +2 -2
  237. oci/onesubscription/computed_usage_client.py +3 -3
  238. oci/onesubscription/invoice_summary_client.py +2 -2
  239. oci/onesubscription/organization_subscription_client.py +1 -1
  240. oci/onesubscription/ratecard_client.py +1 -1
  241. oci/onesubscription/subscribed_service_client.py +2 -2
  242. oci/onesubscription/subscription_client.py +1 -1
  243. oci/ons/notification_control_plane_client.py +6 -6
  244. oci/ons/notification_data_plane_client.py +10 -10
  245. oci/opa/models/opa_instance.py +7 -3
  246. oci/opa/models/work_request.py +11 -3
  247. oci/opa/models/work_request_summary.py +11 -3
  248. oci/opa/opa_instance_client.py +223 -13
  249. oci/opa/opa_instance_client_composite_operations.py +78 -0
  250. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  251. oci/opensearch/opensearch_cluster_client.py +14 -14
  252. oci/operator_access_control/access_requests_client.py +10 -10
  253. oci/operator_access_control/operator_actions_client.py +2 -2
  254. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  255. oci/operator_access_control/operator_control_client.py +6 -6
  256. oci/opsi/operations_insights_client.py +175 -175
  257. oci/optimizer/optimizer_client.py +26 -26
  258. oci/os_management/event_client.py +8 -8
  259. oci/os_management/os_management_client.py +69 -69
  260. oci/os_management_hub/lifecycle_environment_client.py +11 -11
  261. oci/os_management_hub/managed_instance_client.py +22 -22
  262. oci/os_management_hub/managed_instance_group_client.py +22 -22
  263. oci/os_management_hub/management_station_client.py +8 -8
  264. oci/os_management_hub/onboarding_client.py +5 -5
  265. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  266. oci/os_management_hub/scheduled_job_client.py +6 -6
  267. oci/os_management_hub/software_source_client.py +22 -22
  268. oci/os_management_hub/work_request_client.py +4 -4
  269. oci/osp_gateway/address_rule_service_client.py +1 -1
  270. oci/osp_gateway/address_service_client.py +2 -2
  271. oci/osp_gateway/invoice_service_client.py +5 -5
  272. oci/osp_gateway/subscription_service_client.py +5 -5
  273. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  274. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  275. oci/osub_subscription/commitment_client.py +2 -2
  276. oci/osub_subscription/ratecard_client.py +1 -1
  277. oci/osub_subscription/subscription_client.py +1 -1
  278. oci/osub_usage/computed_usage_client.py +3 -3
  279. oci/psql/postgresql_client.py +33 -33
  280. oci/queue/queue_admin_client.py +11 -11
  281. oci/queue/queue_client.py +8 -8
  282. oci/recovery/database_recovery_client.py +23 -23
  283. oci/redis/models/create_redis_cluster_details.py +31 -0
  284. oci/redis/models/redis_cluster.py +31 -0
  285. oci/redis/models/redis_cluster_summary.py +31 -0
  286. oci/redis/models/update_redis_cluster_details.py +31 -0
  287. oci/redis/redis_cluster_client.py +11 -11
  288. oci/regions_definitions.py +5 -0
  289. oci/resource_manager/resource_manager_client.py +52 -52
  290. oci/resource_search/resource_search_client.py +3 -3
  291. oci/rover/rover_bundle_client.py +8 -8
  292. oci/rover/rover_cluster_client.py +8 -8
  293. oci/rover/rover_entitlement_client.py +6 -6
  294. oci/rover/rover_node_client.py +15 -15
  295. oci/rover/shape_client.py +1 -1
  296. oci/rover/work_requests_client.py +5 -5
  297. oci/sch/connector_plugins_client.py +2 -2
  298. oci/sch/service_connector_client.py +12 -12
  299. oci/secrets/secrets_client.py +3 -3
  300. oci/service_catalog/service_catalog_client.py +26 -26
  301. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  302. oci/service_mesh/service_mesh_client.py +48 -48
  303. oci/stack_monitoring/models/associated_monitored_resource.py +118 -0
  304. oci/stack_monitoring/models/associated_resources_summary.py +118 -0
  305. oci/stack_monitoring/models/create_monitored_resource_type_details.py +118 -0
  306. oci/stack_monitoring/models/discovery_job_log_summary.py +35 -2
  307. oci/stack_monitoring/models/import_oci_telemetry_resources_task_details.py +301 -0
  308. oci/stack_monitoring/models/monitored_resource.py +118 -0
  309. oci/stack_monitoring/models/monitored_resource_member_summary.py +118 -0
  310. oci/stack_monitoring/models/monitored_resource_summary.py +118 -0
  311. oci/stack_monitoring/models/monitored_resource_type.py +118 -0
  312. oci/stack_monitoring/models/monitored_resource_type_summary.py +118 -0
  313. oci/stack_monitoring/models/search_monitored_resources_details.py +184 -0
  314. oci/stack_monitoring/models/update_monitored_resource_type_details.py +118 -0
  315. oci/stack_monitoring/stack_monitoring_client.py +79 -65
  316. oci/streaming/stream_admin_client.py +18 -18
  317. oci/streaming/stream_client.py +8 -8
  318. oci/tenant_manager_control_plane/domain_client.py +5 -5
  319. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  320. oci/tenant_manager_control_plane/governance_client.py +2 -2
  321. oci/tenant_manager_control_plane/link_client.py +3 -3
  322. oci/tenant_manager_control_plane/orders_client.py +2 -2
  323. oci/tenant_manager_control_plane/organization_client.py +10 -10
  324. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  325. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  326. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  327. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  328. oci/threat_intelligence/threatintel_client.py +5 -5
  329. oci/usage/resources_client.py +2 -2
  330. oci/usage/rewards_client.py +6 -6
  331. oci/usage/usagelimits_client.py +1 -1
  332. oci/usage_api/models/__init__.py +12 -0
  333. oci/usage_api/models/create_email_recipients_group_details.py +103 -0
  334. oci/usage_api/models/email_recipient.py +181 -0
  335. oci/usage_api/models/email_recipients_group.py +181 -0
  336. oci/usage_api/models/email_recipients_group_collection.py +72 -0
  337. oci/usage_api/models/email_recipients_group_summary.py +272 -0
  338. oci/usage_api/models/update_email_recipients_group_details.py +72 -0
  339. oci/usage_api/usageapi_client.py +656 -34
  340. oci/usage_api/usageapi_client_composite_operations.py +96 -0
  341. oci/vault/vaults_client.py +13 -13
  342. oci/vbs_inst/vbs_instance_client.py +10 -10
  343. oci/version.py +1 -1
  344. oci/visual_builder/vb_instance_client.py +13 -13
  345. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  346. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  347. oci/waa/waa_client.py +13 -13
  348. oci/waa/work_request_client.py +4 -4
  349. oci/waas/redirect_client.py +6 -6
  350. oci/waas/waas_client.py +66 -66
  351. oci/waf/waf_client.py +24 -24
  352. oci/work_requests/work_request_client.py +4 -4
  353. {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/METADATA +1 -1
  354. {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/RECORD +358 -318
  355. {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/LICENSE.txt +0 -0
  356. {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  357. {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/WHEEL +0 -0
  358. {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,443 @@
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
+ from .base_chat_request import BaseChatRequest
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 CohereChatRequest(BaseChatRequest):
14
+ """
15
+ Details for the chat request for Cohere models.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new CohereChatRequest object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.CohereChatRequest.api_format` attribute
21
+ of this class is ``COHERE`` and it should not be changed.
22
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
23
+
24
+ :param api_format:
25
+ The value to assign to the api_format property of this CohereChatRequest.
26
+ Allowed values for this property are: "COHERE", "GENERIC"
27
+ :type api_format: str
28
+
29
+ :param message:
30
+ The value to assign to the message property of this CohereChatRequest.
31
+ :type message: str
32
+
33
+ :param chat_history:
34
+ The value to assign to the chat_history property of this CohereChatRequest.
35
+ :type chat_history: list[oci.generative_ai_inference.models.CohereMessage]
36
+
37
+ :param documents:
38
+ The value to assign to the documents property of this CohereChatRequest.
39
+ :type documents: list[object]
40
+
41
+ :param is_search_queries_only:
42
+ The value to assign to the is_search_queries_only property of this CohereChatRequest.
43
+ :type is_search_queries_only: bool
44
+
45
+ :param preamble_override:
46
+ The value to assign to the preamble_override property of this CohereChatRequest.
47
+ :type preamble_override: str
48
+
49
+ :param is_stream:
50
+ The value to assign to the is_stream property of this CohereChatRequest.
51
+ :type is_stream: bool
52
+
53
+ :param max_tokens:
54
+ The value to assign to the max_tokens property of this CohereChatRequest.
55
+ :type max_tokens: int
56
+
57
+ :param temperature:
58
+ The value to assign to the temperature property of this CohereChatRequest.
59
+ :type temperature: float
60
+
61
+ :param top_k:
62
+ The value to assign to the top_k property of this CohereChatRequest.
63
+ :type top_k: int
64
+
65
+ :param top_p:
66
+ The value to assign to the top_p property of this CohereChatRequest.
67
+ :type top_p: float
68
+
69
+ :param frequency_penalty:
70
+ The value to assign to the frequency_penalty property of this CohereChatRequest.
71
+ :type frequency_penalty: float
72
+
73
+ :param presence_penalty:
74
+ The value to assign to the presence_penalty property of this CohereChatRequest.
75
+ :type presence_penalty: float
76
+
77
+ """
78
+ self.swagger_types = {
79
+ 'api_format': 'str',
80
+ 'message': 'str',
81
+ 'chat_history': 'list[CohereMessage]',
82
+ 'documents': 'list[object]',
83
+ 'is_search_queries_only': 'bool',
84
+ 'preamble_override': 'str',
85
+ 'is_stream': 'bool',
86
+ 'max_tokens': 'int',
87
+ 'temperature': 'float',
88
+ 'top_k': 'int',
89
+ 'top_p': 'float',
90
+ 'frequency_penalty': 'float',
91
+ 'presence_penalty': 'float'
92
+ }
93
+
94
+ self.attribute_map = {
95
+ 'api_format': 'apiFormat',
96
+ 'message': 'message',
97
+ 'chat_history': 'chatHistory',
98
+ 'documents': 'documents',
99
+ 'is_search_queries_only': 'isSearchQueriesOnly',
100
+ 'preamble_override': 'preambleOverride',
101
+ 'is_stream': 'isStream',
102
+ 'max_tokens': 'maxTokens',
103
+ 'temperature': 'temperature',
104
+ 'top_k': 'topK',
105
+ 'top_p': 'topP',
106
+ 'frequency_penalty': 'frequencyPenalty',
107
+ 'presence_penalty': 'presencePenalty'
108
+ }
109
+
110
+ self._api_format = None
111
+ self._message = None
112
+ self._chat_history = None
113
+ self._documents = None
114
+ self._is_search_queries_only = None
115
+ self._preamble_override = None
116
+ self._is_stream = None
117
+ self._max_tokens = None
118
+ self._temperature = None
119
+ self._top_k = None
120
+ self._top_p = None
121
+ self._frequency_penalty = None
122
+ self._presence_penalty = None
123
+ self._api_format = 'COHERE'
124
+
125
+ @property
126
+ def message(self):
127
+ """
128
+ **[Required]** Gets the message of this CohereChatRequest.
129
+ Text input for the model to respond to.
130
+
131
+
132
+ :return: The message of this CohereChatRequest.
133
+ :rtype: str
134
+ """
135
+ return self._message
136
+
137
+ @message.setter
138
+ def message(self, message):
139
+ """
140
+ Sets the message of this CohereChatRequest.
141
+ Text input for the model to respond to.
142
+
143
+
144
+ :param message: The message of this CohereChatRequest.
145
+ :type: str
146
+ """
147
+ self._message = message
148
+
149
+ @property
150
+ def chat_history(self):
151
+ """
152
+ Gets the chat_history of this CohereChatRequest.
153
+ A list of previous messages between the user and the model, meant to give the model conversational context for responding to the user's message.
154
+
155
+
156
+ :return: The chat_history of this CohereChatRequest.
157
+ :rtype: list[oci.generative_ai_inference.models.CohereMessage]
158
+ """
159
+ return self._chat_history
160
+
161
+ @chat_history.setter
162
+ def chat_history(self, chat_history):
163
+ """
164
+ Sets the chat_history of this CohereChatRequest.
165
+ A list of previous messages between the user and the model, meant to give the model conversational context for responding to the user's message.
166
+
167
+
168
+ :param chat_history: The chat_history of this CohereChatRequest.
169
+ :type: list[oci.generative_ai_inference.models.CohereMessage]
170
+ """
171
+ self._chat_history = chat_history
172
+
173
+ @property
174
+ def documents(self):
175
+ """
176
+ Gets the documents of this CohereChatRequest.
177
+ list of relevant documents that the model can cite to generate a more accurate reply.
178
+ Some suggested keys are \"text\", \"author\", and \"date\". For better generation quality, it is
179
+ recommended to keep the total word count of the strings in the dictionary to under 300
180
+ words.
181
+
182
+
183
+ :return: The documents of this CohereChatRequest.
184
+ :rtype: list[object]
185
+ """
186
+ return self._documents
187
+
188
+ @documents.setter
189
+ def documents(self, documents):
190
+ """
191
+ Sets the documents of this CohereChatRequest.
192
+ list of relevant documents that the model can cite to generate a more accurate reply.
193
+ Some suggested keys are \"text\", \"author\", and \"date\". For better generation quality, it is
194
+ recommended to keep the total word count of the strings in the dictionary to under 300
195
+ words.
196
+
197
+
198
+ :param documents: The documents of this CohereChatRequest.
199
+ :type: list[object]
200
+ """
201
+ self._documents = documents
202
+
203
+ @property
204
+ def is_search_queries_only(self):
205
+ """
206
+ Gets the is_search_queries_only of this CohereChatRequest.
207
+ When true, the response will only contain a list of generated search queries, but no search will take place, and no reply from the model to the user's message will be generated.
208
+
209
+
210
+ :return: The is_search_queries_only of this CohereChatRequest.
211
+ :rtype: bool
212
+ """
213
+ return self._is_search_queries_only
214
+
215
+ @is_search_queries_only.setter
216
+ def is_search_queries_only(self, is_search_queries_only):
217
+ """
218
+ Sets the is_search_queries_only of this CohereChatRequest.
219
+ When true, the response will only contain a list of generated search queries, but no search will take place, and no reply from the model to the user's message will be generated.
220
+
221
+
222
+ :param is_search_queries_only: The is_search_queries_only of this CohereChatRequest.
223
+ :type: bool
224
+ """
225
+ self._is_search_queries_only = is_search_queries_only
226
+
227
+ @property
228
+ def preamble_override(self):
229
+ """
230
+ Gets the preamble_override of this CohereChatRequest.
231
+ When specified, the default Cohere preamble will be replaced with the provided one. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style. Default preambles vary for different models.
232
+
233
+
234
+ :return: The preamble_override of this CohereChatRequest.
235
+ :rtype: str
236
+ """
237
+ return self._preamble_override
238
+
239
+ @preamble_override.setter
240
+ def preamble_override(self, preamble_override):
241
+ """
242
+ Sets the preamble_override of this CohereChatRequest.
243
+ When specified, the default Cohere preamble will be replaced with the provided one. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style. Default preambles vary for different models.
244
+
245
+
246
+ :param preamble_override: The preamble_override of this CohereChatRequest.
247
+ :type: str
248
+ """
249
+ self._preamble_override = preamble_override
250
+
251
+ @property
252
+ def is_stream(self):
253
+ """
254
+ Gets the is_stream of this CohereChatRequest.
255
+ Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available.
256
+
257
+
258
+ :return: The is_stream of this CohereChatRequest.
259
+ :rtype: bool
260
+ """
261
+ return self._is_stream
262
+
263
+ @is_stream.setter
264
+ def is_stream(self, is_stream):
265
+ """
266
+ Sets the is_stream of this CohereChatRequest.
267
+ Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available.
268
+
269
+
270
+ :param is_stream: The is_stream of this CohereChatRequest.
271
+ :type: bool
272
+ """
273
+ self._is_stream = is_stream
274
+
275
+ @property
276
+ def max_tokens(self):
277
+ """
278
+ Gets the max_tokens of this CohereChatRequest.
279
+ The maximum number of tokens to predict for each response. Includes input plus output tokens.
280
+
281
+
282
+ :return: The max_tokens of this CohereChatRequest.
283
+ :rtype: int
284
+ """
285
+ return self._max_tokens
286
+
287
+ @max_tokens.setter
288
+ def max_tokens(self, max_tokens):
289
+ """
290
+ Sets the max_tokens of this CohereChatRequest.
291
+ The maximum number of tokens to predict for each response. Includes input plus output tokens.
292
+
293
+
294
+ :param max_tokens: The max_tokens of this CohereChatRequest.
295
+ :type: int
296
+ """
297
+ self._max_tokens = max_tokens
298
+
299
+ @property
300
+ def temperature(self):
301
+ """
302
+ Gets the temperature of this CohereChatRequest.
303
+ A number that sets the randomness of the generated output. A lower temperature means a less random generations.
304
+ Use lower numbers for tasks with a correct answer such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs.
305
+
306
+
307
+ :return: The temperature of this CohereChatRequest.
308
+ :rtype: float
309
+ """
310
+ return self._temperature
311
+
312
+ @temperature.setter
313
+ def temperature(self, temperature):
314
+ """
315
+ Sets the temperature of this CohereChatRequest.
316
+ A number that sets the randomness of the generated output. A lower temperature means a less random generations.
317
+ Use lower numbers for tasks with a correct answer such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs.
318
+
319
+
320
+ :param temperature: The temperature of this CohereChatRequest.
321
+ :type: float
322
+ """
323
+ self._temperature = temperature
324
+
325
+ @property
326
+ def top_k(self):
327
+ """
328
+ Gets the top_k of this CohereChatRequest.
329
+ An integer that sets up the model to use only the top k most likely tokens in the generated output. A higher k introduces more randomness into the output making the output text sound more natural. Default value is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500.
330
+
331
+ If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20, but the probabilities of the top 10 add up to .75, then only the top 10 tokens are chosen.
332
+
333
+
334
+ :return: The top_k of this CohereChatRequest.
335
+ :rtype: int
336
+ """
337
+ return self._top_k
338
+
339
+ @top_k.setter
340
+ def top_k(self, top_k):
341
+ """
342
+ Sets the top_k of this CohereChatRequest.
343
+ An integer that sets up the model to use only the top k most likely tokens in the generated output. A higher k introduces more randomness into the output making the output text sound more natural. Default value is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500.
344
+
345
+ If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20, but the probabilities of the top 10 add up to .75, then only the top 10 tokens are chosen.
346
+
347
+
348
+ :param top_k: The top_k of this CohereChatRequest.
349
+ :type: int
350
+ """
351
+ self._top_k = top_k
352
+
353
+ @property
354
+ def top_p(self):
355
+ """
356
+ Gets the top_p of this CohereChatRequest.
357
+ If set to a probability 0.0 < p < 1.0, it ensures that only the most likely tokens, with total probability mass of p, are considered for generation at each step.
358
+
359
+ To eliminate tokens with low likelihood, assign p a minimum percentage for the next token's likelihood. For example, when p is set to 0.75, the model eliminates the bottom 25 percent for the next token. Set to 1.0 to consider all tokens and set to 0 to disable. If both k and p are enabled, p acts after k.
360
+
361
+
362
+ :return: The top_p of this CohereChatRequest.
363
+ :rtype: float
364
+ """
365
+ return self._top_p
366
+
367
+ @top_p.setter
368
+ def top_p(self, top_p):
369
+ """
370
+ Sets the top_p of this CohereChatRequest.
371
+ If set to a probability 0.0 < p < 1.0, it ensures that only the most likely tokens, with total probability mass of p, are considered for generation at each step.
372
+
373
+ To eliminate tokens with low likelihood, assign p a minimum percentage for the next token's likelihood. For example, when p is set to 0.75, the model eliminates the bottom 25 percent for the next token. Set to 1.0 to consider all tokens and set to 0 to disable. If both k and p are enabled, p acts after k.
374
+
375
+
376
+ :param top_p: The top_p of this CohereChatRequest.
377
+ :type: float
378
+ """
379
+ self._top_p = top_p
380
+
381
+ @property
382
+ def frequency_penalty(self):
383
+ """
384
+ Gets the frequency_penalty of this CohereChatRequest.
385
+ To reduce repetitiveness of generated tokens, this number penalizes new tokens based on their frequency in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens. Set to 0 to disable.
386
+
387
+
388
+ :return: The frequency_penalty of this CohereChatRequest.
389
+ :rtype: float
390
+ """
391
+ return self._frequency_penalty
392
+
393
+ @frequency_penalty.setter
394
+ def frequency_penalty(self, frequency_penalty):
395
+ """
396
+ Sets the frequency_penalty of this CohereChatRequest.
397
+ To reduce repetitiveness of generated tokens, this number penalizes new tokens based on their frequency in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens. Set to 0 to disable.
398
+
399
+
400
+ :param frequency_penalty: The frequency_penalty of this CohereChatRequest.
401
+ :type: float
402
+ """
403
+ self._frequency_penalty = frequency_penalty
404
+
405
+ @property
406
+ def presence_penalty(self):
407
+ """
408
+ Gets the presence_penalty of this CohereChatRequest.
409
+ To reduce repetitiveness of generated tokens, this number penalizes new tokens based on whether they've appeared in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens.
410
+
411
+ Similar to frequency penalty, a penalty is applied to previously present tokens, except that this penalty is applied equally to all tokens that have already appeared, regardless of how many times they've appeared. Set to 0 to disable.
412
+
413
+
414
+ :return: The presence_penalty of this CohereChatRequest.
415
+ :rtype: float
416
+ """
417
+ return self._presence_penalty
418
+
419
+ @presence_penalty.setter
420
+ def presence_penalty(self, presence_penalty):
421
+ """
422
+ Sets the presence_penalty of this CohereChatRequest.
423
+ To reduce repetitiveness of generated tokens, this number penalizes new tokens based on whether they've appeared in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens.
424
+
425
+ Similar to frequency penalty, a penalty is applied to previously present tokens, except that this penalty is applied equally to all tokens that have already appeared, regardless of how many times they've appeared. Set to 0 to disable.
426
+
427
+
428
+ :param presence_penalty: The presence_penalty of this CohereChatRequest.
429
+ :type: float
430
+ """
431
+ self._presence_penalty = presence_penalty
432
+
433
+ def __repr__(self):
434
+ return formatted_flat_dict(self)
435
+
436
+ def __eq__(self, other):
437
+ if other is None:
438
+ return False
439
+
440
+ return self.__dict__ == other.__dict__
441
+
442
+ def __ne__(self, other):
443
+ return not self == other