oci 2.150.2__py3-none-any.whl → 2.150.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/__init__.py +4 -1
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +28 -28
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +12 -12
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +84 -84
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +46 -46
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +117 -117
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +258 -258
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +45 -45
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +317 -317
- oci/data_science/data_science_client.py +145 -145
- oci/database/database_client.py +414 -414
- oci/database_management/db_management_client.py +228 -228
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +9 -9
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/dblm/db_life_cycle_management_client.py +14 -14
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +31 -31
- oci/disaster_recovery/models/__init__.py +42 -0
- oci/disaster_recovery/models/block_volume_attachment_details.py +5 -4
- oci/disaster_recovery/models/block_volume_mount_details.py +1 -0
- oci/disaster_recovery/models/compute_instance_movable_vnic_mapping.py +35 -0
- oci/disaster_recovery/models/compute_instance_movable_vnic_mapping_details.py +35 -0
- oci/disaster_recovery/models/compute_instance_non_movable_block_volume_attach_and_mount_operations_details.py +101 -0
- oci/disaster_recovery/models/compute_instance_non_movable_block_volume_attach_operation_details.py +111 -0
- oci/disaster_recovery/models/compute_instance_non_movable_block_volume_mount_operation_details.py +74 -0
- oci/disaster_recovery/models/compute_instance_non_movable_block_volume_operation.py +1 -0
- oci/disaster_recovery/models/create_block_volume_attachment_details.py +5 -4
- oci/disaster_recovery/models/create_block_volume_mount_details.py +3 -2
- oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_attach_and_mount_operations_details.py +101 -0
- oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_attach_operation_details.py +111 -0
- oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_mount_operation_details.py +74 -0
- oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_operation_details.py +1 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_database_details.py +29 -2
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_non_movable_details.py +31 -2
- oci/disaster_recovery/models/create_dr_protection_group_member_database_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_file_system_details.py +64 -2
- oci/disaster_recovery/models/create_dr_protection_group_member_volume_group_details.py +115 -2
- oci/disaster_recovery/models/create_oke_cluster_backup_config_details.py +14 -14
- oci/disaster_recovery/models/create_source_volume_to_destination_encryption_key_mapping_details.py +101 -0
- oci/disaster_recovery/models/create_vault_and_encryption_key_details.py +111 -0
- oci/disaster_recovery/models/dr_plan_step.py +58 -3
- oci/disaster_recovery/models/dr_plan_step_execution.py +58 -3
- oci/disaster_recovery/models/dr_plan_user_defined_step.py +57 -13
- oci/disaster_recovery/models/dr_protection_group_member_autonomous_database.py +29 -2
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance_non_movable.py +31 -2
- oci/disaster_recovery/models/dr_protection_group_member_file_system.py +64 -2
- oci/disaster_recovery/models/dr_protection_group_member_volume_group.py +113 -2
- oci/disaster_recovery/models/invoke_function_precheck_step.py +1 -1
- oci/disaster_recovery/models/invoke_function_step.py +1 -1
- oci/disaster_recovery/models/invoke_function_user_defined_custom_precheck_step.py +154 -0
- oci/disaster_recovery/models/local_script_precheck_step.py +1 -1
- oci/disaster_recovery/models/object_store_script_precheck_step.py +1 -1
- oci/disaster_recovery/models/run_local_script_user_defined_custom_precheck_step.py +199 -0
- oci/disaster_recovery/models/run_local_script_user_defined_step.py +1 -1
- oci/disaster_recovery/models/run_object_store_script_user_defined_custom_precheck_step.py +156 -0
- oci/disaster_recovery/models/run_object_store_script_user_defined_step.py +1 -1
- oci/disaster_recovery/models/source_volume_to_destination_encryption_key_mapping.py +101 -0
- oci/disaster_recovery/models/update_block_volume_attachment_details.py +5 -4
- oci/disaster_recovery/models/update_block_volume_mount_details.py +1 -0
- oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_attach_and_mount_operations_details.py +101 -0
- oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_attach_operation_details.py +111 -0
- oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_mount_operation_details.py +74 -0
- oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_operation_details.py +1 -0
- oci/disaster_recovery/models/update_dr_plan_user_defined_step_details.py +57 -13
- oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_database_details.py +29 -2
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_non_movable_details.py +31 -2
- oci/disaster_recovery/models/update_dr_protection_group_member_database_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_file_system_details.py +64 -2
- oci/disaster_recovery/models/update_dr_protection_group_member_volume_group_details.py +113 -2
- oci/disaster_recovery/models/update_invoke_function_precheck_step_details.py +1 -1
- oci/disaster_recovery/models/update_invoke_function_user_defined_custom_precheck_step_details.py +119 -0
- oci/disaster_recovery/models/update_invoke_function_user_defined_step_details.py +1 -1
- oci/disaster_recovery/models/update_local_script_precheck_step_details.py +1 -1
- oci/disaster_recovery/models/update_object_store_script_precheck_step_details.py +1 -1
- oci/disaster_recovery/models/update_run_local_script_user_defined_custom_precheck_step_details.py +164 -0
- oci/disaster_recovery/models/update_run_local_script_user_defined_step_details.py +1 -1
- oci/disaster_recovery/models/update_run_object_store_script_user_defined_custom_precheck_step_details.py +121 -0
- oci/disaster_recovery/models/update_run_object_store_script_user_defined_step_details.py +1 -1
- oci/disaster_recovery/models/update_source_volume_to_destination_encryption_key_mapping_details.py +101 -0
- oci/disaster_recovery/models/update_vault_and_encryption_key_details.py +111 -0
- oci/disaster_recovery/models/vault_and_encryption_key.py +115 -0
- oci/dns/dns_client.py +54 -54
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +74 -74
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
- oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +24 -24
- oci/generative_ai/models/content_moderation_config.py +79 -1
- oci/generative_ai/models/model.py +69 -3
- oci/generative_ai/models/model_summary.py +69 -3
- oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
- oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
- oci/generative_ai_inference/models/__init__.py +8 -0
- oci/generative_ai_inference/models/cohere_chat_request.py +41 -2
- oci/generative_ai_inference/models/cohere_chat_response.py +29 -2
- oci/generative_ai_inference/models/completion_tokens_details.py +132 -0
- oci/generative_ai_inference/models/embed_text_result.py +29 -2
- oci/generative_ai_inference/models/prompt_tokens_details.py +70 -0
- oci/generative_ai_inference/models/stream_options.py +70 -0
- oci/generative_ai_inference/models/usage.py +186 -0
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +89 -89
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +79 -79
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
- 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/mngdmac/mac_device_client.py +3 -3
- oci/mngdmac/mac_order_client.py +11 -11
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +86 -86
- oci/network_load_balancer/network_load_balancer_client.py +35 -35
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +55 -55
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +16 -16
- oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +181 -181
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +13 -13
- oci/os_management_hub/managed_instance_client.py +33 -33
- oci/os_management_hub/managed_instance_group_client.py +26 -26
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +13 -13
- 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 +33 -33
- oci/os_management_hub/work_request_client.py +5 -5
- 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 +34 -34
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +26 -26
- oci/redis/redis_cluster_client.py +12 -12
- oci/regions_definitions.py +0 -9
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/models/__init__.py +12 -0
- oci/resource_scheduler/models/body_parameter.py +80 -0
- oci/resource_scheduler/models/change_schedule_compartment_details.py +74 -0
- oci/resource_scheduler/models/header_parameter.py +80 -0
- oci/resource_scheduler/models/parameter.py +123 -0
- oci/resource_scheduler/models/path_parameter.py +80 -0
- oci/resource_scheduler/models/query_parameter.py +80 -0
- oci/resource_scheduler/models/resource.py +113 -2
- oci/resource_scheduler/models/schedule.py +71 -0
- oci/resource_scheduler/schedule_client.py +156 -18
- oci/resource_scheduler/schedule_client_composite_operations.py +44 -0
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +87 -87
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +14 -14
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/METADATA +1 -1
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/RECORD +350 -319
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/LICENSE.txt +0 -0
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/WHEEL +0 -0
- {oci-2.150.2.dist-info → oci-2.150.3.dist-info}/top_level.txt +0 -0
@@ -93,6 +93,10 @@ class CohereChatResponse(BaseChatResponse):
|
|
93
93
|
The value to assign to the prompt property of this CohereChatResponse.
|
94
94
|
:type prompt: str
|
95
95
|
|
96
|
+
:param usage:
|
97
|
+
The value to assign to the usage property of this CohereChatResponse.
|
98
|
+
:type usage: oci.generative_ai_inference.models.Usage
|
99
|
+
|
96
100
|
"""
|
97
101
|
self.swagger_types = {
|
98
102
|
'api_format': 'str',
|
@@ -105,7 +109,8 @@ class CohereChatResponse(BaseChatResponse):
|
|
105
109
|
'search_queries': 'list[SearchQuery]',
|
106
110
|
'documents': 'list[object]',
|
107
111
|
'tool_calls': 'list[CohereToolCall]',
|
108
|
-
'prompt': 'str'
|
112
|
+
'prompt': 'str',
|
113
|
+
'usage': 'Usage'
|
109
114
|
}
|
110
115
|
self.attribute_map = {
|
111
116
|
'api_format': 'apiFormat',
|
@@ -118,7 +123,8 @@ class CohereChatResponse(BaseChatResponse):
|
|
118
123
|
'search_queries': 'searchQueries',
|
119
124
|
'documents': 'documents',
|
120
125
|
'tool_calls': 'toolCalls',
|
121
|
-
'prompt': 'prompt'
|
126
|
+
'prompt': 'prompt',
|
127
|
+
'usage': 'usage'
|
122
128
|
}
|
123
129
|
self._api_format = None
|
124
130
|
self._text = None
|
@@ -131,6 +137,7 @@ class CohereChatResponse(BaseChatResponse):
|
|
131
137
|
self._documents = None
|
132
138
|
self._tool_calls = None
|
133
139
|
self._prompt = None
|
140
|
+
self._usage = None
|
134
141
|
self._api_format = 'COHERE'
|
135
142
|
|
136
143
|
@property
|
@@ -407,6 +414,26 @@ class CohereChatResponse(BaseChatResponse):
|
|
407
414
|
"""
|
408
415
|
self._prompt = prompt
|
409
416
|
|
417
|
+
@property
|
418
|
+
def usage(self):
|
419
|
+
"""
|
420
|
+
Gets the usage of this CohereChatResponse.
|
421
|
+
|
422
|
+
:return: The usage of this CohereChatResponse.
|
423
|
+
:rtype: oci.generative_ai_inference.models.Usage
|
424
|
+
"""
|
425
|
+
return self._usage
|
426
|
+
|
427
|
+
@usage.setter
|
428
|
+
def usage(self, usage):
|
429
|
+
"""
|
430
|
+
Sets the usage of this CohereChatResponse.
|
431
|
+
|
432
|
+
:param usage: The usage of this CohereChatResponse.
|
433
|
+
:type: oci.generative_ai_inference.models.Usage
|
434
|
+
"""
|
435
|
+
self._usage = usage
|
436
|
+
|
410
437
|
def __repr__(self):
|
411
438
|
return formatted_flat_dict(self)
|
412
439
|
|
@@ -0,0 +1,132 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class CompletionTokensDetails(object):
|
14
|
+
"""
|
15
|
+
Breakdown of tokens used in a completion.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CompletionTokensDetails object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param accepted_prediction_tokens:
|
24
|
+
The value to assign to the accepted_prediction_tokens property of this CompletionTokensDetails.
|
25
|
+
:type accepted_prediction_tokens: int
|
26
|
+
|
27
|
+
:param reasoning_tokens:
|
28
|
+
The value to assign to the reasoning_tokens property of this CompletionTokensDetails.
|
29
|
+
:type reasoning_tokens: int
|
30
|
+
|
31
|
+
:param rejected_prediction_tokens:
|
32
|
+
The value to assign to the rejected_prediction_tokens property of this CompletionTokensDetails.
|
33
|
+
:type rejected_prediction_tokens: int
|
34
|
+
|
35
|
+
"""
|
36
|
+
self.swagger_types = {
|
37
|
+
'accepted_prediction_tokens': 'int',
|
38
|
+
'reasoning_tokens': 'int',
|
39
|
+
'rejected_prediction_tokens': 'int'
|
40
|
+
}
|
41
|
+
self.attribute_map = {
|
42
|
+
'accepted_prediction_tokens': 'acceptedPredictionTokens',
|
43
|
+
'reasoning_tokens': 'reasoningTokens',
|
44
|
+
'rejected_prediction_tokens': 'rejectedPredictionTokens'
|
45
|
+
}
|
46
|
+
self._accepted_prediction_tokens = None
|
47
|
+
self._reasoning_tokens = None
|
48
|
+
self._rejected_prediction_tokens = None
|
49
|
+
|
50
|
+
@property
|
51
|
+
def accepted_prediction_tokens(self):
|
52
|
+
"""
|
53
|
+
Gets the accepted_prediction_tokens of this CompletionTokensDetails.
|
54
|
+
When using Predicted Outputs, the number of tokens in the prediction that appeared in the completion.
|
55
|
+
|
56
|
+
|
57
|
+
:return: The accepted_prediction_tokens of this CompletionTokensDetails.
|
58
|
+
:rtype: int
|
59
|
+
"""
|
60
|
+
return self._accepted_prediction_tokens
|
61
|
+
|
62
|
+
@accepted_prediction_tokens.setter
|
63
|
+
def accepted_prediction_tokens(self, accepted_prediction_tokens):
|
64
|
+
"""
|
65
|
+
Sets the accepted_prediction_tokens of this CompletionTokensDetails.
|
66
|
+
When using Predicted Outputs, the number of tokens in the prediction that appeared in the completion.
|
67
|
+
|
68
|
+
|
69
|
+
:param accepted_prediction_tokens: The accepted_prediction_tokens of this CompletionTokensDetails.
|
70
|
+
:type: int
|
71
|
+
"""
|
72
|
+
self._accepted_prediction_tokens = accepted_prediction_tokens
|
73
|
+
|
74
|
+
@property
|
75
|
+
def reasoning_tokens(self):
|
76
|
+
"""
|
77
|
+
Gets the reasoning_tokens of this CompletionTokensDetails.
|
78
|
+
Tokens generated by the model for reasoning.
|
79
|
+
|
80
|
+
|
81
|
+
:return: The reasoning_tokens of this CompletionTokensDetails.
|
82
|
+
:rtype: int
|
83
|
+
"""
|
84
|
+
return self._reasoning_tokens
|
85
|
+
|
86
|
+
@reasoning_tokens.setter
|
87
|
+
def reasoning_tokens(self, reasoning_tokens):
|
88
|
+
"""
|
89
|
+
Sets the reasoning_tokens of this CompletionTokensDetails.
|
90
|
+
Tokens generated by the model for reasoning.
|
91
|
+
|
92
|
+
|
93
|
+
:param reasoning_tokens: The reasoning_tokens of this CompletionTokensDetails.
|
94
|
+
:type: int
|
95
|
+
"""
|
96
|
+
self._reasoning_tokens = reasoning_tokens
|
97
|
+
|
98
|
+
@property
|
99
|
+
def rejected_prediction_tokens(self):
|
100
|
+
"""
|
101
|
+
Gets the rejected_prediction_tokens of this CompletionTokensDetails.
|
102
|
+
When using Predicted Outputs, the number of tokens in the prediction that did not appear in the completion. However, like reasoning tokens, these tokens are still counted in the total completion tokens for purposes of billing, output, and context window limits.
|
103
|
+
|
104
|
+
|
105
|
+
:return: The rejected_prediction_tokens of this CompletionTokensDetails.
|
106
|
+
:rtype: int
|
107
|
+
"""
|
108
|
+
return self._rejected_prediction_tokens
|
109
|
+
|
110
|
+
@rejected_prediction_tokens.setter
|
111
|
+
def rejected_prediction_tokens(self, rejected_prediction_tokens):
|
112
|
+
"""
|
113
|
+
Sets the rejected_prediction_tokens of this CompletionTokensDetails.
|
114
|
+
When using Predicted Outputs, the number of tokens in the prediction that did not appear in the completion. However, like reasoning tokens, these tokens are still counted in the total completion tokens for purposes of billing, output, and context window limits.
|
115
|
+
|
116
|
+
|
117
|
+
:param rejected_prediction_tokens: The rejected_prediction_tokens of this CompletionTokensDetails.
|
118
|
+
:type: int
|
119
|
+
"""
|
120
|
+
self._rejected_prediction_tokens = rejected_prediction_tokens
|
121
|
+
|
122
|
+
def __repr__(self):
|
123
|
+
return formatted_flat_dict(self)
|
124
|
+
|
125
|
+
def __eq__(self, other):
|
126
|
+
if other is None:
|
127
|
+
return False
|
128
|
+
|
129
|
+
return self.__dict__ == other.__dict__
|
130
|
+
|
131
|
+
def __ne__(self, other):
|
132
|
+
return not self == other
|
@@ -40,26 +40,33 @@ class EmbedTextResult(object):
|
|
40
40
|
The value to assign to the model_version property of this EmbedTextResult.
|
41
41
|
:type model_version: str
|
42
42
|
|
43
|
+
:param usage:
|
44
|
+
The value to assign to the usage property of this EmbedTextResult.
|
45
|
+
:type usage: oci.generative_ai_inference.models.Usage
|
46
|
+
|
43
47
|
"""
|
44
48
|
self.swagger_types = {
|
45
49
|
'id': 'str',
|
46
50
|
'inputs': 'list[str]',
|
47
51
|
'embeddings': 'list[list[float]]',
|
48
52
|
'model_id': 'str',
|
49
|
-
'model_version': 'str'
|
53
|
+
'model_version': 'str',
|
54
|
+
'usage': 'Usage'
|
50
55
|
}
|
51
56
|
self.attribute_map = {
|
52
57
|
'id': 'id',
|
53
58
|
'inputs': 'inputs',
|
54
59
|
'embeddings': 'embeddings',
|
55
60
|
'model_id': 'modelId',
|
56
|
-
'model_version': 'modelVersion'
|
61
|
+
'model_version': 'modelVersion',
|
62
|
+
'usage': 'usage'
|
57
63
|
}
|
58
64
|
self._id = None
|
59
65
|
self._inputs = None
|
60
66
|
self._embeddings = None
|
61
67
|
self._model_id = None
|
62
68
|
self._model_version = None
|
69
|
+
self._usage = None
|
63
70
|
|
64
71
|
@property
|
65
72
|
def id(self):
|
@@ -181,6 +188,26 @@ class EmbedTextResult(object):
|
|
181
188
|
"""
|
182
189
|
self._model_version = model_version
|
183
190
|
|
191
|
+
@property
|
192
|
+
def usage(self):
|
193
|
+
"""
|
194
|
+
Gets the usage of this EmbedTextResult.
|
195
|
+
|
196
|
+
:return: The usage of this EmbedTextResult.
|
197
|
+
:rtype: oci.generative_ai_inference.models.Usage
|
198
|
+
"""
|
199
|
+
return self._usage
|
200
|
+
|
201
|
+
@usage.setter
|
202
|
+
def usage(self, usage):
|
203
|
+
"""
|
204
|
+
Sets the usage of this EmbedTextResult.
|
205
|
+
|
206
|
+
:param usage: The usage of this EmbedTextResult.
|
207
|
+
:type: oci.generative_ai_inference.models.Usage
|
208
|
+
"""
|
209
|
+
self._usage = usage
|
210
|
+
|
184
211
|
def __repr__(self):
|
185
212
|
return formatted_flat_dict(self)
|
186
213
|
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class PromptTokensDetails(object):
|
14
|
+
"""
|
15
|
+
Breakdown of tokens used in the prompt.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new PromptTokensDetails object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param cached_tokens:
|
24
|
+
The value to assign to the cached_tokens property of this PromptTokensDetails.
|
25
|
+
:type cached_tokens: int
|
26
|
+
|
27
|
+
"""
|
28
|
+
self.swagger_types = {
|
29
|
+
'cached_tokens': 'int'
|
30
|
+
}
|
31
|
+
self.attribute_map = {
|
32
|
+
'cached_tokens': 'cachedTokens'
|
33
|
+
}
|
34
|
+
self._cached_tokens = None
|
35
|
+
|
36
|
+
@property
|
37
|
+
def cached_tokens(self):
|
38
|
+
"""
|
39
|
+
Gets the cached_tokens of this PromptTokensDetails.
|
40
|
+
Cached tokens present in the prompt.
|
41
|
+
|
42
|
+
|
43
|
+
:return: The cached_tokens of this PromptTokensDetails.
|
44
|
+
:rtype: int
|
45
|
+
"""
|
46
|
+
return self._cached_tokens
|
47
|
+
|
48
|
+
@cached_tokens.setter
|
49
|
+
def cached_tokens(self, cached_tokens):
|
50
|
+
"""
|
51
|
+
Sets the cached_tokens of this PromptTokensDetails.
|
52
|
+
Cached tokens present in the prompt.
|
53
|
+
|
54
|
+
|
55
|
+
:param cached_tokens: The cached_tokens of this PromptTokensDetails.
|
56
|
+
:type: int
|
57
|
+
"""
|
58
|
+
self._cached_tokens = cached_tokens
|
59
|
+
|
60
|
+
def __repr__(self):
|
61
|
+
return formatted_flat_dict(self)
|
62
|
+
|
63
|
+
def __eq__(self, other):
|
64
|
+
if other is None:
|
65
|
+
return False
|
66
|
+
|
67
|
+
return self.__dict__ == other.__dict__
|
68
|
+
|
69
|
+
def __ne__(self, other):
|
70
|
+
return not self == other
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class StreamOptions(object):
|
14
|
+
"""
|
15
|
+
Options for streaming response. Only set this when you set stream: true.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new StreamOptions object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param is_include_usage:
|
24
|
+
The value to assign to the is_include_usage property of this StreamOptions.
|
25
|
+
:type is_include_usage: bool
|
26
|
+
|
27
|
+
"""
|
28
|
+
self.swagger_types = {
|
29
|
+
'is_include_usage': 'bool'
|
30
|
+
}
|
31
|
+
self.attribute_map = {
|
32
|
+
'is_include_usage': 'isIncludeUsage'
|
33
|
+
}
|
34
|
+
self._is_include_usage = None
|
35
|
+
|
36
|
+
@property
|
37
|
+
def is_include_usage(self):
|
38
|
+
"""
|
39
|
+
Gets the is_include_usage of this StreamOptions.
|
40
|
+
If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request
|
41
|
+
|
42
|
+
|
43
|
+
:return: The is_include_usage of this StreamOptions.
|
44
|
+
:rtype: bool
|
45
|
+
"""
|
46
|
+
return self._is_include_usage
|
47
|
+
|
48
|
+
@is_include_usage.setter
|
49
|
+
def is_include_usage(self, is_include_usage):
|
50
|
+
"""
|
51
|
+
Sets the is_include_usage of this StreamOptions.
|
52
|
+
If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request
|
53
|
+
|
54
|
+
|
55
|
+
:param is_include_usage: The is_include_usage of this StreamOptions.
|
56
|
+
:type: bool
|
57
|
+
"""
|
58
|
+
self._is_include_usage = is_include_usage
|
59
|
+
|
60
|
+
def __repr__(self):
|
61
|
+
return formatted_flat_dict(self)
|
62
|
+
|
63
|
+
def __eq__(self, other):
|
64
|
+
if other is None:
|
65
|
+
return False
|
66
|
+
|
67
|
+
return self.__dict__ == other.__dict__
|
68
|
+
|
69
|
+
def __ne__(self, other):
|
70
|
+
return not self == other
|
@@ -0,0 +1,186 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class Usage(object):
|
14
|
+
"""
|
15
|
+
Usage statistics for the completion request.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new Usage object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param completion_tokens:
|
24
|
+
The value to assign to the completion_tokens property of this Usage.
|
25
|
+
:type completion_tokens: int
|
26
|
+
|
27
|
+
:param prompt_tokens:
|
28
|
+
The value to assign to the prompt_tokens property of this Usage.
|
29
|
+
:type prompt_tokens: int
|
30
|
+
|
31
|
+
:param total_tokens:
|
32
|
+
The value to assign to the total_tokens property of this Usage.
|
33
|
+
:type total_tokens: int
|
34
|
+
|
35
|
+
:param completion_tokens_details:
|
36
|
+
The value to assign to the completion_tokens_details property of this Usage.
|
37
|
+
:type completion_tokens_details: oci.generative_ai_inference.models.CompletionTokensDetails
|
38
|
+
|
39
|
+
:param prompt_tokens_details:
|
40
|
+
The value to assign to the prompt_tokens_details property of this Usage.
|
41
|
+
:type prompt_tokens_details: oci.generative_ai_inference.models.PromptTokensDetails
|
42
|
+
|
43
|
+
"""
|
44
|
+
self.swagger_types = {
|
45
|
+
'completion_tokens': 'int',
|
46
|
+
'prompt_tokens': 'int',
|
47
|
+
'total_tokens': 'int',
|
48
|
+
'completion_tokens_details': 'CompletionTokensDetails',
|
49
|
+
'prompt_tokens_details': 'PromptTokensDetails'
|
50
|
+
}
|
51
|
+
self.attribute_map = {
|
52
|
+
'completion_tokens': 'completionTokens',
|
53
|
+
'prompt_tokens': 'promptTokens',
|
54
|
+
'total_tokens': 'totalTokens',
|
55
|
+
'completion_tokens_details': 'completionTokensDetails',
|
56
|
+
'prompt_tokens_details': 'promptTokensDetails'
|
57
|
+
}
|
58
|
+
self._completion_tokens = None
|
59
|
+
self._prompt_tokens = None
|
60
|
+
self._total_tokens = None
|
61
|
+
self._completion_tokens_details = None
|
62
|
+
self._prompt_tokens_details = None
|
63
|
+
|
64
|
+
@property
|
65
|
+
def completion_tokens(self):
|
66
|
+
"""
|
67
|
+
Gets the completion_tokens of this Usage.
|
68
|
+
Number of tokens in the generated completion.
|
69
|
+
|
70
|
+
|
71
|
+
:return: The completion_tokens of this Usage.
|
72
|
+
:rtype: int
|
73
|
+
"""
|
74
|
+
return self._completion_tokens
|
75
|
+
|
76
|
+
@completion_tokens.setter
|
77
|
+
def completion_tokens(self, completion_tokens):
|
78
|
+
"""
|
79
|
+
Sets the completion_tokens of this Usage.
|
80
|
+
Number of tokens in the generated completion.
|
81
|
+
|
82
|
+
|
83
|
+
:param completion_tokens: The completion_tokens of this Usage.
|
84
|
+
:type: int
|
85
|
+
"""
|
86
|
+
self._completion_tokens = completion_tokens
|
87
|
+
|
88
|
+
@property
|
89
|
+
def prompt_tokens(self):
|
90
|
+
"""
|
91
|
+
Gets the prompt_tokens of this Usage.
|
92
|
+
Number of tokens in the prompt.
|
93
|
+
|
94
|
+
|
95
|
+
:return: The prompt_tokens of this Usage.
|
96
|
+
:rtype: int
|
97
|
+
"""
|
98
|
+
return self._prompt_tokens
|
99
|
+
|
100
|
+
@prompt_tokens.setter
|
101
|
+
def prompt_tokens(self, prompt_tokens):
|
102
|
+
"""
|
103
|
+
Sets the prompt_tokens of this Usage.
|
104
|
+
Number of tokens in the prompt.
|
105
|
+
|
106
|
+
|
107
|
+
:param prompt_tokens: The prompt_tokens of this Usage.
|
108
|
+
:type: int
|
109
|
+
"""
|
110
|
+
self._prompt_tokens = prompt_tokens
|
111
|
+
|
112
|
+
@property
|
113
|
+
def total_tokens(self):
|
114
|
+
"""
|
115
|
+
Gets the total_tokens of this Usage.
|
116
|
+
Total number of tokens used in the request (prompt + completion).
|
117
|
+
|
118
|
+
|
119
|
+
:return: The total_tokens of this Usage.
|
120
|
+
:rtype: int
|
121
|
+
"""
|
122
|
+
return self._total_tokens
|
123
|
+
|
124
|
+
@total_tokens.setter
|
125
|
+
def total_tokens(self, total_tokens):
|
126
|
+
"""
|
127
|
+
Sets the total_tokens of this Usage.
|
128
|
+
Total number of tokens used in the request (prompt + completion).
|
129
|
+
|
130
|
+
|
131
|
+
:param total_tokens: The total_tokens of this Usage.
|
132
|
+
:type: int
|
133
|
+
"""
|
134
|
+
self._total_tokens = total_tokens
|
135
|
+
|
136
|
+
@property
|
137
|
+
def completion_tokens_details(self):
|
138
|
+
"""
|
139
|
+
Gets the completion_tokens_details of this Usage.
|
140
|
+
|
141
|
+
:return: The completion_tokens_details of this Usage.
|
142
|
+
:rtype: oci.generative_ai_inference.models.CompletionTokensDetails
|
143
|
+
"""
|
144
|
+
return self._completion_tokens_details
|
145
|
+
|
146
|
+
@completion_tokens_details.setter
|
147
|
+
def completion_tokens_details(self, completion_tokens_details):
|
148
|
+
"""
|
149
|
+
Sets the completion_tokens_details of this Usage.
|
150
|
+
|
151
|
+
:param completion_tokens_details: The completion_tokens_details of this Usage.
|
152
|
+
:type: oci.generative_ai_inference.models.CompletionTokensDetails
|
153
|
+
"""
|
154
|
+
self._completion_tokens_details = completion_tokens_details
|
155
|
+
|
156
|
+
@property
|
157
|
+
def prompt_tokens_details(self):
|
158
|
+
"""
|
159
|
+
Gets the prompt_tokens_details of this Usage.
|
160
|
+
|
161
|
+
:return: The prompt_tokens_details of this Usage.
|
162
|
+
:rtype: oci.generative_ai_inference.models.PromptTokensDetails
|
163
|
+
"""
|
164
|
+
return self._prompt_tokens_details
|
165
|
+
|
166
|
+
@prompt_tokens_details.setter
|
167
|
+
def prompt_tokens_details(self, prompt_tokens_details):
|
168
|
+
"""
|
169
|
+
Sets the prompt_tokens_details of this Usage.
|
170
|
+
|
171
|
+
:param prompt_tokens_details: The prompt_tokens_details of this Usage.
|
172
|
+
:type: oci.generative_ai_inference.models.PromptTokensDetails
|
173
|
+
"""
|
174
|
+
self._prompt_tokens_details = prompt_tokens_details
|
175
|
+
|
176
|
+
def __repr__(self):
|
177
|
+
return formatted_flat_dict(self)
|
178
|
+
|
179
|
+
def __eq__(self, other):
|
180
|
+
if other is None:
|
181
|
+
return False
|
182
|
+
|
183
|
+
return self.__dict__ == other.__dict__
|
184
|
+
|
185
|
+
def __ne__(self, other):
|
186
|
+
return not self == other
|
@@ -154,7 +154,7 @@ class GenericArtifactsContentClient(object):
|
|
154
154
|
:rtype: :class:`~oci.response.Response`
|
155
155
|
|
156
156
|
:example:
|
157
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.
|
157
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.3/genericartifactscontent/get_generic_artifact_content.py.html>`__ to see an example of how to use get_generic_artifact_content API.
|
158
158
|
"""
|
159
159
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
160
160
|
required_arguments = ['artifactId']
|
@@ -269,7 +269,7 @@ class GenericArtifactsContentClient(object):
|
|
269
269
|
:rtype: :class:`~oci.response.Response`
|
270
270
|
|
271
271
|
:example:
|
272
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.
|
272
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.3/genericartifactscontent/get_generic_artifact_content_by_path.py.html>`__ to see an example of how to use get_generic_artifact_content_by_path API.
|
273
273
|
"""
|
274
274
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
275
275
|
required_arguments = ['repositoryId', 'artifactPath', 'version']
|
@@ -399,7 +399,7 @@ class GenericArtifactsContentClient(object):
|
|
399
399
|
:rtype: :class:`~oci.response.Response`
|
400
400
|
|
401
401
|
:example:
|
402
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.
|
402
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.150.3/genericartifactscontent/put_generic_artifact_content_by_path.py.html>`__ to see an example of how to use put_generic_artifact_content_by_path API.
|
403
403
|
"""
|
404
404
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
405
405
|
required_arguments = ['repositoryId', 'artifactPath', 'version']
|