oci 2.143.1__py3-none-any.whl → 2.144.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.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_speech/models/realtime_parameters.py +61 -4
- oci/ai_vision/ai_service_vision_client.py +28 -28
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +84 -84
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_engine/models/cluster_create_options.py +47 -0
- oci/container_engine/models/cluster_endpoints.py +33 -2
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +256 -256
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +45 -45
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +3284 -1447
- oci/data_safe/data_safe_client_composite_operations.py +224 -0
- oci/data_safe/models/__init__.py +30 -4
- oci/data_safe/models/alert.py +0 -2
- oci/data_safe/models/alert_policy.py +0 -2
- oci/data_safe/models/alert_policy_summary.py +0 -2
- oci/data_safe/models/alert_summary.py +0 -2
- oci/data_safe/models/audit_archive_retrieval.py +0 -2
- oci/data_safe/models/audit_archive_retrieval_summary.py +0 -2
- oci/data_safe/models/audit_event_summary.py +0 -2
- oci/data_safe/models/audit_policy.py +0 -2
- oci/data_safe/models/audit_policy_summary.py +0 -2
- oci/data_safe/models/audit_profile.py +2 -4
- oci/data_safe/models/audit_profile_summary.py +2 -4
- oci/data_safe/models/audit_trail.py +0 -2
- oci/data_safe/models/audit_trail_summary.py +0 -2
- oci/data_safe/models/change_retention_details.py +2 -2
- oci/data_safe/models/change_sensitive_types_export_compartment_details.py +72 -0
- oci/data_safe/models/column_filter.py +11 -3
- oci/data_safe/models/columns_info.py +243 -0
- oci/data_safe/models/create_alert_policy_details.py +0 -2
- oci/data_safe/models/create_audit_archive_retrieval_details.py +0 -2
- oci/data_safe/models/create_data_safe_private_endpoint_details.py +0 -2
- oci/data_safe/models/create_discovery_job_details.py +0 -2
- oci/data_safe/models/create_library_masking_format_details.py +0 -2
- oci/data_safe/models/create_masking_policy_details.py +0 -2
- oci/data_safe/models/create_on_prem_connector_details.py +0 -2
- oci/data_safe/models/create_referential_relation_details.py +185 -0
- oci/data_safe/models/create_report_definition_details.py +0 -2
- oci/data_safe/models/create_sdm_masking_policy_difference_details.py +0 -2
- oci/data_safe/models/create_security_assessment_details.py +1 -3
- oci/data_safe/models/create_sensitive_data_model_details.py +0 -2
- oci/data_safe/models/create_sensitive_type_details.py +0 -2
- oci/data_safe/models/create_sensitive_types_export_details.py +277 -0
- oci/data_safe/models/create_sql_collection_details.py +0 -2
- oci/data_safe/models/create_target_alert_policy_association_details.py +0 -2
- oci/data_safe/models/create_target_database_details.py +0 -2
- oci/data_safe/models/create_user_assessment_details.py +0 -2
- oci/data_safe/models/data_safe_configuration.py +0 -2
- oci/data_safe/models/data_safe_private_endpoint.py +0 -2
- oci/data_safe/models/data_safe_private_endpoint_summary.py +0 -2
- oci/data_safe/models/database_security_config.py +0 -2
- oci/data_safe/models/database_security_config_summary.py +0 -2
- oci/data_safe/models/discovery_job.py +0 -2
- oci/data_safe/models/discovery_job_summary.py +0 -2
- oci/data_safe/models/download_sensitive_types_export_details.py +84 -0
- oci/data_safe/models/generate_health_report_details.py +0 -2
- oci/data_safe/models/library_masking_format.py +0 -2
- oci/data_safe/models/library_masking_format_summary.py +0 -2
- oci/data_safe/models/masking_analytics_dimensions.py +2 -2
- oci/data_safe/models/masking_policy.py +0 -2
- oci/data_safe/models/masking_policy_columns_info.py +177 -0
- oci/data_safe/models/masking_policy_health_report.py +62 -2
- oci/data_safe/models/masking_policy_health_report_log_summary.py +125 -2
- oci/data_safe/models/masking_policy_health_report_summary.py +62 -2
- oci/data_safe/models/masking_policy_referential_relation_collection.py +72 -0
- oci/data_safe/models/masking_policy_referential_relation_summary.py +211 -0
- oci/data_safe/models/masking_policy_summary.py +0 -2
- oci/data_safe/models/on_prem_connector.py +0 -2
- oci/data_safe/models/on_prem_connector_summary.py +0 -2
- oci/data_safe/models/profile.py +0 -2
- oci/data_safe/models/profile_aggregation.py +4 -4
- oci/data_safe/models/profile_summary.py +0 -2
- oci/data_safe/models/referential_relation.py +303 -0
- oci/data_safe/models/referential_relation_collection.py +72 -0
- oci/data_safe/models/referential_relation_summary.py +303 -0
- oci/data_safe/models/regular_expression_format_entry.py +2 -4
- oci/data_safe/models/report.py +0 -2
- oci/data_safe/models/report_definition.py +0 -2
- oci/data_safe/models/report_definition_summary.py +0 -2
- oci/data_safe/models/report_summary.py +0 -2
- oci/data_safe/models/run_security_assessment_details.py +0 -2
- oci/data_safe/models/run_user_assessment_details.py +0 -2
- oci/data_safe/models/sdm_masking_policy_difference.py +0 -2
- oci/data_safe/models/sdm_masking_policy_difference_summary.py +0 -2
- oci/data_safe/models/security_assessment.py +0 -2
- oci/data_safe/models/security_assessment_summary.py +0 -2
- oci/data_safe/models/security_feature_summary.py +0 -2
- oci/data_safe/models/security_policy.py +0 -2
- oci/data_safe/models/security_policy_deployment.py +0 -2
- oci/data_safe/models/security_policy_deployment_summary.py +0 -2
- oci/data_safe/models/security_policy_report.py +0 -2
- oci/data_safe/models/security_policy_report_summary.py +0 -2
- oci/data_safe/models/security_policy_summary.py +0 -2
- oci/data_safe/models/sensitive_data_model.py +0 -2
- oci/data_safe/models/sensitive_data_model_summary.py +0 -2
- oci/data_safe/models/sensitive_type.py +0 -2
- oci/data_safe/models/sensitive_type_summary.py +0 -2
- oci/data_safe/models/sensitive_types_export.py +471 -0
- oci/data_safe/models/sensitive_types_export_collection.py +72 -0
- oci/data_safe/models/sensitive_types_export_summary.py +374 -0
- oci/data_safe/models/sql_collection.py +0 -2
- oci/data_safe/models/sql_collection_summary.py +0 -2
- oci/data_safe/models/sql_firewall_allowed_sql.py +0 -2
- oci/data_safe/models/sql_firewall_allowed_sql_summary.py +0 -2
- oci/data_safe/models/sql_firewall_policy.py +0 -2
- oci/data_safe/models/sql_firewall_policy_summary.py +0 -2
- oci/data_safe/models/target_alert_policy_association.py +0 -2
- oci/data_safe/models/target_alert_policy_association_summary.py +0 -2
- oci/data_safe/models/target_database.py +0 -2
- oci/data_safe/models/target_database_summary.py +0 -2
- oci/data_safe/models/update_alert_details.py +0 -2
- oci/data_safe/models/update_alert_policy_details.py +0 -2
- oci/data_safe/models/update_audit_archive_retrieval_details.py +0 -2
- oci/data_safe/models/update_audit_policy_details.py +0 -2
- oci/data_safe/models/update_audit_profile_details.py +2 -4
- oci/data_safe/models/update_audit_trail_details.py +2 -4
- oci/data_safe/models/update_data_safe_private_endpoint_details.py +0 -2
- oci/data_safe/models/update_database_security_config_details.py +0 -2
- oci/data_safe/models/update_library_masking_format_details.py +0 -2
- oci/data_safe/models/update_masking_policy_details.py +0 -2
- oci/data_safe/models/update_on_prem_connector_details.py +0 -2
- oci/data_safe/models/update_report_definition_details.py +0 -2
- oci/data_safe/models/update_report_details.py +0 -2
- oci/data_safe/models/update_sdm_masking_policy_difference_details.py +0 -2
- oci/data_safe/models/update_security_assessment_details.py +0 -2
- oci/data_safe/models/update_security_policy_deployment_details.py +0 -2
- oci/data_safe/models/update_security_policy_details.py +0 -2
- oci/data_safe/models/update_sensitive_data_model_details.py +0 -2
- oci/data_safe/models/update_sensitive_type_details.py +0 -2
- oci/data_safe/models/{create_audit_policy_details.py → update_sensitive_types_export_details.py} +27 -91
- oci/data_safe/models/update_sql_collection_details.py +0 -2
- oci/data_safe/models/update_sql_firewall_policy_details.py +0 -2
- oci/data_safe/models/update_target_alert_policy_association_details.py +0 -2
- oci/data_safe/models/update_target_database_details.py +0 -2
- oci/data_safe/models/update_user_assessment_details.py +0 -2
- oci/data_safe/models/user_aggregation.py +4 -2
- oci/data_safe/models/user_assessment.py +0 -2
- oci/data_safe/models/user_assessment_summary.py +0 -2
- oci/data_safe/models/user_summary.py +37 -1
- oci/data_safe/models/work_request.py +15 -3
- oci/data_safe/models/work_request_summary.py +15 -3
- oci/data_science/data_science_client.py +1264 -173
- oci/data_science/data_science_client_composite_operations.py +248 -0
- oci/data_science/models/__init__.py +51 -1
- oci/data_science/models/change_schedule_compartment_details.py +78 -0
- oci/data_science/models/container_summary.py +516 -0
- oci/data_science/models/create_job_run_schedule_action_details.py +78 -0
- oci/data_science/models/create_pipeline_run_schedule_action_details.py +78 -0
- oci/data_science/models/create_schedule_details.py +328 -0
- oci/data_science/models/generic_job_run_use_case_configuration_details.py +82 -0
- oci/data_science/models/invoke_ml_application_provider_trigger_schedule_action_details.py +113 -0
- oci/data_science/models/job_run_use_case_configuration_details.py +101 -0
- oci/data_science/models/job_run_workload_configuration_details.py +78 -0
- oci/data_science/models/model_deploy_workload_configuration_details.py +191 -0
- oci/data_science/models/schedule.py +706 -0
- oci/data_science/models/schedule_action.py +101 -0
- oci/data_science/models/schedule_cron_trigger.py +96 -0
- oci/data_science/models/schedule_http_action.py +78 -0
- oci/data_science/models/schedule_http_action_details.py +117 -0
- oci/data_science/models/schedule_i_cal_trigger.py +96 -0
- oci/data_science/models/schedule_interval_trigger.py +177 -0
- oci/data_science/models/schedule_log_details.py +111 -0
- oci/data_science/models/schedule_summary.py +485 -0
- oci/data_science/models/schedule_trigger.py +191 -0
- oci/data_science/models/tag_configuration.py +103 -0
- oci/data_science/models/trigger_ml_application_instance_view_flow_details.py +103 -0
- oci/data_science/models/trigger_parameter.py +103 -0
- oci/data_science/models/update_schedule_details.py +258 -0
- oci/data_science/models/work_request.py +27 -3
- oci/data_science/models/work_request_summary.py +27 -3
- oci/data_science/models/workload_configuration_details.py +109 -0
- oci/database/database_client.py +404 -404
- oci/database/models/__init__.py +8 -0
- oci/database/models/autonomous_container_database.py +89 -0
- oci/database/models/autonomous_container_database_summary.py +89 -0
- oci/database/models/autonomous_database.py +33 -2
- oci/database/models/autonomous_database_backup.py +15 -3
- oci/database/models/autonomous_database_backup_summary.py +15 -3
- oci/database/models/autonomous_database_summary.py +33 -2
- oci/database/models/autonomous_dw_database.py +33 -2
- oci/database/models/backup_destination.py +95 -2
- oci/database/models/backup_destination_configuration_summary.py +387 -0
- oci/database/models/backup_destination_details_summary.py +356 -0
- oci/database/models/backup_destination_properties.py +134 -0
- oci/database/models/backup_destination_summary.py +95 -2
- oci/database/models/create_autonomous_database_clone_details.py +7 -3
- oci/database/models/create_autonomous_database_from_backup_details.py +40 -5
- oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +40 -5
- oci/database/models/create_data_guard_association_with_new_db_system_details.py +33 -0
- oci/database/models/db_system.py +96 -10
- oci/database/models/db_system_summary.py +96 -10
- oci/database/models/launch_db_system_base.py +33 -0
- oci/database/models/launch_db_system_details.py +7 -0
- oci/database/models/launch_db_system_from_backup_details.py +7 -0
- oci/database/models/launch_db_system_from_database_details.py +7 -0
- oci/database/models/launch_db_system_from_db_system_details.py +7 -0
- oci/database/models/recovery_appliance_details.py +134 -0
- oci/database/models/restore_autonomous_database_details.py +1 -1
- oci/database_management/db_management_client.py +228 -228
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +9 -9
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +31 -31
- oci/dns/dns_client.py +54 -54
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +68 -68
- oci/file_storage/models/file_system.py +33 -0
- oci/file_storage/models/file_system_summary.py +33 -0
- oci/file_storage/models/filesystem_snapshot_policy.py +35 -2
- oci/file_storage/models/filesystem_snapshot_policy_summary.py +35 -2
- oci/file_storage/models/ldap_bind_account.py +7 -0
- oci/file_storage/models/ldap_bind_account_summary.py +7 -0
- oci/file_storage/models/mount_target.py +35 -2
- oci/file_storage/models/mount_target_summary.py +35 -2
- oci/file_storage/models/outbound_connector.py +35 -2
- oci/file_storage/models/outbound_connector_summary.py +35 -2
- oci/file_storage/models/replication.py +35 -2
- oci/file_storage/models/replication_summary.py +33 -0
- oci/file_storage/models/replication_target.py +33 -0
- oci/file_storage/models/replication_target_summary.py +33 -0
- oci/file_storage/models/snapshot.py +33 -0
- oci/file_storage/models/snapshot_summary.py +35 -2
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
- oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
- oci/generative_ai_inference/generative_ai_inference_client.py +103 -4
- oci/generative_ai_inference/models/__init__.py +28 -0
- oci/generative_ai_inference/models/assistant_message.py +34 -3
- oci/generative_ai_inference/models/cohere_chat_request.py +2 -2
- oci/generative_ai_inference/models/document.py +72 -0
- oci/generative_ai_inference/models/document_rank.py +130 -0
- oci/generative_ai_inference/models/embed_text_details.py +9 -5
- oci/generative_ai_inference/models/function_call.py +120 -0
- oci/generative_ai_inference/models/function_definition.py +144 -0
- oci/generative_ai_inference/models/generic_chat_request.py +91 -2
- oci/generative_ai_inference/models/image_url.py +21 -5
- oci/generative_ai_inference/models/message.py +11 -3
- oci/generative_ai_inference/models/rerank_text_details.py +254 -0
- oci/generative_ai_inference/models/rerank_text_result.py +165 -0
- oci/generative_ai_inference/models/system_message.py +1 -1
- oci/generative_ai_inference/models/tool_call.py +132 -0
- oci/generative_ai_inference/models/tool_choice.py +125 -0
- oci/generative_ai_inference/models/tool_choice_auto.py +51 -0
- oci/generative_ai_inference/models/tool_choice_function.py +82 -0
- oci/generative_ai_inference/models/tool_choice_none.py +51 -0
- oci/generative_ai_inference/models/tool_choice_required.py +51 -0
- oci/generative_ai_inference/models/tool_definition.py +101 -0
- oci/generative_ai_inference/models/tool_message.py +89 -0
- oci/generative_ai_inference/models/user_message.py +1 -1
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +90 -90
- oci/golden_gate/models/__init__.py +24 -0
- oci/golden_gate/models/amazon_kinesis_connection.py +1 -1
- oci/golden_gate/models/amazon_kinesis_connection_summary.py +1 -1
- oci/golden_gate/models/amazon_redshift_connection.py +1 -1
- oci/golden_gate/models/amazon_redshift_connection_summary.py +1 -1
- oci/golden_gate/models/amazon_s3_connection.py +1 -1
- oci/golden_gate/models/amazon_s3_connection_summary.py +1 -1
- oci/golden_gate/models/azure_data_lake_storage_connection.py +1 -1
- oci/golden_gate/models/azure_data_lake_storage_connection_summary.py +1 -1
- oci/golden_gate/models/azure_synapse_connection.py +1 -1
- oci/golden_gate/models/azure_synapse_connection_summary.py +1 -1
- oci/golden_gate/models/connection.py +59 -35
- oci/golden_gate/models/connection_summary.py +62 -38
- oci/golden_gate/models/create_amazon_kinesis_connection_details.py +3 -1
- oci/golden_gate/models/create_amazon_redshift_connection_details.py +3 -1
- oci/golden_gate/models/create_amazon_s3_connection_details.py +3 -1
- oci/golden_gate/models/create_azure_data_lake_storage_connection_details.py +7 -1
- oci/golden_gate/models/create_azure_synapse_connection_details.py +3 -1
- oci/golden_gate/models/create_connection_details.py +58 -34
- oci/golden_gate/models/create_database_registration_details.py +4 -0
- oci/golden_gate/models/create_databricks_connection_details.py +437 -0
- oci/golden_gate/models/create_db2_connection_details.py +7 -1
- oci/golden_gate/models/create_elasticsearch_connection_details.py +3 -1
- oci/golden_gate/models/create_generic_connection_details.py +1 -1
- oci/golden_gate/models/create_golden_gate_connection_details.py +3 -1
- oci/golden_gate/models/create_google_big_query_connection_details.py +3 -1
- oci/golden_gate/models/create_google_cloud_storage_connection_details.py +3 -1
- oci/golden_gate/models/create_google_pub_sub_connection_details.py +241 -0
- oci/golden_gate/models/create_hdfs_connection_details.py +1 -1
- oci/golden_gate/models/create_java_message_service_connection_details.py +15 -1
- oci/golden_gate/models/create_kafka_connection_details.py +13 -1
- oci/golden_gate/models/create_kafka_schema_registry_connection_details.py +13 -1
- oci/golden_gate/models/create_microsoft_fabric_connection_details.py +336 -0
- oci/golden_gate/models/create_microsoft_sqlserver_connection_details.py +3 -1
- oci/golden_gate/models/create_mongo_db_connection_details.py +209 -3
- oci/golden_gate/models/create_mysql_connection_details.py +5 -1
- oci/golden_gate/models/create_oci_object_storage_connection_details.py +43 -4
- oci/golden_gate/models/create_oracle_connection_details.py +5 -1
- oci/golden_gate/models/create_oracle_nosql_connection_details.py +43 -4
- oci/golden_gate/models/create_postgresql_connection_details.py +5 -1
- oci/golden_gate/models/create_redis_connection_details.py +11 -1
- oci/golden_gate/models/create_snowflake_connection_details.py +7 -1
- oci/golden_gate/models/databricks_connection.py +456 -0
- oci/golden_gate/models/databricks_connection_summary.py +418 -0
- oci/golden_gate/models/db2_connection.py +1 -1
- oci/golden_gate/models/db2_connection_summary.py +1 -1
- oci/golden_gate/models/deployment_type_summary.py +15 -3
- oci/golden_gate/models/elasticsearch_connection.py +1 -1
- oci/golden_gate/models/elasticsearch_connection_summary.py +1 -1
- oci/golden_gate/models/generic_connection.py +1 -1
- oci/golden_gate/models/generic_connection_summary.py +1 -1
- oci/golden_gate/models/golden_gate_connection.py +1 -1
- oci/golden_gate/models/golden_gate_connection_summary.py +1 -1
- oci/golden_gate/models/google_big_query_connection.py +1 -1
- oci/golden_gate/models/google_big_query_connection_summary.py +1 -1
- oci/golden_gate/models/google_cloud_storage_connection.py +1 -1
- oci/golden_gate/models/google_cloud_storage_connection_summary.py +1 -1
- oci/golden_gate/models/google_pub_sub_connection.py +271 -0
- oci/golden_gate/models/google_pub_sub_connection_summary.py +255 -0
- oci/golden_gate/models/hdfs_connection.py +1 -1
- oci/golden_gate/models/hdfs_connection_summary.py +1 -1
- oci/golden_gate/models/java_message_service_connection.py +1 -1
- oci/golden_gate/models/java_message_service_connection_summary.py +1 -1
- oci/golden_gate/models/kafka_connection.py +1 -1
- oci/golden_gate/models/kafka_connection_summary.py +1 -1
- oci/golden_gate/models/kafka_schema_registry_connection.py +1 -1
- oci/golden_gate/models/kafka_schema_registry_connection_summary.py +1 -1
- oci/golden_gate/models/microsoft_fabric_connection.py +372 -0
- oci/golden_gate/models/microsoft_fabric_connection_summary.py +352 -0
- oci/golden_gate/models/microsoft_sqlserver_connection.py +1 -1
- oci/golden_gate/models/microsoft_sqlserver_connection_summary.py +1 -1
- oci/golden_gate/models/mongo_db_connection.py +141 -6
- oci/golden_gate/models/mongo_db_connection_summary.py +110 -3
- oci/golden_gate/models/mysql_connection.py +1 -1
- oci/golden_gate/models/mysql_connection_summary.py +1 -1
- oci/golden_gate/models/oci_object_storage_connection.py +38 -3
- oci/golden_gate/models/oci_object_storage_connection_summary.py +38 -3
- oci/golden_gate/models/oracle_connection.py +24 -4
- oci/golden_gate/models/oracle_connection_summary.py +1 -1
- oci/golden_gate/models/oracle_nosql_connection.py +38 -3
- oci/golden_gate/models/oracle_nosql_connection_summary.py +38 -3
- oci/golden_gate/models/postgresql_connection.py +8 -4
- oci/golden_gate/models/postgresql_connection_summary.py +1 -1
- oci/golden_gate/models/redis_connection.py +1 -1
- oci/golden_gate/models/redis_connection_summary.py +1 -1
- oci/golden_gate/models/snowflake_connection.py +1 -1
- oci/golden_gate/models/snowflake_connection_summary.py +1 -1
- oci/golden_gate/models/update_amazon_kinesis_connection_details.py +3 -1
- oci/golden_gate/models/update_amazon_redshift_connection_details.py +3 -1
- oci/golden_gate/models/update_amazon_s3_connection_details.py +3 -1
- oci/golden_gate/models/update_azure_data_lake_storage_connection_details.py +7 -1
- oci/golden_gate/models/update_azure_synapse_connection_details.py +3 -1
- oci/golden_gate/models/update_connection_details.py +46 -22
- oci/golden_gate/models/update_database_registration_details.py +4 -0
- oci/golden_gate/models/update_databricks_connection_details.py +392 -0
- oci/golden_gate/models/update_db2_connection_details.py +7 -1
- oci/golden_gate/models/update_elasticsearch_connection_details.py +3 -1
- oci/golden_gate/models/update_generic_connection_details.py +1 -1
- oci/golden_gate/models/update_golden_gate_connection_details.py +3 -1
- oci/golden_gate/models/update_google_big_query_connection_details.py +3 -1
- oci/golden_gate/models/update_google_cloud_storage_connection_details.py +3 -1
- oci/golden_gate/models/update_google_pub_sub_connection_details.py +196 -0
- oci/golden_gate/models/update_hdfs_connection_details.py +1 -1
- oci/golden_gate/models/update_java_message_service_connection_details.py +15 -1
- oci/golden_gate/models/update_kafka_connection_details.py +13 -1
- oci/golden_gate/models/update_kafka_schema_registry_connection_details.py +13 -1
- oci/golden_gate/models/update_microsoft_fabric_connection_details.py +291 -0
- oci/golden_gate/models/update_microsoft_sqlserver_connection_details.py +3 -1
- oci/golden_gate/models/update_mongo_db_connection_details.py +209 -3
- oci/golden_gate/models/update_mysql_connection_details.py +5 -1
- oci/golden_gate/models/update_oci_object_storage_connection_details.py +42 -3
- oci/golden_gate/models/update_oracle_connection_details.py +5 -1
- oci/golden_gate/models/update_oracle_nosql_connection_details.py +42 -3
- oci/golden_gate/models/update_postgresql_connection_details.py +5 -1
- oci/golden_gate/models/update_redis_connection_details.py +11 -1
- oci/golden_gate/models/update_snowflake_connection_details.py +7 -1
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +75 -75
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/models/__init__.py +6 -0
- oci/mysql/models/create_db_system_details.py +111 -2
- oci/mysql/models/create_read_endpoint_details.py +183 -0
- oci/mysql/models/db_system.py +145 -2
- oci/mysql/models/db_system_endpoint.py +7 -3
- oci/mysql/models/db_system_snapshot.py +29 -2
- oci/mysql/models/db_system_summary.py +113 -2
- oci/mysql/models/read_endpoint_details.py +183 -0
- oci/mysql/models/update_db_system_details.py +111 -2
- oci/mysql/models/update_read_endpoint_details.py +183 -0
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +86 -86
- oci/network_load_balancer/network_load_balancer_client.py +35 -35
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +55 -55
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +16 -16
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +181 -181
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +27 -27
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +26 -26
- oci/redis/redis_cluster_client.py +12 -12
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/models/__init__.py +42 -0
- oci/stack_monitoring/models/alarm_condition.py +588 -0
- oci/stack_monitoring/models/alarm_condition_collection.py +72 -0
- oci/stack_monitoring/models/alarm_condition_summary.py +588 -0
- oci/stack_monitoring/models/associated_monitored_resource.py +7 -3
- oci/stack_monitoring/models/associated_resources_summary.py +7 -3
- oci/stack_monitoring/models/condition.py +243 -0
- oci/stack_monitoring/models/create_alarm_condition_details.py +309 -0
- oci/stack_monitoring/models/create_license_auto_assign_config_details.py +7 -3
- oci/stack_monitoring/models/create_monitored_resource_details.py +7 -3
- oci/stack_monitoring/models/create_monitoring_template_details.py +406 -0
- oci/stack_monitoring/models/defined_alarm_condition.py +150 -0
- oci/stack_monitoring/models/defined_monitoring_template_collection.py +72 -0
- oci/stack_monitoring/models/defined_monitoring_template_summary.py +326 -0
- oci/stack_monitoring/models/discovery_details.py +26 -6
- oci/stack_monitoring/models/discovery_job_summary.py +26 -6
- oci/stack_monitoring/models/license_auto_assign_config_details.py +7 -3
- oci/stack_monitoring/models/license_auto_assign_config_summary.py +7 -3
- oci/stack_monitoring/models/manage_license_details.py +7 -3
- oci/stack_monitoring/models/member_reference.py +154 -0
- oci/stack_monitoring/models/metric_extension.py +2 -2
- oci/stack_monitoring/models/metric_extension_metric_aggregation_collection.py +72 -0
- oci/stack_monitoring/models/metric_extension_resource_aggregation.py +105 -0
- oci/stack_monitoring/models/metric_extension_resource_aggregation_collection.py +72 -0
- oci/stack_monitoring/models/metric_extensions_metric_aggregation.py +105 -0
- oci/stack_monitoring/models/monitored_resource.py +7 -3
- oci/stack_monitoring/models/monitored_resource_member_summary.py +7 -3
- oci/stack_monitoring/models/monitored_resource_summary.py +7 -3
- oci/stack_monitoring/models/monitored_resource_type.py +31 -0
- oci/stack_monitoring/models/monitored_resource_type_summary.py +31 -0
- oci/stack_monitoring/models/monitoring_template.py +743 -0
- oci/stack_monitoring/models/monitoring_template_collection.py +72 -0
- oci/stack_monitoring/models/monitoring_template_summary.py +599 -0
- oci/stack_monitoring/models/request_summarized_metric_extensions_metrics_details.py +263 -0
- oci/stack_monitoring/models/request_summarized_metric_extensions_resources_details.py +357 -0
- oci/stack_monitoring/models/search_monitored_resources_details.py +7 -3
- oci/stack_monitoring/models/system_format_resource_type_metadata_details.py +37 -2
- oci/stack_monitoring/models/update_alarm_condition_details.py +309 -0
- oci/stack_monitoring/models/update_license_auto_assign_config_details.py +7 -3
- oci/stack_monitoring/models/update_monitoring_template_details.py +375 -0
- oci/stack_monitoring/models/work_request.py +18 -6
- oci/stack_monitoring/models/work_request_summary.py +18 -6
- oci/stack_monitoring/stack_monitoring_client.py +2446 -446
- oci/stack_monitoring/stack_monitoring_client_composite_operations.py +331 -0
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +14 -14
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.143.1.dist-info → oci-2.144.1.dist-info}/METADATA +1 -1
- {oci-2.143.1.dist-info → oci-2.144.1.dist-info}/RECORD +655 -563
- oci/data_safe/models/create_audit_profile_details.py +0 -278
- {oci-2.143.1.dist-info → oci-2.144.1.dist-info}/LICENSE.txt +0 -0
- {oci-2.143.1.dist-info → oci-2.144.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.143.1.dist-info → oci-2.144.1.dist-info}/WHEEL +0 -0
- {oci-2.143.1.dist-info → oci-2.144.1.dist-info}/top_level.txt +0 -0
@@ -155,7 +155,7 @@ class GenerativeAiInferenceClient(object):
|
|
155
155
|
:rtype: :class:`~oci.response.Response`
|
156
156
|
|
157
157
|
:example:
|
158
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
158
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.1/generativeaiinference/chat.py.html>`__ to see an example of how to use chat API.
|
159
159
|
"""
|
160
160
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
161
161
|
required_arguments = []
|
@@ -254,7 +254,7 @@ class GenerativeAiInferenceClient(object):
|
|
254
254
|
:rtype: :class:`~oci.response.Response`
|
255
255
|
|
256
256
|
:example:
|
257
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
257
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.1/generativeaiinference/embed_text.py.html>`__ to see an example of how to use embed_text API.
|
258
258
|
"""
|
259
259
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
260
260
|
required_arguments = []
|
@@ -351,7 +351,7 @@ class GenerativeAiInferenceClient(object):
|
|
351
351
|
:rtype: :class:`~oci.response.Response`
|
352
352
|
|
353
353
|
:example:
|
354
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
354
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.1/generativeaiinference/generate_text.py.html>`__ to see an example of how to use generate_text API.
|
355
355
|
"""
|
356
356
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
357
357
|
required_arguments = []
|
@@ -415,6 +415,105 @@ class GenerativeAiInferenceClient(object):
|
|
415
415
|
api_reference_link=api_reference_link,
|
416
416
|
required_arguments=required_arguments)
|
417
417
|
|
418
|
+
def rerank_text(self, rerank_text_details, **kwargs):
|
419
|
+
"""
|
420
|
+
Reranks the text responses based on the input documents and a prompt.
|
421
|
+
|
422
|
+
Rerank assigns an index and a relevance score to each document, indicating which document is most related to the prompt.
|
423
|
+
|
424
|
+
|
425
|
+
:param oci.generative_ai_inference.models.RerankTextDetails rerank_text_details: (required)
|
426
|
+
Details required for the rerank request.
|
427
|
+
|
428
|
+
:param str opc_retry_token: (optional)
|
429
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
430
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
431
|
+
hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request
|
432
|
+
is rejected.
|
433
|
+
|
434
|
+
:param str opc_request_id: (optional)
|
435
|
+
The client request ID for tracing.
|
436
|
+
|
437
|
+
:param obj retry_strategy: (optional)
|
438
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
439
|
+
|
440
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
441
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
442
|
+
|
443
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
444
|
+
|
445
|
+
:param bool allow_control_chars: (optional)
|
446
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
447
|
+
By default, the response will not allow control characters in strings
|
448
|
+
|
449
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_inference.models.RerankTextResult`
|
450
|
+
:rtype: :class:`~oci.response.Response`
|
451
|
+
|
452
|
+
:example:
|
453
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.1/generativeaiinference/rerank_text.py.html>`__ to see an example of how to use rerank_text API.
|
454
|
+
"""
|
455
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
456
|
+
required_arguments = []
|
457
|
+
resource_path = "/actions/rerankText"
|
458
|
+
method = "POST"
|
459
|
+
operation_name = "rerank_text"
|
460
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-inference/20231130/RerankTextResult/RerankText"
|
461
|
+
|
462
|
+
# Don't accept unknown kwargs
|
463
|
+
expected_kwargs = [
|
464
|
+
"allow_control_chars",
|
465
|
+
"retry_strategy",
|
466
|
+
"opc_retry_token",
|
467
|
+
"opc_request_id"
|
468
|
+
]
|
469
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
470
|
+
if extra_kwargs:
|
471
|
+
raise ValueError(
|
472
|
+
f"rerank_text got unknown kwargs: {extra_kwargs!r}")
|
473
|
+
|
474
|
+
header_params = {
|
475
|
+
"accept": "application/json",
|
476
|
+
"content-type": "application/json",
|
477
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
478
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
479
|
+
}
|
480
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
481
|
+
|
482
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
483
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
484
|
+
client_retry_strategy=self.retry_strategy
|
485
|
+
)
|
486
|
+
if retry_strategy is None:
|
487
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
488
|
+
|
489
|
+
if retry_strategy:
|
490
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
491
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
492
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
493
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
494
|
+
return retry_strategy.make_retrying_call(
|
495
|
+
self.base_client.call_api,
|
496
|
+
resource_path=resource_path,
|
497
|
+
method=method,
|
498
|
+
header_params=header_params,
|
499
|
+
body=rerank_text_details,
|
500
|
+
response_type="RerankTextResult",
|
501
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
502
|
+
operation_name=operation_name,
|
503
|
+
api_reference_link=api_reference_link,
|
504
|
+
required_arguments=required_arguments)
|
505
|
+
else:
|
506
|
+
return self.base_client.call_api(
|
507
|
+
resource_path=resource_path,
|
508
|
+
method=method,
|
509
|
+
header_params=header_params,
|
510
|
+
body=rerank_text_details,
|
511
|
+
response_type="RerankTextResult",
|
512
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
513
|
+
operation_name=operation_name,
|
514
|
+
api_reference_link=api_reference_link,
|
515
|
+
required_arguments=required_arguments)
|
516
|
+
|
418
517
|
def summarize_text(self, summarize_text_details, **kwargs):
|
419
518
|
"""
|
420
519
|
Summarizes the input text.
|
@@ -448,7 +547,7 @@ class GenerativeAiInferenceClient(object):
|
|
448
547
|
:rtype: :class:`~oci.response.Response`
|
449
548
|
|
450
549
|
:example:
|
451
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
550
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.1/generativeaiinference/summarize_text.py.html>`__ to see an example of how to use summarize_text API.
|
452
551
|
"""
|
453
552
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
454
553
|
required_arguments = []
|
@@ -32,8 +32,12 @@ from .cohere_tool_message import CohereToolMessage
|
|
32
32
|
from .cohere_tool_result import CohereToolResult
|
33
33
|
from .cohere_user_message import CohereUserMessage
|
34
34
|
from .dedicated_serving_mode import DedicatedServingMode
|
35
|
+
from .document import Document
|
36
|
+
from .document_rank import DocumentRank
|
35
37
|
from .embed_text_details import EmbedTextDetails
|
36
38
|
from .embed_text_result import EmbedTextResult
|
39
|
+
from .function_call import FunctionCall
|
40
|
+
from .function_definition import FunctionDefinition
|
37
41
|
from .generate_text_details import GenerateTextDetails
|
38
42
|
from .generate_text_result import GenerateTextResult
|
39
43
|
from .generated_text import GeneratedText
|
@@ -48,6 +52,8 @@ from .llm_inference_response import LlmInferenceResponse
|
|
48
52
|
from .logprobs import Logprobs
|
49
53
|
from .message import Message
|
50
54
|
from .on_demand_serving_mode import OnDemandServingMode
|
55
|
+
from .rerank_text_details import RerankTextDetails
|
56
|
+
from .rerank_text_result import RerankTextResult
|
51
57
|
from .search_query import SearchQuery
|
52
58
|
from .serving_mode import ServingMode
|
53
59
|
from .summarize_text_details import SummarizeTextDetails
|
@@ -55,6 +61,14 @@ from .summarize_text_result import SummarizeTextResult
|
|
55
61
|
from .system_message import SystemMessage
|
56
62
|
from .text_content import TextContent
|
57
63
|
from .token_likelihood import TokenLikelihood
|
64
|
+
from .tool_call import ToolCall
|
65
|
+
from .tool_choice import ToolChoice
|
66
|
+
from .tool_choice_auto import ToolChoiceAuto
|
67
|
+
from .tool_choice_function import ToolChoiceFunction
|
68
|
+
from .tool_choice_none import ToolChoiceNone
|
69
|
+
from .tool_choice_required import ToolChoiceRequired
|
70
|
+
from .tool_definition import ToolDefinition
|
71
|
+
from .tool_message import ToolMessage
|
58
72
|
from .user_message import UserMessage
|
59
73
|
|
60
74
|
# Maps type names to classes for generative_ai_inference services.
|
@@ -85,8 +99,12 @@ generative_ai_inference_type_mapping = {
|
|
85
99
|
"CohereToolResult": CohereToolResult,
|
86
100
|
"CohereUserMessage": CohereUserMessage,
|
87
101
|
"DedicatedServingMode": DedicatedServingMode,
|
102
|
+
"Document": Document,
|
103
|
+
"DocumentRank": DocumentRank,
|
88
104
|
"EmbedTextDetails": EmbedTextDetails,
|
89
105
|
"EmbedTextResult": EmbedTextResult,
|
106
|
+
"FunctionCall": FunctionCall,
|
107
|
+
"FunctionDefinition": FunctionDefinition,
|
90
108
|
"GenerateTextDetails": GenerateTextDetails,
|
91
109
|
"GenerateTextResult": GenerateTextResult,
|
92
110
|
"GeneratedText": GeneratedText,
|
@@ -101,6 +119,8 @@ generative_ai_inference_type_mapping = {
|
|
101
119
|
"Logprobs": Logprobs,
|
102
120
|
"Message": Message,
|
103
121
|
"OnDemandServingMode": OnDemandServingMode,
|
122
|
+
"RerankTextDetails": RerankTextDetails,
|
123
|
+
"RerankTextResult": RerankTextResult,
|
104
124
|
"SearchQuery": SearchQuery,
|
105
125
|
"ServingMode": ServingMode,
|
106
126
|
"SummarizeTextDetails": SummarizeTextDetails,
|
@@ -108,5 +128,13 @@ generative_ai_inference_type_mapping = {
|
|
108
128
|
"SystemMessage": SystemMessage,
|
109
129
|
"TextContent": TextContent,
|
110
130
|
"TokenLikelihood": TokenLikelihood,
|
131
|
+
"ToolCall": ToolCall,
|
132
|
+
"ToolChoice": ToolChoice,
|
133
|
+
"ToolChoiceAuto": ToolChoiceAuto,
|
134
|
+
"ToolChoiceFunction": ToolChoiceFunction,
|
135
|
+
"ToolChoiceNone": ToolChoiceNone,
|
136
|
+
"ToolChoiceRequired": ToolChoiceRequired,
|
137
|
+
"ToolDefinition": ToolDefinition,
|
138
|
+
"ToolMessage": ToolMessage,
|
111
139
|
"UserMessage": UserMessage
|
112
140
|
}
|
@@ -23,7 +23,7 @@ class AssistantMessage(Message):
|
|
23
23
|
|
24
24
|
:param role:
|
25
25
|
The value to assign to the role property of this AssistantMessage.
|
26
|
-
Allowed values for this property are: "SYSTEM", "USER", "ASSISTANT"
|
26
|
+
Allowed values for this property are: "SYSTEM", "USER", "ASSISTANT", "TOOL"
|
27
27
|
:type role: str
|
28
28
|
|
29
29
|
:param content:
|
@@ -34,22 +34,29 @@ class AssistantMessage(Message):
|
|
34
34
|
The value to assign to the name property of this AssistantMessage.
|
35
35
|
:type name: str
|
36
36
|
|
37
|
+
:param tool_calls:
|
38
|
+
The value to assign to the tool_calls property of this AssistantMessage.
|
39
|
+
:type tool_calls: list[oci.generative_ai_inference.models.ToolCall]
|
40
|
+
|
37
41
|
"""
|
38
42
|
self.swagger_types = {
|
39
43
|
'role': 'str',
|
40
44
|
'content': 'list[ChatContent]',
|
41
|
-
'name': 'str'
|
45
|
+
'name': 'str',
|
46
|
+
'tool_calls': 'list[ToolCall]'
|
42
47
|
}
|
43
48
|
|
44
49
|
self.attribute_map = {
|
45
50
|
'role': 'role',
|
46
51
|
'content': 'content',
|
47
|
-
'name': 'name'
|
52
|
+
'name': 'name',
|
53
|
+
'tool_calls': 'toolCalls'
|
48
54
|
}
|
49
55
|
|
50
56
|
self._role = None
|
51
57
|
self._content = None
|
52
58
|
self._name = None
|
59
|
+
self._tool_calls = None
|
53
60
|
self._role = 'ASSISTANT'
|
54
61
|
|
55
62
|
@property
|
@@ -76,6 +83,30 @@ class AssistantMessage(Message):
|
|
76
83
|
"""
|
77
84
|
self._name = name
|
78
85
|
|
86
|
+
@property
|
87
|
+
def tool_calls(self):
|
88
|
+
"""
|
89
|
+
Gets the tool_calls of this AssistantMessage.
|
90
|
+
The tool calls generated by the model, such as function calls.
|
91
|
+
|
92
|
+
|
93
|
+
:return: The tool_calls of this AssistantMessage.
|
94
|
+
:rtype: list[oci.generative_ai_inference.models.ToolCall]
|
95
|
+
"""
|
96
|
+
return self._tool_calls
|
97
|
+
|
98
|
+
@tool_calls.setter
|
99
|
+
def tool_calls(self, tool_calls):
|
100
|
+
"""
|
101
|
+
Sets the tool_calls of this AssistantMessage.
|
102
|
+
The tool calls generated by the model, such as function calls.
|
103
|
+
|
104
|
+
|
105
|
+
:param tool_calls: The tool_calls of this AssistantMessage.
|
106
|
+
:type: list[oci.generative_ai_inference.models.ToolCall]
|
107
|
+
"""
|
108
|
+
self._tool_calls = tool_calls
|
109
|
+
|
79
110
|
def __repr__(self):
|
80
111
|
return formatted_flat_dict(self)
|
81
112
|
|
@@ -616,7 +616,7 @@ class CohereChatRequest(BaseChatRequest):
|
|
616
616
|
def seed(self):
|
617
617
|
"""
|
618
618
|
Gets the seed of this CohereChatRequest.
|
619
|
-
If specified, the backend will make a best effort to sample tokens deterministically,
|
619
|
+
If specified, the backend will make a best effort to sample tokens deterministically, so that repeated requests with the same seed and parameters yield the same result. However, determinism cannot be fully guaranteed.
|
620
620
|
|
621
621
|
|
622
622
|
:return: The seed of this CohereChatRequest.
|
@@ -628,7 +628,7 @@ class CohereChatRequest(BaseChatRequest):
|
|
628
628
|
def seed(self, seed):
|
629
629
|
"""
|
630
630
|
Sets the seed of this CohereChatRequest.
|
631
|
-
If specified, the backend will make a best effort to sample tokens deterministically,
|
631
|
+
If specified, the backend will make a best effort to sample tokens deterministically, so that repeated requests with the same seed and parameters yield the same result. However, determinism cannot be fully guaranteed.
|
632
632
|
|
633
633
|
|
634
634
|
:param seed: The seed of this CohereChatRequest.
|
@@ -0,0 +1,72 @@
|
|
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 Document(object):
|
14
|
+
"""
|
15
|
+
The input of the document to rerank.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new Document object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param text:
|
24
|
+
The value to assign to the text property of this Document.
|
25
|
+
:type text: str
|
26
|
+
|
27
|
+
"""
|
28
|
+
self.swagger_types = {
|
29
|
+
'text': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
self.attribute_map = {
|
33
|
+
'text': 'text'
|
34
|
+
}
|
35
|
+
|
36
|
+
self._text = None
|
37
|
+
|
38
|
+
@property
|
39
|
+
def text(self):
|
40
|
+
"""
|
41
|
+
**[Required]** Gets the text of this Document.
|
42
|
+
The text of the document to rerank.
|
43
|
+
|
44
|
+
|
45
|
+
:return: The text of this Document.
|
46
|
+
:rtype: str
|
47
|
+
"""
|
48
|
+
return self._text
|
49
|
+
|
50
|
+
@text.setter
|
51
|
+
def text(self, text):
|
52
|
+
"""
|
53
|
+
Sets the text of this Document.
|
54
|
+
The text of the document to rerank.
|
55
|
+
|
56
|
+
|
57
|
+
:param text: The text of this Document.
|
58
|
+
:type: str
|
59
|
+
"""
|
60
|
+
self._text = text
|
61
|
+
|
62
|
+
def __repr__(self):
|
63
|
+
return formatted_flat_dict(self)
|
64
|
+
|
65
|
+
def __eq__(self, other):
|
66
|
+
if other is None:
|
67
|
+
return False
|
68
|
+
|
69
|
+
return self.__dict__ == other.__dict__
|
70
|
+
|
71
|
+
def __ne__(self, other):
|
72
|
+
return not self == other
|
@@ -0,0 +1,130 @@
|
|
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 DocumentRank(object):
|
14
|
+
"""
|
15
|
+
An object that contains a relevance score, an index and the text for a document.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new DocumentRank object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param index:
|
24
|
+
The value to assign to the index property of this DocumentRank.
|
25
|
+
:type index: int
|
26
|
+
|
27
|
+
:param relevance_score:
|
28
|
+
The value to assign to the relevance_score property of this DocumentRank.
|
29
|
+
:type relevance_score: float
|
30
|
+
|
31
|
+
:param document:
|
32
|
+
The value to assign to the document property of this DocumentRank.
|
33
|
+
:type document: oci.generative_ai_inference.models.Document
|
34
|
+
|
35
|
+
"""
|
36
|
+
self.swagger_types = {
|
37
|
+
'index': 'int',
|
38
|
+
'relevance_score': 'float',
|
39
|
+
'document': 'Document'
|
40
|
+
}
|
41
|
+
|
42
|
+
self.attribute_map = {
|
43
|
+
'index': 'index',
|
44
|
+
'relevance_score': 'relevanceScore',
|
45
|
+
'document': 'document'
|
46
|
+
}
|
47
|
+
|
48
|
+
self._index = None
|
49
|
+
self._relevance_score = None
|
50
|
+
self._document = None
|
51
|
+
|
52
|
+
@property
|
53
|
+
def index(self):
|
54
|
+
"""
|
55
|
+
Gets the index of this DocumentRank.
|
56
|
+
Index of the document in documents array.
|
57
|
+
|
58
|
+
|
59
|
+
:return: The index of this DocumentRank.
|
60
|
+
:rtype: int
|
61
|
+
"""
|
62
|
+
return self._index
|
63
|
+
|
64
|
+
@index.setter
|
65
|
+
def index(self, index):
|
66
|
+
"""
|
67
|
+
Sets the index of this DocumentRank.
|
68
|
+
Index of the document in documents array.
|
69
|
+
|
70
|
+
|
71
|
+
:param index: The index of this DocumentRank.
|
72
|
+
:type: int
|
73
|
+
"""
|
74
|
+
self._index = index
|
75
|
+
|
76
|
+
@property
|
77
|
+
def relevance_score(self):
|
78
|
+
"""
|
79
|
+
Gets the relevance_score of this DocumentRank.
|
80
|
+
The relevance score for the document at that index.
|
81
|
+
|
82
|
+
|
83
|
+
:return: The relevance_score of this DocumentRank.
|
84
|
+
:rtype: float
|
85
|
+
"""
|
86
|
+
return self._relevance_score
|
87
|
+
|
88
|
+
@relevance_score.setter
|
89
|
+
def relevance_score(self, relevance_score):
|
90
|
+
"""
|
91
|
+
Sets the relevance_score of this DocumentRank.
|
92
|
+
The relevance score for the document at that index.
|
93
|
+
|
94
|
+
|
95
|
+
:param relevance_score: The relevance_score of this DocumentRank.
|
96
|
+
:type: float
|
97
|
+
"""
|
98
|
+
self._relevance_score = relevance_score
|
99
|
+
|
100
|
+
@property
|
101
|
+
def document(self):
|
102
|
+
"""
|
103
|
+
Gets the document of this DocumentRank.
|
104
|
+
|
105
|
+
:return: The document of this DocumentRank.
|
106
|
+
:rtype: oci.generative_ai_inference.models.Document
|
107
|
+
"""
|
108
|
+
return self._document
|
109
|
+
|
110
|
+
@document.setter
|
111
|
+
def document(self, document):
|
112
|
+
"""
|
113
|
+
Sets the document of this DocumentRank.
|
114
|
+
|
115
|
+
:param document: The document of this DocumentRank.
|
116
|
+
:type: oci.generative_ai_inference.models.Document
|
117
|
+
"""
|
118
|
+
self._document = document
|
119
|
+
|
120
|
+
def __repr__(self):
|
121
|
+
return formatted_flat_dict(self)
|
122
|
+
|
123
|
+
def __eq__(self, other):
|
124
|
+
if other is None:
|
125
|
+
return False
|
126
|
+
|
127
|
+
return self.__dict__ == other.__dict__
|
128
|
+
|
129
|
+
def __ne__(self, other):
|
130
|
+
return not self == other
|
@@ -43,6 +43,10 @@ class EmbedTextDetails(object):
|
|
43
43
|
#: This constant has a value of "CLUSTERING"
|
44
44
|
INPUT_TYPE_CLUSTERING = "CLUSTERING"
|
45
45
|
|
46
|
+
#: A constant which can be used with the input_type property of a EmbedTextDetails.
|
47
|
+
#: This constant has a value of "IMAGE"
|
48
|
+
INPUT_TYPE_IMAGE = "IMAGE"
|
49
|
+
|
46
50
|
def __init__(self, **kwargs):
|
47
51
|
"""
|
48
52
|
Initializes a new EmbedTextDetails object with values from keyword arguments.
|
@@ -71,7 +75,7 @@ class EmbedTextDetails(object):
|
|
71
75
|
|
72
76
|
:param input_type:
|
73
77
|
The value to assign to the input_type property of this EmbedTextDetails.
|
74
|
-
Allowed values for this property are: "SEARCH_DOCUMENT", "SEARCH_QUERY", "CLASSIFICATION", "CLUSTERING"
|
78
|
+
Allowed values for this property are: "SEARCH_DOCUMENT", "SEARCH_QUERY", "CLASSIFICATION", "CLUSTERING", "IMAGE"
|
75
79
|
:type input_type: str
|
76
80
|
|
77
81
|
"""
|
@@ -104,7 +108,7 @@ class EmbedTextDetails(object):
|
|
104
108
|
def inputs(self):
|
105
109
|
"""
|
106
110
|
**[Required]** Gets the inputs of this EmbedTextDetails.
|
107
|
-
Provide a list of strings
|
111
|
+
Provide a list of strings or one base64 encoded image with `input_type` setting to `IMAGE`. If text embedding, each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens.
|
108
112
|
|
109
113
|
|
110
114
|
:return: The inputs of this EmbedTextDetails.
|
@@ -116,7 +120,7 @@ class EmbedTextDetails(object):
|
|
116
120
|
def inputs(self, inputs):
|
117
121
|
"""
|
118
122
|
Sets the inputs of this EmbedTextDetails.
|
119
|
-
Provide a list of strings
|
123
|
+
Provide a list of strings or one base64 encoded image with `input_type` setting to `IMAGE`. If text embedding, each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens.
|
120
124
|
|
121
125
|
|
122
126
|
:param inputs: The inputs of this EmbedTextDetails.
|
@@ -229,7 +233,7 @@ class EmbedTextDetails(object):
|
|
229
233
|
Gets the input_type of this EmbedTextDetails.
|
230
234
|
Specifies the input type.
|
231
235
|
|
232
|
-
Allowed values for this property are: "SEARCH_DOCUMENT", "SEARCH_QUERY", "CLASSIFICATION", "CLUSTERING"
|
236
|
+
Allowed values for this property are: "SEARCH_DOCUMENT", "SEARCH_QUERY", "CLASSIFICATION", "CLUSTERING", "IMAGE"
|
233
237
|
|
234
238
|
|
235
239
|
:return: The input_type of this EmbedTextDetails.
|
@@ -247,7 +251,7 @@ class EmbedTextDetails(object):
|
|
247
251
|
:param input_type: The input_type of this EmbedTextDetails.
|
248
252
|
:type: str
|
249
253
|
"""
|
250
|
-
allowed_values = ["SEARCH_DOCUMENT", "SEARCH_QUERY", "CLASSIFICATION", "CLUSTERING"]
|
254
|
+
allowed_values = ["SEARCH_DOCUMENT", "SEARCH_QUERY", "CLASSIFICATION", "CLUSTERING", "IMAGE"]
|
251
255
|
if not value_allowed_none_or_none_sentinel(input_type, allowed_values):
|
252
256
|
raise ValueError(
|
253
257
|
f"Invalid value for `input_type`, must be None or one of {allowed_values}"
|
@@ -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
|
+
from .tool_call import ToolCall
|
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 FunctionCall(ToolCall):
|
14
|
+
"""
|
15
|
+
The function call generated by the model.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new FunctionCall object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.FunctionCall.type` attribute
|
21
|
+
of this class is ``FUNCTION`` and it should not be changed.
|
22
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
23
|
+
|
24
|
+
:param id:
|
25
|
+
The value to assign to the id property of this FunctionCall.
|
26
|
+
:type id: str
|
27
|
+
|
28
|
+
:param type:
|
29
|
+
The value to assign to the type property of this FunctionCall.
|
30
|
+
Allowed values for this property are: "FUNCTION"
|
31
|
+
:type type: str
|
32
|
+
|
33
|
+
:param name:
|
34
|
+
The value to assign to the name property of this FunctionCall.
|
35
|
+
:type name: str
|
36
|
+
|
37
|
+
:param arguments:
|
38
|
+
The value to assign to the arguments property of this FunctionCall.
|
39
|
+
:type arguments: str
|
40
|
+
|
41
|
+
"""
|
42
|
+
self.swagger_types = {
|
43
|
+
'id': 'str',
|
44
|
+
'type': 'str',
|
45
|
+
'name': 'str',
|
46
|
+
'arguments': 'str'
|
47
|
+
}
|
48
|
+
|
49
|
+
self.attribute_map = {
|
50
|
+
'id': 'id',
|
51
|
+
'type': 'type',
|
52
|
+
'name': 'name',
|
53
|
+
'arguments': 'arguments'
|
54
|
+
}
|
55
|
+
|
56
|
+
self._id = None
|
57
|
+
self._type = None
|
58
|
+
self._name = None
|
59
|
+
self._arguments = None
|
60
|
+
self._type = 'FUNCTION'
|
61
|
+
|
62
|
+
@property
|
63
|
+
def name(self):
|
64
|
+
"""
|
65
|
+
Gets the name of this FunctionCall.
|
66
|
+
The name of the function to call.
|
67
|
+
|
68
|
+
|
69
|
+
:return: The name of this FunctionCall.
|
70
|
+
:rtype: str
|
71
|
+
"""
|
72
|
+
return self._name
|
73
|
+
|
74
|
+
@name.setter
|
75
|
+
def name(self, name):
|
76
|
+
"""
|
77
|
+
Sets the name of this FunctionCall.
|
78
|
+
The name of the function to call.
|
79
|
+
|
80
|
+
|
81
|
+
:param name: The name of this FunctionCall.
|
82
|
+
:type: str
|
83
|
+
"""
|
84
|
+
self._name = name
|
85
|
+
|
86
|
+
@property
|
87
|
+
def arguments(self):
|
88
|
+
"""
|
89
|
+
Gets the arguments of this FunctionCall.
|
90
|
+
The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
91
|
+
|
92
|
+
|
93
|
+
:return: The arguments of this FunctionCall.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._arguments
|
97
|
+
|
98
|
+
@arguments.setter
|
99
|
+
def arguments(self, arguments):
|
100
|
+
"""
|
101
|
+
Sets the arguments of this FunctionCall.
|
102
|
+
The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
103
|
+
|
104
|
+
|
105
|
+
:param arguments: The arguments of this FunctionCall.
|
106
|
+
:type: str
|
107
|
+
"""
|
108
|
+
self._arguments = arguments
|
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
|