oci 2.126.4__py3-none-any.whl → 2.128.0__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/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +10 -10
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +8 -8
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/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 +66 -66
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +494 -38
- oci/capacity_management/models/__init__.py +4 -2
- oci/capacity_management/models/create_occ_capacity_request_details.py +32 -1
- oci/capacity_management/models/metadata_details.py +7 -3
- oci/capacity_management/models/occ_availability_catalog.py +2 -2
- oci/capacity_management/models/occ_availability_catalog_summary.py +2 -2
- oci/capacity_management/models/occ_availability_summary.py +99 -40
- oci/capacity_management/models/occ_capacity_request.py +47 -0
- oci/capacity_management/models/occ_capacity_request_base_details.py +96 -32
- oci/capacity_management/models/occ_capacity_request_summary.py +31 -0
- oci/capacity_management/models/occ_overview_collection.py +72 -0
- oci/capacity_management/models/occ_overview_summary.py +413 -0
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +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_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +99 -99
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +247 -247
- 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 +42 -42
- 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 +278 -278
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +447 -333
- oci/database/models/__init__.py +6 -0
- oci/database/models/autonomous_database_peer_collection.py +72 -0
- oci/database/models/autonomous_database_peer_summary.py +107 -0
- oci/database/models/create_autonomous_database_base.py +4 -0
- oci/database/models/create_cross_tenancy_disaster_recovery_details.py +512 -0
- oci/database/models/database_connection_credentials_by_details.py +7 -3
- oci/database/models/database_ssl_connection_credentials.py +7 -3
- oci/database/models/enable_database_management_details.py +7 -3
- oci/database/models/enable_pluggable_database_management_details.py +7 -3
- oci/database/models/modify_database_management_details.py +7 -3
- oci/database/models/modify_pluggable_database_management_details.py +7 -3
- oci/database_management/db_management_client.py +478 -206
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/models/__init__.py +10 -0
- oci/database_management/models/basic_named_credential_content.py +7 -3
- oci/database_management/models/basic_preferred_credential.py +7 -3
- oci/database_management/models/data_points.py +103 -0
- oci/database_management/models/database_connection_credentials_by_details.py +7 -3
- oci/database_management/models/database_password_credential_details.py +7 -3
- oci/database_management/models/database_secret_credential_details.py +7 -3
- oci/database_management/models/database_ssl_connection_credentials.py +7 -3
- oci/database_management/models/database_usage_metrics.py +183 -0
- oci/database_management/models/dataguard_performance_metrics.py +72 -0
- oci/database_management/models/peer_database_metrics.py +72 -0
- oci/database_management/models/performance_metrics.py +165 -0
- oci/database_management/models/performance_metrics_data.py +387 -0
- oci/database_management/models/preferred_credential_summary.py +7 -3
- oci/database_management/models/test_basic_preferred_credential_details.py +7 -3
- oci/database_management/models/update_basic_preferred_credential_details.py +7 -3
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_tools/database_tools_client.py +23 -23
- oci/demand_signal/__init__.py +14 -0
- oci/demand_signal/models/__init__.py +48 -0
- oci/demand_signal/models/change_occ_demand_signal_compartment_details.py +76 -0
- oci/demand_signal/models/create_occ_demand_signal_details.py +251 -0
- oci/demand_signal/models/occ_demand_signal.py +501 -0
- oci/demand_signal/models/occ_demand_signal_collection.py +72 -0
- oci/demand_signal/models/occ_demand_signal_data.py +134 -0
- oci/demand_signal/models/occ_demand_signal_summary.py +430 -0
- oci/demand_signal/models/occ_demand_signal_value.py +134 -0
- oci/demand_signal/models/patch_insert_instruction.py +171 -0
- oci/demand_signal/models/patch_insert_multiple_instruction.py +171 -0
- oci/demand_signal/models/patch_instruction.py +192 -0
- oci/demand_signal/models/patch_merge_instruction.py +97 -0
- oci/demand_signal/models/patch_move_instruction.py +147 -0
- oci/demand_signal/models/patch_occ_demand_signal_details.py +72 -0
- oci/demand_signal/models/patch_prohibit_instruction.py +100 -0
- oci/demand_signal/models/patch_remove_instruction.py +59 -0
- oci/demand_signal/models/patch_replace_instruction.py +92 -0
- oci/demand_signal/models/patch_require_instruction.py +99 -0
- oci/demand_signal/models/update_occ_demand_signal_details.py +185 -0
- oci/demand_signal/occ_demand_signal_client.py +953 -0
- oci/demand_signal/occ_demand_signal_client_composite_operations.py +176 -0
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +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 +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +39 -39
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai/models/__init__.py +4 -0
- oci/generative_ai/models/chat_model_metrics.py +113 -0
- oci/generative_ai/models/create_dedicated_ai_cluster_details.py +8 -0
- oci/generative_ai/models/dedicated_ai_cluster.py +17 -5
- oci/generative_ai/models/lora_training_config.py +186 -0
- oci/generative_ai/models/model_metrics.py +11 -3
- oci/generative_ai/models/t_few_training_config.py +1 -1
- oci/generative_ai/models/text_generation_model_metrics.py +1 -1
- oci/generative_ai/models/training_config.py +11 -3
- oci/generative_ai/models/vanilla_training_config.py +1 -1
- oci/generative_ai_inference/generative_ai_inference_client.py +13 -17
- oci/generative_ai_inference/models/__init__.py +23 -1
- oci/generative_ai_inference/models/assistant_message.py +89 -0
- oci/generative_ai_inference/models/base_chat_request.py +3 -3
- oci/generative_ai_inference/models/base_chat_response.py +3 -3
- oci/generative_ai_inference/models/chat_details.py +3 -3
- oci/generative_ai_inference/models/chat_result.py +2 -2
- oci/generative_ai_inference/models/choice.py +1 -1
- oci/generative_ai_inference/models/citation.py +9 -9
- oci/generative_ai_inference/models/cohere_chat_bot_message.py +113 -0
- oci/generative_ai_inference/models/cohere_chat_request.py +353 -30
- oci/generative_ai_inference/models/cohere_chat_response.py +166 -16
- oci/generative_ai_inference/models/cohere_llm_inference_response.py +1 -1
- oci/generative_ai_inference/models/cohere_message.py +49 -43
- oci/generative_ai_inference/models/cohere_parameter_definition.py +134 -0
- oci/generative_ai_inference/models/cohere_system_message.py +82 -0
- oci/generative_ai_inference/models/cohere_tool.py +134 -0
- oci/generative_ai_inference/models/cohere_tool_call.py +103 -0
- oci/generative_ai_inference/models/cohere_tool_message.py +82 -0
- oci/generative_ai_inference/models/cohere_tool_result.py +99 -0
- oci/generative_ai_inference/models/cohere_user_message.py +82 -0
- oci/generative_ai_inference/models/embed_text_details.py +4 -4
- oci/generative_ai_inference/models/generate_text_details.py +2 -2
- oci/generative_ai_inference/models/generic_chat_request.py +16 -10
- oci/generative_ai_inference/models/generic_chat_response.py +3 -3
- oci/generative_ai_inference/models/llama_llm_inference_request.py +2 -2
- oci/generative_ai_inference/models/llama_llm_inference_response.py +1 -1
- oci/generative_ai_inference/models/llm_inference_response.py +3 -11
- oci/generative_ai_inference/models/logprobs.py +3 -1
- oci/generative_ai_inference/models/message.py +50 -5
- oci/generative_ai_inference/models/on_demand_serving_mode.py +2 -2
- oci/generative_ai_inference/models/serving_mode.py +3 -3
- oci/generative_ai_inference/models/summarize_text_details.py +2 -2
- oci/generative_ai_inference/models/system_message.py +89 -0
- oci/generative_ai_inference/models/text_content.py +1 -1
- oci/generative_ai_inference/models/user_message.py +89 -0
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +29 -29
- oci/golden_gate/golden_gate_client.py +2420 -1399
- oci/golden_gate/golden_gate_client_composite_operations.py +274 -0
- oci/golden_gate/models/__init__.py +20 -0
- oci/golden_gate/models/add_resource_lock_details.py +124 -0
- oci/golden_gate/models/amazon_kinesis_connection.py +8 -1
- oci/golden_gate/models/amazon_kinesis_connection_summary.py +8 -1
- oci/golden_gate/models/amazon_redshift_connection.py +8 -1
- oci/golden_gate/models/amazon_redshift_connection_summary.py +8 -1
- oci/golden_gate/models/amazon_s3_connection.py +8 -1
- oci/golden_gate/models/amazon_s3_connection_summary.py +8 -1
- oci/golden_gate/models/azure_data_lake_storage_connection.py +8 -1
- oci/golden_gate/models/azure_data_lake_storage_connection_summary.py +8 -1
- oci/golden_gate/models/azure_synapse_connection.py +8 -1
- oci/golden_gate/models/azure_synapse_connection_summary.py +8 -1
- oci/golden_gate/models/certificate.py +2 -2
- oci/golden_gate/models/connection.py +42 -3
- oci/golden_gate/models/connection_summary.py +44 -5
- oci/golden_gate/models/create_amazon_kinesis_connection_details.py +8 -1
- oci/golden_gate/models/create_amazon_redshift_connection_details.py +8 -1
- oci/golden_gate/models/create_amazon_s3_connection_details.py +8 -1
- oci/golden_gate/models/create_azure_data_lake_storage_connection_details.py +8 -1
- oci/golden_gate/models/create_azure_synapse_connection_details.py +8 -1
- oci/golden_gate/models/create_certificate_details.py +2 -2
- oci/golden_gate/models/create_connection_details.py +42 -3
- oci/golden_gate/models/create_db2_connection_details.py +474 -0
- oci/golden_gate/models/create_deployment_backup_details.py +33 -2
- oci/golden_gate/models/create_deployment_details.py +37 -2
- oci/golden_gate/models/create_elasticsearch_connection_details.py +8 -1
- oci/golden_gate/models/create_generic_connection_details.py +8 -1
- oci/golden_gate/models/create_golden_gate_connection_details.py +8 -1
- oci/golden_gate/models/create_google_big_query_connection_details.py +8 -1
- oci/golden_gate/models/create_google_cloud_storage_connection_details.py +8 -1
- oci/golden_gate/models/create_hdfs_connection_details.py +8 -1
- oci/golden_gate/models/create_java_message_service_connection_details.py +8 -1
- oci/golden_gate/models/create_kafka_connection_details.py +8 -1
- oci/golden_gate/models/create_kafka_schema_registry_connection_details.py +8 -1
- oci/golden_gate/models/create_microsoft_sqlserver_connection_details.py +8 -1
- oci/golden_gate/models/create_mongo_db_connection_details.py +8 -1
- oci/golden_gate/models/create_mysql_connection_details.py +8 -1
- oci/golden_gate/models/create_oci_object_storage_connection_details.py +8 -1
- oci/golden_gate/models/create_ogg_deployment_details.py +4 -4
- oci/golden_gate/models/create_oracle_connection_details.py +41 -1
- oci/golden_gate/models/create_oracle_nosql_connection_details.py +8 -1
- oci/golden_gate/models/create_postgresql_connection_details.py +47 -5
- oci/golden_gate/models/create_redis_connection_details.py +46 -4
- oci/golden_gate/models/create_snowflake_connection_details.py +8 -1
- oci/golden_gate/models/db2_connection.py +431 -0
- oci/golden_gate/models/db2_connection_summary.py +399 -0
- oci/golden_gate/models/deployment.py +37 -2
- oci/golden_gate/models/deployment_backup.py +112 -2
- oci/golden_gate/models/deployment_backup_summary.py +112 -2
- oci/golden_gate/models/deployment_summary.py +39 -4
- oci/golden_gate/models/deployment_type_summary.py +7 -3
- oci/golden_gate/models/elasticsearch_connection.py +8 -1
- oci/golden_gate/models/elasticsearch_connection_summary.py +8 -1
- oci/golden_gate/models/generate_library_url_details.py +101 -0
- oci/golden_gate/models/generate_log_reader_component_library_url_details.py +51 -0
- oci/golden_gate/models/generic_connection.py +8 -1
- oci/golden_gate/models/generic_connection_summary.py +8 -1
- oci/golden_gate/models/golden_gate_connection.py +8 -1
- oci/golden_gate/models/golden_gate_connection_summary.py +8 -1
- oci/golden_gate/models/google_big_query_connection.py +8 -1
- oci/golden_gate/models/google_big_query_connection_summary.py +8 -1
- oci/golden_gate/models/google_cloud_storage_connection.py +8 -1
- oci/golden_gate/models/google_cloud_storage_connection_summary.py +8 -1
- oci/golden_gate/models/hdfs_connection.py +8 -1
- oci/golden_gate/models/hdfs_connection_summary.py +8 -1
- oci/golden_gate/models/java_message_service_connection.py +8 -1
- oci/golden_gate/models/java_message_service_connection_summary.py +8 -1
- oci/golden_gate/models/kafka_connection.py +8 -1
- oci/golden_gate/models/kafka_connection_summary.py +8 -1
- oci/golden_gate/models/kafka_schema_registry_connection.py +8 -1
- oci/golden_gate/models/kafka_schema_registry_connection_summary.py +8 -1
- oci/golden_gate/models/library_url.py +72 -0
- oci/golden_gate/models/microsoft_sqlserver_connection.py +8 -1
- oci/golden_gate/models/microsoft_sqlserver_connection_summary.py +8 -1
- oci/golden_gate/models/mongo_db_connection.py +8 -1
- oci/golden_gate/models/mongo_db_connection_summary.py +8 -1
- oci/golden_gate/models/mysql_connection.py +19 -4
- oci/golden_gate/models/mysql_connection_summary.py +8 -1
- oci/golden_gate/models/oci_object_storage_connection.py +8 -1
- oci/golden_gate/models/oci_object_storage_connection_summary.py +8 -1
- oci/golden_gate/models/ogg_deployment.py +2 -2
- oci/golden_gate/models/oracle_connection.py +64 -4
- oci/golden_gate/models/oracle_connection_summary.py +41 -1
- oci/golden_gate/models/oracle_nosql_connection.py +8 -1
- oci/golden_gate/models/oracle_nosql_connection_summary.py +8 -1
- oci/golden_gate/models/postgresql_connection.py +56 -6
- oci/golden_gate/models/postgresql_connection_summary.py +45 -3
- oci/golden_gate/models/redis_connection.py +52 -6
- oci/golden_gate/models/redis_connection_summary.py +45 -3
- oci/golden_gate/models/remove_resource_lock_details.py +91 -0
- oci/golden_gate/models/resource_lock.py +185 -0
- oci/golden_gate/models/snowflake_connection.py +8 -1
- oci/golden_gate/models/snowflake_connection_summary.py +8 -1
- oci/golden_gate/models/update_amazon_kinesis_connection_details.py +1 -1
- oci/golden_gate/models/update_amazon_redshift_connection_details.py +1 -1
- oci/golden_gate/models/update_amazon_s3_connection_details.py +1 -1
- oci/golden_gate/models/update_azure_data_lake_storage_connection_details.py +1 -1
- oci/golden_gate/models/update_azure_synapse_connection_details.py +1 -1
- oci/golden_gate/models/update_connection_details.py +11 -3
- oci/golden_gate/models/update_db2_connection_details.py +429 -0
- oci/golden_gate/models/update_deployment_details.py +43 -0
- oci/golden_gate/models/update_elasticsearch_connection_details.py +1 -1
- oci/golden_gate/models/update_generic_connection_details.py +1 -1
- oci/golden_gate/models/update_golden_gate_connection_details.py +1 -1
- oci/golden_gate/models/update_google_big_query_connection_details.py +1 -1
- oci/golden_gate/models/update_google_cloud_storage_connection_details.py +1 -1
- oci/golden_gate/models/update_hdfs_connection_details.py +1 -1
- oci/golden_gate/models/update_java_message_service_connection_details.py +1 -1
- oci/golden_gate/models/update_kafka_connection_details.py +1 -1
- oci/golden_gate/models/update_kafka_schema_registry_connection_details.py +1 -1
- oci/golden_gate/models/update_microsoft_sqlserver_connection_details.py +1 -1
- oci/golden_gate/models/update_mongo_db_connection_details.py +1 -1
- oci/golden_gate/models/update_mysql_connection_details.py +1 -1
- oci/golden_gate/models/update_oci_object_storage_connection_details.py +1 -1
- oci/golden_gate/models/update_ogg_deployment_details.py +4 -4
- oci/golden_gate/models/update_oracle_connection_details.py +34 -1
- oci/golden_gate/models/update_oracle_nosql_connection_details.py +1 -1
- oci/golden_gate/models/update_postgresql_connection_details.py +38 -3
- oci/golden_gate/models/update_redis_connection_details.py +38 -3
- oci/golden_gate/models/update_snowflake_connection_details.py +1 -1
- oci/golden_gate/models/work_request.py +7 -3
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +300 -300
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +66 -66
- oci/jms_java_downloads/java_download_client.py +52 -51
- oci/jms_java_downloads/models/create_java_download_report_details.py +80 -6
- oci/jms_java_downloads/models/create_java_license_acceptance_record_details.py +76 -2
- oci/jms_java_downloads/models/java_download_count_aggregation.py +2 -2
- oci/jms_java_downloads/models/java_download_record.py +2 -2
- oci/jms_java_downloads/models/java_download_record_summary.py +2 -2
- oci/jms_java_downloads/models/java_download_report.py +174 -2
- oci/jms_java_downloads/models/java_download_report_summary.py +174 -2
- oci/jms_java_downloads/models/java_download_token.py +24 -8
- oci/jms_java_downloads/models/java_download_token_summary.py +24 -8
- oci/jms_java_downloads/models/java_license_acceptance_record.py +4 -4
- oci/jms_java_downloads/models/java_license_acceptance_record_summary.py +4 -4
- oci/jms_java_downloads/models/request_summarized_java_download_counts_details.py +2 -2
- oci/jms_java_downloads/models/update_java_license_acceptance_record_details.py +76 -2
- 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 +6 -6
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +80 -80
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +175 -175
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/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 +25 -25
- oci/redis/redis_cluster_client.py +11 -11
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +26 -26
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +64 -64
- 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 +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/METADATA +1 -1
- {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/RECORD +494 -439
- {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/WHEEL +0 -0
- {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,134 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class CohereTool(object):
|
14
|
+
"""
|
15
|
+
A definition of tool (function).
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CohereTool 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 CohereTool.
|
25
|
+
:type name: str
|
26
|
+
|
27
|
+
:param description:
|
28
|
+
The value to assign to the description property of this CohereTool.
|
29
|
+
:type description: str
|
30
|
+
|
31
|
+
:param parameter_definitions:
|
32
|
+
The value to assign to the parameter_definitions property of this CohereTool.
|
33
|
+
:type parameter_definitions: dict(str, CohereParameterDefinition)
|
34
|
+
|
35
|
+
"""
|
36
|
+
self.swagger_types = {
|
37
|
+
'name': 'str',
|
38
|
+
'description': 'str',
|
39
|
+
'parameter_definitions': 'dict(str, CohereParameterDefinition)'
|
40
|
+
}
|
41
|
+
|
42
|
+
self.attribute_map = {
|
43
|
+
'name': 'name',
|
44
|
+
'description': 'description',
|
45
|
+
'parameter_definitions': 'parameterDefinitions'
|
46
|
+
}
|
47
|
+
|
48
|
+
self._name = None
|
49
|
+
self._description = None
|
50
|
+
self._parameter_definitions = None
|
51
|
+
|
52
|
+
@property
|
53
|
+
def name(self):
|
54
|
+
"""
|
55
|
+
**[Required]** Gets the name of this CohereTool.
|
56
|
+
The name of the tool to be called. Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit.
|
57
|
+
|
58
|
+
|
59
|
+
:return: The name of this CohereTool.
|
60
|
+
:rtype: str
|
61
|
+
"""
|
62
|
+
return self._name
|
63
|
+
|
64
|
+
@name.setter
|
65
|
+
def name(self, name):
|
66
|
+
"""
|
67
|
+
Sets the name of this CohereTool.
|
68
|
+
The name of the tool to be called. Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit.
|
69
|
+
|
70
|
+
|
71
|
+
:param name: The name of this CohereTool.
|
72
|
+
:type: str
|
73
|
+
"""
|
74
|
+
self._name = name
|
75
|
+
|
76
|
+
@property
|
77
|
+
def description(self):
|
78
|
+
"""
|
79
|
+
**[Required]** Gets the description of this CohereTool.
|
80
|
+
The description of what the tool does, the model uses the description to choose when and how to call the function.
|
81
|
+
|
82
|
+
|
83
|
+
:return: The description of this CohereTool.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._description
|
87
|
+
|
88
|
+
@description.setter
|
89
|
+
def description(self, description):
|
90
|
+
"""
|
91
|
+
Sets the description of this CohereTool.
|
92
|
+
The description of what the tool does, the model uses the description to choose when and how to call the function.
|
93
|
+
|
94
|
+
|
95
|
+
:param description: The description of this CohereTool.
|
96
|
+
:type: str
|
97
|
+
"""
|
98
|
+
self._description = description
|
99
|
+
|
100
|
+
@property
|
101
|
+
def parameter_definitions(self):
|
102
|
+
"""
|
103
|
+
Gets the parameter_definitions of this CohereTool.
|
104
|
+
The input parameters of the tool.
|
105
|
+
|
106
|
+
|
107
|
+
:return: The parameter_definitions of this CohereTool.
|
108
|
+
:rtype: dict(str, CohereParameterDefinition)
|
109
|
+
"""
|
110
|
+
return self._parameter_definitions
|
111
|
+
|
112
|
+
@parameter_definitions.setter
|
113
|
+
def parameter_definitions(self, parameter_definitions):
|
114
|
+
"""
|
115
|
+
Sets the parameter_definitions of this CohereTool.
|
116
|
+
The input parameters of the tool.
|
117
|
+
|
118
|
+
|
119
|
+
:param parameter_definitions: The parameter_definitions of this CohereTool.
|
120
|
+
:type: dict(str, CohereParameterDefinition)
|
121
|
+
"""
|
122
|
+
self._parameter_definitions = parameter_definitions
|
123
|
+
|
124
|
+
def __repr__(self):
|
125
|
+
return formatted_flat_dict(self)
|
126
|
+
|
127
|
+
def __eq__(self, other):
|
128
|
+
if other is None:
|
129
|
+
return False
|
130
|
+
|
131
|
+
return self.__dict__ == other.__dict__
|
132
|
+
|
133
|
+
def __ne__(self, other):
|
134
|
+
return not self == other
|
@@ -0,0 +1,103 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class CohereToolCall(object):
|
14
|
+
"""
|
15
|
+
A tool call generated by the model.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CohereToolCall 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 CohereToolCall.
|
25
|
+
:type name: str
|
26
|
+
|
27
|
+
:param parameters:
|
28
|
+
The value to assign to the parameters property of this CohereToolCall.
|
29
|
+
:type parameters: object
|
30
|
+
|
31
|
+
"""
|
32
|
+
self.swagger_types = {
|
33
|
+
'name': 'str',
|
34
|
+
'parameters': 'object'
|
35
|
+
}
|
36
|
+
|
37
|
+
self.attribute_map = {
|
38
|
+
'name': 'name',
|
39
|
+
'parameters': 'parameters'
|
40
|
+
}
|
41
|
+
|
42
|
+
self._name = None
|
43
|
+
self._parameters = None
|
44
|
+
|
45
|
+
@property
|
46
|
+
def name(self):
|
47
|
+
"""
|
48
|
+
**[Required]** Gets the name of this CohereToolCall.
|
49
|
+
Name of the tool to call.
|
50
|
+
|
51
|
+
|
52
|
+
:return: The name of this CohereToolCall.
|
53
|
+
:rtype: str
|
54
|
+
"""
|
55
|
+
return self._name
|
56
|
+
|
57
|
+
@name.setter
|
58
|
+
def name(self, name):
|
59
|
+
"""
|
60
|
+
Sets the name of this CohereToolCall.
|
61
|
+
Name of the tool to call.
|
62
|
+
|
63
|
+
|
64
|
+
:param name: The name of this CohereToolCall.
|
65
|
+
:type: str
|
66
|
+
"""
|
67
|
+
self._name = name
|
68
|
+
|
69
|
+
@property
|
70
|
+
def parameters(self):
|
71
|
+
"""
|
72
|
+
**[Required]** Gets the parameters of this CohereToolCall.
|
73
|
+
The parameters to use when invoking a tool.
|
74
|
+
|
75
|
+
|
76
|
+
:return: The parameters of this CohereToolCall.
|
77
|
+
:rtype: object
|
78
|
+
"""
|
79
|
+
return self._parameters
|
80
|
+
|
81
|
+
@parameters.setter
|
82
|
+
def parameters(self, parameters):
|
83
|
+
"""
|
84
|
+
Sets the parameters of this CohereToolCall.
|
85
|
+
The parameters to use when invoking a tool.
|
86
|
+
|
87
|
+
|
88
|
+
:param parameters: The parameters of this CohereToolCall.
|
89
|
+
:type: object
|
90
|
+
"""
|
91
|
+
self._parameters = parameters
|
92
|
+
|
93
|
+
def __repr__(self):
|
94
|
+
return formatted_flat_dict(self)
|
95
|
+
|
96
|
+
def __eq__(self, other):
|
97
|
+
if other is None:
|
98
|
+
return False
|
99
|
+
|
100
|
+
return self.__dict__ == other.__dict__
|
101
|
+
|
102
|
+
def __ne__(self, other):
|
103
|
+
return not self == other
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
from .cohere_message import CohereMessage
|
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 CohereToolMessage(CohereMessage):
|
14
|
+
"""
|
15
|
+
A message that represents a single chat dialog as TOOL role.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CohereToolMessage object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.CohereToolMessage.role` attribute
|
21
|
+
of this class is ``TOOL`` and it should not be changed.
|
22
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
23
|
+
|
24
|
+
:param role:
|
25
|
+
The value to assign to the role property of this CohereToolMessage.
|
26
|
+
Allowed values for this property are: "CHATBOT", "USER", "SYSTEM", "TOOL"
|
27
|
+
:type role: str
|
28
|
+
|
29
|
+
:param tool_results:
|
30
|
+
The value to assign to the tool_results property of this CohereToolMessage.
|
31
|
+
:type tool_results: list[oci.generative_ai_inference.models.CohereToolResult]
|
32
|
+
|
33
|
+
"""
|
34
|
+
self.swagger_types = {
|
35
|
+
'role': 'str',
|
36
|
+
'tool_results': 'list[CohereToolResult]'
|
37
|
+
}
|
38
|
+
|
39
|
+
self.attribute_map = {
|
40
|
+
'role': 'role',
|
41
|
+
'tool_results': 'toolResults'
|
42
|
+
}
|
43
|
+
|
44
|
+
self._role = None
|
45
|
+
self._tool_results = None
|
46
|
+
self._role = 'TOOL'
|
47
|
+
|
48
|
+
@property
|
49
|
+
def tool_results(self):
|
50
|
+
"""
|
51
|
+
**[Required]** Gets the tool_results of this CohereToolMessage.
|
52
|
+
A list of results from invoking tools recommended by the model in the previous chat turn.
|
53
|
+
|
54
|
+
|
55
|
+
:return: The tool_results of this CohereToolMessage.
|
56
|
+
:rtype: list[oci.generative_ai_inference.models.CohereToolResult]
|
57
|
+
"""
|
58
|
+
return self._tool_results
|
59
|
+
|
60
|
+
@tool_results.setter
|
61
|
+
def tool_results(self, tool_results):
|
62
|
+
"""
|
63
|
+
Sets the tool_results of this CohereToolMessage.
|
64
|
+
A list of results from invoking tools recommended by the model in the previous chat turn.
|
65
|
+
|
66
|
+
|
67
|
+
:param tool_results: The tool_results of this CohereToolMessage.
|
68
|
+
:type: list[oci.generative_ai_inference.models.CohereToolResult]
|
69
|
+
"""
|
70
|
+
self._tool_results = tool_results
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
return formatted_flat_dict(self)
|
74
|
+
|
75
|
+
def __eq__(self, other):
|
76
|
+
if other is None:
|
77
|
+
return False
|
78
|
+
|
79
|
+
return self.__dict__ == other.__dict__
|
80
|
+
|
81
|
+
def __ne__(self, other):
|
82
|
+
return not self == other
|
@@ -0,0 +1,99 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class CohereToolResult(object):
|
14
|
+
"""
|
15
|
+
The result from invoking tools recommended by the model in the previous chat turn.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CohereToolResult object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param call:
|
24
|
+
The value to assign to the call property of this CohereToolResult.
|
25
|
+
:type call: oci.generative_ai_inference.models.CohereToolCall
|
26
|
+
|
27
|
+
:param outputs:
|
28
|
+
The value to assign to the outputs property of this CohereToolResult.
|
29
|
+
:type outputs: list[object]
|
30
|
+
|
31
|
+
"""
|
32
|
+
self.swagger_types = {
|
33
|
+
'call': 'CohereToolCall',
|
34
|
+
'outputs': 'list[object]'
|
35
|
+
}
|
36
|
+
|
37
|
+
self.attribute_map = {
|
38
|
+
'call': 'call',
|
39
|
+
'outputs': 'outputs'
|
40
|
+
}
|
41
|
+
|
42
|
+
self._call = None
|
43
|
+
self._outputs = None
|
44
|
+
|
45
|
+
@property
|
46
|
+
def call(self):
|
47
|
+
"""
|
48
|
+
**[Required]** Gets the call of this CohereToolResult.
|
49
|
+
|
50
|
+
:return: The call of this CohereToolResult.
|
51
|
+
:rtype: oci.generative_ai_inference.models.CohereToolCall
|
52
|
+
"""
|
53
|
+
return self._call
|
54
|
+
|
55
|
+
@call.setter
|
56
|
+
def call(self, call):
|
57
|
+
"""
|
58
|
+
Sets the call of this CohereToolResult.
|
59
|
+
|
60
|
+
:param call: The call of this CohereToolResult.
|
61
|
+
:type: oci.generative_ai_inference.models.CohereToolCall
|
62
|
+
"""
|
63
|
+
self._call = call
|
64
|
+
|
65
|
+
@property
|
66
|
+
def outputs(self):
|
67
|
+
"""
|
68
|
+
**[Required]** Gets the outputs of this CohereToolResult.
|
69
|
+
An array of objects returned by tool.
|
70
|
+
|
71
|
+
|
72
|
+
:return: The outputs of this CohereToolResult.
|
73
|
+
:rtype: list[object]
|
74
|
+
"""
|
75
|
+
return self._outputs
|
76
|
+
|
77
|
+
@outputs.setter
|
78
|
+
def outputs(self, outputs):
|
79
|
+
"""
|
80
|
+
Sets the outputs of this CohereToolResult.
|
81
|
+
An array of objects returned by tool.
|
82
|
+
|
83
|
+
|
84
|
+
:param outputs: The outputs of this CohereToolResult.
|
85
|
+
:type: list[object]
|
86
|
+
"""
|
87
|
+
self._outputs = outputs
|
88
|
+
|
89
|
+
def __repr__(self):
|
90
|
+
return formatted_flat_dict(self)
|
91
|
+
|
92
|
+
def __eq__(self, other):
|
93
|
+
if other is None:
|
94
|
+
return False
|
95
|
+
|
96
|
+
return self.__dict__ == other.__dict__
|
97
|
+
|
98
|
+
def __ne__(self, other):
|
99
|
+
return not self == other
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
from .cohere_message import CohereMessage
|
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 CohereUserMessage(CohereMessage):
|
14
|
+
"""
|
15
|
+
A message that represents a single chat dialog as USER role.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CohereUserMessage object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.CohereUserMessage.role` attribute
|
21
|
+
of this class is ``USER`` and it should not be changed.
|
22
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
23
|
+
|
24
|
+
:param role:
|
25
|
+
The value to assign to the role property of this CohereUserMessage.
|
26
|
+
Allowed values for this property are: "CHATBOT", "USER", "SYSTEM", "TOOL"
|
27
|
+
:type role: str
|
28
|
+
|
29
|
+
:param message:
|
30
|
+
The value to assign to the message property of this CohereUserMessage.
|
31
|
+
:type message: str
|
32
|
+
|
33
|
+
"""
|
34
|
+
self.swagger_types = {
|
35
|
+
'role': 'str',
|
36
|
+
'message': 'str'
|
37
|
+
}
|
38
|
+
|
39
|
+
self.attribute_map = {
|
40
|
+
'role': 'role',
|
41
|
+
'message': 'message'
|
42
|
+
}
|
43
|
+
|
44
|
+
self._role = None
|
45
|
+
self._message = None
|
46
|
+
self._role = 'USER'
|
47
|
+
|
48
|
+
@property
|
49
|
+
def message(self):
|
50
|
+
"""
|
51
|
+
**[Required]** Gets the message of this CohereUserMessage.
|
52
|
+
Contents of the chat message.
|
53
|
+
|
54
|
+
|
55
|
+
:return: The message of this CohereUserMessage.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._message
|
59
|
+
|
60
|
+
@message.setter
|
61
|
+
def message(self, message):
|
62
|
+
"""
|
63
|
+
Sets the message of this CohereUserMessage.
|
64
|
+
Contents of the chat message.
|
65
|
+
|
66
|
+
|
67
|
+
:param message: The message of this CohereUserMessage.
|
68
|
+
:type: str
|
69
|
+
"""
|
70
|
+
self._message = message
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
return formatted_flat_dict(self)
|
74
|
+
|
75
|
+
def __eq__(self, other):
|
76
|
+
if other is None:
|
77
|
+
return False
|
78
|
+
|
79
|
+
return self.__dict__ == other.__dict__
|
80
|
+
|
81
|
+
def __ne__(self, other):
|
82
|
+
return not self == other
|
@@ -104,7 +104,7 @@ class EmbedTextDetails(object):
|
|
104
104
|
def inputs(self):
|
105
105
|
"""
|
106
106
|
**[Required]** Gets the inputs of this EmbedTextDetails.
|
107
|
-
Provide a list of strings
|
107
|
+
Provide a list of strings. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens.
|
108
108
|
|
109
109
|
|
110
110
|
:return: The inputs of this EmbedTextDetails.
|
@@ -116,7 +116,7 @@ class EmbedTextDetails(object):
|
|
116
116
|
def inputs(self, inputs):
|
117
117
|
"""
|
118
118
|
Sets the inputs of this EmbedTextDetails.
|
119
|
-
Provide a list of strings
|
119
|
+
Provide a list of strings. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens.
|
120
120
|
|
121
121
|
|
122
122
|
:param inputs: The inputs of this EmbedTextDetails.
|
@@ -148,7 +148,7 @@ class EmbedTextDetails(object):
|
|
148
148
|
def compartment_id(self):
|
149
149
|
"""
|
150
150
|
**[Required]** Gets the compartment_id of this EmbedTextDetails.
|
151
|
-
The OCID of compartment
|
151
|
+
The OCID of compartment in which to call the Generative AI service to create text embeddings.
|
152
152
|
|
153
153
|
|
154
154
|
:return: The compartment_id of this EmbedTextDetails.
|
@@ -160,7 +160,7 @@ class EmbedTextDetails(object):
|
|
160
160
|
def compartment_id(self, compartment_id):
|
161
161
|
"""
|
162
162
|
Sets the compartment_id of this EmbedTextDetails.
|
163
|
-
The OCID of compartment
|
163
|
+
The OCID of compartment in which to call the Generative AI service to create text embeddings.
|
164
164
|
|
165
165
|
|
166
166
|
:param compartment_id: The compartment_id of this EmbedTextDetails.
|
@@ -53,7 +53,7 @@ class GenerateTextDetails(object):
|
|
53
53
|
def compartment_id(self):
|
54
54
|
"""
|
55
55
|
**[Required]** Gets the compartment_id of this GenerateTextDetails.
|
56
|
-
The OCID of compartment
|
56
|
+
The OCID of compartment in which to call the Generative AI service to generate text.
|
57
57
|
|
58
58
|
|
59
59
|
:return: The compartment_id of this GenerateTextDetails.
|
@@ -65,7 +65,7 @@ class GenerateTextDetails(object):
|
|
65
65
|
def compartment_id(self, compartment_id):
|
66
66
|
"""
|
67
67
|
Sets the compartment_id of this GenerateTextDetails.
|
68
|
-
The OCID of compartment
|
68
|
+
The OCID of compartment in which to call the Generative AI service to generate text.
|
69
69
|
|
70
70
|
|
71
71
|
:param compartment_id: The compartment_id of this GenerateTextDetails.
|
@@ -133,7 +133,7 @@ class GenericChatRequest(BaseChatRequest):
|
|
133
133
|
def messages(self):
|
134
134
|
"""
|
135
135
|
Gets the messages of this GenericChatRequest.
|
136
|
-
The series of messages
|
136
|
+
The series of messages in a chat request. Includes the previous messages in a conversation. Each message includes a role (`USER` or the `CHATBOT`) and content.
|
137
137
|
|
138
138
|
|
139
139
|
:return: The messages of this GenericChatRequest.
|
@@ -145,7 +145,7 @@ class GenericChatRequest(BaseChatRequest):
|
|
145
145
|
def messages(self, messages):
|
146
146
|
"""
|
147
147
|
Sets the messages of this GenericChatRequest.
|
148
|
-
The series of messages
|
148
|
+
The series of messages in a chat request. Includes the previous messages in a conversation. Each message includes a role (`USER` or the `CHATBOT`) and content.
|
149
149
|
|
150
150
|
|
151
151
|
:param messages: The messages of this GenericChatRequest.
|
@@ -157,7 +157,7 @@ class GenericChatRequest(BaseChatRequest):
|
|
157
157
|
def is_stream(self):
|
158
158
|
"""
|
159
159
|
Gets the is_stream of this GenericChatRequest.
|
160
|
-
Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events
|
160
|
+
Whether to stream back partial progress. If set to true, as tokens become available, they are sent as data-only server-sent events.
|
161
161
|
|
162
162
|
|
163
163
|
:return: The is_stream of this GenericChatRequest.
|
@@ -169,7 +169,7 @@ class GenericChatRequest(BaseChatRequest):
|
|
169
169
|
def is_stream(self, is_stream):
|
170
170
|
"""
|
171
171
|
Sets the is_stream of this GenericChatRequest.
|
172
|
-
Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events
|
172
|
+
Whether to stream back partial progress. If set to true, as tokens become available, they are sent as data-only server-sent events.
|
173
173
|
|
174
174
|
|
175
175
|
:param is_stream: The is_stream of this GenericChatRequest.
|
@@ -205,7 +205,7 @@ class GenericChatRequest(BaseChatRequest):
|
|
205
205
|
def is_echo(self):
|
206
206
|
"""
|
207
207
|
Gets the is_echo of this GenericChatRequest.
|
208
|
-
Whether
|
208
|
+
Whether to include the user prompt in the response. Applies only to non-stream results.
|
209
209
|
|
210
210
|
|
211
211
|
:return: The is_echo of this GenericChatRequest.
|
@@ -217,7 +217,7 @@ class GenericChatRequest(BaseChatRequest):
|
|
217
217
|
def is_echo(self, is_echo):
|
218
218
|
"""
|
219
219
|
Sets the is_echo of this GenericChatRequest.
|
220
|
-
Whether
|
220
|
+
Whether to include the user prompt in the response. Applies only to non-stream results.
|
221
221
|
|
222
222
|
|
223
223
|
:param is_echo: The is_echo of this GenericChatRequest.
|
@@ -417,7 +417,8 @@ class GenericChatRequest(BaseChatRequest):
|
|
417
417
|
def max_tokens(self):
|
418
418
|
"""
|
419
419
|
Gets the max_tokens of this GenericChatRequest.
|
420
|
-
The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus
|
420
|
+
The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus `maxTokens` must not exceed the model's context length.
|
421
|
+
Not setting a value for maxTokens results in the possible use of model's full context length.
|
421
422
|
|
422
423
|
|
423
424
|
:return: The max_tokens of this GenericChatRequest.
|
@@ -429,7 +430,8 @@ class GenericChatRequest(BaseChatRequest):
|
|
429
430
|
def max_tokens(self, max_tokens):
|
430
431
|
"""
|
431
432
|
Sets the max_tokens of this GenericChatRequest.
|
432
|
-
The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus
|
433
|
+
The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus `maxTokens` must not exceed the model's context length.
|
434
|
+
Not setting a value for maxTokens results in the possible use of model's full context length.
|
433
435
|
|
434
436
|
|
435
437
|
:param max_tokens: The max_tokens of this GenericChatRequest.
|
@@ -441,7 +443,9 @@ class GenericChatRequest(BaseChatRequest):
|
|
441
443
|
def logit_bias(self):
|
442
444
|
"""
|
443
445
|
Gets the logit_bias of this GenericChatRequest.
|
444
|
-
|
446
|
+
Modifies the likelihood of specified tokens that appear in the completion.
|
447
|
+
|
448
|
+
Example: '{\"6395\": 2, \"8134\": 1, \"21943\": 0.5, \"5923\": -100}'
|
445
449
|
|
446
450
|
|
447
451
|
:return: The logit_bias of this GenericChatRequest.
|
@@ -453,7 +457,9 @@ class GenericChatRequest(BaseChatRequest):
|
|
453
457
|
def logit_bias(self, logit_bias):
|
454
458
|
"""
|
455
459
|
Sets the logit_bias of this GenericChatRequest.
|
456
|
-
|
460
|
+
Modifies the likelihood of specified tokens that appear in the completion.
|
461
|
+
|
462
|
+
Example: '{\"6395\": 2, \"8134\": 1, \"21943\": 0.5, \"5923\": -100}'
|
457
463
|
|
458
464
|
|
459
465
|
:param logit_bias: The logit_bias of this GenericChatRequest.
|
@@ -12,7 +12,7 @@ from oci.decorators import init_model_state_from_kwargs
|
|
12
12
|
@init_model_state_from_kwargs
|
13
13
|
class GenericChatResponse(BaseChatResponse):
|
14
14
|
"""
|
15
|
-
The response
|
15
|
+
The response for a chat conversation.
|
16
16
|
"""
|
17
17
|
|
18
18
|
def __init__(self, **kwargs):
|
@@ -56,7 +56,7 @@ class GenericChatResponse(BaseChatResponse):
|
|
56
56
|
def time_created(self):
|
57
57
|
"""
|
58
58
|
**[Required]** Gets the time_created of this GenericChatResponse.
|
59
|
-
The Unix timestamp (in seconds) of when the
|
59
|
+
The Unix timestamp (in seconds) of when the response text was generated.
|
60
60
|
|
61
61
|
|
62
62
|
:return: The time_created of this GenericChatResponse.
|
@@ -68,7 +68,7 @@ class GenericChatResponse(BaseChatResponse):
|
|
68
68
|
def time_created(self, time_created):
|
69
69
|
"""
|
70
70
|
Sets the time_created of this GenericChatResponse.
|
71
|
-
The Unix timestamp (in seconds) of when the
|
71
|
+
The Unix timestamp (in seconds) of when the response text was generated.
|
72
72
|
|
73
73
|
|
74
74
|
:param time_created: The time_created of this GenericChatResponse.
|