oci 2.125.2__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 (333) 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 +19 -19
  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 +42 -42
  86. oci/data_integration/data_integration_client.py +163 -163
  87. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  88. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  89. oci/data_safe/data_safe_client.py +272 -272
  90. oci/data_science/data_science_client.py +91 -91
  91. oci/data_science/models/instance_configuration.py +37 -2
  92. oci/database/database_client.py +1224 -537
  93. oci/database/database_client_composite_operations.py +204 -0
  94. oci/database/models/__init__.py +12 -0
  95. oci/database/models/autonomous_container_database.py +31 -0
  96. oci/database/models/autonomous_container_database_summary.py +31 -0
  97. oci/database/models/autonomous_database_software_image.py +489 -0
  98. oci/database/models/autonomous_database_software_image_collection.py +72 -0
  99. oci/database/models/autonomous_database_software_image_summary.py +437 -0
  100. oci/database/models/change_autonomous_database_software_image_compartment_details.py +76 -0
  101. oci/database/models/create_autonomous_container_database_details.py +35 -0
  102. oci/database/models/create_autonomous_database_software_image_details.py +267 -0
  103. oci/database/models/maintenance_window.py +33 -2
  104. oci/database/models/update_autonomous_database_software_image_details.py +119 -0
  105. oci/database_management/db_management_client.py +194 -194
  106. oci/database_management/diagnosability_client.py +4 -4
  107. oci/database_management/managed_my_sql_databases_client.py +7 -7
  108. oci/database_management/perfhub_client.py +1 -1
  109. oci/database_management/sql_tuning_client.py +17 -17
  110. oci/database_migration/database_migration_client.py +41 -41
  111. oci/database_migration/models/aws_s3_data_transfer_medium_details.py +29 -2
  112. oci/database_migration/models/data_transfer_medium_details_v2.py +1 -1
  113. oci/database_migration/models/nfs_data_transfer_medium_details.py +29 -2
  114. oci/database_tools/database_tools_client.py +23 -23
  115. oci/desktops/desktop_service_client.py +21 -21
  116. oci/devops/devops_client.py +89 -89
  117. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  118. oci/dns/dns_client.py +52 -52
  119. oci/dts/appliance_export_job_client.py +6 -6
  120. oci/dts/shipping_vendors_client.py +1 -1
  121. oci/dts/transfer_appliance_client.py +8 -8
  122. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  123. oci/dts/transfer_device_client.py +5 -5
  124. oci/dts/transfer_job_client.py +6 -6
  125. oci/dts/transfer_package_client.py +7 -7
  126. oci/em_warehouse/em_data_lake_client.py +13 -13
  127. oci/em_warehouse/em_warehouse_client.py +13 -13
  128. oci/email/email_client.py +26 -26
  129. oci/email_data_plane/email_dp_client.py +1 -1
  130. oci/events/events_client.py +6 -6
  131. oci/file_storage/file_storage_client.py +50 -50
  132. oci/fleet_software_update/fleet_software_update_client.py +44 -44
  133. oci/functions/functions_invoke_client.py +1 -1
  134. oci/functions/functions_management_client.py +16 -16
  135. oci/fusion_apps/data_masking_activity_client.py +3 -3
  136. oci/fusion_apps/fusion_applications_client.py +39 -39
  137. oci/fusion_apps/fusion_environment_client.py +15 -15
  138. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  139. oci/fusion_apps/refresh_activity_client.py +4 -4
  140. oci/fusion_apps/scheduled_activity_client.py +2 -2
  141. oci/fusion_apps/service_attachment_client.py +2 -2
  142. oci/generative_ai/generative_ai_client.py +24 -24
  143. oci/generative_ai/models/dataset.py +1 -1
  144. oci/generative_ai/models/dedicated_ai_cluster.py +34 -3
  145. oci/generative_ai/models/endpoint.py +27 -0
  146. oci/generative_ai/models/model.py +34 -3
  147. oci/generative_ai/models/model_summary.py +7 -3
  148. oci/generative_ai_inference/generative_ai_inference_client.py +101 -3
  149. oci/generative_ai_inference/models/__init__.py +30 -0
  150. oci/generative_ai_inference/models/base_chat_request.py +109 -0
  151. oci/generative_ai_inference/models/base_chat_response.py +109 -0
  152. oci/generative_ai_inference/models/chat_choice.py +161 -0
  153. oci/generative_ai_inference/models/chat_content.py +101 -0
  154. oci/generative_ai_inference/models/chat_details.py +126 -0
  155. oci/generative_ai_inference/models/chat_result.py +130 -0
  156. oci/generative_ai_inference/models/citation.py +165 -0
  157. oci/generative_ai_inference/models/cohere_chat_request.py +443 -0
  158. oci/generative_ai_inference/models/cohere_chat_response.py +272 -0
  159. oci/generative_ai_inference/models/cohere_llm_inference_response.py +1 -1
  160. oci/generative_ai_inference/models/cohere_message.py +119 -0
  161. oci/generative_ai_inference/models/embed_text_details.py +2 -2
  162. oci/generative_ai_inference/models/generic_chat_request.py +474 -0
  163. oci/generative_ai_inference/models/generic_chat_response.py +113 -0
  164. oci/generative_ai_inference/models/llama_llm_inference_request.py +2 -2
  165. oci/generative_ai_inference/models/llama_llm_inference_response.py +1 -1
  166. oci/generative_ai_inference/models/llm_inference_response.py +11 -3
  167. oci/generative_ai_inference/models/message.py +103 -0
  168. oci/generative_ai_inference/models/search_query.py +72 -0
  169. oci/generative_ai_inference/models/text_content.py +82 -0
  170. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  171. oci/globally_distributed_database/sharded_database_service_client.py +29 -29
  172. oci/golden_gate/golden_gate_client.py +61 -61
  173. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  174. oci/governance_rules_control_plane/work_request_client.py +5 -5
  175. oci/healthchecks/health_checks_client.py +17 -17
  176. oci/identity/identity_client.py +145 -145
  177. oci/identity_data_plane/dataplane_client.py +2 -2
  178. oci/identity_domains/identity_domains_client.py +300 -300
  179. oci/integration/integration_instance_client.py +15 -15
  180. oci/jms/java_management_service_client.py +66 -66
  181. oci/jms_java_downloads/java_download_client.py +25 -25
  182. oci/key_management/ekm_client.py +5 -5
  183. oci/key_management/kms_crypto_client.py +6 -6
  184. oci/key_management/kms_hsm_cluster_client.py +12 -12
  185. oci/key_management/kms_management_client.py +21 -21
  186. oci/key_management/kms_vault_client.py +14 -14
  187. oci/license_manager/license_manager_client.py +18 -18
  188. oci/limits/limits_client.py +4 -4
  189. oci/limits/quotas_client.py +7 -7
  190. oci/load_balancer/load_balancer_client.py +61 -61
  191. oci/lockbox/lockbox_client.py +23 -23
  192. oci/log_analytics/log_analytics_client.py +193 -193
  193. oci/logging/logging_management_client.py +30 -30
  194. oci/loggingingestion/logging_client.py +1 -1
  195. oci/loggingsearch/log_search_client.py +1 -1
  196. oci/management_agent/management_agent_client.py +28 -28
  197. oci/management_dashboard/dashx_apis_client.py +14 -14
  198. oci/marketplace/account_client.py +2 -2
  199. oci/marketplace/marketplace_client.py +30 -30
  200. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  201. oci/media_services/media_services_client.py +60 -60
  202. oci/media_services/media_stream_client.py +2 -2
  203. oci/monitoring/monitoring_client.py +18 -18
  204. oci/mysql/channels_client.py +7 -7
  205. oci/mysql/db_backups_client.py +6 -6
  206. oci/mysql/db_system_client.py +17 -17
  207. oci/mysql/mysqlaas_client.py +7 -7
  208. oci/mysql/replicas_client.py +5 -5
  209. oci/mysql/work_requests_client.py +4 -4
  210. oci/network_firewall/network_firewall_client.py +80 -80
  211. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  212. oci/nosql/nosql_client.py +24 -24
  213. oci/object_storage/object_storage_client.py +50 -50
  214. oci/oce/oce_instance_client.py +10 -10
  215. oci/oci_control_center/occ_metrics_client.py +3 -3
  216. oci/ocvp/cluster_client.py +5 -5
  217. oci/ocvp/esxi_host_client.py +8 -8
  218. oci/ocvp/sddc_client.py +14 -14
  219. oci/ocvp/work_request_client.py +4 -4
  220. oci/oda/management_client.py +59 -59
  221. oci/oda/oda_client.py +17 -17
  222. oci/oda/odapackage_client.py +7 -7
  223. oci/onesubscription/billing_schedule_client.py +1 -1
  224. oci/onesubscription/commitment_client.py +2 -2
  225. oci/onesubscription/computed_usage_client.py +3 -3
  226. oci/onesubscription/invoice_summary_client.py +2 -2
  227. oci/onesubscription/organization_subscription_client.py +1 -1
  228. oci/onesubscription/ratecard_client.py +1 -1
  229. oci/onesubscription/subscribed_service_client.py +2 -2
  230. oci/onesubscription/subscription_client.py +1 -1
  231. oci/ons/notification_control_plane_client.py +6 -6
  232. oci/ons/notification_data_plane_client.py +10 -10
  233. oci/opa/models/opa_instance.py +7 -3
  234. oci/opa/models/work_request.py +11 -3
  235. oci/opa/models/work_request_summary.py +11 -3
  236. oci/opa/opa_instance_client.py +223 -13
  237. oci/opa/opa_instance_client_composite_operations.py +78 -0
  238. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  239. oci/opensearch/opensearch_cluster_client.py +14 -14
  240. oci/operator_access_control/access_requests_client.py +10 -10
  241. oci/operator_access_control/operator_actions_client.py +2 -2
  242. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  243. oci/operator_access_control/operator_control_client.py +6 -6
  244. oci/opsi/operations_insights_client.py +175 -175
  245. oci/optimizer/optimizer_client.py +26 -26
  246. oci/os_management/event_client.py +8 -8
  247. oci/os_management/os_management_client.py +69 -69
  248. oci/os_management_hub/lifecycle_environment_client.py +11 -11
  249. oci/os_management_hub/managed_instance_client.py +22 -22
  250. oci/os_management_hub/managed_instance_group_client.py +22 -22
  251. oci/os_management_hub/management_station_client.py +8 -8
  252. oci/os_management_hub/onboarding_client.py +5 -5
  253. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  254. oci/os_management_hub/scheduled_job_client.py +6 -6
  255. oci/os_management_hub/software_source_client.py +22 -22
  256. oci/os_management_hub/work_request_client.py +4 -4
  257. oci/osp_gateway/address_rule_service_client.py +1 -1
  258. oci/osp_gateway/address_service_client.py +2 -2
  259. oci/osp_gateway/invoice_service_client.py +5 -5
  260. oci/osp_gateway/subscription_service_client.py +5 -5
  261. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  262. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  263. oci/osub_subscription/commitment_client.py +2 -2
  264. oci/osub_subscription/ratecard_client.py +1 -1
  265. oci/osub_subscription/subscription_client.py +1 -1
  266. oci/osub_usage/computed_usage_client.py +3 -3
  267. oci/psql/postgresql_client.py +33 -33
  268. oci/queue/queue_admin_client.py +11 -11
  269. oci/queue/queue_client.py +8 -8
  270. oci/recovery/database_recovery_client.py +23 -23
  271. oci/redis/models/create_redis_cluster_details.py +31 -0
  272. oci/redis/models/redis_cluster.py +31 -0
  273. oci/redis/models/redis_cluster_summary.py +31 -0
  274. oci/redis/models/update_redis_cluster_details.py +31 -0
  275. oci/redis/redis_cluster_client.py +11 -11
  276. oci/resource_manager/resource_manager_client.py +52 -52
  277. oci/resource_search/resource_search_client.py +3 -3
  278. oci/rover/rover_bundle_client.py +8 -8
  279. oci/rover/rover_cluster_client.py +8 -8
  280. oci/rover/rover_entitlement_client.py +6 -6
  281. oci/rover/rover_node_client.py +15 -15
  282. oci/rover/shape_client.py +1 -1
  283. oci/rover/work_requests_client.py +5 -5
  284. oci/sch/connector_plugins_client.py +2 -2
  285. oci/sch/service_connector_client.py +12 -12
  286. oci/secrets/secrets_client.py +3 -3
  287. oci/service_catalog/service_catalog_client.py +26 -26
  288. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  289. oci/service_mesh/service_mesh_client.py +48 -48
  290. oci/stack_monitoring/stack_monitoring_client.py +64 -64
  291. oci/streaming/stream_admin_client.py +18 -18
  292. oci/streaming/stream_client.py +8 -8
  293. oci/tenant_manager_control_plane/domain_client.py +5 -5
  294. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  295. oci/tenant_manager_control_plane/governance_client.py +2 -2
  296. oci/tenant_manager_control_plane/link_client.py +3 -3
  297. oci/tenant_manager_control_plane/orders_client.py +2 -2
  298. oci/tenant_manager_control_plane/organization_client.py +10 -10
  299. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  300. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  301. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  302. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  303. oci/threat_intelligence/threatintel_client.py +5 -5
  304. oci/usage/resources_client.py +2 -2
  305. oci/usage/rewards_client.py +6 -6
  306. oci/usage/usagelimits_client.py +1 -1
  307. oci/usage_api/models/__init__.py +12 -0
  308. oci/usage_api/models/create_email_recipients_group_details.py +103 -0
  309. oci/usage_api/models/email_recipient.py +181 -0
  310. oci/usage_api/models/email_recipients_group.py +181 -0
  311. oci/usage_api/models/email_recipients_group_collection.py +72 -0
  312. oci/usage_api/models/email_recipients_group_summary.py +272 -0
  313. oci/usage_api/models/update_email_recipients_group_details.py +72 -0
  314. oci/usage_api/usageapi_client.py +656 -34
  315. oci/usage_api/usageapi_client_composite_operations.py +96 -0
  316. oci/vault/vaults_client.py +13 -13
  317. oci/vbs_inst/vbs_instance_client.py +10 -10
  318. oci/version.py +1 -1
  319. oci/visual_builder/vb_instance_client.py +13 -13
  320. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  321. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  322. oci/waa/waa_client.py +13 -13
  323. oci/waa/work_request_client.py +4 -4
  324. oci/waas/redirect_client.py +6 -6
  325. oci/waas/waas_client.py +66 -66
  326. oci/waf/waf_client.py +24 -24
  327. oci/work_requests/work_request_client.py +4 -4
  328. {oci-2.125.2.dist-info → oci-2.125.3.dist-info}/METADATA +1 -1
  329. {oci-2.125.2.dist-info → oci-2.125.3.dist-info}/RECORD +333 -294
  330. {oci-2.125.2.dist-info → oci-2.125.3.dist-info}/LICENSE.txt +0 -0
  331. {oci-2.125.2.dist-info → oci-2.125.3.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  332. {oci-2.125.2.dist-info → oci-2.125.3.dist-info}/WHEEL +0 -0
  333. {oci-2.125.2.dist-info → oci-2.125.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,272 @@
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_response import BaseChatResponse
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 CohereChatResponse(BaseChatResponse):
14
+ """
15
+ The response to the chat conversation.
16
+ """
17
+
18
+ #: A constant which can be used with the finish_reason property of a CohereChatResponse.
19
+ #: This constant has a value of "COMPLETE"
20
+ FINISH_REASON_COMPLETE = "COMPLETE"
21
+
22
+ #: A constant which can be used with the finish_reason property of a CohereChatResponse.
23
+ #: This constant has a value of "ERROR_TOXIC"
24
+ FINISH_REASON_ERROR_TOXIC = "ERROR_TOXIC"
25
+
26
+ #: A constant which can be used with the finish_reason property of a CohereChatResponse.
27
+ #: This constant has a value of "ERROR_LIMIT"
28
+ FINISH_REASON_ERROR_LIMIT = "ERROR_LIMIT"
29
+
30
+ #: A constant which can be used with the finish_reason property of a CohereChatResponse.
31
+ #: This constant has a value of "ERROR"
32
+ FINISH_REASON_ERROR = "ERROR"
33
+
34
+ #: A constant which can be used with the finish_reason property of a CohereChatResponse.
35
+ #: This constant has a value of "USER_CANCEL"
36
+ FINISH_REASON_USER_CANCEL = "USER_CANCEL"
37
+
38
+ #: A constant which can be used with the finish_reason property of a CohereChatResponse.
39
+ #: This constant has a value of "MAX_TOKENS"
40
+ FINISH_REASON_MAX_TOKENS = "MAX_TOKENS"
41
+
42
+ def __init__(self, **kwargs):
43
+ """
44
+ Initializes a new CohereChatResponse object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.CohereChatResponse.api_format` attribute
45
+ of this class is ``COHERE`` and it should not be changed.
46
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
47
+
48
+ :param api_format:
49
+ The value to assign to the api_format property of this CohereChatResponse.
50
+ Allowed values for this property are: "COHERE", "GENERIC", 'UNKNOWN_ENUM_VALUE'.
51
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
52
+ :type api_format: str
53
+
54
+ :param text:
55
+ The value to assign to the text property of this CohereChatResponse.
56
+ :type text: str
57
+
58
+ :param citations:
59
+ The value to assign to the citations property of this CohereChatResponse.
60
+ :type citations: list[oci.generative_ai_inference.models.Citation]
61
+
62
+ :param is_search_required:
63
+ The value to assign to the is_search_required property of this CohereChatResponse.
64
+ :type is_search_required: bool
65
+
66
+ :param finish_reason:
67
+ The value to assign to the finish_reason property of this CohereChatResponse.
68
+ Allowed values for this property are: "COMPLETE", "ERROR_TOXIC", "ERROR_LIMIT", "ERROR", "USER_CANCEL", "MAX_TOKENS", 'UNKNOWN_ENUM_VALUE'.
69
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
70
+ :type finish_reason: str
71
+
72
+ :param search_queries:
73
+ The value to assign to the search_queries property of this CohereChatResponse.
74
+ :type search_queries: list[oci.generative_ai_inference.models.SearchQuery]
75
+
76
+ :param documents:
77
+ The value to assign to the documents property of this CohereChatResponse.
78
+ :type documents: list[object]
79
+
80
+ """
81
+ self.swagger_types = {
82
+ 'api_format': 'str',
83
+ 'text': 'str',
84
+ 'citations': 'list[Citation]',
85
+ 'is_search_required': 'bool',
86
+ 'finish_reason': 'str',
87
+ 'search_queries': 'list[SearchQuery]',
88
+ 'documents': 'list[object]'
89
+ }
90
+
91
+ self.attribute_map = {
92
+ 'api_format': 'apiFormat',
93
+ 'text': 'text',
94
+ 'citations': 'citations',
95
+ 'is_search_required': 'isSearchRequired',
96
+ 'finish_reason': 'finishReason',
97
+ 'search_queries': 'searchQueries',
98
+ 'documents': 'documents'
99
+ }
100
+
101
+ self._api_format = None
102
+ self._text = None
103
+ self._citations = None
104
+ self._is_search_required = None
105
+ self._finish_reason = None
106
+ self._search_queries = None
107
+ self._documents = None
108
+ self._api_format = 'COHERE'
109
+
110
+ @property
111
+ def text(self):
112
+ """
113
+ **[Required]** Gets the text of this CohereChatResponse.
114
+ Contents of the reply generated by the model.
115
+
116
+
117
+ :return: The text of this CohereChatResponse.
118
+ :rtype: str
119
+ """
120
+ return self._text
121
+
122
+ @text.setter
123
+ def text(self, text):
124
+ """
125
+ Sets the text of this CohereChatResponse.
126
+ Contents of the reply generated by the model.
127
+
128
+
129
+ :param text: The text of this CohereChatResponse.
130
+ :type: str
131
+ """
132
+ self._text = text
133
+
134
+ @property
135
+ def citations(self):
136
+ """
137
+ Gets the citations of this CohereChatResponse.
138
+ Inline citations for the generated reply.
139
+
140
+
141
+ :return: The citations of this CohereChatResponse.
142
+ :rtype: list[oci.generative_ai_inference.models.Citation]
143
+ """
144
+ return self._citations
145
+
146
+ @citations.setter
147
+ def citations(self, citations):
148
+ """
149
+ Sets the citations of this CohereChatResponse.
150
+ Inline citations for the generated reply.
151
+
152
+
153
+ :param citations: The citations of this CohereChatResponse.
154
+ :type: list[oci.generative_ai_inference.models.Citation]
155
+ """
156
+ self._citations = citations
157
+
158
+ @property
159
+ def is_search_required(self):
160
+ """
161
+ Gets the is_search_required of this CohereChatResponse.
162
+ Denotes that a search for documents is required.
163
+
164
+
165
+ :return: The is_search_required of this CohereChatResponse.
166
+ :rtype: bool
167
+ """
168
+ return self._is_search_required
169
+
170
+ @is_search_required.setter
171
+ def is_search_required(self, is_search_required):
172
+ """
173
+ Sets the is_search_required of this CohereChatResponse.
174
+ Denotes that a search for documents is required.
175
+
176
+
177
+ :param is_search_required: The is_search_required of this CohereChatResponse.
178
+ :type: bool
179
+ """
180
+ self._is_search_required = is_search_required
181
+
182
+ @property
183
+ def finish_reason(self):
184
+ """
185
+ **[Required]** Gets the finish_reason of this CohereChatResponse.
186
+ Why the generation was completed.
187
+
188
+ Allowed values for this property are: "COMPLETE", "ERROR_TOXIC", "ERROR_LIMIT", "ERROR", "USER_CANCEL", "MAX_TOKENS", 'UNKNOWN_ENUM_VALUE'.
189
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
190
+
191
+
192
+ :return: The finish_reason of this CohereChatResponse.
193
+ :rtype: str
194
+ """
195
+ return self._finish_reason
196
+
197
+ @finish_reason.setter
198
+ def finish_reason(self, finish_reason):
199
+ """
200
+ Sets the finish_reason of this CohereChatResponse.
201
+ Why the generation was completed.
202
+
203
+
204
+ :param finish_reason: The finish_reason of this CohereChatResponse.
205
+ :type: str
206
+ """
207
+ allowed_values = ["COMPLETE", "ERROR_TOXIC", "ERROR_LIMIT", "ERROR", "USER_CANCEL", "MAX_TOKENS"]
208
+ if not value_allowed_none_or_none_sentinel(finish_reason, allowed_values):
209
+ finish_reason = 'UNKNOWN_ENUM_VALUE'
210
+ self._finish_reason = finish_reason
211
+
212
+ @property
213
+ def search_queries(self):
214
+ """
215
+ Gets the search_queries of this CohereChatResponse.
216
+ Generated search queries.
217
+
218
+
219
+ :return: The search_queries of this CohereChatResponse.
220
+ :rtype: list[oci.generative_ai_inference.models.SearchQuery]
221
+ """
222
+ return self._search_queries
223
+
224
+ @search_queries.setter
225
+ def search_queries(self, search_queries):
226
+ """
227
+ Sets the search_queries of this CohereChatResponse.
228
+ Generated search queries.
229
+
230
+
231
+ :param search_queries: The search_queries of this CohereChatResponse.
232
+ :type: list[oci.generative_ai_inference.models.SearchQuery]
233
+ """
234
+ self._search_queries = search_queries
235
+
236
+ @property
237
+ def documents(self):
238
+ """
239
+ Gets the documents of this CohereChatResponse.
240
+ Documents seen by the model when generating the reply. Each document is a JSON String
241
+ representing the field and values of the document.
242
+
243
+
244
+ :return: The documents of this CohereChatResponse.
245
+ :rtype: list[object]
246
+ """
247
+ return self._documents
248
+
249
+ @documents.setter
250
+ def documents(self, documents):
251
+ """
252
+ Sets the documents of this CohereChatResponse.
253
+ Documents seen by the model when generating the reply. Each document is a JSON String
254
+ representing the field and values of the document.
255
+
256
+
257
+ :param documents: The documents of this CohereChatResponse.
258
+ :type: list[object]
259
+ """
260
+ self._documents = documents
261
+
262
+ def __repr__(self):
263
+ return formatted_flat_dict(self)
264
+
265
+ def __eq__(self, other):
266
+ if other is None:
267
+ return False
268
+
269
+ return self.__dict__ == other.__dict__
270
+
271
+ def __ne__(self, other):
272
+ return not self == other
@@ -23,7 +23,7 @@ class CohereLlmInferenceResponse(LlmInferenceResponse):
23
23
 
24
24
  :param runtime_type:
25
25
  The value to assign to the runtime_type property of this CohereLlmInferenceResponse.
26
- Allowed values for this property are: "COHERE", "LLAMA"
26
+ Allowed values for this property are: "COHERE", "LLAMA", "OPENAI", "DALLE3"
27
27
  :type runtime_type: str
28
28
 
29
29
  :param generated_texts:
@@ -0,0 +1,119 @@
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 CohereMessage(object):
14
+ """
15
+ An message that represents a single dialogue of chat
16
+ """
17
+
18
+ #: A constant which can be used with the role property of a CohereMessage.
19
+ #: This constant has a value of "CHATBOT"
20
+ ROLE_CHATBOT = "CHATBOT"
21
+
22
+ #: A constant which can be used with the role property of a CohereMessage.
23
+ #: This constant has a value of "USER"
24
+ ROLE_USER = "USER"
25
+
26
+ def __init__(self, **kwargs):
27
+ """
28
+ Initializes a new CohereMessage object with values from keyword arguments.
29
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
30
+
31
+ :param role:
32
+ The value to assign to the role property of this CohereMessage.
33
+ Allowed values for this property are: "CHATBOT", "USER"
34
+ :type role: str
35
+
36
+ :param message:
37
+ The value to assign to the message property of this CohereMessage.
38
+ :type message: str
39
+
40
+ """
41
+ self.swagger_types = {
42
+ 'role': 'str',
43
+ 'message': 'str'
44
+ }
45
+
46
+ self.attribute_map = {
47
+ 'role': 'role',
48
+ 'message': 'message'
49
+ }
50
+
51
+ self._role = None
52
+ self._message = None
53
+
54
+ @property
55
+ def role(self):
56
+ """
57
+ **[Required]** Gets the role of this CohereMessage.
58
+ One of CHATBOT|USER to identify who the message is coming from.
59
+
60
+ Allowed values for this property are: "CHATBOT", "USER"
61
+
62
+
63
+ :return: The role of this CohereMessage.
64
+ :rtype: str
65
+ """
66
+ return self._role
67
+
68
+ @role.setter
69
+ def role(self, role):
70
+ """
71
+ Sets the role of this CohereMessage.
72
+ One of CHATBOT|USER to identify who the message is coming from.
73
+
74
+
75
+ :param role: The role of this CohereMessage.
76
+ :type: str
77
+ """
78
+ allowed_values = ["CHATBOT", "USER"]
79
+ if not value_allowed_none_or_none_sentinel(role, allowed_values):
80
+ raise ValueError(
81
+ f"Invalid value for `role`, must be None or one of {allowed_values}"
82
+ )
83
+ self._role = role
84
+
85
+ @property
86
+ def message(self):
87
+ """
88
+ **[Required]** Gets the message of this CohereMessage.
89
+ Contents of the chat message.
90
+
91
+
92
+ :return: The message of this CohereMessage.
93
+ :rtype: str
94
+ """
95
+ return self._message
96
+
97
+ @message.setter
98
+ def message(self, message):
99
+ """
100
+ Sets the message of this CohereMessage.
101
+ Contents of the chat message.
102
+
103
+
104
+ :param message: The message of this CohereMessage.
105
+ :type: str
106
+ """
107
+ self._message = message
108
+
109
+ def __repr__(self):
110
+ return formatted_flat_dict(self)
111
+
112
+ def __eq__(self, other):
113
+ if other is None:
114
+ return False
115
+
116
+ return self.__dict__ == other.__dict__
117
+
118
+ def __ne__(self, other):
119
+ return not self == other
@@ -104,7 +104,7 @@ class EmbedTextDetails(object):
104
104
  def inputs(self):
105
105
  """
106
106
  **[Required]** Gets the inputs of this EmbedTextDetails.
107
- The list of strings for embeddings.
107
+ Provide a list of strings with a maximum number of 96 entries. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens.
108
108
 
109
109
 
110
110
  :return: The inputs of this EmbedTextDetails.
@@ -116,7 +116,7 @@ class EmbedTextDetails(object):
116
116
  def inputs(self, inputs):
117
117
  """
118
118
  Sets the inputs of this EmbedTextDetails.
119
- The list of strings for embeddings.
119
+ Provide a list of strings with a maximum number of 96 entries. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens.
120
120
 
121
121
 
122
122
  :param inputs: The inputs of this EmbedTextDetails.