volcengine-python-sdk 4.0.29__py2.py3-none-any.whl → 4.0.31__py2.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.
Potentially problematic release.
This version of volcengine-python-sdk might be problematic. Click here for more details.
- {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/METADATA +1 -1
- {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/RECORD +476 -72
- {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/top_level.txt +2 -0
- volcenginesdkacep/__init__.py +42 -0
- volcenginesdkacep/api/acep_api.py +1001 -128
- volcenginesdkacep/models/__init__.py +42 -0
- volcenginesdkacep/models/add_phone_template_request.py +256 -0
- volcenginesdkacep/models/add_phone_template_response.py +123 -0
- volcenginesdkacep/models/app_list_for_create_pod_one_step_input.py +149 -0
- volcenginesdkacep/models/create_pod_one_step_request.py +698 -0
- volcenginesdkacep/models/create_pod_one_step_response.py +175 -0
- volcenginesdkacep/models/create_pod_request.py +696 -0
- volcenginesdkacep/models/create_pod_response.py +149 -0
- volcenginesdkacep/models/get_phone_template_request.py +124 -0
- volcenginesdkacep/models/get_phone_template_response.py +149 -0
- volcenginesdkacep/models/job_for_reset_pod_output.py +305 -0
- volcenginesdkacep/models/list_phone_template_request.py +279 -0
- volcenginesdkacep/models/list_phone_template_response.py +149 -0
- volcenginesdkacep/models/overlay_persist_property_for_add_phone_template_input.py +175 -0
- volcenginesdkacep/models/overlay_persist_property_for_create_pod_input.py +175 -0
- volcenginesdkacep/models/overlay_persist_property_for_create_pod_one_step_input.py +175 -0
- volcenginesdkacep/models/overlay_persist_property_for_get_phone_template_output.py +175 -0
- volcenginesdkacep/models/overlay_persist_property_for_list_phone_template_output.py +175 -0
- volcenginesdkacep/models/overlay_property_for_add_phone_template_input.py +175 -0
- volcenginesdkacep/models/overlay_property_for_create_pod_input.py +175 -0
- volcenginesdkacep/models/overlay_property_for_create_pod_one_step_input.py +175 -0
- volcenginesdkacep/models/overlay_property_for_get_phone_template_output.py +175 -0
- volcenginesdkacep/models/overlay_property_for_list_phone_template_output.py +175 -0
- volcenginesdkacep/models/overlay_setting_for_add_phone_template_input.py +201 -0
- volcenginesdkacep/models/overlay_setting_for_create_pod_input.py +201 -0
- volcenginesdkacep/models/overlay_setting_for_create_pod_one_step_input.py +201 -0
- volcenginesdkacep/models/overlay_setting_for_get_phone_template_output.py +201 -0
- volcenginesdkacep/models/overlay_setting_for_list_phone_template_output.py +201 -0
- volcenginesdkacep/models/phone_template_for_get_phone_template_output.py +279 -0
- volcenginesdkacep/models/pod_persist_property_for_update_pod_property_input.py +175 -0
- volcenginesdkacep/models/pod_property_for_update_pod_property_input.py +175 -0
- volcenginesdkacep/models/pod_setting_for_update_pod_property_input.py +201 -0
- volcenginesdkacep/models/pod_spec_list_for_create_pod_input.py +617 -0
- volcenginesdkacep/models/remove_phone_template_request.py +123 -0
- volcenginesdkacep/models/remove_phone_template_response.py +123 -0
- volcenginesdkacep/models/reset_pod_request.py +280 -0
- volcenginesdkacep/models/reset_pod_response.py +175 -0
- volcenginesdkacep/models/row_for_list_phone_template_output.py +279 -0
- volcenginesdkacep/models/tag_for_get_phone_template_output.py +201 -0
- volcenginesdkacep/models/update_phone_template_request.py +176 -0
- volcenginesdkacep/models/update_phone_template_response.py +95 -0
- volcenginesdkacep/models/update_pod_property_request.py +280 -0
- volcenginesdkacep/models/update_pod_property_response.py +95 -0
- volcenginesdkarkruntime/resources/encryption.py +10 -2
- volcenginesdkarkruntime/resources/responses/responses.py +42 -24
- volcenginesdkarkruntime/types/__init__.py +2 -0
- volcenginesdkarkruntime/types/responses/audio_chunking_strategy.py +30 -0
- volcenginesdkarkruntime/types/responses/audio_chunking_strategy_param.py +28 -0
- volcenginesdkarkruntime/types/responses/image_process_grounding_options.py +23 -0
- volcenginesdkarkruntime/types/responses/image_process_grounding_options_param.py +23 -0
- volcenginesdkarkruntime/types/responses/image_process_point_options.py +23 -0
- volcenginesdkarkruntime/types/responses/image_process_point_options_param.py +23 -0
- volcenginesdkarkruntime/types/responses/image_process_rotate_options.py +23 -0
- volcenginesdkarkruntime/types/responses/image_process_rotate_options_param.py +23 -0
- volcenginesdkarkruntime/types/responses/image_process_tool.py +41 -0
- volcenginesdkarkruntime/types/responses/image_process_tool_param.py +40 -0
- volcenginesdkarkruntime/types/responses/image_process_zoom_options.py +23 -0
- volcenginesdkarkruntime/types/responses/image_process_zoom_options_param.py +23 -0
- volcenginesdkarkruntime/types/responses/item_function_image_process.py +37 -0
- volcenginesdkarkruntime/types/responses/knowledge_search_tool.py +46 -0
- volcenginesdkarkruntime/types/responses/knowledge_search_tool_param.py +44 -0
- volcenginesdkarkruntime/types/responses/mcp_tool.py +8 -4
- volcenginesdkarkruntime/types/responses/response.py +58 -92
- volcenginesdkarkruntime/types/responses/response_annotation_added_event.py +3 -22
- volcenginesdkarkruntime/types/responses/response_caching.py +6 -6
- volcenginesdkarkruntime/types/responses/response_caching_param.py +7 -4
- volcenginesdkarkruntime/types/responses/response_create_params.py +11 -3
- volcenginesdkarkruntime/types/responses/response_image_process_action.py +24 -0
- volcenginesdkarkruntime/types/responses/response_image_process_args.py +30 -0
- volcenginesdkarkruntime/types/responses/response_image_process_call_completed_event.py +35 -0
- volcenginesdkarkruntime/types/responses/response_image_process_call_in_progress_event.py +24 -0
- volcenginesdkarkruntime/types/responses/response_image_process_call_processing_event.py +30 -0
- volcenginesdkarkruntime/types/responses/response_image_process_error.py +20 -0
- volcenginesdkarkruntime/types/responses/response_image_process_grounding_args.py +24 -0
- volcenginesdkarkruntime/types/responses/response_image_process_point_args.py +24 -0
- volcenginesdkarkruntime/types/responses/response_image_process_rotate_args.py +22 -0
- volcenginesdkarkruntime/types/responses/response_image_process_zoom_args.py +24 -0
- volcenginesdkarkruntime/types/responses/response_input_audio.py +33 -0
- volcenginesdkarkruntime/types/responses/response_input_audio_param.py +32 -0
- volcenginesdkarkruntime/types/responses/response_input_content.py +13 -3
- volcenginesdkarkruntime/types/responses/response_input_file.py +32 -0
- volcenginesdkarkruntime/types/responses/response_input_file_param.py +30 -0
- volcenginesdkarkruntime/types/responses/response_input_message_content_list_param.py +11 -3
- volcenginesdkarkruntime/types/responses/response_input_video.py +33 -0
- volcenginesdkarkruntime/types/responses/response_input_video_param.py +6 -9
- volcenginesdkarkruntime/types/responses/response_knowledge_search_call_completed_event.py +24 -0
- volcenginesdkarkruntime/types/responses/response_knowledge_search_call_failed_event.py +24 -0
- volcenginesdkarkruntime/types/responses/response_knowledge_search_call_in_progress_event.py +24 -0
- volcenginesdkarkruntime/types/responses/response_knowledge_search_call_searching_event.py +24 -0
- volcenginesdkarkruntime/types/responses/response_knowledge_search_item.py +32 -0
- volcenginesdkarkruntime/types/responses/response_output_item.py +8 -4
- volcenginesdkarkruntime/types/responses/response_output_text.py +4 -33
- volcenginesdkarkruntime/types/responses/response_output_text_annotation.py +63 -0
- volcenginesdkarkruntime/types/responses/response_output_text_annotation_added_event.py +33 -0
- volcenginesdkarkruntime/types/responses/response_stream_event.py +89 -50
- volcenginesdkarkruntime/types/responses/response_tool_usage.py +14 -6
- volcenginesdkarkruntime/types/responses/responses_output_text_annotation_cover_image.py +25 -0
- volcenginesdkarkruntime/types/responses/tool.py +5 -2
- volcenginesdkarkruntime/types/responses/tool_choice_knowledge_search.py +22 -0
- volcenginesdkarkruntime/types/responses/tool_choice_knowledge_search_param.py +20 -0
- volcenginesdkarkruntime/types/responses/tool_choice_mcp.py +31 -0
- volcenginesdkarkruntime/types/responses/tool_choice_mcp_param.py +4 -4
- volcenginesdkarkruntime/types/responses/tool_choice_web_search.py +22 -0
- volcenginesdkarkruntime/types/responses/tool_choice_web_search_param.py +20 -0
- volcenginesdkarkruntime/types/responses/tool_param.py +11 -3
- volcenginesdkarkruntime/types/responses/user_location.py +30 -0
- volcenginesdkarkruntime/types/responses/user_location_param.py +31 -0
- volcenginesdkarkruntime/types/responses/web_search_tool.py +11 -22
- volcenginesdkarkruntime/types/responses/web_search_tool_param.py +8 -17
- volcenginesdkarkruntime/types/shared/__init__.py +3 -0
- volcenginesdkarkruntime/types/shared/reasoning.py +10 -0
- volcenginesdkarkruntime/types/shared_params/__init__.py +2 -0
- volcenginesdkarkruntime/types/shared_params/reasoning.py +12 -0
- volcenginesdkarkruntime/types/shared_params/reasoning_effort.py +8 -0
- volcenginesdkcbr/__init__.py +91 -0
- volcenginesdkcbr/api/__init__.py +6 -0
- volcenginesdkcbr/api/cbr_api.py +2362 -0
- volcenginesdkcbr/models/__init__.py +87 -0
- volcenginesdkcbr/models/backup_policy_for_describe_backup_policies_output.py +357 -0
- volcenginesdkcbr/models/create_backup_job_request.py +238 -0
- volcenginesdkcbr/models/create_backup_job_response.py +123 -0
- volcenginesdkcbr/models/create_backup_plan_request.py +176 -0
- volcenginesdkcbr/models/create_backup_plan_response.py +123 -0
- volcenginesdkcbr/models/create_backup_policy_request.py +293 -0
- volcenginesdkcbr/models/create_backup_policy_response.py +123 -0
- volcenginesdkcbr/models/create_backup_resource_request.py +211 -0
- volcenginesdkcbr/models/create_backup_resource_response.py +123 -0
- volcenginesdkcbr/models/create_restore_job_request.py +177 -0
- volcenginesdkcbr/models/create_restore_job_response.py +123 -0
- volcenginesdkcbr/models/create_vault_request.py +150 -0
- volcenginesdkcbr/models/create_vault_response.py +123 -0
- volcenginesdkcbr/models/delete_backup_plan_request.py +124 -0
- volcenginesdkcbr/models/delete_backup_plan_response.py +95 -0
- volcenginesdkcbr/models/delete_backup_policy_request.py +124 -0
- volcenginesdkcbr/models/delete_backup_policy_response.py +95 -0
- volcenginesdkcbr/models/delete_backup_resource_request.py +124 -0
- volcenginesdkcbr/models/delete_backup_resource_response.py +95 -0
- volcenginesdkcbr/models/delete_recovery_point_request.py +124 -0
- volcenginesdkcbr/models/delete_recovery_point_response.py +95 -0
- volcenginesdkcbr/models/delete_vault_request.py +124 -0
- volcenginesdkcbr/models/delete_vault_response.py +95 -0
- volcenginesdkcbr/models/describe_backup_plans_request.py +175 -0
- volcenginesdkcbr/models/describe_backup_plans_response.py +149 -0
- volcenginesdkcbr/models/describe_backup_policies_request.py +175 -0
- volcenginesdkcbr/models/describe_backup_policies_response.py +149 -0
- volcenginesdkcbr/models/describe_backup_resources_request.py +175 -0
- volcenginesdkcbr/models/describe_backup_resources_response.py +149 -0
- volcenginesdkcbr/models/describe_recovery_points_request.py +175 -0
- volcenginesdkcbr/models/describe_recovery_points_response.py +149 -0
- volcenginesdkcbr/models/describe_regions_request.py +95 -0
- volcenginesdkcbr/models/describe_regions_response.py +123 -0
- volcenginesdkcbr/models/describe_restore_jobs_request.py +175 -0
- volcenginesdkcbr/models/describe_restore_jobs_response.py +149 -0
- volcenginesdkcbr/models/describe_vaults_request.py +201 -0
- volcenginesdkcbr/models/describe_vaults_response.py +149 -0
- volcenginesdkcbr/models/disable_backup_policy_request.py +124 -0
- volcenginesdkcbr/models/disable_backup_policy_response.py +95 -0
- volcenginesdkcbr/models/enable_backup_policy_request.py +124 -0
- volcenginesdkcbr/models/enable_backup_policy_response.py +95 -0
- volcenginesdkcbr/models/filter_list_for_describe_backup_resources_input.py +149 -0
- volcenginesdkcbr/models/filters_for_describe_backup_plans_input.py +149 -0
- volcenginesdkcbr/models/filters_for_describe_backup_policies_input.py +175 -0
- volcenginesdkcbr/models/filters_for_describe_recovery_points_input.py +253 -0
- volcenginesdkcbr/models/filters_for_describe_restore_jobs_input.py +201 -0
- volcenginesdkcbr/models/filters_for_describe_vaults_input.py +149 -0
- volcenginesdkcbr/models/job_for_describe_restore_jobs_output.py +279 -0
- volcenginesdkcbr/models/meta_information_for_create_backup_plan_input.py +149 -0
- volcenginesdkcbr/models/meta_information_for_create_backup_resource_input.py +149 -0
- volcenginesdkcbr/models/meta_information_for_describe_backup_resources_output.py +149 -0
- volcenginesdkcbr/models/meta_information_for_update_backup_plan_input.py +149 -0
- volcenginesdkcbr/models/plan_for_describe_backup_plans_output.py +253 -0
- volcenginesdkcbr/models/plan_for_describe_backup_resources_output.py +149 -0
- volcenginesdkcbr/models/policy_for_describe_backup_plans_output.py +357 -0
- volcenginesdkcbr/models/recovery_point_for_describe_recovery_points_output.py +513 -0
- volcenginesdkcbr/models/region_for_describe_regions_output.py +149 -0
- volcenginesdkcbr/models/resource_for_describe_backup_resources_output.py +409 -0
- volcenginesdkcbr/models/resource_list_for_create_backup_plan_input.py +175 -0
- volcenginesdkcbr/models/resource_list_for_update_backup_plan_input.py +175 -0
- volcenginesdkcbr/models/tag_for_describe_vaults_output.py +149 -0
- volcenginesdkcbr/models/update_backup_plan_request.py +202 -0
- volcenginesdkcbr/models/update_backup_plan_response.py +95 -0
- volcenginesdkcbr/models/update_backup_policy_request.py +261 -0
- volcenginesdkcbr/models/update_backup_policy_response.py +95 -0
- volcenginesdkcbr/models/update_recovery_point_request.py +151 -0
- volcenginesdkcbr/models/update_recovery_point_response.py +95 -0
- volcenginesdkcbr/models/update_restore_job_request.py +151 -0
- volcenginesdkcbr/models/update_restore_job_response.py +95 -0
- volcenginesdkcbr/models/vault_list_for_describe_vaults_output.py +279 -0
- volcenginesdkcore/api_client.py +1 -1
- volcenginesdkcore/configuration.py +1 -1
- volcenginesdkcore/interceptor/interceptors/sign_request_interceptor.py +1 -0
- volcenginesdkcore/observability/debugger.py +4 -2
- volcenginesdkcore/retryer/retryer.py +4 -1
- volcenginesdkgraph/__init__.py +11 -0
- volcenginesdkgraph/api/graph_api.py +485 -0
- volcenginesdkgraph/models/__init__.py +11 -0
- volcenginesdkgraph/models/describe_vegraph_config_in_k8s_request.py +124 -0
- volcenginesdkgraph/models/describe_vegraph_config_in_k8s_response.py +201 -0
- volcenginesdkgraph/models/key_black_list_for_update_key_black_list_conf_input.py +175 -0
- volcenginesdkgraph/models/update_gremlin_keyword_black_list_conf_request.py +230 -0
- volcenginesdkgraph/models/update_gremlin_keyword_black_list_conf_response.py +95 -0
- volcenginesdkgraph/models/update_key_black_list_conf_request.py +230 -0
- volcenginesdkgraph/models/update_key_black_list_conf_response.py +95 -0
- volcenginesdkgraph/models/update_tablet_read_black_list_conf_request.py +230 -0
- volcenginesdkgraph/models/update_tablet_read_black_list_conf_response.py +95 -0
- volcenginesdkgraph/models/update_tablet_write_black_list_conf_request.py +230 -0
- volcenginesdkgraph/models/update_tablet_write_black_list_conf_response.py +95 -0
- volcenginesdkmilvus/__init__.py +112 -0
- volcenginesdkmilvus/api/__init__.py +6 -0
- volcenginesdkmilvus/api/milvus_api.py +2168 -0
- volcenginesdkmilvus/models/__init__.py +108 -0
- volcenginesdkmilvus/models/allow_group_list_for_describe_instance_detail_output.py +149 -0
- volcenginesdkmilvus/models/base_instance_for_describe_instance_detail_output.py +435 -0
- volcenginesdkmilvus/models/charge_config_for_create_instance_input.py +201 -0
- volcenginesdkmilvus/models/charge_config_for_create_instance_one_step_input.py +201 -0
- volcenginesdkmilvus/models/charge_config_for_describe_instance_detail_output.py +201 -0
- volcenginesdkmilvus/models/charge_config_for_describe_instances_output.py +201 -0
- volcenginesdkmilvus/models/charge_config_for_describe_price_input.py +201 -0
- volcenginesdkmilvus/models/component_spec_list_for_create_instance_input.py +253 -0
- volcenginesdkmilvus/models/component_spec_list_for_create_instance_one_step_input.py +253 -0
- volcenginesdkmilvus/models/component_spec_list_for_describe_price_input.py +227 -0
- volcenginesdkmilvus/models/component_spec_list_for_scale_instance_input.py +227 -0
- volcenginesdkmilvus/models/config_assign_list_for_modify_instance_config_input.py +149 -0
- volcenginesdkmilvus/models/configuration_for_describe_instance_config_output.py +331 -0
- volcenginesdkmilvus/models/create_instance_one_step_request.py +306 -0
- volcenginesdkmilvus/models/create_instance_one_step_response.py +227 -0
- volcenginesdkmilvus/models/create_instance_request.py +306 -0
- volcenginesdkmilvus/models/create_instance_response.py +227 -0
- volcenginesdkmilvus/models/describe_available_spec_request.py +95 -0
- volcenginesdkmilvus/models/describe_available_spec_response.py +201 -0
- volcenginesdkmilvus/models/describe_available_version_request.py +95 -0
- volcenginesdkmilvus/models/describe_available_version_response.py +123 -0
- volcenginesdkmilvus/models/describe_config_modules_request.py +124 -0
- volcenginesdkmilvus/models/describe_config_modules_response.py +123 -0
- volcenginesdkmilvus/models/describe_instance_config_request.py +124 -0
- volcenginesdkmilvus/models/describe_instance_config_response.py +123 -0
- volcenginesdkmilvus/models/describe_instance_detail_request.py +124 -0
- volcenginesdkmilvus/models/describe_instance_detail_response.py +409 -0
- volcenginesdkmilvus/models/describe_instances_request.py +253 -0
- volcenginesdkmilvus/models/describe_instances_response.py +227 -0
- volcenginesdkmilvus/models/describe_node_info_request.py +124 -0
- volcenginesdkmilvus/models/describe_node_info_response.py +123 -0
- volcenginesdkmilvus/models/describe_price_request.py +175 -0
- volcenginesdkmilvus/models/describe_price_response.py +227 -0
- volcenginesdkmilvus/models/describe_zones_request.py +95 -0
- volcenginesdkmilvus/models/describe_zones_response.py +123 -0
- volcenginesdkmilvus/models/endpoint_list_for_describe_instance_detail_output.py +305 -0
- volcenginesdkmilvus/models/instance_configuration_for_create_instance_input.py +227 -0
- volcenginesdkmilvus/models/instance_configuration_for_create_instance_one_step_input.py +227 -0
- volcenginesdkmilvus/models/instance_info_for_describe_instances_output.py +409 -0
- volcenginesdkmilvus/models/list_tags_for_resources_request.py +228 -0
- volcenginesdkmilvus/models/list_tags_for_resources_response.py +149 -0
- volcenginesdkmilvus/models/modify_delete_protect_request.py +151 -0
- volcenginesdkmilvus/models/modify_delete_protect_response.py +123 -0
- volcenginesdkmilvus/models/modify_instance_config_request.py +150 -0
- volcenginesdkmilvus/models/modify_instance_config_response.py +123 -0
- volcenginesdkmilvus/models/modify_instance_name_request.py +151 -0
- volcenginesdkmilvus/models/modify_instance_name_response.py +123 -0
- volcenginesdkmilvus/models/modify_post_paid_request.py +205 -0
- volcenginesdkmilvus/models/modify_post_paid_response.py +253 -0
- volcenginesdkmilvus/models/modify_pre_paid_request.py +205 -0
- volcenginesdkmilvus/models/modify_pre_paid_response.py +253 -0
- volcenginesdkmilvus/models/modify_resource_tags_request.py +176 -0
- volcenginesdkmilvus/models/modify_resource_tags_response.py +123 -0
- volcenginesdkmilvus/models/network_config_for_create_instance_input.py +175 -0
- volcenginesdkmilvus/models/network_config_for_create_instance_one_step_input.py +175 -0
- volcenginesdkmilvus/models/network_config_for_describe_instance_detail_output.py +175 -0
- volcenginesdkmilvus/models/network_config_for_describe_instances_output.py +175 -0
- volcenginesdkmilvus/models/node_cu_type_support_spec_list_for_describe_available_spec_output.py +175 -0
- volcenginesdkmilvus/models/node_info_list_for_describe_node_info_output.py +357 -0
- volcenginesdkmilvus/models/node_price_list_for_describe_price_output.py +305 -0
- volcenginesdkmilvus/models/node_support_spec_list_for_describe_available_spec_output.py +175 -0
- volcenginesdkmilvus/models/release_instance_request.py +124 -0
- volcenginesdkmilvus/models/release_instance_response.py +123 -0
- volcenginesdkmilvus/models/scale_instance_request.py +204 -0
- volcenginesdkmilvus/models/scale_instance_response.py +175 -0
- volcenginesdkmilvus/models/spec_config_for_describe_instance_detail_output.py +227 -0
- volcenginesdkmilvus/models/spec_list_for_describe_available_spec_output.py +253 -0
- volcenginesdkmilvus/models/subnet_info_for_create_instance_input.py +149 -0
- volcenginesdkmilvus/models/subnet_info_for_create_instance_one_step_input.py +149 -0
- volcenginesdkmilvus/models/subnet_info_for_describe_instance_detail_output.py +149 -0
- volcenginesdkmilvus/models/subnet_info_for_describe_instances_output.py +149 -0
- volcenginesdkmilvus/models/tag_filter_for_describe_instances_input.py +149 -0
- volcenginesdkmilvus/models/tag_filter_for_list_tags_for_resources_input.py +149 -0
- volcenginesdkmilvus/models/tag_for_create_instance_input.py +149 -0
- volcenginesdkmilvus/models/tag_for_create_instance_one_step_input.py +149 -0
- volcenginesdkmilvus/models/tag_for_describe_instance_detail_output.py +149 -0
- volcenginesdkmilvus/models/tag_for_describe_instances_output.py +149 -0
- volcenginesdkmilvus/models/tag_for_modify_resource_tags_input.py +149 -0
- volcenginesdkmilvus/models/tag_for_tag_resources_input.py +149 -0
- volcenginesdkmilvus/models/tag_resource_for_list_tags_for_resources_output.py +201 -0
- volcenginesdkmilvus/models/tag_resources_request.py +175 -0
- volcenginesdkmilvus/models/tag_resources_response.py +123 -0
- volcenginesdkmilvus/models/untag_resources_request.py +175 -0
- volcenginesdkmilvus/models/untag_resources_response.py +123 -0
- volcenginesdkmilvus/models/version_for_describe_available_version_output.py +149 -0
- volcenginesdkmilvus/models/vpc_info_for_create_instance_input.py +149 -0
- volcenginesdkmilvus/models/vpc_info_for_create_instance_one_step_input.py +149 -0
- volcenginesdkmilvus/models/vpc_info_for_describe_instance_detail_output.py +149 -0
- volcenginesdkmilvus/models/vpc_info_for_describe_instances_output.py +149 -0
- volcenginesdkmilvus/models/zone_for_describe_zones_output.py +175 -0
- volcenginesdkmilvus/models/zone_support_spec_list_for_describe_available_spec_output.py +149 -0
- volcenginesdkorganization/__init__.py +6 -0
- volcenginesdkorganization/api/organization_api.py +194 -0
- volcenginesdkorganization/models/__init__.py +6 -0
- volcenginesdkorganization/models/filter_for_list_tags_keys_input.py +123 -0
- volcenginesdkorganization/models/filter_for_list_tags_values_input.py +123 -0
- volcenginesdkorganization/models/list_tags_keys_request.py +209 -0
- volcenginesdkorganization/models/list_tags_keys_response.py +175 -0
- volcenginesdkorganization/models/list_tags_values_request.py +236 -0
- volcenginesdkorganization/models/list_tags_values_response.py +175 -0
- volcenginesdkseccenter20240508/__init__.py +128 -0
- volcenginesdkseccenter20240508/api/seccenter20240508_api.py +7987 -3913
- volcenginesdkseccenter20240508/models/__init__.py +128 -0
- volcenginesdkseccenter20240508/models/add_baseline_check_config_request.py +383 -0
- volcenginesdkseccenter20240508/models/add_baseline_check_config_response.py +123 -0
- volcenginesdkseccenter20240508/models/add_login_config_request.py +27 -1
- volcenginesdkseccenter20240508/models/alarm_topic_config_for_get_tls_info_output.py +175 -0
- volcenginesdkseccenter20240508/models/alarm_topic_config_for_modify_tls_config_input.py +149 -0
- volcenginesdkseccenter20240508/models/ban_alarm_ip_request.py +175 -0
- volcenginesdkseccenter20240508/models/ban_alarm_ip_response.py +123 -0
- volcenginesdkseccenter20240508/models/baseline_list_for_add_baseline_check_config_input.py +149 -0
- volcenginesdkseccenter20240508/models/baseline_list_for_edit_baseline_check_config_input.py +149 -0
- volcenginesdkseccenter20240508/models/baseline_list_for_list_baseline_basic_info_output.py +201 -0
- volcenginesdkseccenter20240508/models/baseline_list_for_list_baseline_check_config_output.py +149 -0
- volcenginesdkseccenter20240508/models/bind_mlp_auth_request.py +123 -0
- volcenginesdkseccenter20240508/models/bind_mlp_auth_response.py +123 -0
- volcenginesdkseccenter20240508/models/check_alarm_support_ban_ip_request.py +175 -0
- volcenginesdkseccenter20240508/models/check_alarm_support_ban_ip_response.py +227 -0
- volcenginesdkseccenter20240508/models/check_install_agent_client_response.py +105 -1
- volcenginesdkseccenter20240508/models/conditions_for_list_ordered_hosts_basic_infos_input.py +435 -0
- volcenginesdkseccenter20240508/models/create_mlp_asset_sync_task_request.py +124 -0
- volcenginesdkseccenter20240508/models/create_mlp_asset_sync_task_response.py +123 -0
- volcenginesdkseccenter20240508/models/data_for_get_alarm_rule_list_output.py +331 -0
- volcenginesdkseccenter20240508/models/data_for_get_fingerprint_env_output.py +409 -0
- volcenginesdkseccenter20240508/models/data_for_get_fingerprint_process_output.py +27 -1
- volcenginesdkseccenter20240508/models/data_for_get_fingerprint_service_output.py +53 -1
- volcenginesdkseccenter20240508/models/data_for_get_mlp_asset_sync_task_detail_output.py +305 -0
- volcenginesdkseccenter20240508/models/data_for_get_offline_notification_list_output.py +929 -0
- volcenginesdkseccenter20240508/models/data_for_list_ban_ip_list_output.py +487 -0
- volcenginesdkseccenter20240508/models/data_for_list_baseline_basic_info_output.py +201 -0
- volcenginesdkseccenter20240508/models/data_for_list_baseline_check_config_output.py +617 -0
- volcenginesdkseccenter20240508/models/data_for_list_baseline_for_group_policy_output.py +201 -0
- volcenginesdkseccenter20240508/models/data_for_list_check_config_related_baseline_output.py +201 -0
- volcenginesdkseccenter20240508/models/data_for_list_fingerprint_collect_config_output.py +331 -0
- volcenginesdkseccenter20240508/models/data_for_list_mlp_asset_tasks_output.py +305 -0
- volcenginesdkseccenter20240508/models/data_for_list_ordered_hosts_basic_infos_output.py +539 -0
- volcenginesdkseccenter20240508/models/delete_baseline_check_config_request.py +124 -0
- volcenginesdkseccenter20240508/models/delete_baseline_check_config_response.py +123 -0
- volcenginesdkseccenter20240508/models/detect_baseline_by_check_config_request.py +124 -0
- volcenginesdkseccenter20240508/models/detect_baseline_by_check_config_response.py +123 -0
- volcenginesdkseccenter20240508/models/ecs_instance_for_get_auto_isolate_agent_list_output.py +53 -1
- volcenginesdkseccenter20240508/models/ecs_instance_for_get_host_basic_info_output.py +53 -1
- volcenginesdkseccenter20240508/models/ecs_instance_for_get_offline_notification_list_output.py +669 -0
- volcenginesdkseccenter20240508/models/ecs_instance_for_list_asset_center_hosts_output.py +53 -1
- volcenginesdkseccenter20240508/models/ecs_instance_for_list_auto_defense_hosts_output.py +53 -1
- volcenginesdkseccenter20240508/models/ecs_instance_for_list_ban_ip_list_output.py +669 -0
- volcenginesdkseccenter20240508/models/ecs_instance_for_list_hosts_basic_infos_output.py +53 -1
- volcenginesdkseccenter20240508/models/ecs_instance_for_list_multi_level_asset_hosts_output.py +53 -1
- volcenginesdkseccenter20240508/models/ecs_instance_for_list_ordered_hosts_basic_infos_output.py +669 -0
- volcenginesdkseccenter20240508/models/ecs_instance_for_list_rasp_config_agent_infos_output.py +53 -1
- volcenginesdkseccenter20240508/models/edit_baseline_check_config_request.py +410 -0
- volcenginesdkseccenter20240508/models/edit_baseline_check_config_response.py +123 -0
- volcenginesdkseccenter20240508/models/edit_fingerprint_collect_config_request.py +254 -0
- volcenginesdkseccenter20240508/models/edit_fingerprint_collect_config_response.py +123 -0
- volcenginesdkseccenter20240508/models/export_dev_fingerprint_data_request.py +1 -1
- volcenginesdkseccenter20240508/models/file_for_handle_endpoint_alarms_input.py +149 -0
- volcenginesdkseccenter20240508/models/get_alarm_rule_list_request.py +333 -0
- volcenginesdkseccenter20240508/models/get_alarm_rule_list_response.py +201 -0
- volcenginesdkseccenter20240508/models/get_auto_protect_config_request.py +95 -0
- volcenginesdkseccenter20240508/models/get_auto_protect_config_response.py +149 -0
- volcenginesdkvod20250101/models/scenario_for_create_ai_termbase_input.py → volcenginesdkseccenter20240508/models/get_brute_force_ban_cap_params_request.py +6 -6
- volcenginesdkseccenter20240508/models/get_brute_force_ban_cap_params_response.py +123 -0
- volcenginesdkseccenter20240508/models/get_brute_force_ban_config_request.py +123 -0
- volcenginesdkseccenter20240508/models/get_brute_force_ban_config_response.py +383 -0
- volcenginesdkseccenter20240508/models/get_brute_force_ban_statistics_request.py +123 -0
- volcenginesdkseccenter20240508/models/get_brute_force_ban_statistics_response.py +149 -0
- volcenginesdkseccenter20240508/models/get_custom_weak_passwords_request.py +95 -0
- volcenginesdkseccenter20240508/models/get_custom_weak_passwords_response.py +201 -0
- volcenginesdkseccenter20240508/models/get_fingerprint_env_request.py +489 -0
- volcenginesdkseccenter20240508/models/get_fingerprint_env_response.py +201 -0
- volcenginesdkseccenter20240508/models/get_fingerprint_service_request.py +0 -7
- volcenginesdkseccenter20240508/models/get_fingerprint_statistics_response.py +27 -1
- volcenginesdkseccenter20240508/models/get_geo_location_request.py +123 -0
- volcenginesdkseccenter20240508/models/get_geo_location_response.py +123 -0
- volcenginesdkseccenter20240508/models/get_mlp_asset_sync_task_detail_request.py +124 -0
- volcenginesdkseccenter20240508/models/get_mlp_asset_sync_task_detail_response.py +123 -0
- volcenginesdkseccenter20240508/models/get_mlp_asset_sync_task_status_request.py +124 -0
- volcenginesdkseccenter20240508/models/get_mlp_asset_sync_task_status_response.py +201 -0
- volcenginesdkseccenter20240508/models/get_offline_notification_config_request.py +95 -0
- volcenginesdkseccenter20240508/models/get_offline_notification_config_response.py +149 -0
- volcenginesdkseccenter20240508/models/get_offline_notification_list_request.py +411 -0
- volcenginesdkseccenter20240508/models/get_offline_notification_list_response.py +201 -0
- volcenginesdkseccenter20240508/models/get_security_overview_score_stats_request.py +123 -0
- volcenginesdkseccenter20240508/models/get_security_overview_score_stats_response.py +149 -0
- volcenginesdkseccenter20240508/models/get_tls_info_response.py +122 -70
- volcenginesdkseccenter20240508/models/handle_endpoint_alarms_request.py +150 -0
- volcenginesdkseccenter20240508/models/handle_endpoint_alarms_response.py +95 -0
- volcenginesdkseccenter20240508/models/handle_list_for_handle_endpoint_alarms_input.py +201 -0
- volcenginesdkseccenter20240508/models/host_info_for_list_ban_ip_list_output.py +279 -0
- volcenginesdkseccenter20240508/models/list_alarm_tags_request.py +6 -6
- volcenginesdkseccenter20240508/models/list_ban_ip_list_request.py +567 -0
- volcenginesdkseccenter20240508/models/list_ban_ip_list_response.py +201 -0
- volcenginesdkseccenter20240508/models/list_baseline_basic_info_request.py +203 -0
- volcenginesdkseccenter20240508/models/list_baseline_basic_info_response.py +201 -0
- volcenginesdkseccenter20240508/models/list_baseline_check_config_request.py +203 -0
- volcenginesdkseccenter20240508/models/list_baseline_check_config_response.py +201 -0
- volcenginesdkseccenter20240508/models/list_baseline_for_group_policy_request.py +124 -0
- volcenginesdkseccenter20240508/models/list_baseline_for_group_policy_response.py +123 -0
- volcenginesdkseccenter20240508/models/list_batch_endpoint_handle_methods_request.py +150 -0
- volcenginesdkseccenter20240508/models/list_batch_endpoint_handle_methods_response.py +149 -0
- volcenginesdkseccenter20240508/models/list_check_config_related_baseline_request.py +256 -0
- volcenginesdkseccenter20240508/models/list_check_config_related_baseline_response.py +201 -0
- volcenginesdkseccenter20240508/models/list_fingerprint_collect_config_request.py +149 -0
- volcenginesdkseccenter20240508/models/list_fingerprint_collect_config_response.py +201 -0
- volcenginesdkseccenter20240508/models/list_mlp_alarm_tags_request.py +6 -6
- volcenginesdkseccenter20240508/models/list_mlp_asset_tasks_request.py +255 -0
- volcenginesdkseccenter20240508/models/list_mlp_asset_tasks_response.py +201 -0
- volcenginesdkseccenter20240508/models/list_ordered_hosts_basic_infos_request.py +256 -0
- volcenginesdkseccenter20240508/models/list_ordered_hosts_basic_infos_response.py +201 -0
- volcenginesdkseccenter20240508/models/location_for_get_geo_location_output.py +149 -0
- volcenginesdkseccenter20240508/models/login_location_for_add_login_config_input.py +175 -0
- volcenginesdkseccenter20240508/models/login_location_for_update_login_config_input.py +175 -0
- volcenginesdkseccenter20240508/models/login_topic_config_for_get_tls_info_output.py +175 -0
- volcenginesdkseccenter20240508/models/login_topic_config_for_modify_tls_config_input.py +149 -0
- volcenginesdkseccenter20240508/models/modify_tls_config_request.py +133 -3
- volcenginesdkseccenter20240508/models/operation_list_for_list_batch_endpoint_handle_methods_output.py +201 -0
- volcenginesdkseccenter20240508/models/port_change_topic_config_for_get_tls_info_output.py +175 -0
- volcenginesdkseccenter20240508/models/port_change_topic_config_for_modify_tls_config_input.py +149 -0
- volcenginesdkseccenter20240508/models/proc_list_for_list_batch_endpoint_handle_methods_output.py +175 -0
- volcenginesdkseccenter20240508/models/process_for_handle_endpoint_alarms_input.py +175 -0
- volcenginesdkseccenter20240508/models/process_start_topic_config_for_get_tls_info_output.py +175 -0
- volcenginesdkseccenter20240508/models/process_start_topic_config_for_modify_tls_config_input.py +149 -0
- volcenginesdkseccenter20240508/models/relate_alarm_info_for_list_ban_ip_list_output.py +149 -0
- volcenginesdkseccenter20240508/models/retry_ip_operation_request.py +150 -0
- volcenginesdkseccenter20240508/models/retry_ip_operation_response.py +123 -0
- volcenginesdkseccenter20240508/models/risk_for_get_offline_notification_list_output.py +201 -0
- volcenginesdkseccenter20240508/models/rule_list_for_get_brute_force_ban_config_output.py +227 -0
- volcenginesdkseccenter20240508/models/rule_list_for_set_brute_force_ban_config_input.py +227 -0
- volcenginesdkseccenter20240508/models/score_for_get_security_overview_score_stats_output.py +149 -0
- volcenginesdkseccenter20240508/models/set_brute_force_ban_config_request.py +461 -0
- volcenginesdkseccenter20240508/models/set_brute_force_ban_config_response.py +95 -0
- volcenginesdkseccenter20240508/models/set_custom_weak_passwords_request.py +123 -0
- volcenginesdkseccenter20240508/models/set_custom_weak_passwords_response.py +123 -0
- volcenginesdkseccenter20240508/models/stop_mlp_asset_sync_task_request.py +124 -0
- volcenginesdkseccenter20240508/models/stop_mlp_asset_sync_task_response.py +123 -0
- volcenginesdkseccenter20240508/models/un_ban_ip_item_request.py +123 -0
- volcenginesdkseccenter20240508/models/un_ban_ip_item_response.py +149 -0
- volcenginesdkseccenter20240508/models/unbind_mlp_auth_request.py +123 -0
- volcenginesdkseccenter20240508/models/unbind_mlp_auth_response.py +123 -0
- volcenginesdkseccenter20240508/models/update_auto_protect_config_request.py +124 -0
- volcenginesdkseccenter20240508/models/update_auto_protect_config_response.py +149 -0
- volcenginesdkseccenter20240508/models/update_baseline_check_config_switch_request.py +150 -0
- volcenginesdkseccenter20240508/models/update_baseline_check_config_switch_response.py +123 -0
- volcenginesdkseccenter20240508/models/update_cloud_provider_request.py +149 -0
- volcenginesdkseccenter20240508/models/update_cloud_provider_response.py +201 -0
- volcenginesdkseccenter20240508/models/update_login_config_request.py +27 -1
- volcenginesdkseccenter20240508/models/update_offline_notification_config_request.py +151 -0
- volcenginesdkseccenter20240508/models/update_offline_notification_config_response.py +123 -0
- volcenginesdkseccenter20240508/models/vuln_topic_config_for_get_tls_info_output.py +175 -0
- volcenginesdkseccenter20240508/models/vuln_topic_config_for_modify_tls_config_input.py +149 -0
- volcenginesdkvefaas/__init__.py +1 -0
- volcenginesdkvefaas/models/__init__.py +1 -0
- volcenginesdkvefaas/models/describe_sandbox_response.py +53 -1
- volcenginesdkvefaas/models/metadata_list_for_describe_sandbox_output.py +149 -0
- volcenginesdkvod20250101/__init__.py +0 -1
- volcenginesdkvod20250101/models/__init__.py +0 -1
- volcenginesdkvod20250101/models/create_ai_termbase_request.py +6 -5
- {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/WHEEL +0 -0
- {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/licenses/LICENSE.txt +0 -0
- {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
# Copyright (c) [2025] [OpenAI]
|
|
3
2
|
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
3
|
# SPDX-License-Identifier: Apache-2.0
|
|
@@ -10,51 +9,53 @@
|
|
|
10
9
|
#
|
|
11
10
|
# This modified file is released under the same license.
|
|
12
11
|
|
|
13
|
-
from typing import List,
|
|
12
|
+
from typing import List, Optional, Union
|
|
13
|
+
|
|
14
14
|
from typing_extensions import Literal, TypeAlias
|
|
15
|
+
from volcenginesdkarkruntime.types.shared.reasoning import Reasoning
|
|
16
|
+
from volcenginesdkarkruntime.types.shared.thinking import Thinking
|
|
15
17
|
|
|
16
|
-
from .tool import Tool
|
|
17
18
|
from ..._models import BaseModel
|
|
19
|
+
from .response_caching import ResponseCaching
|
|
18
20
|
from .response_error import ResponseError
|
|
19
|
-
from .
|
|
20
|
-
from .response_status import ResponseStatus
|
|
21
|
-
from volcenginesdkarkruntime.types.shared.thinking import Thinking
|
|
22
|
-
from .tool_choice_options import ToolChoiceOptions
|
|
21
|
+
from .response_incomplete_details import IncompleteDetails
|
|
23
22
|
from .response_output_item import ResponseOutputItem
|
|
24
23
|
from .response_text_config import ResponseTextConfig
|
|
24
|
+
from .response_usage import ResponseUsage
|
|
25
|
+
from .tool import Tool
|
|
25
26
|
from .tool_choice_function import ToolChoiceFunction
|
|
26
|
-
from .
|
|
27
|
-
from .
|
|
28
|
-
|
|
27
|
+
from .tool_choice_knowledge_search import ToolChoiceKnowledgeSearch
|
|
28
|
+
from .tool_choice_mcp import ToolChoiceMcp
|
|
29
|
+
from .tool_choice_options import ToolChoiceOptions
|
|
30
|
+
from .tool_choice_web_search import ToolChoiceWebSearch
|
|
29
31
|
|
|
30
32
|
__all__ = ["Response", "ToolChoice"]
|
|
31
33
|
|
|
32
34
|
|
|
33
|
-
ToolChoice: TypeAlias = Union[
|
|
35
|
+
ToolChoice: TypeAlias = Union[
|
|
36
|
+
ToolChoiceOptions,
|
|
37
|
+
ToolChoiceFunction,
|
|
38
|
+
ToolChoiceMcp,
|
|
39
|
+
ToolChoiceWebSearch,
|
|
40
|
+
ToolChoiceKnowledgeSearch,
|
|
41
|
+
]
|
|
34
42
|
|
|
35
43
|
|
|
36
44
|
class Response(BaseModel):
|
|
37
|
-
|
|
38
|
-
"""Unique identifier for this Response."""
|
|
39
|
-
|
|
40
|
-
created_at: float
|
|
45
|
+
created_at: int
|
|
41
46
|
"""Unix timestamp (in seconds) of when this Response was created."""
|
|
42
47
|
|
|
43
48
|
error: Optional[ResponseError] = None
|
|
44
49
|
"""An error object returned when the model fails to generate a Response."""
|
|
45
50
|
|
|
51
|
+
id: str
|
|
52
|
+
"""Unique identifier for this Response."""
|
|
53
|
+
|
|
46
54
|
incomplete_details: Optional[IncompleteDetails] = None
|
|
47
55
|
"""Details about why the response is incomplete."""
|
|
48
56
|
|
|
49
|
-
|
|
50
|
-
"""
|
|
51
|
-
Inserts a system (or developer) message as the first item in the model's
|
|
52
|
-
context.
|
|
53
|
-
|
|
54
|
-
When using along with `previous_response_id`, the instructions from a previous
|
|
55
|
-
response will not be carried over to the next response. This makes it simple to
|
|
56
|
-
swap out system (or developer) messages in new responses.
|
|
57
|
-
"""
|
|
57
|
+
max_output_tokens: Optional[int] = None
|
|
58
|
+
"""An upper bound for the number of tokens that can be generated for a response."""
|
|
58
59
|
|
|
59
60
|
model: str
|
|
60
61
|
"""Model Name or endpoint id."""
|
|
@@ -63,90 +64,55 @@ class Response(BaseModel):
|
|
|
63
64
|
"""The object type of this resource - always set to `response`."""
|
|
64
65
|
|
|
65
66
|
output: List[ResponseOutputItem]
|
|
66
|
-
"""An array of content items generated by the model.
|
|
67
|
+
"""An array of content items generated by the model."""
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
- Rather than accessing the first item in the `output` array and assuming it's
|
|
71
|
-
an `assistant` message with the content generated by the model, you might
|
|
72
|
-
consider using the `output_text` property where supported in SDKs.
|
|
73
|
-
"""
|
|
69
|
+
previous_response_id: Optional[str] = None
|
|
70
|
+
"""The unique ID of the previous response to the model. Use this to create multi-turn conversations."""
|
|
74
71
|
|
|
75
|
-
|
|
76
|
-
"""
|
|
72
|
+
thinking: Optional[Thinking] = None
|
|
73
|
+
"""The thinking mode to use for the model."""
|
|
77
74
|
|
|
78
|
-
|
|
79
|
-
"""
|
|
75
|
+
service_tier: Optional[Literal["auto", "default"]] = None
|
|
76
|
+
"""Specifies the latency tier to use for processing the request."""
|
|
80
77
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
this or `top_p` but not both.
|
|
84
|
-
"""
|
|
78
|
+
status: Literal["in_progress", "completed", "incomplete", "failed"]
|
|
79
|
+
"""The status of the response generation. One of `completed`, `failed`, `in_progress`, or `incomplete`."""
|
|
85
80
|
|
|
86
|
-
|
|
87
|
-
"""
|
|
88
|
-
How the model should select which tool (or tools) to use when generating a
|
|
89
|
-
response. See the `tools` parameter to see how to specify which tools the model
|
|
90
|
-
can call.
|
|
91
|
-
"""
|
|
81
|
+
temperature: Optional[float] = None
|
|
82
|
+
"""What sampling temperature to use, between 0 and 2."""
|
|
92
83
|
|
|
93
84
|
tools: List[Tool]
|
|
94
|
-
"""
|
|
95
|
-
An array of tools the model may call while generating a response.
|
|
96
|
-
|
|
97
|
-
You can specify which tool to use by setting the `tool_choice` parameter.
|
|
98
|
-
"""
|
|
85
|
+
"""An array of tools the model may call while generating a response. You can specify which tool to use by setting the `tool_choice` parameter."""
|
|
99
86
|
|
|
100
87
|
top_p: Optional[float] = None
|
|
101
|
-
"""
|
|
102
|
-
An alternative to sampling with temperature, called nucleus sampling, where the
|
|
103
|
-
model considers the results of the tokens with top_p probability mass. So 0.1
|
|
104
|
-
means only the tokens comprising the top 10% probability mass are considered.
|
|
105
|
-
|
|
106
|
-
We generally recommend altering this or `temperature` but not both.
|
|
107
|
-
"""
|
|
88
|
+
"""An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered."""
|
|
108
89
|
|
|
109
|
-
|
|
110
|
-
"""
|
|
111
|
-
An upper bound for the number of tokens that can be generated for a response.
|
|
112
|
-
"""
|
|
113
|
-
|
|
114
|
-
previous_response_id: Optional[str] = None
|
|
115
|
-
"""The unique ID of the previous response to the model.
|
|
116
|
-
|
|
117
|
-
Use this to create multi-turn conversations.
|
|
118
|
-
"""
|
|
90
|
+
usage: Optional[ResponseUsage] = None
|
|
91
|
+
"""Represents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used."""
|
|
119
92
|
|
|
120
|
-
|
|
121
|
-
"""
|
|
122
|
-
The thinking mode to use for the model.
|
|
123
|
-
"""
|
|
93
|
+
caching: Optional[ResponseCaching] = None
|
|
94
|
+
"""Represents the caching configuration for the response."""
|
|
124
95
|
|
|
125
|
-
|
|
126
|
-
"""
|
|
127
|
-
Specifies the latency tier to use for processing the request.
|
|
128
|
-
"""
|
|
96
|
+
text: Optional[ResponseTextConfig] = None
|
|
97
|
+
"""Configuration options for a text response from the model. Can be plain text or json object"""
|
|
129
98
|
|
|
130
|
-
|
|
131
|
-
"""
|
|
99
|
+
instructions: Optional[str] = None
|
|
100
|
+
"""Inserts a system (or developer) message as the first item in the model's context."""
|
|
132
101
|
|
|
133
|
-
|
|
134
|
-
"""
|
|
102
|
+
store: Optional[bool] = None
|
|
103
|
+
"""Whether to store the response object"""
|
|
135
104
|
|
|
136
|
-
|
|
137
|
-
"""
|
|
105
|
+
expire_at: Optional[int] = None
|
|
106
|
+
"""The expiration time of the response object"""
|
|
138
107
|
|
|
139
|
-
|
|
108
|
+
tool_choice: Optional[ToolChoice] = None
|
|
109
|
+
"""How the model should select which tool (or tools) to use when generating a response. See the `tools` parameter to see how to specify which tools the model can call."""
|
|
140
110
|
|
|
141
|
-
|
|
111
|
+
parallel_tool_calls: Optional[bool] = None
|
|
112
|
+
"""Whether to allow the model to run tool calls in parallel."""
|
|
142
113
|
|
|
143
|
-
|
|
144
|
-
"""
|
|
145
|
-
Represents token usage details including input tokens, output tokens, a
|
|
146
|
-
breakdown of output tokens, and the total tokens used.
|
|
147
|
-
"""
|
|
114
|
+
max_tool_calls: Optional[int] = None
|
|
115
|
+
"""The maximum number of total calls to built-in tools that can be processed in a response. This maximum number applies across all built-in tool calls, not per individual tool. Any further attempts to call a tool by the model will be ignored."""
|
|
148
116
|
|
|
149
|
-
|
|
150
|
-
"""
|
|
151
|
-
Represents the caching configuration for the response.
|
|
152
|
-
"""
|
|
117
|
+
reasoning: Optional[Reasoning] = None
|
|
118
|
+
"""Configuration options for reasoning models"""
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
# Copyright (c) [2025] [OpenAI]
|
|
3
2
|
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
3
|
# SPDX-License-Identifier: Apache-2.0
|
|
@@ -10,27 +9,9 @@
|
|
|
10
9
|
#
|
|
11
10
|
# This modified file is released under the same license.
|
|
12
11
|
|
|
13
|
-
from typing_extensions import Literal
|
|
14
12
|
|
|
15
|
-
from
|
|
16
|
-
|
|
13
|
+
from .response_output_text_annotation_added_event import (
|
|
14
|
+
ResponseOutputTextAnnotationAddedEvent,
|
|
15
|
+
)
|
|
17
16
|
|
|
18
17
|
__all__ = ["ResponseOutputTextAnnotationAddedEvent"]
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class ResponseOutputTextAnnotationAddedEvent(BaseModel):
|
|
22
|
-
|
|
23
|
-
item_id: str
|
|
24
|
-
"""The ID of the item this event is associated with."""
|
|
25
|
-
|
|
26
|
-
output_index: int
|
|
27
|
-
"""The index of the output item this event is associated with."""
|
|
28
|
-
|
|
29
|
-
type: Literal["response.output_text.annotation.added"]
|
|
30
|
-
"""The type of the event. Always `response.annotation.added`."""
|
|
31
|
-
|
|
32
|
-
content_index: int
|
|
33
|
-
"""The index of the content in the output content."""
|
|
34
|
-
|
|
35
|
-
annotation: ResponseOutputTextAnnotation
|
|
36
|
-
"""The annotation added to the output content."""
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
# Copyright (c) [2025] [OpenAI]
|
|
3
2
|
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
3
|
# SPDX-License-Identifier: Apache-2.0
|
|
@@ -11,15 +10,16 @@
|
|
|
11
10
|
# This modified file is released under the same license.
|
|
12
11
|
|
|
13
12
|
from typing import Optional
|
|
13
|
+
|
|
14
14
|
from typing_extensions import Literal
|
|
15
15
|
|
|
16
|
-
from
|
|
16
|
+
from ..._models import BaseModel
|
|
17
17
|
|
|
18
18
|
__all__ = ["ResponseCaching"]
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class ResponseCaching(BaseModel):
|
|
22
|
-
type: Optional[Literal["
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
type: Optional[Literal["disabled", "enabled"]] = None
|
|
23
|
+
"""Whether to enable caching."""
|
|
24
|
+
|
|
25
|
+
prefix: Optional[bool] = None
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
# Copyright (c) [2025] [OpenAI]
|
|
3
2
|
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
3
|
# SPDX-License-Identifier: Apache-2.0
|
|
@@ -12,11 +11,15 @@
|
|
|
12
11
|
|
|
13
12
|
from __future__ import annotations
|
|
14
13
|
|
|
15
|
-
from
|
|
14
|
+
from typing import Optional
|
|
15
|
+
|
|
16
|
+
from typing_extensions import Literal, TypedDict
|
|
16
17
|
|
|
17
18
|
__all__ = ["ResponseCaching"]
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
class ResponseCaching(TypedDict, total=False):
|
|
21
|
-
type:
|
|
22
|
-
"""
|
|
22
|
+
type: Optional[Literal["disabled", "enabled"]]
|
|
23
|
+
"""Whether to enable caching."""
|
|
24
|
+
|
|
25
|
+
prefix: Optional[bool]
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
# Copyright (c) [2025] [OpenAI]
|
|
3
2
|
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
3
|
# SPDX-License-Identifier: Apache-2.0
|
|
@@ -13,14 +12,23 @@
|
|
|
13
12
|
from __future__ import annotations
|
|
14
13
|
|
|
15
14
|
from typing import Union
|
|
15
|
+
|
|
16
16
|
from typing_extensions import TypeAlias
|
|
17
17
|
|
|
18
|
-
from .tool_choice_options import ToolChoiceOptions
|
|
19
18
|
from .tool_choice_function_param import ToolChoiceFunctionParam
|
|
19
|
+
from .tool_choice_knowledge_search_param import ToolChoiceKnowledgeSearchParam
|
|
20
20
|
from .tool_choice_mcp_param import ToolChoiceMcpParam
|
|
21
|
+
from .tool_choice_options import ToolChoiceOptions
|
|
22
|
+
from .tool_choice_web_search_param import ToolChoiceWebSearchParam
|
|
21
23
|
|
|
22
24
|
__all__ = [
|
|
23
25
|
"ToolChoice",
|
|
24
26
|
]
|
|
25
27
|
|
|
26
|
-
ToolChoice: TypeAlias = Union[
|
|
28
|
+
ToolChoice: TypeAlias = Union[
|
|
29
|
+
ToolChoiceOptions,
|
|
30
|
+
ToolChoiceFunctionParam,
|
|
31
|
+
ToolChoiceMcpParam,
|
|
32
|
+
ToolChoiceWebSearchParam,
|
|
33
|
+
ToolChoiceKnowledgeSearchParam,
|
|
34
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from typing import Optional
|
|
15
|
+
|
|
16
|
+
from ..._models import BaseModel
|
|
17
|
+
|
|
18
|
+
__all__ = ["ResponseImageProcessAction"]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ResponseImageProcessAction(BaseModel):
|
|
22
|
+
type: str
|
|
23
|
+
|
|
24
|
+
result_image_url: Optional[str] = None
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from typing import Union
|
|
15
|
+
|
|
16
|
+
from typing_extensions import TypeAlias
|
|
17
|
+
|
|
18
|
+
from .response_image_process_grounding_args import ResponseImageProcessGroundingArgs
|
|
19
|
+
from .response_image_process_point_args import ResponseImageProcessPointArgs
|
|
20
|
+
from .response_image_process_rotate_args import ResponseImageProcessRotateArgs
|
|
21
|
+
from .response_image_process_zoom_args import ResponseImageProcessZoomArgs
|
|
22
|
+
|
|
23
|
+
__all__ = ["ResponseImageProcessArgs"]
|
|
24
|
+
|
|
25
|
+
ResponseImageProcessArgs: TypeAlias = Union[
|
|
26
|
+
ResponseImageProcessPointArgs,
|
|
27
|
+
ResponseImageProcessGroundingArgs,
|
|
28
|
+
ResponseImageProcessRotateArgs,
|
|
29
|
+
ResponseImageProcessZoomArgs,
|
|
30
|
+
]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from typing import Optional
|
|
15
|
+
|
|
16
|
+
from typing_extensions import Literal
|
|
17
|
+
|
|
18
|
+
from ..._models import BaseModel
|
|
19
|
+
from .response_image_process_action import ResponseImageProcessAction
|
|
20
|
+
from .response_image_process_args import ResponseImageProcessArgs
|
|
21
|
+
from .response_image_process_error import ResponseImageProcessError
|
|
22
|
+
|
|
23
|
+
__all__ = ["ResponseImageProcessCallCompletedEvent"]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class ResponseImageProcessCallCompletedEvent(BaseModel):
|
|
27
|
+
type: Literal["response.image_process_call.completed"]
|
|
28
|
+
|
|
29
|
+
item_id: str
|
|
30
|
+
|
|
31
|
+
action: ResponseImageProcessAction
|
|
32
|
+
|
|
33
|
+
arguments: ResponseImageProcessArgs
|
|
34
|
+
|
|
35
|
+
error: Optional[ResponseImageProcessError] = None
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from typing_extensions import Literal
|
|
15
|
+
|
|
16
|
+
from ..._models import BaseModel
|
|
17
|
+
|
|
18
|
+
__all__ = ["ResponseImageProcessCallInProgressEvent"]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ResponseImageProcessCallInProgressEvent(BaseModel):
|
|
22
|
+
type: Literal["response.image_process_call.in_progress"]
|
|
23
|
+
|
|
24
|
+
item_id: str
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from typing_extensions import Literal
|
|
15
|
+
|
|
16
|
+
from ..._models import BaseModel
|
|
17
|
+
from .response_image_process_action import ResponseImageProcessAction
|
|
18
|
+
from .response_image_process_args import ResponseImageProcessArgs
|
|
19
|
+
|
|
20
|
+
__all__ = ["ResponseImageProcessCallProcessingEvent"]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ResponseImageProcessCallProcessingEvent(BaseModel):
|
|
24
|
+
type: Literal["response.image_process_call.progressing"]
|
|
25
|
+
|
|
26
|
+
item_id: str
|
|
27
|
+
|
|
28
|
+
action: ResponseImageProcessAction
|
|
29
|
+
|
|
30
|
+
arguments: ResponseImageProcessArgs
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from ..._models import BaseModel
|
|
15
|
+
|
|
16
|
+
__all__ = ["ResponseImageProcessError"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ResponseImageProcessError(BaseModel):
|
|
20
|
+
message: str
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from ..._models import BaseModel
|
|
15
|
+
|
|
16
|
+
__all__ = ["ResponseImageProcessGroundingArgs"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ResponseImageProcessGroundingArgs(BaseModel):
|
|
20
|
+
image_index: int
|
|
21
|
+
|
|
22
|
+
bbox_str: str
|
|
23
|
+
|
|
24
|
+
crop: bool
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from ..._models import BaseModel
|
|
15
|
+
|
|
16
|
+
__all__ = ["ResponseImageProcessPointArgs"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ResponseImageProcessPointArgs(BaseModel):
|
|
20
|
+
image_index: int
|
|
21
|
+
|
|
22
|
+
points: str
|
|
23
|
+
|
|
24
|
+
drawLine: bool
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from ..._models import BaseModel
|
|
15
|
+
|
|
16
|
+
__all__ = ["ResponseImageProcessRotateArgs"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ResponseImageProcessRotateArgs(BaseModel):
|
|
20
|
+
image_index: int
|
|
21
|
+
|
|
22
|
+
degree: int
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from ..._models import BaseModel
|
|
15
|
+
|
|
16
|
+
__all__ = ["ResponseImageProcessZoomArgs"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ResponseImageProcessZoomArgs(BaseModel):
|
|
20
|
+
image_index: int
|
|
21
|
+
|
|
22
|
+
bbox_str: str
|
|
23
|
+
|
|
24
|
+
scale: float
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from typing import Optional
|
|
15
|
+
|
|
16
|
+
from typing_extensions import Literal
|
|
17
|
+
|
|
18
|
+
from ..._models import BaseModel
|
|
19
|
+
from .audio_chunking_strategy import AudioChunkingStrategy
|
|
20
|
+
|
|
21
|
+
__all__ = ["ResponseInputAudio"]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ResponseInputAudio(BaseModel):
|
|
25
|
+
type: Literal["input_audio"]
|
|
26
|
+
|
|
27
|
+
chunking_strategy: Optional[AudioChunkingStrategy] = None
|
|
28
|
+
|
|
29
|
+
audio_url: str
|
|
30
|
+
|
|
31
|
+
file_id: Optional[str] = None
|
|
32
|
+
|
|
33
|
+
audio_bytes: Optional[bytes] = None
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Copyright (c) [2025] [OpenAI]
|
|
2
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
6
|
+
#
|
|
7
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
8
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
9
|
+
#
|
|
10
|
+
# This modified file is released under the same license.
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from typing import Optional
|
|
15
|
+
|
|
16
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
17
|
+
|
|
18
|
+
from .audio_chunking_strategy_param import AudioChunkingStrategyParam
|
|
19
|
+
|
|
20
|
+
__all__ = ["ResponseInputAudioParam"]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ResponseInputAudioParam(TypedDict, total=False):
|
|
24
|
+
type: Required[Literal["input_audio"]]
|
|
25
|
+
|
|
26
|
+
chunking_strategy: Optional[AudioChunkingStrategyParam]
|
|
27
|
+
|
|
28
|
+
audio_url: Required[str]
|
|
29
|
+
|
|
30
|
+
file_id: Optional[str]
|
|
31
|
+
|
|
32
|
+
audio_bytes: Optional[bytes]
|