oci 2.149.2__py3-none-any.whl → 2.150.1__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 (328) 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 +26 -26
  5. oci/ai_language/ai_service_language_client.py +44 -44
  6. oci/ai_speech/ai_service_speech_client.py +19 -19
  7. oci/ai_vision/ai_service_vision_client.py +28 -28
  8. oci/analytics/analytics_client.py +24 -24
  9. oci/announcements_service/announcement_client.py +5 -5
  10. oci/announcements_service/announcement_subscription_client.py +9 -9
  11. oci/announcements_service/announcements_preferences_client.py +4 -4
  12. oci/announcements_service/service_client.py +1 -1
  13. oci/apigateway/api_gateway_client.py +21 -21
  14. oci/apigateway/deployment_client.py +6 -6
  15. oci/apigateway/gateway_client.py +6 -6
  16. oci/apigateway/subscribers_client.py +6 -6
  17. oci/apigateway/usage_plans_client.py +6 -6
  18. oci/apigateway/work_requests_client.py +5 -5
  19. oci/apm_config/config_client.py +12 -12
  20. oci/apm_control_plane/apm_domain_client.py +14 -14
  21. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  22. oci/apm_traces/attributes_client.py +8 -8
  23. oci/apm_traces/query_client.py +2 -2
  24. oci/apm_traces/trace_client.py +4 -4
  25. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  26. oci/artifacts/artifacts_client.py +32 -32
  27. oci/audit/audit_client.py +3 -3
  28. oci/autoscaling/auto_scaling_client.py +11 -11
  29. oci/bastion/bastion_client.py +15 -15
  30. oci/bds/bds_client.py +84 -84
  31. oci/blockchain/blockchain_platform_client.py +27 -27
  32. oci/budget/budget_client.py +10 -10
  33. oci/capacity_management/capacity_management_client.py +32 -32
  34. oci/certificates/certificates_client.py +5 -5
  35. oci/certificates_management/certificates_management_client.py +32 -32
  36. oci/cims/incident_client.py +6 -6
  37. oci/cloud_bridge/common_client.py +5 -5
  38. oci/cloud_bridge/discovery_client.py +15 -15
  39. oci/cloud_bridge/inventory_client.py +16 -16
  40. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  41. oci/cloud_guard/cloud_guard_client.py +155 -155
  42. oci/cloud_migrations/migration_client.py +43 -43
  43. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  44. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  45. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  46. oci/compute_instance_agent/plugin_client.py +2 -2
  47. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  48. oci/container_engine/container_engine_client.py +44 -44
  49. oci/container_instances/container_instance_client.py +18 -18
  50. oci/core/blockstorage_client.py +60 -60
  51. oci/core/compute_client.py +117 -117
  52. oci/core/compute_management_client.py +32 -32
  53. oci/core/virtual_network_client.py +258 -258
  54. oci/dashboard_service/dashboard_client.py +6 -6
  55. oci/dashboard_service/dashboard_group_client.py +6 -6
  56. oci/data_catalog/data_catalog_client.py +149 -149
  57. oci/data_flow/data_flow_client.py +45 -45
  58. oci/data_integration/data_integration_client.py +163 -163
  59. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  60. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  61. oci/data_safe/data_safe_client.py +317 -317
  62. oci/data_science/data_science_client.py +145 -145
  63. oci/database/database_client.py +414 -414
  64. oci/database/models/autonomous_container_database.py +31 -0
  65. oci/database/models/autonomous_container_database_summary.py +31 -0
  66. oci/database/models/create_autonomous_container_database_details.py +31 -0
  67. oci/database/models/update_autonomous_container_database_details.py +31 -0
  68. oci/database_management/db_management_client.py +228 -228
  69. oci/database_management/diagnosability_client.py +4 -4
  70. oci/database_management/managed_my_sql_databases_client.py +9 -9
  71. oci/database_management/perfhub_client.py +1 -1
  72. oci/database_management/sql_tuning_client.py +17 -17
  73. oci/database_migration/database_migration_client.py +42 -42
  74. oci/database_tools/database_tools_client.py +23 -23
  75. oci/dblm/db_life_cycle_management_client.py +12 -12
  76. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  77. oci/delegate_access_control/work_request_client.py +4 -4
  78. oci/demand_signal/occ_demand_signal_client.py +7 -7
  79. oci/desktops/desktop_service_client.py +21 -21
  80. oci/devops/devops_client.py +141 -141
  81. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  82. oci/dns/dns_client.py +54 -54
  83. oci/dts/appliance_export_job_client.py +6 -6
  84. oci/dts/shipping_vendors_client.py +1 -1
  85. oci/dts/transfer_appliance_client.py +8 -8
  86. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  87. oci/dts/transfer_device_client.py +5 -5
  88. oci/dts/transfer_job_client.py +6 -6
  89. oci/dts/transfer_package_client.py +7 -7
  90. oci/em_warehouse/em_warehouse_client.py +13 -13
  91. oci/email/email_client.py +31 -31
  92. oci/email_data_plane/email_dp_client.py +1 -1
  93. oci/events/events_client.py +6 -6
  94. oci/file_storage/file_storage_client.py +74 -74
  95. oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
  96. oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
  97. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  98. oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
  99. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
  100. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  101. oci/functions/functions_invoke_client.py +8 -3
  102. oci/functions/functions_management_client.py +16 -16
  103. oci/fusion_apps/fusion_applications_client.py +41 -41
  104. oci/generative_ai/generative_ai_client.py +22 -22
  105. oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
  106. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
  107. oci/generative_ai_inference/generative_ai_inference_client.py +102 -5
  108. oci/generative_ai_inference/models/__init__.py +26 -0
  109. oci/generative_ai_inference/models/apply_guardrails_details.py +124 -0
  110. oci/generative_ai_inference/models/apply_guardrails_result.py +66 -0
  111. oci/generative_ai_inference/models/assistant_message.py +3 -0
  112. oci/generative_ai_inference/models/category_score.py +101 -0
  113. oci/generative_ai_inference/models/cohere_chat_request.py +53 -2
  114. oci/generative_ai_inference/models/content_moderation_configuration.py +70 -0
  115. oci/generative_ai_inference/models/content_moderation_result.py +70 -0
  116. oci/generative_ai_inference/models/guardrail_configs.py +120 -0
  117. oci/generative_ai_inference/models/guardrails_input.py +99 -0
  118. oci/generative_ai_inference/models/guardrails_results.py +124 -0
  119. oci/generative_ai_inference/models/guardrails_text_input.py +111 -0
  120. oci/generative_ai_inference/models/personally_identifiable_information_configuration.py +70 -0
  121. oci/generative_ai_inference/models/personally_identifiable_information_result.py +194 -0
  122. oci/generative_ai_inference/models/prompt_injection_configuration.py +39 -0
  123. oci/generative_ai_inference/models/prompt_injection_protection_result.py +70 -0
  124. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  125. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  126. oci/golden_gate/golden_gate_client.py +751 -113
  127. oci/golden_gate/golden_gate_client_composite_operations.py +170 -0
  128. oci/golden_gate/models/__init__.py +18 -0
  129. oci/golden_gate/models/add_deployment_local_peer_details.py +101 -0
  130. oci/golden_gate/models/collect_pipeline_diagnostic_details.py +132 -0
  131. oci/golden_gate/models/create_deployment_details.py +132 -4
  132. oci/golden_gate/models/deployment.py +212 -0
  133. oci/golden_gate/models/deployment_peer_collection.py +70 -0
  134. oci/golden_gate/models/deployment_peer_summary.py +464 -0
  135. oci/golden_gate/models/deployment_placement_details.py +103 -0
  136. oci/golden_gate/models/deployment_placement_info.py +101 -0
  137. oci/golden_gate/models/deployment_type_summary.py +69 -2
  138. oci/golden_gate/models/pipeline.py +27 -0
  139. oci/golden_gate/models/pipeline_diagnostic_data.py +220 -0
  140. oci/golden_gate/models/process_options.py +49 -2
  141. oci/golden_gate/models/remove_deployment_local_peer_details.py +101 -0
  142. oci/golden_gate/models/switchover_deployment_peer_details.py +101 -0
  143. oci/golden_gate/models/update_deployment_details.py +31 -0
  144. oci/golden_gate/models/work_request.py +11 -3
  145. oci/golden_gate/models/zero_etl_pipeline.py +7 -0
  146. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  147. oci/governance_rules_control_plane/work_request_client.py +5 -5
  148. oci/healthchecks/health_checks_client.py +17 -17
  149. oci/identity/identity_client.py +145 -145
  150. oci/identity_data_plane/dataplane_client.py +2 -2
  151. oci/identity_domains/identity_domains_client.py +311 -311
  152. oci/integration/integration_instance_client.py +19 -19
  153. oci/jms/java_management_service_client.py +79 -79
  154. oci/jms_java_downloads/java_download_client.py +25 -25
  155. oci/key_management/ekm_client.py +5 -5
  156. oci/key_management/kms_crypto_client.py +6 -6
  157. oci/key_management/kms_hsm_cluster_client.py +12 -12
  158. oci/key_management/kms_management_client.py +21 -21
  159. oci/key_management/kms_vault_client.py +14 -14
  160. oci/key_management/models/__init__.py +4 -0
  161. oci/key_management/models/create_vault_replica_details.py +29 -2
  162. oci/key_management/models/replica_external_vault_metadata.py +111 -0
  163. oci/key_management/models/replica_vault_metadata.py +101 -0
  164. oci/license_manager/license_manager_client.py +18 -18
  165. oci/limits/limits_client.py +4 -4
  166. oci/limits/quotas_client.py +7 -7
  167. oci/load_balancer/load_balancer_client.py +61 -61
  168. oci/lockbox/lockbox_client.py +24 -24
  169. oci/log_analytics/log_analytics_client.py +193 -193
  170. oci/logging/logging_management_client.py +30 -30
  171. oci/loggingingestion/logging_client.py +1 -1
  172. oci/loggingsearch/log_search_client.py +1 -1
  173. oci/lustre_file_storage/lustre_file_storage_client.py +22 -22
  174. oci/management_agent/management_agent_client.py +28 -28
  175. oci/management_dashboard/dashx_apis_client.py +14 -14
  176. oci/marketplace/account_client.py +2 -2
  177. oci/marketplace/marketplace_client.py +30 -30
  178. oci/marketplace_private_offer/attachment_client.py +5 -5
  179. oci/marketplace_private_offer/offer_client.py +6 -6
  180. oci/marketplace_publisher/attachment_client.py +5 -5
  181. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  182. oci/marketplace_publisher/offer_client.py +6 -6
  183. oci/media_services/media_services_client.py +60 -60
  184. oci/media_services/media_stream_client.py +2 -2
  185. oci/mngdmac/mac_device_client.py +3 -3
  186. oci/mngdmac/mac_order_client.py +11 -11
  187. oci/monitoring/monitoring_client.py +18 -18
  188. oci/mysql/channels_client.py +7 -7
  189. oci/mysql/db_backups_client.py +7 -7
  190. oci/mysql/db_system_client.py +17 -17
  191. oci/mysql/mysqlaas_client.py +7 -7
  192. oci/mysql/replicas_client.py +5 -5
  193. oci/mysql/work_requests_client.py +4 -4
  194. oci/network_firewall/network_firewall_client.py +86 -86
  195. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  196. oci/nosql/nosql_client.py +24 -24
  197. oci/object_storage/object_storage_client.py +55 -55
  198. oci/oce/oce_instance_client.py +10 -10
  199. oci/oci_control_center/occ_metrics_client.py +3 -3
  200. oci/ocvp/cluster_client.py +5 -5
  201. oci/ocvp/esxi_host_client.py +8 -8
  202. oci/ocvp/sddc_client.py +14 -14
  203. oci/ocvp/work_request_client.py +4 -4
  204. oci/oda/management_client.py +59 -59
  205. oci/oda/oda_client.py +17 -17
  206. oci/oda/odapackage_client.py +7 -7
  207. oci/onesubscription/billing_schedule_client.py +1 -1
  208. oci/onesubscription/commitment_client.py +2 -2
  209. oci/onesubscription/computed_usage_client.py +3 -3
  210. oci/onesubscription/invoice_summary_client.py +2 -2
  211. oci/onesubscription/organization_subscription_client.py +1 -1
  212. oci/onesubscription/ratecard_client.py +1 -1
  213. oci/onesubscription/subscribed_service_client.py +2 -2
  214. oci/onesubscription/subscription_client.py +1 -1
  215. oci/ons/notification_control_plane_client.py +6 -6
  216. oci/ons/notification_data_plane_client.py +10 -10
  217. oci/opa/opa_instance_client.py +13 -13
  218. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  219. oci/opensearch/opensearch_cluster_client.py +16 -16
  220. oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
  221. oci/operator_access_control/access_requests_client.py +10 -10
  222. oci/operator_access_control/operator_actions_client.py +2 -2
  223. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  224. oci/operator_access_control/operator_control_client.py +6 -6
  225. oci/opsi/operations_insights_client.py +181 -181
  226. oci/optimizer/optimizer_client.py +26 -26
  227. oci/os_management/event_client.py +8 -8
  228. oci/os_management/os_management_client.py +69 -69
  229. oci/os_management_hub/event_client.py +8 -8
  230. oci/os_management_hub/lifecycle_environment_client.py +13 -13
  231. oci/os_management_hub/managed_instance_client.py +33 -33
  232. oci/os_management_hub/managed_instance_group_client.py +26 -26
  233. oci/os_management_hub/management_station_client.py +10 -10
  234. oci/os_management_hub/onboarding_client.py +13 -13
  235. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  236. oci/os_management_hub/scheduled_job_client.py +7 -7
  237. oci/os_management_hub/software_source_client.py +33 -33
  238. oci/os_management_hub/work_request_client.py +5 -5
  239. oci/osp_gateway/address_rule_service_client.py +1 -1
  240. oci/osp_gateway/address_service_client.py +2 -2
  241. oci/osp_gateway/invoice_service_client.py +5 -5
  242. oci/osp_gateway/subscription_service_client.py +5 -5
  243. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  244. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  245. oci/osub_subscription/commitment_client.py +2 -2
  246. oci/osub_subscription/ratecard_client.py +1 -1
  247. oci/osub_subscription/subscription_client.py +1 -1
  248. oci/osub_usage/computed_usage_client.py +3 -3
  249. oci/psql/postgresql_client.py +34 -34
  250. oci/queue/queue_admin_client.py +11 -11
  251. oci/queue/queue_client.py +8 -8
  252. oci/recovery/database_recovery_client.py +26 -26
  253. oci/redis/redis_cluster_client.py +12 -12
  254. oci/resource_manager/resource_manager_client.py +52 -52
  255. oci/resource_scheduler/schedule_client.py +13 -13
  256. oci/resource_search/resource_search_client.py +3 -3
  257. oci/rover/rover_bundle_client.py +8 -8
  258. oci/rover/rover_cluster_client.py +8 -8
  259. oci/rover/rover_entitlement_client.py +6 -6
  260. oci/rover/rover_node_client.py +15 -15
  261. oci/rover/shape_client.py +1 -1
  262. oci/rover/work_requests_client.py +5 -5
  263. oci/sch/connector_plugins_client.py +4 -4
  264. oci/sch/models/__init__.py +32 -0
  265. oci/sch/models/function_task_details_response.py +158 -0
  266. oci/sch/models/functions_target_details_response.py +192 -0
  267. oci/sch/models/log_rule_task_details_response.py +91 -0
  268. oci/sch/models/logging_analytics_target_details_response.py +130 -0
  269. oci/sch/models/logging_source_details_response.py +91 -0
  270. oci/sch/models/monitoring_source_details_response.py +91 -0
  271. oci/sch/models/monitoring_target_details_response.py +192 -0
  272. oci/sch/models/notifications_target_details_response.py +128 -0
  273. oci/sch/models/object_storage_target_details_response.py +219 -0
  274. oci/sch/models/plugin_source_details_response.py +128 -0
  275. oci/sch/models/private_endpoint_metadata.py +101 -0
  276. oci/sch/models/service_connector.py +19 -15
  277. oci/sch/models/service_connector_summary.py +7 -3
  278. oci/sch/models/source_details.py +5 -5
  279. oci/sch/models/source_details_response.py +158 -0
  280. oci/sch/models/streaming_source_details_response.py +121 -0
  281. oci/sch/models/streaming_target_details_response.py +94 -0
  282. oci/sch/models/target_details.py +5 -5
  283. oci/sch/models/target_details_response.py +174 -0
  284. oci/sch/models/task_details.py +5 -5
  285. oci/sch/models/task_details_response.py +142 -0
  286. oci/sch/service_connector_client.py +14 -14
  287. oci/secrets/secrets_client.py +3 -3
  288. oci/security_attribute/security_attribute_client.py +18 -18
  289. oci/service_catalog/service_catalog_client.py +26 -26
  290. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  291. oci/service_mesh/service_mesh_client.py +48 -48
  292. oci/stack_monitoring/stack_monitoring_client.py +87 -87
  293. oci/streaming/stream_admin_client.py +18 -18
  294. oci/streaming/stream_client.py +8 -8
  295. oci/tenant_manager_control_plane/domain_client.py +5 -5
  296. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  297. oci/tenant_manager_control_plane/governance_client.py +2 -2
  298. oci/tenant_manager_control_plane/link_client.py +3 -3
  299. oci/tenant_manager_control_plane/orders_client.py +2 -2
  300. oci/tenant_manager_control_plane/organization_client.py +10 -10
  301. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  302. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  303. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  304. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  305. oci/threat_intelligence/threatintel_client.py +5 -5
  306. oci/usage/resources_client.py +2 -2
  307. oci/usage/rewards_client.py +6 -6
  308. oci/usage/usagelimits_client.py +1 -1
  309. oci/usage_api/usageapi_client.py +33 -33
  310. oci/vault/vaults_client.py +13 -13
  311. oci/vbs_inst/vbs_instance_client.py +10 -10
  312. oci/version.py +1 -1
  313. oci/visual_builder/vb_instance_client.py +14 -14
  314. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  315. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  316. oci/waa/waa_client.py +13 -13
  317. oci/waa/work_request_client.py +4 -4
  318. oci/waas/redirect_client.py +6 -6
  319. oci/waas/waas_client.py +66 -66
  320. oci/waf/waf_client.py +24 -24
  321. oci/work_requests/work_request_client.py +4 -4
  322. oci/zpr/zpr_client.py +15 -15
  323. {oci-2.149.2.dist-info → oci-2.150.1.dist-info}/METADATA +1 -1
  324. {oci-2.149.2.dist-info → oci-2.150.1.dist-info}/RECORD +328 -288
  325. {oci-2.149.2.dist-info → oci-2.150.1.dist-info}/LICENSE.txt +0 -0
  326. {oci-2.149.2.dist-info → oci-2.150.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  327. {oci-2.149.2.dist-info → oci-2.150.1.dist-info}/WHEEL +0 -0
  328. {oci-2.149.2.dist-info → oci-2.150.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,124 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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 ApplyGuardrailsDetails(object):
14
+ """
15
+ Details for applying guardrails to the input text.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new ApplyGuardrailsDetails object with values from keyword arguments.
21
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
22
+
23
+ :param input:
24
+ The value to assign to the input property of this ApplyGuardrailsDetails.
25
+ :type input: oci.generative_ai_inference.models.GuardrailsInput
26
+
27
+ :param guardrail_configs:
28
+ The value to assign to the guardrail_configs property of this ApplyGuardrailsDetails.
29
+ :type guardrail_configs: oci.generative_ai_inference.models.GuardrailConfigs
30
+
31
+ :param compartment_id:
32
+ The value to assign to the compartment_id property of this ApplyGuardrailsDetails.
33
+ :type compartment_id: str
34
+
35
+ """
36
+ self.swagger_types = {
37
+ 'input': 'GuardrailsInput',
38
+ 'guardrail_configs': 'GuardrailConfigs',
39
+ 'compartment_id': 'str'
40
+ }
41
+ self.attribute_map = {
42
+ 'input': 'input',
43
+ 'guardrail_configs': 'guardrailConfigs',
44
+ 'compartment_id': 'compartmentId'
45
+ }
46
+ self._input = None
47
+ self._guardrail_configs = None
48
+ self._compartment_id = None
49
+
50
+ @property
51
+ def input(self):
52
+ """
53
+ **[Required]** Gets the input of this ApplyGuardrailsDetails.
54
+
55
+ :return: The input of this ApplyGuardrailsDetails.
56
+ :rtype: oci.generative_ai_inference.models.GuardrailsInput
57
+ """
58
+ return self._input
59
+
60
+ @input.setter
61
+ def input(self, input):
62
+ """
63
+ Sets the input of this ApplyGuardrailsDetails.
64
+
65
+ :param input: The input of this ApplyGuardrailsDetails.
66
+ :type: oci.generative_ai_inference.models.GuardrailsInput
67
+ """
68
+ self._input = input
69
+
70
+ @property
71
+ def guardrail_configs(self):
72
+ """
73
+ **[Required]** Gets the guardrail_configs of this ApplyGuardrailsDetails.
74
+
75
+ :return: The guardrail_configs of this ApplyGuardrailsDetails.
76
+ :rtype: oci.generative_ai_inference.models.GuardrailConfigs
77
+ """
78
+ return self._guardrail_configs
79
+
80
+ @guardrail_configs.setter
81
+ def guardrail_configs(self, guardrail_configs):
82
+ """
83
+ Sets the guardrail_configs of this ApplyGuardrailsDetails.
84
+
85
+ :param guardrail_configs: The guardrail_configs of this ApplyGuardrailsDetails.
86
+ :type: oci.generative_ai_inference.models.GuardrailConfigs
87
+ """
88
+ self._guardrail_configs = guardrail_configs
89
+
90
+ @property
91
+ def compartment_id(self):
92
+ """
93
+ **[Required]** Gets the compartment_id of this ApplyGuardrailsDetails.
94
+ The OCID of the compartment to apply guardrails.
95
+
96
+
97
+ :return: The compartment_id of this ApplyGuardrailsDetails.
98
+ :rtype: str
99
+ """
100
+ return self._compartment_id
101
+
102
+ @compartment_id.setter
103
+ def compartment_id(self, compartment_id):
104
+ """
105
+ Sets the compartment_id of this ApplyGuardrailsDetails.
106
+ The OCID of the compartment to apply guardrails.
107
+
108
+
109
+ :param compartment_id: The compartment_id of this ApplyGuardrailsDetails.
110
+ :type: str
111
+ """
112
+ self._compartment_id = compartment_id
113
+
114
+ def __repr__(self):
115
+ return formatted_flat_dict(self)
116
+
117
+ def __eq__(self, other):
118
+ if other is None:
119
+ return False
120
+
121
+ return self.__dict__ == other.__dict__
122
+
123
+ def __ne__(self, other):
124
+ return not self == other
@@ -0,0 +1,66 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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 ApplyGuardrailsResult(object):
14
+ """
15
+ The result of applying guardrails to the input text.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new ApplyGuardrailsResult object with values from keyword arguments.
21
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
22
+
23
+ :param results:
24
+ The value to assign to the results property of this ApplyGuardrailsResult.
25
+ :type results: oci.generative_ai_inference.models.GuardrailsResults
26
+
27
+ """
28
+ self.swagger_types = {
29
+ 'results': 'GuardrailsResults'
30
+ }
31
+ self.attribute_map = {
32
+ 'results': 'results'
33
+ }
34
+ self._results = None
35
+
36
+ @property
37
+ def results(self):
38
+ """
39
+ **[Required]** Gets the results of this ApplyGuardrailsResult.
40
+
41
+ :return: The results of this ApplyGuardrailsResult.
42
+ :rtype: oci.generative_ai_inference.models.GuardrailsResults
43
+ """
44
+ return self._results
45
+
46
+ @results.setter
47
+ def results(self, results):
48
+ """
49
+ Sets the results of this ApplyGuardrailsResult.
50
+
51
+ :param results: The results of this ApplyGuardrailsResult.
52
+ :type: oci.generative_ai_inference.models.GuardrailsResults
53
+ """
54
+ self._results = results
55
+
56
+ def __repr__(self):
57
+ return formatted_flat_dict(self)
58
+
59
+ def __eq__(self, other):
60
+ if other is None:
61
+ return False
62
+
63
+ return self.__dict__ == other.__dict__
64
+
65
+ def __ne__(self, other):
66
+ return not self == other
@@ -13,6 +13,9 @@ from oci.decorators import init_model_state_from_kwargs
13
13
  class AssistantMessage(Message):
14
14
  """
15
15
  Represents a single instance of assistant message.
16
+
17
+ Note: When responding to a tool call, set `content` to `null` (not `\"\"`).
18
+ This ensures the model correctly processes tool call messages in multi-step interactions.
16
19
  """
17
20
 
18
21
  def __init__(self, **kwargs):
@@ -0,0 +1,101 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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 CategoryScore(object):
14
+ """
15
+ A category with its score.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new CategoryScore object with values from keyword arguments.
21
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
22
+
23
+ :param name:
24
+ The value to assign to the name property of this CategoryScore.
25
+ :type name: str
26
+
27
+ :param score:
28
+ The value to assign to the score property of this CategoryScore.
29
+ :type score: float
30
+
31
+ """
32
+ self.swagger_types = {
33
+ 'name': 'str',
34
+ 'score': 'float'
35
+ }
36
+ self.attribute_map = {
37
+ 'name': 'name',
38
+ 'score': 'score'
39
+ }
40
+ self._name = None
41
+ self._score = None
42
+
43
+ @property
44
+ def name(self):
45
+ """
46
+ **[Required]** Gets the name of this CategoryScore.
47
+ The name of the category.
48
+
49
+
50
+ :return: The name of this CategoryScore.
51
+ :rtype: str
52
+ """
53
+ return self._name
54
+
55
+ @name.setter
56
+ def name(self, name):
57
+ """
58
+ Sets the name of this CategoryScore.
59
+ The name of the category.
60
+
61
+
62
+ :param name: The name of this CategoryScore.
63
+ :type: str
64
+ """
65
+ self._name = name
66
+
67
+ @property
68
+ def score(self):
69
+ """
70
+ **[Required]** Gets the score of this CategoryScore.
71
+ The score of the category.
72
+
73
+
74
+ :return: The score of this CategoryScore.
75
+ :rtype: float
76
+ """
77
+ return self._score
78
+
79
+ @score.setter
80
+ def score(self, score):
81
+ """
82
+ Sets the score of this CategoryScore.
83
+ The score of the category.
84
+
85
+
86
+ :param score: The score of this CategoryScore.
87
+ :type: float
88
+ """
89
+ self._score = score
90
+
91
+ def __repr__(self):
92
+ return formatted_flat_dict(self)
93
+
94
+ def __eq__(self, other):
95
+ if other is None:
96
+ return False
97
+
98
+ return self.__dict__ == other.__dict__
99
+
100
+ def __ne__(self, other):
101
+ return not self == other
@@ -31,6 +31,18 @@ class CohereChatRequest(BaseChatRequest):
31
31
  #: This constant has a value of "FAST"
32
32
  CITATION_QUALITY_FAST = "FAST"
33
33
 
34
+ #: A constant which can be used with the safety_mode property of a CohereChatRequest.
35
+ #: This constant has a value of "CONTEXTUAL"
36
+ SAFETY_MODE_CONTEXTUAL = "CONTEXTUAL"
37
+
38
+ #: A constant which can be used with the safety_mode property of a CohereChatRequest.
39
+ #: This constant has a value of "STRICT"
40
+ SAFETY_MODE_STRICT = "STRICT"
41
+
42
+ #: A constant which can be used with the safety_mode property of a CohereChatRequest.
43
+ #: This constant has a value of "OFF"
44
+ SAFETY_MODE_OFF = "OFF"
45
+
34
46
  def __init__(self, **kwargs):
35
47
  """
36
48
  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
@@ -136,6 +148,11 @@ class CohereChatRequest(BaseChatRequest):
136
148
  Allowed values for this property are: "ACCURATE", "FAST"
137
149
  :type citation_quality: str
138
150
 
151
+ :param safety_mode:
152
+ The value to assign to the safety_mode property of this CohereChatRequest.
153
+ Allowed values for this property are: "CONTEXTUAL", "STRICT", "OFF"
154
+ :type safety_mode: str
155
+
139
156
  """
140
157
  self.swagger_types = {
141
158
  'api_format': 'str',
@@ -161,7 +178,8 @@ class CohereChatRequest(BaseChatRequest):
161
178
  'is_force_single_step': 'bool',
162
179
  'stop_sequences': 'list[str]',
163
180
  'is_raw_prompting': 'bool',
164
- 'citation_quality': 'str'
181
+ 'citation_quality': 'str',
182
+ 'safety_mode': 'str'
165
183
  }
166
184
  self.attribute_map = {
167
185
  'api_format': 'apiFormat',
@@ -187,7 +205,8 @@ class CohereChatRequest(BaseChatRequest):
187
205
  'is_force_single_step': 'isForceSingleStep',
188
206
  'stop_sequences': 'stopSequences',
189
207
  'is_raw_prompting': 'isRawPrompting',
190
- 'citation_quality': 'citationQuality'
208
+ 'citation_quality': 'citationQuality',
209
+ 'safety_mode': 'safetyMode'
191
210
  }
192
211
  self._api_format = None
193
212
  self._message = None
@@ -213,6 +232,7 @@ class CohereChatRequest(BaseChatRequest):
213
232
  self._stop_sequences = None
214
233
  self._is_raw_prompting = None
215
234
  self._citation_quality = None
235
+ self._safety_mode = None
216
236
  self._api_format = 'COHERE'
217
237
 
218
238
  @property
@@ -809,6 +829,37 @@ class CohereChatRequest(BaseChatRequest):
809
829
  )
810
830
  self._citation_quality = citation_quality
811
831
 
832
+ @property
833
+ def safety_mode(self):
834
+ """
835
+ Gets the safety_mode of this CohereChatRequest.
836
+ Used to select the safety instruction inserted into the prompt. When selected CONTEXTUAL mode, It is appropriate for wide-ranging interactions with fewer constraints on output while maintaining core protections by rejecting harmful or illegal suggestions. When selected STRICT mode, it aims to avoid all sensitive topics, such as violent or sexual acts and profanity. When selected OFF, the safety instruction will be omitted. Note: This parameter is only compatible with models Command R 08-2024, Command R+ 08-2024 and newer. Also, command-r7b-12-2024 only supports \"CONTEXTUAL\" and \"STRICT\" modes.
837
+
838
+ Allowed values for this property are: "CONTEXTUAL", "STRICT", "OFF"
839
+
840
+
841
+ :return: The safety_mode of this CohereChatRequest.
842
+ :rtype: str
843
+ """
844
+ return self._safety_mode
845
+
846
+ @safety_mode.setter
847
+ def safety_mode(self, safety_mode):
848
+ """
849
+ Sets the safety_mode of this CohereChatRequest.
850
+ Used to select the safety instruction inserted into the prompt. When selected CONTEXTUAL mode, It is appropriate for wide-ranging interactions with fewer constraints on output while maintaining core protections by rejecting harmful or illegal suggestions. When selected STRICT mode, it aims to avoid all sensitive topics, such as violent or sexual acts and profanity. When selected OFF, the safety instruction will be omitted. Note: This parameter is only compatible with models Command R 08-2024, Command R+ 08-2024 and newer. Also, command-r7b-12-2024 only supports \"CONTEXTUAL\" and \"STRICT\" modes.
851
+
852
+
853
+ :param safety_mode: The safety_mode of this CohereChatRequest.
854
+ :type: str
855
+ """
856
+ allowed_values = ["CONTEXTUAL", "STRICT", "OFF"]
857
+ if not value_allowed_none_or_none_sentinel(safety_mode, allowed_values):
858
+ raise ValueError(
859
+ f"Invalid value for `safety_mode`, must be None or one of {allowed_values}"
860
+ )
861
+ self._safety_mode = safety_mode
862
+
812
863
  def __repr__(self):
813
864
  return formatted_flat_dict(self)
814
865
 
@@ -0,0 +1,70 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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 ContentModerationConfiguration(object):
14
+ """
15
+ Configuration for content moderation.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new ContentModerationConfiguration object with values from keyword arguments.
21
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
22
+
23
+ :param categories:
24
+ The value to assign to the categories property of this ContentModerationConfiguration.
25
+ :type categories: list[str]
26
+
27
+ """
28
+ self.swagger_types = {
29
+ 'categories': 'list[str]'
30
+ }
31
+ self.attribute_map = {
32
+ 'categories': 'categories'
33
+ }
34
+ self._categories = None
35
+
36
+ @property
37
+ def categories(self):
38
+ """
39
+ **[Required]** Gets the categories of this ContentModerationConfiguration.
40
+ The categories to detect in the input text.
41
+
42
+
43
+ :return: The categories of this ContentModerationConfiguration.
44
+ :rtype: list[str]
45
+ """
46
+ return self._categories
47
+
48
+ @categories.setter
49
+ def categories(self, categories):
50
+ """
51
+ Sets the categories of this ContentModerationConfiguration.
52
+ The categories to detect in the input text.
53
+
54
+
55
+ :param categories: The categories of this ContentModerationConfiguration.
56
+ :type: list[str]
57
+ """
58
+ self._categories = categories
59
+
60
+ def __repr__(self):
61
+ return formatted_flat_dict(self)
62
+
63
+ def __eq__(self, other):
64
+ if other is None:
65
+ return False
66
+
67
+ return self.__dict__ == other.__dict__
68
+
69
+ def __ne__(self, other):
70
+ return not self == other
@@ -0,0 +1,70 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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 ContentModerationResult(object):
14
+ """
15
+ The result of content moderation.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new ContentModerationResult object with values from keyword arguments.
21
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
22
+
23
+ :param categories:
24
+ The value to assign to the categories property of this ContentModerationResult.
25
+ :type categories: list[oci.generative_ai_inference.models.CategoryScore]
26
+
27
+ """
28
+ self.swagger_types = {
29
+ 'categories': 'list[CategoryScore]'
30
+ }
31
+ self.attribute_map = {
32
+ 'categories': 'categories'
33
+ }
34
+ self._categories = None
35
+
36
+ @property
37
+ def categories(self):
38
+ """
39
+ **[Required]** Gets the categories of this ContentModerationResult.
40
+ A list of categories with their respective scores.
41
+
42
+
43
+ :return: The categories of this ContentModerationResult.
44
+ :rtype: list[oci.generative_ai_inference.models.CategoryScore]
45
+ """
46
+ return self._categories
47
+
48
+ @categories.setter
49
+ def categories(self, categories):
50
+ """
51
+ Sets the categories of this ContentModerationResult.
52
+ A list of categories with their respective scores.
53
+
54
+
55
+ :param categories: The categories of this ContentModerationResult.
56
+ :type: list[oci.generative_ai_inference.models.CategoryScore]
57
+ """
58
+ self._categories = categories
59
+
60
+ def __repr__(self):
61
+ return formatted_flat_dict(self)
62
+
63
+ def __eq__(self, other):
64
+ if other is None:
65
+ return False
66
+
67
+ return self.__dict__ == other.__dict__
68
+
69
+ def __ne__(self, other):
70
+ return not self == other
@@ -0,0 +1,120 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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 GuardrailConfigs(object):
14
+ """
15
+ Additional configuration for each guardrail.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new GuardrailConfigs object with values from keyword arguments.
21
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
22
+
23
+ :param content_moderation_config:
24
+ The value to assign to the content_moderation_config property of this GuardrailConfigs.
25
+ :type content_moderation_config: oci.generative_ai_inference.models.ContentModerationConfiguration
26
+
27
+ :param personally_identifiable_information_config:
28
+ The value to assign to the personally_identifiable_information_config property of this GuardrailConfigs.
29
+ :type personally_identifiable_information_config: oci.generative_ai_inference.models.PersonallyIdentifiableInformationConfiguration
30
+
31
+ :param prompt_injection_config:
32
+ The value to assign to the prompt_injection_config property of this GuardrailConfigs.
33
+ :type prompt_injection_config: oci.generative_ai_inference.models.PromptInjectionConfiguration
34
+
35
+ """
36
+ self.swagger_types = {
37
+ 'content_moderation_config': 'ContentModerationConfiguration',
38
+ 'personally_identifiable_information_config': 'PersonallyIdentifiableInformationConfiguration',
39
+ 'prompt_injection_config': 'PromptInjectionConfiguration'
40
+ }
41
+ self.attribute_map = {
42
+ 'content_moderation_config': 'contentModerationConfig',
43
+ 'personally_identifiable_information_config': 'personallyIdentifiableInformationConfig',
44
+ 'prompt_injection_config': 'promptInjectionConfig'
45
+ }
46
+ self._content_moderation_config = None
47
+ self._personally_identifiable_information_config = None
48
+ self._prompt_injection_config = None
49
+
50
+ @property
51
+ def content_moderation_config(self):
52
+ """
53
+ Gets the content_moderation_config of this GuardrailConfigs.
54
+
55
+ :return: The content_moderation_config of this GuardrailConfigs.
56
+ :rtype: oci.generative_ai_inference.models.ContentModerationConfiguration
57
+ """
58
+ return self._content_moderation_config
59
+
60
+ @content_moderation_config.setter
61
+ def content_moderation_config(self, content_moderation_config):
62
+ """
63
+ Sets the content_moderation_config of this GuardrailConfigs.
64
+
65
+ :param content_moderation_config: The content_moderation_config of this GuardrailConfigs.
66
+ :type: oci.generative_ai_inference.models.ContentModerationConfiguration
67
+ """
68
+ self._content_moderation_config = content_moderation_config
69
+
70
+ @property
71
+ def personally_identifiable_information_config(self):
72
+ """
73
+ Gets the personally_identifiable_information_config of this GuardrailConfigs.
74
+
75
+ :return: The personally_identifiable_information_config of this GuardrailConfigs.
76
+ :rtype: oci.generative_ai_inference.models.PersonallyIdentifiableInformationConfiguration
77
+ """
78
+ return self._personally_identifiable_information_config
79
+
80
+ @personally_identifiable_information_config.setter
81
+ def personally_identifiable_information_config(self, personally_identifiable_information_config):
82
+ """
83
+ Sets the personally_identifiable_information_config of this GuardrailConfigs.
84
+
85
+ :param personally_identifiable_information_config: The personally_identifiable_information_config of this GuardrailConfigs.
86
+ :type: oci.generative_ai_inference.models.PersonallyIdentifiableInformationConfiguration
87
+ """
88
+ self._personally_identifiable_information_config = personally_identifiable_information_config
89
+
90
+ @property
91
+ def prompt_injection_config(self):
92
+ """
93
+ Gets the prompt_injection_config of this GuardrailConfigs.
94
+
95
+ :return: The prompt_injection_config of this GuardrailConfigs.
96
+ :rtype: oci.generative_ai_inference.models.PromptInjectionConfiguration
97
+ """
98
+ return self._prompt_injection_config
99
+
100
+ @prompt_injection_config.setter
101
+ def prompt_injection_config(self, prompt_injection_config):
102
+ """
103
+ Sets the prompt_injection_config of this GuardrailConfigs.
104
+
105
+ :param prompt_injection_config: The prompt_injection_config of this GuardrailConfigs.
106
+ :type: oci.generative_ai_inference.models.PromptInjectionConfiguration
107
+ """
108
+ self._prompt_injection_config = prompt_injection_config
109
+
110
+ def __repr__(self):
111
+ return formatted_flat_dict(self)
112
+
113
+ def __eq__(self, other):
114
+ if other is None:
115
+ return False
116
+
117
+ return self.__dict__ == other.__dict__
118
+
119
+ def __ne__(self, other):
120
+ return not self == other