oci 2.125.1__py3-none-any.whl → 2.125.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +134 -43
- oci/ai_language/models/__init__.py +24 -0
- oci/ai_language/models/assertion_details.py +165 -0
- oci/ai_language/models/batch_detect_health_entity_details.py +223 -0
- oci/ai_language/models/batch_detect_health_entity_result.py +103 -0
- oci/ai_language/models/batch_detect_language_pii_entities_details.py +29 -2
- oci/ai_language/models/health_entity.py +351 -0
- oci/ai_language/models/health_entity_document_result.py +200 -0
- oci/ai_language/models/input_location.py +2 -1
- oci/ai_language/models/mel_concept.py +103 -0
- oci/ai_language/models/mel_concept_details.py +165 -0
- oci/ai_language/models/model_details.py +11 -3
- oci/ai_language/models/named_entity_recognition_model_details.py +1 -1
- oci/ai_language/models/pii_entity.py +118 -7
- oci/ai_language/models/pii_model_details.py +91 -0
- oci/ai_language/models/pre_trained_health_nlu_model_details.py +1 -1
- oci/ai_language/models/pre_trained_key_phrase_extraction_model_details.py +1 -1
- oci/ai_language/models/pre_trained_language_detection_model_details.py +1 -1
- oci/ai_language/models/pre_trained_named_entity_recognition_model_details.py +1 -1
- oci/ai_language/models/pre_trained_pii_model_details.py +1 -1
- oci/ai_language/models/pre_trained_sentiment_analysis_model_details.py +1 -1
- oci/ai_language/models/pre_trained_summarization.py +1 -1
- oci/ai_language/models/pre_trained_text_classification_model_details.py +1 -1
- oci/ai_language/models/pre_trained_universal_model.py +1 -1
- oci/ai_language/models/profile.py +134 -0
- oci/ai_language/models/relation_entity.py +196 -0
- oci/ai_language/models/resolved_entities.py +72 -0
- oci/ai_language/models/resolved_entity.py +227 -0
- oci/ai_language/models/text_classification_model_details.py +1 -1
- 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/application_migration/application_migration_client.py +36 -36
- 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 +51 -51
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +19 -19
- 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 +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- 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 +242 -242
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +148 -148
- oci/data_flow/data_flow_client.py +52 -46
- oci/data_flow/models/sql_endpoint.py +42 -3
- oci/data_flow/models/sql_endpoint_summary.py +11 -3
- 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 +272 -272
- oci/data_science/data_science_client.py +91 -91
- oci/data_science/models/instance_configuration.py +37 -2
- oci/database/database_client.py +1224 -537
- oci/database/database_client_composite_operations.py +204 -0
- oci/database/models/__init__.py +12 -0
- oci/database/models/autonomous_container_database.py +31 -0
- oci/database/models/autonomous_container_database_summary.py +31 -0
- oci/database/models/autonomous_database_software_image.py +489 -0
- oci/database/models/autonomous_database_software_image_collection.py +72 -0
- oci/database/models/autonomous_database_software_image_summary.py +437 -0
- oci/database/models/change_autonomous_database_software_image_compartment_details.py +76 -0
- oci/database/models/create_autonomous_container_database_details.py +35 -0
- oci/database/models/create_autonomous_database_software_image_details.py +267 -0
- oci/database/models/maintenance_window.py +33 -2
- oci/database/models/update_autonomous_database_software_image_details.py +119 -0
- oci/database_management/db_management_client.py +194 -194
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- 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_migration/models/aws_s3_data_transfer_medium_details.py +29 -2
- oci/database_migration/models/data_transfer_medium_details_v2.py +1 -1
- oci/database_migration/models/nfs_data_transfer_medium_details.py +29 -2
- oci/database_tools/database_tools_client.py +23 -23
- 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 +26 -26
- oci/email_data_plane/email_dp_client.py +2 -2
- 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 +24 -24
- oci/generative_ai/models/dataset.py +1 -1
- oci/generative_ai/models/dedicated_ai_cluster.py +34 -3
- oci/generative_ai/models/endpoint.py +27 -0
- oci/generative_ai/models/model.py +34 -3
- oci/generative_ai/models/model_summary.py +7 -3
- oci/generative_ai_inference/generative_ai_inference_client.py +101 -3
- oci/generative_ai_inference/models/__init__.py +30 -0
- oci/generative_ai_inference/models/base_chat_request.py +109 -0
- oci/generative_ai_inference/models/base_chat_response.py +109 -0
- oci/generative_ai_inference/models/chat_choice.py +161 -0
- oci/generative_ai_inference/models/chat_content.py +101 -0
- oci/generative_ai_inference/models/chat_details.py +126 -0
- oci/generative_ai_inference/models/chat_result.py +130 -0
- oci/generative_ai_inference/models/citation.py +165 -0
- oci/generative_ai_inference/models/cohere_chat_request.py +443 -0
- oci/generative_ai_inference/models/cohere_chat_response.py +272 -0
- oci/generative_ai_inference/models/cohere_llm_inference_response.py +1 -1
- oci/generative_ai_inference/models/cohere_message.py +119 -0
- oci/generative_ai_inference/models/embed_text_details.py +2 -2
- oci/generative_ai_inference/models/generic_chat_request.py +474 -0
- oci/generative_ai_inference/models/generic_chat_response.py +113 -0
- 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 +11 -3
- oci/generative_ai_inference/models/message.py +103 -0
- oci/generative_ai_inference/models/search_query.py +72 -0
- oci/generative_ai_inference/models/text_content.py +82 -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 +61 -61
- 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 +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 +23 -23
- 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_publisher/marketplace_publisher_client.py +71 -71
- 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/models/__init__.py +2 -0
- oci/network_load_balancer/models/backend_set.py +64 -0
- oci/network_load_balancer/models/backend_set_details.py +64 -0
- oci/network_load_balancer/models/backend_set_summary.py +64 -0
- oci/network_load_balancer/models/create_backend_set_details.py +64 -0
- oci/network_load_balancer/models/dns_health_checker_details.py +264 -0
- oci/network_load_balancer/models/health_checker.py +36 -5
- oci/network_load_balancer/models/health_checker_details.py +36 -5
- oci/network_load_balancer/models/update_backend_set_details.py +64 -0
- oci/network_load_balancer/models/update_health_checker_details.py +36 -5
- 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/models/opa_instance.py +7 -3
- oci/opa/models/work_request.py +11 -3
- oci/opa/models/work_request_summary.py +11 -3
- oci/opa/opa_instance_client.py +223 -13
- oci/opa/opa_instance_client_composite_operations.py +78 -0
- 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/lifecycle_environment_client.py +11 -11
- oci/os_management_hub/managed_instance_client.py +22 -22
- oci/os_management_hub/managed_instance_group_client.py +22 -22
- oci/os_management_hub/management_station_client.py +8 -8
- oci/os_management_hub/onboarding_client.py +5 -5
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +6 -6
- oci/os_management_hub/software_source_client.py +22 -22
- 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 +23 -23
- oci/redis/models/create_redis_cluster_details.py +31 -0
- oci/redis/models/redis_cluster.py +31 -0
- oci/redis/models/redis_cluster_summary.py +31 -0
- oci/redis/models/update_redis_cluster_details.py +31 -0
- oci/redis/redis_cluster_client.py +11 -11
- oci/regions_definitions.py +5 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- 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/models/associated_monitored_resource.py +118 -0
- oci/stack_monitoring/models/associated_resources_summary.py +118 -0
- oci/stack_monitoring/models/create_monitored_resource_type_details.py +118 -0
- oci/stack_monitoring/models/discovery_job_log_summary.py +35 -2
- oci/stack_monitoring/models/import_oci_telemetry_resources_task_details.py +301 -0
- oci/stack_monitoring/models/monitored_resource.py +118 -0
- oci/stack_monitoring/models/monitored_resource_member_summary.py +118 -0
- oci/stack_monitoring/models/monitored_resource_summary.py +118 -0
- oci/stack_monitoring/models/monitored_resource_type.py +118 -0
- oci/stack_monitoring/models/monitored_resource_type_summary.py +118 -0
- oci/stack_monitoring/models/search_monitored_resources_details.py +184 -0
- oci/stack_monitoring/models/update_monitored_resource_type_details.py +118 -0
- oci/stack_monitoring/stack_monitoring_client.py +79 -65
- 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/models/__init__.py +12 -0
- oci/usage_api/models/create_email_recipients_group_details.py +103 -0
- oci/usage_api/models/email_recipient.py +181 -0
- oci/usage_api/models/email_recipients_group.py +181 -0
- oci/usage_api/models/email_recipients_group_collection.py +72 -0
- oci/usage_api/models/email_recipients_group_summary.py +272 -0
- oci/usage_api/models/update_email_recipients_group_details.py +72 -0
- oci/usage_api/usageapi_client.py +656 -34
- oci/usage_api/usageapi_client_composite_operations.py +96 -0
- 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.125.1.dist-info → oci-2.125.3.dist-info}/METADATA +1 -1
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/RECORD +358 -318
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/LICENSE.txt +0 -0
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/WHEEL +0 -0
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,443 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
from .base_chat_request import BaseChatRequest
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class CohereChatRequest(BaseChatRequest):
|
14
|
+
"""
|
15
|
+
Details for the chat request for Cohere models.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CohereChatRequest object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.CohereChatRequest.api_format` attribute
|
21
|
+
of this class is ``COHERE`` and it should not be changed.
|
22
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
23
|
+
|
24
|
+
:param api_format:
|
25
|
+
The value to assign to the api_format property of this CohereChatRequest.
|
26
|
+
Allowed values for this property are: "COHERE", "GENERIC"
|
27
|
+
:type api_format: str
|
28
|
+
|
29
|
+
:param message:
|
30
|
+
The value to assign to the message property of this CohereChatRequest.
|
31
|
+
:type message: str
|
32
|
+
|
33
|
+
:param chat_history:
|
34
|
+
The value to assign to the chat_history property of this CohereChatRequest.
|
35
|
+
:type chat_history: list[oci.generative_ai_inference.models.CohereMessage]
|
36
|
+
|
37
|
+
:param documents:
|
38
|
+
The value to assign to the documents property of this CohereChatRequest.
|
39
|
+
:type documents: list[object]
|
40
|
+
|
41
|
+
:param is_search_queries_only:
|
42
|
+
The value to assign to the is_search_queries_only property of this CohereChatRequest.
|
43
|
+
:type is_search_queries_only: bool
|
44
|
+
|
45
|
+
:param preamble_override:
|
46
|
+
The value to assign to the preamble_override property of this CohereChatRequest.
|
47
|
+
:type preamble_override: str
|
48
|
+
|
49
|
+
:param is_stream:
|
50
|
+
The value to assign to the is_stream property of this CohereChatRequest.
|
51
|
+
:type is_stream: bool
|
52
|
+
|
53
|
+
:param max_tokens:
|
54
|
+
The value to assign to the max_tokens property of this CohereChatRequest.
|
55
|
+
:type max_tokens: int
|
56
|
+
|
57
|
+
:param temperature:
|
58
|
+
The value to assign to the temperature property of this CohereChatRequest.
|
59
|
+
:type temperature: float
|
60
|
+
|
61
|
+
:param top_k:
|
62
|
+
The value to assign to the top_k property of this CohereChatRequest.
|
63
|
+
:type top_k: int
|
64
|
+
|
65
|
+
:param top_p:
|
66
|
+
The value to assign to the top_p property of this CohereChatRequest.
|
67
|
+
:type top_p: float
|
68
|
+
|
69
|
+
:param frequency_penalty:
|
70
|
+
The value to assign to the frequency_penalty property of this CohereChatRequest.
|
71
|
+
:type frequency_penalty: float
|
72
|
+
|
73
|
+
:param presence_penalty:
|
74
|
+
The value to assign to the presence_penalty property of this CohereChatRequest.
|
75
|
+
:type presence_penalty: float
|
76
|
+
|
77
|
+
"""
|
78
|
+
self.swagger_types = {
|
79
|
+
'api_format': 'str',
|
80
|
+
'message': 'str',
|
81
|
+
'chat_history': 'list[CohereMessage]',
|
82
|
+
'documents': 'list[object]',
|
83
|
+
'is_search_queries_only': 'bool',
|
84
|
+
'preamble_override': 'str',
|
85
|
+
'is_stream': 'bool',
|
86
|
+
'max_tokens': 'int',
|
87
|
+
'temperature': 'float',
|
88
|
+
'top_k': 'int',
|
89
|
+
'top_p': 'float',
|
90
|
+
'frequency_penalty': 'float',
|
91
|
+
'presence_penalty': 'float'
|
92
|
+
}
|
93
|
+
|
94
|
+
self.attribute_map = {
|
95
|
+
'api_format': 'apiFormat',
|
96
|
+
'message': 'message',
|
97
|
+
'chat_history': 'chatHistory',
|
98
|
+
'documents': 'documents',
|
99
|
+
'is_search_queries_only': 'isSearchQueriesOnly',
|
100
|
+
'preamble_override': 'preambleOverride',
|
101
|
+
'is_stream': 'isStream',
|
102
|
+
'max_tokens': 'maxTokens',
|
103
|
+
'temperature': 'temperature',
|
104
|
+
'top_k': 'topK',
|
105
|
+
'top_p': 'topP',
|
106
|
+
'frequency_penalty': 'frequencyPenalty',
|
107
|
+
'presence_penalty': 'presencePenalty'
|
108
|
+
}
|
109
|
+
|
110
|
+
self._api_format = None
|
111
|
+
self._message = None
|
112
|
+
self._chat_history = None
|
113
|
+
self._documents = None
|
114
|
+
self._is_search_queries_only = None
|
115
|
+
self._preamble_override = None
|
116
|
+
self._is_stream = None
|
117
|
+
self._max_tokens = None
|
118
|
+
self._temperature = None
|
119
|
+
self._top_k = None
|
120
|
+
self._top_p = None
|
121
|
+
self._frequency_penalty = None
|
122
|
+
self._presence_penalty = None
|
123
|
+
self._api_format = 'COHERE'
|
124
|
+
|
125
|
+
@property
|
126
|
+
def message(self):
|
127
|
+
"""
|
128
|
+
**[Required]** Gets the message of this CohereChatRequest.
|
129
|
+
Text input for the model to respond to.
|
130
|
+
|
131
|
+
|
132
|
+
:return: The message of this CohereChatRequest.
|
133
|
+
:rtype: str
|
134
|
+
"""
|
135
|
+
return self._message
|
136
|
+
|
137
|
+
@message.setter
|
138
|
+
def message(self, message):
|
139
|
+
"""
|
140
|
+
Sets the message of this CohereChatRequest.
|
141
|
+
Text input for the model to respond to.
|
142
|
+
|
143
|
+
|
144
|
+
:param message: The message of this CohereChatRequest.
|
145
|
+
:type: str
|
146
|
+
"""
|
147
|
+
self._message = message
|
148
|
+
|
149
|
+
@property
|
150
|
+
def chat_history(self):
|
151
|
+
"""
|
152
|
+
Gets the chat_history of this CohereChatRequest.
|
153
|
+
A list of previous messages between the user and the model, meant to give the model conversational context for responding to the user's message.
|
154
|
+
|
155
|
+
|
156
|
+
:return: The chat_history of this CohereChatRequest.
|
157
|
+
:rtype: list[oci.generative_ai_inference.models.CohereMessage]
|
158
|
+
"""
|
159
|
+
return self._chat_history
|
160
|
+
|
161
|
+
@chat_history.setter
|
162
|
+
def chat_history(self, chat_history):
|
163
|
+
"""
|
164
|
+
Sets the chat_history of this CohereChatRequest.
|
165
|
+
A list of previous messages between the user and the model, meant to give the model conversational context for responding to the user's message.
|
166
|
+
|
167
|
+
|
168
|
+
:param chat_history: The chat_history of this CohereChatRequest.
|
169
|
+
:type: list[oci.generative_ai_inference.models.CohereMessage]
|
170
|
+
"""
|
171
|
+
self._chat_history = chat_history
|
172
|
+
|
173
|
+
@property
|
174
|
+
def documents(self):
|
175
|
+
"""
|
176
|
+
Gets the documents of this CohereChatRequest.
|
177
|
+
list of relevant documents that the model can cite to generate a more accurate reply.
|
178
|
+
Some suggested keys are \"text\", \"author\", and \"date\". For better generation quality, it is
|
179
|
+
recommended to keep the total word count of the strings in the dictionary to under 300
|
180
|
+
words.
|
181
|
+
|
182
|
+
|
183
|
+
:return: The documents of this CohereChatRequest.
|
184
|
+
:rtype: list[object]
|
185
|
+
"""
|
186
|
+
return self._documents
|
187
|
+
|
188
|
+
@documents.setter
|
189
|
+
def documents(self, documents):
|
190
|
+
"""
|
191
|
+
Sets the documents of this CohereChatRequest.
|
192
|
+
list of relevant documents that the model can cite to generate a more accurate reply.
|
193
|
+
Some suggested keys are \"text\", \"author\", and \"date\". For better generation quality, it is
|
194
|
+
recommended to keep the total word count of the strings in the dictionary to under 300
|
195
|
+
words.
|
196
|
+
|
197
|
+
|
198
|
+
:param documents: The documents of this CohereChatRequest.
|
199
|
+
:type: list[object]
|
200
|
+
"""
|
201
|
+
self._documents = documents
|
202
|
+
|
203
|
+
@property
|
204
|
+
def is_search_queries_only(self):
|
205
|
+
"""
|
206
|
+
Gets the is_search_queries_only of this CohereChatRequest.
|
207
|
+
When true, the response will only contain a list of generated search queries, but no search will take place, and no reply from the model to the user's message will be generated.
|
208
|
+
|
209
|
+
|
210
|
+
:return: The is_search_queries_only of this CohereChatRequest.
|
211
|
+
:rtype: bool
|
212
|
+
"""
|
213
|
+
return self._is_search_queries_only
|
214
|
+
|
215
|
+
@is_search_queries_only.setter
|
216
|
+
def is_search_queries_only(self, is_search_queries_only):
|
217
|
+
"""
|
218
|
+
Sets the is_search_queries_only of this CohereChatRequest.
|
219
|
+
When true, the response will only contain a list of generated search queries, but no search will take place, and no reply from the model to the user's message will be generated.
|
220
|
+
|
221
|
+
|
222
|
+
:param is_search_queries_only: The is_search_queries_only of this CohereChatRequest.
|
223
|
+
:type: bool
|
224
|
+
"""
|
225
|
+
self._is_search_queries_only = is_search_queries_only
|
226
|
+
|
227
|
+
@property
|
228
|
+
def preamble_override(self):
|
229
|
+
"""
|
230
|
+
Gets the preamble_override of this CohereChatRequest.
|
231
|
+
When specified, the default Cohere preamble will be replaced with the provided one. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style. Default preambles vary for different models.
|
232
|
+
|
233
|
+
|
234
|
+
:return: The preamble_override of this CohereChatRequest.
|
235
|
+
:rtype: str
|
236
|
+
"""
|
237
|
+
return self._preamble_override
|
238
|
+
|
239
|
+
@preamble_override.setter
|
240
|
+
def preamble_override(self, preamble_override):
|
241
|
+
"""
|
242
|
+
Sets the preamble_override of this CohereChatRequest.
|
243
|
+
When specified, the default Cohere preamble will be replaced with the provided one. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style. Default preambles vary for different models.
|
244
|
+
|
245
|
+
|
246
|
+
:param preamble_override: The preamble_override of this CohereChatRequest.
|
247
|
+
:type: str
|
248
|
+
"""
|
249
|
+
self._preamble_override = preamble_override
|
250
|
+
|
251
|
+
@property
|
252
|
+
def is_stream(self):
|
253
|
+
"""
|
254
|
+
Gets the is_stream of this CohereChatRequest.
|
255
|
+
Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available.
|
256
|
+
|
257
|
+
|
258
|
+
:return: The is_stream of this CohereChatRequest.
|
259
|
+
:rtype: bool
|
260
|
+
"""
|
261
|
+
return self._is_stream
|
262
|
+
|
263
|
+
@is_stream.setter
|
264
|
+
def is_stream(self, is_stream):
|
265
|
+
"""
|
266
|
+
Sets the is_stream of this CohereChatRequest.
|
267
|
+
Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available.
|
268
|
+
|
269
|
+
|
270
|
+
:param is_stream: The is_stream of this CohereChatRequest.
|
271
|
+
:type: bool
|
272
|
+
"""
|
273
|
+
self._is_stream = is_stream
|
274
|
+
|
275
|
+
@property
|
276
|
+
def max_tokens(self):
|
277
|
+
"""
|
278
|
+
Gets the max_tokens of this CohereChatRequest.
|
279
|
+
The maximum number of tokens to predict for each response. Includes input plus output tokens.
|
280
|
+
|
281
|
+
|
282
|
+
:return: The max_tokens of this CohereChatRequest.
|
283
|
+
:rtype: int
|
284
|
+
"""
|
285
|
+
return self._max_tokens
|
286
|
+
|
287
|
+
@max_tokens.setter
|
288
|
+
def max_tokens(self, max_tokens):
|
289
|
+
"""
|
290
|
+
Sets the max_tokens of this CohereChatRequest.
|
291
|
+
The maximum number of tokens to predict for each response. Includes input plus output tokens.
|
292
|
+
|
293
|
+
|
294
|
+
:param max_tokens: The max_tokens of this CohereChatRequest.
|
295
|
+
:type: int
|
296
|
+
"""
|
297
|
+
self._max_tokens = max_tokens
|
298
|
+
|
299
|
+
@property
|
300
|
+
def temperature(self):
|
301
|
+
"""
|
302
|
+
Gets the temperature of this CohereChatRequest.
|
303
|
+
A number that sets the randomness of the generated output. A lower temperature means a less random generations.
|
304
|
+
Use lower numbers for tasks with a correct answer such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs.
|
305
|
+
|
306
|
+
|
307
|
+
:return: The temperature of this CohereChatRequest.
|
308
|
+
:rtype: float
|
309
|
+
"""
|
310
|
+
return self._temperature
|
311
|
+
|
312
|
+
@temperature.setter
|
313
|
+
def temperature(self, temperature):
|
314
|
+
"""
|
315
|
+
Sets the temperature of this CohereChatRequest.
|
316
|
+
A number that sets the randomness of the generated output. A lower temperature means a less random generations.
|
317
|
+
Use lower numbers for tasks with a correct answer such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs.
|
318
|
+
|
319
|
+
|
320
|
+
:param temperature: The temperature of this CohereChatRequest.
|
321
|
+
:type: float
|
322
|
+
"""
|
323
|
+
self._temperature = temperature
|
324
|
+
|
325
|
+
@property
|
326
|
+
def top_k(self):
|
327
|
+
"""
|
328
|
+
Gets the top_k of this CohereChatRequest.
|
329
|
+
An integer that sets up the model to use only the top k most likely tokens in the generated output. A higher k introduces more randomness into the output making the output text sound more natural. Default value is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500.
|
330
|
+
|
331
|
+
If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20, but the probabilities of the top 10 add up to .75, then only the top 10 tokens are chosen.
|
332
|
+
|
333
|
+
|
334
|
+
:return: The top_k of this CohereChatRequest.
|
335
|
+
:rtype: int
|
336
|
+
"""
|
337
|
+
return self._top_k
|
338
|
+
|
339
|
+
@top_k.setter
|
340
|
+
def top_k(self, top_k):
|
341
|
+
"""
|
342
|
+
Sets the top_k of this CohereChatRequest.
|
343
|
+
An integer that sets up the model to use only the top k most likely tokens in the generated output. A higher k introduces more randomness into the output making the output text sound more natural. Default value is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500.
|
344
|
+
|
345
|
+
If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20, but the probabilities of the top 10 add up to .75, then only the top 10 tokens are chosen.
|
346
|
+
|
347
|
+
|
348
|
+
:param top_k: The top_k of this CohereChatRequest.
|
349
|
+
:type: int
|
350
|
+
"""
|
351
|
+
self._top_k = top_k
|
352
|
+
|
353
|
+
@property
|
354
|
+
def top_p(self):
|
355
|
+
"""
|
356
|
+
Gets the top_p of this CohereChatRequest.
|
357
|
+
If set to a probability 0.0 < p < 1.0, it ensures that only the most likely tokens, with total probability mass of p, are considered for generation at each step.
|
358
|
+
|
359
|
+
To eliminate tokens with low likelihood, assign p a minimum percentage for the next token's likelihood. For example, when p is set to 0.75, the model eliminates the bottom 25 percent for the next token. Set to 1.0 to consider all tokens and set to 0 to disable. If both k and p are enabled, p acts after k.
|
360
|
+
|
361
|
+
|
362
|
+
:return: The top_p of this CohereChatRequest.
|
363
|
+
:rtype: float
|
364
|
+
"""
|
365
|
+
return self._top_p
|
366
|
+
|
367
|
+
@top_p.setter
|
368
|
+
def top_p(self, top_p):
|
369
|
+
"""
|
370
|
+
Sets the top_p of this CohereChatRequest.
|
371
|
+
If set to a probability 0.0 < p < 1.0, it ensures that only the most likely tokens, with total probability mass of p, are considered for generation at each step.
|
372
|
+
|
373
|
+
To eliminate tokens with low likelihood, assign p a minimum percentage for the next token's likelihood. For example, when p is set to 0.75, the model eliminates the bottom 25 percent for the next token. Set to 1.0 to consider all tokens and set to 0 to disable. If both k and p are enabled, p acts after k.
|
374
|
+
|
375
|
+
|
376
|
+
:param top_p: The top_p of this CohereChatRequest.
|
377
|
+
:type: float
|
378
|
+
"""
|
379
|
+
self._top_p = top_p
|
380
|
+
|
381
|
+
@property
|
382
|
+
def frequency_penalty(self):
|
383
|
+
"""
|
384
|
+
Gets the frequency_penalty of this CohereChatRequest.
|
385
|
+
To reduce repetitiveness of generated tokens, this number penalizes new tokens based on their frequency in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens. Set to 0 to disable.
|
386
|
+
|
387
|
+
|
388
|
+
:return: The frequency_penalty of this CohereChatRequest.
|
389
|
+
:rtype: float
|
390
|
+
"""
|
391
|
+
return self._frequency_penalty
|
392
|
+
|
393
|
+
@frequency_penalty.setter
|
394
|
+
def frequency_penalty(self, frequency_penalty):
|
395
|
+
"""
|
396
|
+
Sets the frequency_penalty of this CohereChatRequest.
|
397
|
+
To reduce repetitiveness of generated tokens, this number penalizes new tokens based on their frequency in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens. Set to 0 to disable.
|
398
|
+
|
399
|
+
|
400
|
+
:param frequency_penalty: The frequency_penalty of this CohereChatRequest.
|
401
|
+
:type: float
|
402
|
+
"""
|
403
|
+
self._frequency_penalty = frequency_penalty
|
404
|
+
|
405
|
+
@property
|
406
|
+
def presence_penalty(self):
|
407
|
+
"""
|
408
|
+
Gets the presence_penalty of this CohereChatRequest.
|
409
|
+
To reduce repetitiveness of generated tokens, this number penalizes new tokens based on whether they've appeared in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens.
|
410
|
+
|
411
|
+
Similar to frequency penalty, a penalty is applied to previously present tokens, except that this penalty is applied equally to all tokens that have already appeared, regardless of how many times they've appeared. Set to 0 to disable.
|
412
|
+
|
413
|
+
|
414
|
+
:return: The presence_penalty of this CohereChatRequest.
|
415
|
+
:rtype: float
|
416
|
+
"""
|
417
|
+
return self._presence_penalty
|
418
|
+
|
419
|
+
@presence_penalty.setter
|
420
|
+
def presence_penalty(self, presence_penalty):
|
421
|
+
"""
|
422
|
+
Sets the presence_penalty of this CohereChatRequest.
|
423
|
+
To reduce repetitiveness of generated tokens, this number penalizes new tokens based on whether they've appeared in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens.
|
424
|
+
|
425
|
+
Similar to frequency penalty, a penalty is applied to previously present tokens, except that this penalty is applied equally to all tokens that have already appeared, regardless of how many times they've appeared. Set to 0 to disable.
|
426
|
+
|
427
|
+
|
428
|
+
:param presence_penalty: The presence_penalty of this CohereChatRequest.
|
429
|
+
:type: float
|
430
|
+
"""
|
431
|
+
self._presence_penalty = presence_penalty
|
432
|
+
|
433
|
+
def __repr__(self):
|
434
|
+
return formatted_flat_dict(self)
|
435
|
+
|
436
|
+
def __eq__(self, other):
|
437
|
+
if other is None:
|
438
|
+
return False
|
439
|
+
|
440
|
+
return self.__dict__ == other.__dict__
|
441
|
+
|
442
|
+
def __ne__(self, other):
|
443
|
+
return not self == other
|