volcengine-python-sdk 4.0.16__py2.py3-none-any.whl → 4.0.18__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.16.dist-info → volcengine_python_sdk-4.0.18.dist-info}/METADATA +1 -1
- {volcengine_python_sdk-4.0.16.dist-info → volcengine_python_sdk-4.0.18.dist-info}/RECORD +270 -141
- {volcengine_python_sdk-4.0.16.dist-info → volcengine_python_sdk-4.0.18.dist-info}/top_level.txt +1 -0
- volcenginesdkapig/__init__.py +52 -10
- volcenginesdkapig/api/apig_api.py +1489 -228
- volcenginesdkapig/models/__init__.py +52 -10
- volcenginesdkapig/models/apm_trace_spec_for_create_gateway_input.py +123 -0
- volcenginesdkapig/models/apm_trace_spec_for_get_gateway_output.py +95 -0
- volcenginesdkapig/models/apm_trace_spec_for_list_gateways_output.py +95 -0
- volcenginesdkapig/models/apm_trace_spec_for_update_gateway_trace_input.py +123 -0
- volcenginesdkapig/models/attach_gateway_lb_request.py +150 -0
- volcenginesdkapig/models/{tag_for_get_upstream_output.py → attach_gateway_lb_response.py} +20 -46
- volcenginesdkapig/models/create_custom_domain_request.py +255 -0
- volcenginesdkapig/models/create_custom_domain_response.py +123 -0
- volcenginesdkapig/models/create_gateway_request.py +17 -43
- volcenginesdkapig/models/create_upstream_request.py +1 -53
- volcenginesdkapig/models/create_upstream_version_request.py +150 -0
- volcenginesdkapig/models/create_upstream_version_response.py +149 -0
- volcenginesdkapig/models/custom_domain_for_get_custom_domain_output.py +357 -0
- volcenginesdkapig/models/delete_custom_domain_request.py +124 -0
- volcenginesdkapig/models/delete_custom_domain_response.py +95 -0
- volcenginesdkapig/models/delete_gateway_request.py +1 -27
- volcenginesdkapig/models/delete_upstream_version_request.py +151 -0
- volcenginesdkapig/models/delete_upstream_version_response.py +95 -0
- volcenginesdkapig20221112/models/tag_for_get_route_output.py → volcenginesdkapig/models/detach_gateway_lb_request.py +22 -47
- volcenginesdkapig/models/detach_gateway_lb_response.py +95 -0
- volcenginesdkapig/models/domain_spec_for_get_gateway_service_output.py +123 -0
- volcenginesdkapig/models/domain_spec_for_list_gateway_services_output.py +123 -0
- volcenginesdkapig/models/domain_spec_for_update_gateway_service_input.py +123 -0
- volcenginesdkapig/models/filter_for_list_gateways_input.py +1 -27
- volcenginesdkapig/models/gateway_for_get_gateway_output.py +17 -43
- volcenginesdkapig/models/gateway_service_for_get_gateway_service_output.py +29 -29
- volcenginesdkapig20221112/models/tag_for_list_routes_output.py → volcenginesdkapig/models/get_custom_domain_request.py +22 -47
- volcenginesdkapig/models/get_custom_domain_response.py +123 -0
- volcenginesdkapig/models/get_jwt_token_request.py +123 -0
- volcenginesdkapig/models/{tag_for_list_gateways_input.py → get_jwt_token_response.py} +20 -46
- volcenginesdkapig/models/imported_clb_spec_for_attach_gateway_lb_input.py +149 -0
- volcenginesdkapig/models/imported_clb_spec_for_list_gateway_lbs_output.py +201 -0
- volcenginesdkapig/models/ip_list_for_list_gateway_lbs_output.py +149 -0
- volcenginesdkapig/models/item_for_list_custom_domains_output.py +357 -0
- volcenginesdkapig/models/item_for_list_gateway_lbs_output.py +305 -0
- volcenginesdkapig/models/item_for_list_gateway_services_output.py +29 -29
- volcenginesdkapig/models/item_for_list_gateways_output.py +27 -1
- volcenginesdkapig/models/item_for_list_upstreams_output.py +1 -53
- volcenginesdkapig/models/{tag_for_list_gateway_services_output.py → label_for_create_upstream_version_input.py} +13 -13
- volcenginesdkapig/models/{tag_for_get_gateway_service_output.py → label_for_update_upstream_version_input.py} +13 -13
- volcenginesdkapig/models/list_custom_domains_request.py +201 -0
- volcenginesdkapig/models/list_custom_domains_response.py +149 -0
- volcenginesdkapig/models/list_gateway_lbs_request.py +124 -0
- volcenginesdkapig/models/list_gateway_lbs_response.py +149 -0
- volcenginesdkapig/models/list_upstreams_request.py +1 -27
- volcenginesdkapig/models/port_for_list_gateway_lbs_output.py +149 -0
- volcenginesdkapig/models/tls_trace_spec_for_create_gateway_input.py +201 -0
- volcenginesdkapig/models/tls_trace_spec_for_get_gateway_output.py +149 -0
- volcenginesdkapig/models/tls_trace_spec_for_list_gateways_output.py +149 -0
- volcenginesdkapig/models/tls_trace_spec_for_update_gateway_trace_input.py +201 -0
- volcenginesdkapig/models/trace_spec_for_create_gateway_input.py +201 -0
- volcenginesdkapig/models/trace_spec_for_get_gateway_output.py +201 -0
- volcenginesdkapig/models/trace_spec_for_list_gateways_output.py +201 -0
- volcenginesdkapig/models/trace_spec_for_update_gateway_trace_input.py +201 -0
- volcenginesdkapig/models/update_custom_domain_request.py +228 -0
- volcenginesdkapig/models/update_custom_domain_response.py +123 -0
- volcenginesdkapig/models/update_gateway_service_request.py +27 -1
- volcenginesdkapig/models/update_gateway_trace_request.py +150 -0
- volcenginesdkapig/models/update_gateway_trace_response.py +123 -0
- volcenginesdkapig/models/update_upstream_version_request.py +150 -0
- volcenginesdkapig/models/update_upstream_version_response.py +149 -0
- volcenginesdkapig/models/upstream_for_get_upstream_output.py +1 -53
- volcenginesdkapig/models/upstream_version_for_create_upstream_version_input.py +175 -0
- volcenginesdkapig/models/upstream_version_for_update_upstream_version_input.py +175 -0
- volcenginesdkapig20221112/__init__.py +12 -3
- volcenginesdkapig20221112/models/__init__.py +12 -3
- volcenginesdkapig/models/tag_for_list_upstreams_output.py → volcenginesdkapig20221112/models/allow_origin_for_create_route_input.py +25 -25
- volcenginesdkapig20221112/models/{tag_for_create_route_input.py → allow_origin_for_get_route_output.py} +24 -24
- volcenginesdkapig20221112/models/allow_origin_for_list_routes_output.py +149 -0
- volcenginesdkapig20221112/models/allow_origin_for_update_route_input.py +149 -0
- volcenginesdkapig20221112/models/cors_policy_setting_for_create_route_input.py +159 -3
- volcenginesdkapig20221112/models/cors_policy_setting_for_get_route_output.py +159 -3
- volcenginesdkapig20221112/models/cors_policy_setting_for_list_routes_output.py +159 -3
- volcenginesdkapig20221112/models/cors_policy_setting_for_update_route_input.py +159 -3
- volcenginesdkapig20221112/models/create_route_request.py +27 -53
- volcenginesdkapig20221112/models/fallback_setting_for_create_route_input.py +175 -0
- volcenginesdkapig20221112/models/fallback_setting_for_get_route_output.py +175 -0
- volcenginesdkapig20221112/models/fallback_setting_for_list_routes_output.py +175 -0
- volcenginesdkapig20221112/models/fallback_setting_for_update_route_input.py +175 -0
- volcenginesdkapig20221112/models/fallback_upstream_for_create_route_input.py +201 -0
- volcenginesdkapig20221112/models/fallback_upstream_for_get_route_output.py +201 -0
- volcenginesdkapig20221112/models/fallback_upstream_for_list_routes_output.py +201 -0
- volcenginesdkapig20221112/models/fallback_upstream_for_update_route_input.py +201 -0
- volcenginesdkapig20221112/models/header_operation_for_create_route_input.py +1 -27
- volcenginesdkapig20221112/models/header_operation_for_get_route_output.py +1 -27
- volcenginesdkapig20221112/models/header_operation_for_list_routes_output.py +1 -27
- volcenginesdkapig20221112/models/header_operation_for_update_route_input.py +1 -27
- volcenginesdkapig20221112/models/item_for_list_routes_output.py +27 -53
- volcenginesdkapig20221112/models/list_routes_request.py +1 -27
- volcenginesdkapig20221112/models/route_for_get_route_output.py +27 -53
- volcenginesdkapig20221112/models/update_route_request.py +27 -1
- volcenginesdkarkruntime/resources/images/images.py +178 -4
- volcenginesdkarkruntime/types/images/__init__.py +3 -2
- volcenginesdkarkruntime/types/images/image_gen_completed_event.py +51 -0
- volcenginesdkarkruntime/types/images/image_gen_generating_event.py +53 -0
- volcenginesdkarkruntime/types/images/image_gen_stream_event.py +24 -0
- volcenginesdkarkruntime/types/images/images.py +6 -2
- volcenginesdkarkruntime/types/responses/mcp_input_item_param.py +109 -0
- volcenginesdkarkruntime/types/responses/mcp_tool.py +80 -0
- volcenginesdkarkruntime/types/responses/mcp_tool_param.py +78 -0
- volcenginesdkarkruntime/types/responses/response_create_params.py +2 -1
- volcenginesdkarkruntime/types/responses/response_input_param.py +5 -0
- volcenginesdkarkruntime/types/responses/response_item.py +4 -0
- volcenginesdkarkruntime/types/responses/response_mcp_call_arguments_delta_event.py +37 -0
- volcenginesdkarkruntime/types/responses/response_mcp_call_arguments_done_event.py +34 -0
- volcenginesdkarkruntime/types/responses/response_mcp_call_completed_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_mcp_call_failed_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_mcp_call_in_progress_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_mcp_item.py +110 -0
- volcenginesdkarkruntime/types/responses/response_mcp_list_tools_completed_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_mcp_list_tools_failed_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_mcp_list_tools_in_progress_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_output_item.py +4 -0
- volcenginesdkarkruntime/types/responses/response_stream_event.py +18 -0
- volcenginesdkarkruntime/types/responses/response_tool_usage.py +32 -0
- volcenginesdkarkruntime/types/responses/response_usage.py +7 -0
- volcenginesdkarkruntime/types/responses/tool.py +3 -1
- volcenginesdkarkruntime/types/responses/tool_choice_mcp_param.py +29 -0
- volcenginesdkarkruntime/types/responses/tool_param.py +2 -1
- volcenginesdkarkruntime/types/responses/web_search_tool.py +49 -0
- volcenginesdkarkruntime/types/responses/web_search_tool_param.py +1 -1
- volcenginesdkcen/__init__.py +9 -0
- volcenginesdkcen/api/cen_api.py +388 -0
- volcenginesdkcen/models/__init__.py +9 -0
- volcenginesdkcen/models/associate_cen_bandwidth_package_response.py +1 -29
- volcenginesdkcen/models/attach_instance_to_cen_response.py +1 -29
- volcenginesdkcen/models/cen_bandwidth_package_for_describe_cen_bandwidth_packages_billing_output.py +279 -0
- volcenginesdkcen/models/cen_bandwidth_package_for_describe_cen_bandwidth_packages_output.py +50 -24
- volcenginesdkcen/models/create_cen_bandwidth_package_request.py +27 -1
- volcenginesdkcen/models/create_cen_bandwidth_package_response.py +3 -29
- volcenginesdkcen/models/create_cen_inter_region_bandwidth_request.py +27 -1
- volcenginesdkcen/models/create_cen_inter_region_bandwidth_response.py +3 -29
- volcenginesdkcen/models/create_cen_request.py +3 -0
- volcenginesdkcen/models/create_cen_response.py +3 -29
- volcenginesdkcen/models/create_cen_service_route_entry_response.py +1 -29
- volcenginesdkcen/models/create_cen_summary_route_entry_response.py +1 -29
- volcenginesdkcen/models/delete_cen_bandwidth_package_response.py +1 -29
- volcenginesdkcen/models/delete_cen_inter_region_bandwidth_response.py +1 -29
- volcenginesdkcen/models/delete_cen_response.py +1 -29
- volcenginesdkcen/models/delete_cen_service_route_entry_response.py +1 -29
- volcenginesdkcen/models/delete_cen_summary_route_entry_response.py +1 -29
- volcenginesdkcen/models/describe_cen_attached_instance_attributes_response.py +27 -27
- volcenginesdkcen/models/describe_cen_attached_instances_response.py +1 -27
- volcenginesdkcen/models/describe_cen_attributes_response.py +1 -27
- volcenginesdkcen/models/describe_cen_bandwidth_package_attributes_response.py +41 -41
- volcenginesdkcen/models/describe_cen_bandwidth_packages_billing_request.py +175 -0
- volcenginesdkcen/models/describe_cen_bandwidth_packages_billing_response.py +201 -0
- volcenginesdkcen/models/describe_cen_bandwidth_packages_response.py +1 -27
- volcenginesdkcen/models/describe_cen_inter_region_bandwidth_attributes_response.py +1 -27
- volcenginesdkcen/models/describe_cen_inter_region_bandwidths_response.py +1 -27
- volcenginesdkcen/models/describe_cen_route_entries_response.py +1 -27
- volcenginesdkcen/models/describe_cen_summary_route_entries_response.py +1 -27
- volcenginesdkcen/models/describe_cens_response.py +1 -27
- volcenginesdkcen/models/describe_grant_rules_to_cen_response.py +1 -27
- volcenginesdkcen/models/describe_instance_granted_rules_response.py +1 -27
- volcenginesdkcen/models/detach_instance_from_cen_response.py +1 -29
- volcenginesdkcen/models/disassociate_cen_bandwidth_package_response.py +1 -29
- volcenginesdkcen/models/grant_instance_to_cen_response.py +1 -29
- volcenginesdkcen/models/list_tags_for_resources_response.py +1 -27
- volcenginesdkcen/models/modify_cen_attributes_response.py +1 -29
- volcenginesdkcen/models/modify_cen_bandwidth_package_association_request.py +151 -0
- volcenginesdkcen/models/modify_cen_bandwidth_package_association_response.py +95 -0
- volcenginesdkcen/models/modify_cen_bandwidth_package_attributes_response.py +1 -29
- volcenginesdkcen/models/modify_cen_inter_region_bandwidth_attributes_request.py +27 -1
- volcenginesdkcen/models/modify_cen_inter_region_bandwidth_attributes_response.py +1 -29
- volcenginesdkcen/models/modify_cen_service_route_entry_attributes_response.py +1 -29
- volcenginesdkcen/models/publish_cen_route_entry_response.py +1 -29
- volcenginesdkcen/models/renew_cen_bandwidth_package_request.py +176 -0
- volcenginesdkcen/models/renew_cen_bandwidth_package_response.py +95 -0
- volcenginesdkcen/models/revoke_instance_from_cen_response.py +1 -29
- volcenginesdkcen/models/set_cen_bandwidth_package_renewal_request.py +203 -0
- volcenginesdkcen/models/set_cen_bandwidth_package_renewal_response.py +95 -0
- volcenginesdkcen/models/tag_filter_for_describe_cens_input.py +15 -15
- volcenginesdkcen/models/tag_resources_response.py +1 -29
- volcenginesdkcen/models/untag_resources_response.py +1 -29
- volcenginesdkcen/models/withdraw_cen_route_entry_response.py +1 -29
- volcenginesdkclb/__init__.py +2 -0
- volcenginesdkclb/api/clb_api.py +97 -0
- volcenginesdkclb/models/__init__.py +2 -0
- volcenginesdkclb/models/certificate_for_describe_nlb_listener_certificates_output.py +27 -1
- volcenginesdkclb/models/create_nlb_listener_request.py +157 -1
- volcenginesdkclb/models/describe_certificates_response.py +1 -53
- volcenginesdkclb/models/describe_load_balancers_request.py +53 -1
- volcenginesdkclb/models/describe_load_balancers_response.py +1 -27
- volcenginesdkclb/models/describe_nlb_listener_attributes_response.py +131 -1
- volcenginesdkclb/models/describe_nlb_listener_certificates_request.py +27 -1
- volcenginesdkclb/models/describe_nlb_server_group_attributes_response.py +1 -27
- volcenginesdkclb/models/modify_nlb_listener_additional_certificates_request.py +202 -0
- volcenginesdkclb/models/modify_nlb_listener_additional_certificates_response.py +123 -0
- volcenginesdkclb/models/modify_nlb_listener_attributes_request.py +157 -1
- volcenginesdkcore/api_client.py +1 -1
- volcenginesdkcore/auth/providers/sts_provider.py +1 -1
- volcenginesdkcore/configuration.py +1 -1
- volcenginesdkllmshield/__init__.py +82 -0
- volcenginesdkllmshield/api/__init__.py +4 -0
- volcenginesdkllmshield/api/llm_shield_sdk_v2.py +470 -0
- volcenginesdkllmshield/models/__init__.py +20 -0
- volcenginesdkllmshield/models/llm_shield_sign.py +159 -0
- volcenginesdktransitrouter/__init__.py +49 -6
- volcenginesdktransitrouter/api/transitrouter_api.py +2318 -572
- volcenginesdktransitrouter/models/__init__.py +49 -4
- volcenginesdktransitrouter/models/associate_transit_router_multicast_domain_request.py +178 -0
- volcenginesdktransitrouter/models/associate_transit_router_multicast_domain_response.py +95 -0
- volcenginesdktransitrouter/models/create_transit_router_bandwidth_package_request.py +27 -1
- volcenginesdktransitrouter/models/create_transit_router_flow_log_request.py +388 -0
- volcenginesdktransitrouter/models/create_transit_router_flow_log_response.py +123 -0
- volcenginesdktransitrouter/models/create_transit_router_forward_policy_entry_request.py +27 -1
- volcenginesdktransitrouter/models/create_transit_router_multicast_domain_request.py +228 -0
- volcenginesdktransitrouter/models/create_transit_router_multicast_domain_response.py +123 -0
- volcenginesdktransitrouter/models/create_transit_router_multicast_group_member_request.py +204 -0
- volcenginesdktransitrouter/models/create_transit_router_multicast_group_member_response.py +95 -0
- volcenginesdktransitrouter/models/create_transit_router_multicast_group_source_request.py +204 -0
- volcenginesdktransitrouter/models/create_transit_router_multicast_group_source_response.py +95 -0
- volcenginesdktransitrouter/models/create_transit_router_request.py +27 -1
- volcenginesdktransitrouter/models/create_transit_router_route_policy_entry_request.py +27 -1
- volcenginesdktransitrouter/models/delete_transit_router_flow_log_request.py +124 -0
- volcenginesdktransitrouter/models/delete_transit_router_flow_log_response.py +95 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_domain_request.py +124 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_domain_response.py +95 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_group_member_request.py +178 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_group_member_response.py +95 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_group_source_request.py +178 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_group_source_response.py +95 -0
- volcenginesdktransitrouter/models/describe_transit_router_flow_logs_request.py +386 -0
- volcenginesdktransitrouter/models/describe_transit_router_flow_logs_response.py +123 -0
- volcenginesdktransitrouter/models/describe_transit_router_forward_policy_entries_request.py +27 -1
- volcenginesdktransitrouter/models/describe_transit_router_multicast_domain_associations_request.py +279 -0
- volcenginesdktransitrouter/models/describe_transit_router_multicast_domain_associations_response.py +201 -0
- volcenginesdktransitrouter/models/describe_transit_router_multicast_domains_request.py +254 -0
- volcenginesdktransitrouter/models/describe_transit_router_multicast_domains_response.py +201 -0
- volcenginesdktransitrouter/models/describe_transit_router_multicast_groups_request.py +435 -0
- volcenginesdktransitrouter/models/describe_transit_router_multicast_groups_response.py +123 -0
- volcenginesdktransitrouter/models/describe_transit_router_route_entries_request.py +79 -1
- volcenginesdktransitrouter/models/describe_transit_router_route_entries_response.py +55 -3
- volcenginesdktransitrouter/models/dissociate_transit_router_multicast_domain_request.py +178 -0
- volcenginesdktransitrouter/models/dissociate_transit_router_multicast_domain_response.py +95 -0
- volcenginesdktransitrouter/models/models.py +2198 -2208
- volcenginesdktransitrouter/models/modify_transit_router_flow_log_attributes_request.py +202 -0
- volcenginesdktransitrouter/models/modify_transit_router_flow_log_attributes_response.py +95 -0
- volcenginesdktransitrouter/models/modify_transit_router_forward_policy_entry_attributes_request.py +27 -1
- volcenginesdktransitrouter/models/modify_transit_router_multicast_domain_attributes_request.py +176 -0
- volcenginesdktransitrouter/models/modify_transit_router_multicast_domain_attributes_response.py +95 -0
- volcenginesdktransitrouter/models/modify_transit_router_route_policy_entry_attributes_request.py +27 -1
- volcenginesdktransitrouter/models/start_transit_router_flow_log_request.py +124 -0
- volcenginesdktransitrouter/models/start_transit_router_flow_log_response.py +95 -0
- volcenginesdktransitrouter/models/stop_transit_router_flow_log_request.py +124 -0
- volcenginesdktransitrouter/models/stop_transit_router_flow_log_response.py +95 -0
- volcenginesdktransitrouter/models/tag_filter_for_describe_transit_router_flow_logs_input.py +149 -0
- volcenginesdktransitrouter/models/tag_filter_for_describe_transit_router_multicast_domains_input.py +149 -0
- volcenginesdkapig/models/tag_for_get_gateway_output.py → volcenginesdktransitrouter/models/tag_for_create_transit_router_flow_log_input.py +14 -14
- volcenginesdkapig/models/tag_for_create_gateway_input.py → volcenginesdktransitrouter/models/tag_for_create_transit_router_multicast_domain_input.py +14 -14
- volcenginesdkapig/models/tag_for_create_upstream_input.py → volcenginesdktransitrouter/models/tag_for_describe_transit_router_multicast_domains_output.py +14 -14
- volcenginesdktransitrouter/models/transit_router_attachment_for_describe_transit_router_peer_attachments_output.py +27 -1
- volcenginesdktransitrouter/models/transit_router_attachment_for_describe_transit_router_vpn_attachments_output.py +27 -1
- volcenginesdktransitrouter/models/transit_router_flow_log_for_describe_transit_router_flow_logs_output.py +513 -0
- volcenginesdktransitrouter/models/transit_router_for_describe_transit_routers_output.py +27 -1
- volcenginesdktransitrouter/models/transit_router_multicast_domains_for_describe_transit_router_multicast_domains_output.py +279 -0
- volcenginesdktransitrouter/models/transit_router_multicast_group_for_describe_transit_router_multicast_groups_output.py +487 -0
- volcenginesdkwafruntime/__init__.py +4 -2
- volcenginesdkwafruntime/api/waf_runtime_api.py +7 -3
- volcenginesdkwafruntime/models/llm_stream_session.py +4 -2
- volcenginesdkapig/models/backend_spec_for_create_gateway_input.py +0 -149
- volcenginesdkapig/models/backend_spec_for_get_gateway_output.py +0 -149
- {volcengine_python_sdk-4.0.16.dist-info → volcengine_python_sdk-4.0.18.dist-info}/LICENSE.txt +0 -0
- {volcengine_python_sdk-4.0.16.dist-info → volcengine_python_sdk-4.0.18.dist-info}/NOTICE.md +0 -0
- {volcengine_python_sdk-4.0.16.dist-info → volcengine_python_sdk-4.0.18.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import TypedDict, Required, Optional, Iterable, Literal
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"McpListTools",
|
|
17
|
+
"McpListToolsTool",
|
|
18
|
+
"McpApprovalRequest",
|
|
19
|
+
"McpApprovalResponse",
|
|
20
|
+
"McpCall",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class McpListToolsTool(TypedDict, total=False):
|
|
25
|
+
input_schema: Required[object]
|
|
26
|
+
"""The JSON schema describing the tool's input."""
|
|
27
|
+
|
|
28
|
+
name: Required[str]
|
|
29
|
+
"""The name of the tool."""
|
|
30
|
+
|
|
31
|
+
annotations: Optional[object]
|
|
32
|
+
"""Additional annotations about the tool."""
|
|
33
|
+
|
|
34
|
+
description: Optional[str]
|
|
35
|
+
"""The description of the tool."""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class McpListTools(TypedDict, total=False):
|
|
39
|
+
id: Required[str]
|
|
40
|
+
"""The unique ID of the list."""
|
|
41
|
+
|
|
42
|
+
server_label: Required[str]
|
|
43
|
+
"""The label of the MCP server."""
|
|
44
|
+
|
|
45
|
+
tools: Required[Iterable[McpListToolsTool]]
|
|
46
|
+
"""The tools available on the server."""
|
|
47
|
+
|
|
48
|
+
type: Required[Literal["mcp_list_tools"]]
|
|
49
|
+
"""The type of the item. Always `mcp_list_tools`."""
|
|
50
|
+
|
|
51
|
+
error: Optional[str]
|
|
52
|
+
"""Error message if the server could not list tools."""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class McpApprovalRequest(TypedDict, total=False):
|
|
56
|
+
id: Required[str]
|
|
57
|
+
"""The unique ID of the approval request."""
|
|
58
|
+
|
|
59
|
+
arguments: Required[str]
|
|
60
|
+
"""A JSON string of arguments for the tool."""
|
|
61
|
+
|
|
62
|
+
name: Required[str]
|
|
63
|
+
"""The name of the tool to run."""
|
|
64
|
+
|
|
65
|
+
server_label: Required[str]
|
|
66
|
+
"""The label of the MCP server making the request."""
|
|
67
|
+
|
|
68
|
+
type: Required[Literal["mcp_approval_request"]]
|
|
69
|
+
"""The type of the item. Always `mcp_approval_request`."""
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class McpApprovalResponse(TypedDict, total=False):
|
|
73
|
+
approval_request_id: Required[str]
|
|
74
|
+
"""The ID of the approval request being answered."""
|
|
75
|
+
|
|
76
|
+
approve: Required[bool]
|
|
77
|
+
"""Whether the request was approved."""
|
|
78
|
+
|
|
79
|
+
type: Required[Literal["mcp_approval_response"]]
|
|
80
|
+
"""The type of the item. Always `mcp_approval_response`."""
|
|
81
|
+
|
|
82
|
+
id: Optional[str]
|
|
83
|
+
"""The unique ID of the approval response"""
|
|
84
|
+
|
|
85
|
+
reason: Optional[str]
|
|
86
|
+
"""Optional reason for the decision."""
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class McpCall(TypedDict, total=False):
|
|
90
|
+
id: Required[str]
|
|
91
|
+
"""The unique ID of the tool call."""
|
|
92
|
+
|
|
93
|
+
arguments: Required[str]
|
|
94
|
+
"""A JSON string of the arguments passed to the tool."""
|
|
95
|
+
|
|
96
|
+
name: Required[str]
|
|
97
|
+
"""The name of the tool that was run."""
|
|
98
|
+
|
|
99
|
+
server_label: Required[str]
|
|
100
|
+
"""The label of the MCP server running the tool."""
|
|
101
|
+
|
|
102
|
+
type: Required[Literal["mcp_call"]]
|
|
103
|
+
"""The type of the item. Always `mcp_call`."""
|
|
104
|
+
|
|
105
|
+
error: Optional[str]
|
|
106
|
+
"""The error from the tool call, if any."""
|
|
107
|
+
|
|
108
|
+
output: Optional[str]
|
|
109
|
+
"""The output from the tool call."""
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import Literal, Optional, Dict, TypeAlias, Union, List
|
|
14
|
+
|
|
15
|
+
from ..._models import BaseModel
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"Mcp",
|
|
20
|
+
"McpAllowedTools",
|
|
21
|
+
"McpAllowedToolsMcpAllowedToolsFilter",
|
|
22
|
+
"McpRequireApproval",
|
|
23
|
+
"McpRequireApprovalMcpToolApprovalFilter",
|
|
24
|
+
"McpRequireApprovalMcpToolApprovalFilterAlways",
|
|
25
|
+
"McpRequireApprovalMcpToolApprovalFilterNever",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class McpAllowedToolsMcpAllowedToolsFilter(BaseModel):
|
|
30
|
+
tool_names: Optional[List[str]] = None
|
|
31
|
+
"""List of allowed tool names."""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class McpRequireApprovalMcpToolApprovalFilterAlways(BaseModel):
|
|
35
|
+
tool_names: Optional[List[str]] = None
|
|
36
|
+
"""List of tools that require approval."""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class McpRequireApprovalMcpToolApprovalFilterNever(BaseModel):
|
|
40
|
+
tool_names: Optional[List[str]] = None
|
|
41
|
+
"""List of tools that do not require approval."""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class McpRequireApprovalMcpToolApprovalFilter(BaseModel):
|
|
45
|
+
always: Optional[McpRequireApprovalMcpToolApprovalFilterAlways] = None
|
|
46
|
+
"""A list of tools that always require approval."""
|
|
47
|
+
|
|
48
|
+
never: Optional[McpRequireApprovalMcpToolApprovalFilterNever] = None
|
|
49
|
+
"""A list of tools that never require approval."""
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
McpAllowedTools: TypeAlias = Union[List[str], McpAllowedToolsMcpAllowedToolsFilter, None]
|
|
53
|
+
|
|
54
|
+
McpRequireApproval: TypeAlias = Union[McpRequireApprovalMcpToolApprovalFilter, Literal["always", "never"], None]
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class Mcp(BaseModel):
|
|
58
|
+
server_label: str
|
|
59
|
+
"""A label for this MCP server, used to identify it in tool calls."""
|
|
60
|
+
|
|
61
|
+
server_url: str
|
|
62
|
+
"""The URL for the MCP server."""
|
|
63
|
+
|
|
64
|
+
type: Literal["mcp"]
|
|
65
|
+
"""The type of the MCP tool. Always `mcp`."""
|
|
66
|
+
|
|
67
|
+
allowed_tools: Optional[McpAllowedTools] = None
|
|
68
|
+
"""List of allowed tool names or a filter object."""
|
|
69
|
+
|
|
70
|
+
headers: Optional[Dict[str, str]] = None
|
|
71
|
+
"""Optional HTTP headers to send to the MCP server.
|
|
72
|
+
|
|
73
|
+
Use for authentication or other purposes.
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
require_approval: Optional[McpRequireApproval] = None
|
|
77
|
+
"""Specify which of the MCP server's tools require approval."""
|
|
78
|
+
|
|
79
|
+
server_description: Optional[str] = None
|
|
80
|
+
"""Optional description of the MCP server, used to provide more context."""
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import Literal, TypedDict, Required, Optional, Dict, TypeAlias, Union, List
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"Mcp",
|
|
17
|
+
"McpAllowedTools",
|
|
18
|
+
"McpAllowedToolsMcpAllowedToolsFilter",
|
|
19
|
+
"McpRequireApproval",
|
|
20
|
+
"McpRequireApprovalMcpToolApprovalFilter",
|
|
21
|
+
"McpRequireApprovalMcpToolApprovalFilterAlways",
|
|
22
|
+
"McpRequireApprovalMcpToolApprovalFilterNever",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class McpAllowedToolsMcpAllowedToolsFilter(TypedDict, total=False):
|
|
27
|
+
tool_names: List[str]
|
|
28
|
+
"""List of allowed tool names."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class McpRequireApprovalMcpToolApprovalFilterAlways(TypedDict, total=False):
|
|
32
|
+
tool_names: List[str]
|
|
33
|
+
"""List of tools that require approval."""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class McpRequireApprovalMcpToolApprovalFilterNever(TypedDict, total=False):
|
|
37
|
+
tool_names: List[str]
|
|
38
|
+
"""List of tools that do not require approval."""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class McpRequireApprovalMcpToolApprovalFilter(TypedDict, total=False):
|
|
42
|
+
always: McpRequireApprovalMcpToolApprovalFilterAlways
|
|
43
|
+
"""A list of tools that always require approval."""
|
|
44
|
+
|
|
45
|
+
never: McpRequireApprovalMcpToolApprovalFilterNever
|
|
46
|
+
"""A list of tools that never require approval."""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
McpAllowedTools: TypeAlias = Union[List[str], McpAllowedToolsMcpAllowedToolsFilter]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
McpRequireApproval: TypeAlias = Union[McpRequireApprovalMcpToolApprovalFilter, Literal["always", "never"]]
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class Mcp(TypedDict, total=False):
|
|
56
|
+
server_label: Required[str]
|
|
57
|
+
"""A label for this MCP server, used to identify it in tool calls."""
|
|
58
|
+
|
|
59
|
+
server_url: Required[str]
|
|
60
|
+
"""The URL for the MCP server."""
|
|
61
|
+
|
|
62
|
+
type: Required[Literal["mcp"]]
|
|
63
|
+
"""The type of the MCP tool. Always `mcp`."""
|
|
64
|
+
|
|
65
|
+
allowed_tools: Optional[McpAllowedTools]
|
|
66
|
+
"""List of allowed tool names or a filter object."""
|
|
67
|
+
|
|
68
|
+
headers: Optional[Dict[str, str]]
|
|
69
|
+
"""Optional HTTP headers to send to the MCP server.
|
|
70
|
+
|
|
71
|
+
Use for authentication or other purposes.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
require_approval: Optional[McpRequireApproval]
|
|
75
|
+
"""Specify which of the MCP server's tools require approval."""
|
|
76
|
+
|
|
77
|
+
server_description: str
|
|
78
|
+
"""Optional description of the MCP server, used to provide more context."""
|
|
@@ -17,9 +17,10 @@ from typing_extensions import TypeAlias
|
|
|
17
17
|
|
|
18
18
|
from .tool_choice_options import ToolChoiceOptions
|
|
19
19
|
from .tool_choice_function_param import ToolChoiceFunctionParam
|
|
20
|
+
from .tool_choice_mcp_param import ToolChoiceMcpParam
|
|
20
21
|
|
|
21
22
|
__all__ = [
|
|
22
23
|
"ToolChoice",
|
|
23
24
|
]
|
|
24
25
|
|
|
25
|
-
ToolChoice: TypeAlias = Union[ToolChoiceOptions, ToolChoiceFunctionParam]
|
|
26
|
+
ToolChoice: TypeAlias = Union[ToolChoiceOptions, ToolChoiceFunctionParam, ToolChoiceMcpParam]
|
|
@@ -18,6 +18,7 @@ from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
|
18
18
|
from .easy_input_message_param import EasyInputMessageParam
|
|
19
19
|
from .response_reasoning_item_param import ResponseReasoningItemParam
|
|
20
20
|
from .response_function_tool_call_param import ResponseFunctionToolCallParam
|
|
21
|
+
from .mcp_input_item_param import McpApprovalRequest, McpApprovalResponse, McpListTools, McpCall
|
|
21
22
|
|
|
22
23
|
__all__ = [
|
|
23
24
|
"ResponseInputParam",
|
|
@@ -41,6 +42,10 @@ ResponseInputItemParam: TypeAlias = Union[
|
|
|
41
42
|
EasyInputMessageParam,
|
|
42
43
|
ResponseFunctionToolCallParam,
|
|
43
44
|
FunctionCallOutput,
|
|
45
|
+
McpApprovalRequest,
|
|
46
|
+
McpApprovalResponse,
|
|
47
|
+
McpListTools,
|
|
48
|
+
McpCall
|
|
44
49
|
]
|
|
45
50
|
|
|
46
51
|
ResponseInputParam: TypeAlias = List[ResponseInputItemParam]
|
|
@@ -19,6 +19,7 @@ from .response_output_message import ResponseOutputMessage
|
|
|
19
19
|
from .response_input_message_item import ResponseInputMessageItem
|
|
20
20
|
from .response_function_tool_call_item import ResponseFunctionToolCallItem
|
|
21
21
|
from .response_function_tool_call_output_item import ResponseFunctionToolCallOutputItem
|
|
22
|
+
from .response_mcp_item import McpListTools, McpApprovalRequest, McpApprovalResponse, McpCall
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
__all__ = [
|
|
@@ -31,6 +32,9 @@ ResponseItem: TypeAlias = Annotated[
|
|
|
31
32
|
ResponseOutputMessage,
|
|
32
33
|
ResponseFunctionToolCallItem,
|
|
33
34
|
ResponseFunctionToolCallOutputItem,
|
|
35
|
+
McpListTools,
|
|
36
|
+
McpApprovalRequest,
|
|
37
|
+
McpCall,
|
|
34
38
|
],
|
|
35
39
|
PropertyInfo(discriminator="type"),
|
|
36
40
|
]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import Literal
|
|
14
|
+
|
|
15
|
+
from ..._models import BaseModel
|
|
16
|
+
|
|
17
|
+
__all__ = ["ResponseMcpCallArgumentsDeltaEvent"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ResponseMcpCallArgumentsDeltaEvent(BaseModel):
|
|
21
|
+
delta: str
|
|
22
|
+
"""
|
|
23
|
+
A JSON string containing the partial update to the arguments for the MCP tool
|
|
24
|
+
call.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
item_id: str
|
|
28
|
+
"""The unique identifier of the MCP tool call item being processed."""
|
|
29
|
+
|
|
30
|
+
output_index: int
|
|
31
|
+
"""The index of the output item in the response's output array."""
|
|
32
|
+
|
|
33
|
+
sequence_number: int
|
|
34
|
+
"""The sequence number of this event."""
|
|
35
|
+
|
|
36
|
+
type: Literal["response.mcp_call_arguments.delta"]
|
|
37
|
+
"""The type of the event. Always 'response.mcp_call_arguments.delta'."""
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import Literal
|
|
14
|
+
|
|
15
|
+
from ..._models import BaseModel
|
|
16
|
+
|
|
17
|
+
__all__ = ["ResponseMcpCallArgumentsDoneEvent"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ResponseMcpCallArgumentsDoneEvent(BaseModel):
|
|
21
|
+
arguments: str
|
|
22
|
+
"""A JSON string containing the finalized arguments for the MCP tool call."""
|
|
23
|
+
|
|
24
|
+
item_id: str
|
|
25
|
+
"""The unique identifier of the MCP tool call item being processed."""
|
|
26
|
+
|
|
27
|
+
output_index: int
|
|
28
|
+
"""The index of the output item in the response's output array."""
|
|
29
|
+
|
|
30
|
+
sequence_number: int
|
|
31
|
+
"""The sequence number of this event."""
|
|
32
|
+
|
|
33
|
+
type: Literal["response.mcp_call_arguments.done"]
|
|
34
|
+
"""The type of the event. Always 'response.mcp_call_arguments.done'."""
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import Literal
|
|
14
|
+
|
|
15
|
+
from ..._models import BaseModel
|
|
16
|
+
|
|
17
|
+
__all__ = ["ResponseMcpCallCompletedEvent"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ResponseMcpCallCompletedEvent(BaseModel):
|
|
21
|
+
item_id: str
|
|
22
|
+
"""The ID of the MCP tool call item that completed."""
|
|
23
|
+
|
|
24
|
+
output_index: int
|
|
25
|
+
"""The index of the output item that completed."""
|
|
26
|
+
|
|
27
|
+
sequence_number: int
|
|
28
|
+
"""The sequence number of this event."""
|
|
29
|
+
|
|
30
|
+
type: Literal["response.mcp_call.completed"]
|
|
31
|
+
"""The type of the event. Always 'response.mcp_call.completed'."""
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import Literal
|
|
14
|
+
|
|
15
|
+
from ..._models import BaseModel
|
|
16
|
+
|
|
17
|
+
__all__ = ["ResponseMcpCallFailedEvent"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ResponseMcpCallFailedEvent(BaseModel):
|
|
21
|
+
item_id: str
|
|
22
|
+
"""The ID of the MCP tool call item that failed."""
|
|
23
|
+
|
|
24
|
+
output_index: int
|
|
25
|
+
"""The index of the output item that failed."""
|
|
26
|
+
|
|
27
|
+
sequence_number: int
|
|
28
|
+
"""The sequence number of this event."""
|
|
29
|
+
|
|
30
|
+
type: Literal["response.mcp_call.failed"]
|
|
31
|
+
"""The type of the event. Always 'response.mcp_call.failed'."""
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import Literal
|
|
14
|
+
|
|
15
|
+
from ..._models import BaseModel
|
|
16
|
+
|
|
17
|
+
__all__ = ["ResponseMcpCallInProgressEvent"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ResponseMcpCallInProgressEvent(BaseModel):
|
|
21
|
+
item_id: str
|
|
22
|
+
"""The unique identifier of the MCP tool call item being processed."""
|
|
23
|
+
|
|
24
|
+
output_index: int
|
|
25
|
+
"""The index of the output item in the response's output array."""
|
|
26
|
+
|
|
27
|
+
sequence_number: int
|
|
28
|
+
"""The sequence number of this event."""
|
|
29
|
+
|
|
30
|
+
type: Literal["response.mcp_call.in_progress"]
|
|
31
|
+
"""The type of the event. Always 'response.mcp_call.in_progress'."""
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import Literal, List, Optional
|
|
14
|
+
from ..._models import BaseModel
|
|
15
|
+
|
|
16
|
+
__all__ = [
|
|
17
|
+
"McpListTools",
|
|
18
|
+
"McpListToolsTool",
|
|
19
|
+
"McpApprovalRequest",
|
|
20
|
+
"McpApprovalResponse",
|
|
21
|
+
"McpCall",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class McpListToolsTool(BaseModel):
|
|
26
|
+
input_schema: object
|
|
27
|
+
"""The JSON schema describing the tool's input."""
|
|
28
|
+
|
|
29
|
+
name: str
|
|
30
|
+
"""The name of the tool."""
|
|
31
|
+
|
|
32
|
+
annotations: Optional[object] = None
|
|
33
|
+
"""Additional annotations about the tool."""
|
|
34
|
+
|
|
35
|
+
description: Optional[str] = None
|
|
36
|
+
"""The description of the tool."""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class McpListTools(BaseModel):
|
|
40
|
+
id: str
|
|
41
|
+
"""The unique ID of the list."""
|
|
42
|
+
|
|
43
|
+
server_label: str
|
|
44
|
+
"""The label of the MCP server."""
|
|
45
|
+
|
|
46
|
+
tools: List[McpListToolsTool]
|
|
47
|
+
"""The tools available on the server."""
|
|
48
|
+
|
|
49
|
+
type: Literal["mcp_list_tools"]
|
|
50
|
+
"""The type of the item. Always `mcp_list_tools`."""
|
|
51
|
+
|
|
52
|
+
error: Optional[str] = None
|
|
53
|
+
"""Error message if the server could not list tools."""
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class McpApprovalRequest(BaseModel):
|
|
57
|
+
id: str
|
|
58
|
+
"""The unique ID of the approval request."""
|
|
59
|
+
|
|
60
|
+
arguments: str
|
|
61
|
+
"""A JSON string of arguments for the tool."""
|
|
62
|
+
|
|
63
|
+
name: str
|
|
64
|
+
"""The name of the tool to run."""
|
|
65
|
+
|
|
66
|
+
server_label: str
|
|
67
|
+
"""The label of the MCP server making the request."""
|
|
68
|
+
|
|
69
|
+
type: Literal["mcp_approval_request"]
|
|
70
|
+
"""The type of the item. Always `mcp_approval_request`."""
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class McpApprovalResponse(BaseModel):
|
|
74
|
+
id: str
|
|
75
|
+
"""The unique ID of the approval response"""
|
|
76
|
+
|
|
77
|
+
approval_request_id: str
|
|
78
|
+
"""The ID of the approval request being answered."""
|
|
79
|
+
|
|
80
|
+
approve: bool
|
|
81
|
+
"""Whether the request was approved."""
|
|
82
|
+
|
|
83
|
+
type: Literal["mcp_approval_response"]
|
|
84
|
+
"""The type of the item. Always `mcp_approval_response`."""
|
|
85
|
+
|
|
86
|
+
reason: Optional[str] = None
|
|
87
|
+
"""Optional reason for the decision."""
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class McpCall(BaseModel):
|
|
91
|
+
id: str
|
|
92
|
+
"""The unique ID of the tool call."""
|
|
93
|
+
|
|
94
|
+
arguments: str
|
|
95
|
+
"""A JSON string of the arguments passed to the tool."""
|
|
96
|
+
|
|
97
|
+
name: str
|
|
98
|
+
"""The name of the tool that was run."""
|
|
99
|
+
|
|
100
|
+
server_label: str
|
|
101
|
+
"""The label of the MCP server running the tool."""
|
|
102
|
+
|
|
103
|
+
type: Literal["mcp_call"]
|
|
104
|
+
"""The type of the item. Always `mcp_call`."""
|
|
105
|
+
|
|
106
|
+
error: Optional[str] = None
|
|
107
|
+
"""The error from the tool call, if any."""
|
|
108
|
+
|
|
109
|
+
output: Optional[str] = None
|
|
110
|
+
"""The output from the tool call."""
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import Literal
|
|
14
|
+
|
|
15
|
+
from ..._models import BaseModel
|
|
16
|
+
|
|
17
|
+
__all__ = ["ResponseMcpListToolsCompletedEvent"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ResponseMcpListToolsCompletedEvent(BaseModel):
|
|
21
|
+
item_id: str
|
|
22
|
+
"""The ID of the MCP tool call item that produced this output."""
|
|
23
|
+
|
|
24
|
+
output_index: int
|
|
25
|
+
"""The index of the output item that was processed."""
|
|
26
|
+
|
|
27
|
+
sequence_number: int
|
|
28
|
+
"""The sequence number of this event."""
|
|
29
|
+
|
|
30
|
+
type: Literal["response.mcp_list_tools.completed"]
|
|
31
|
+
"""The type of the event. Always 'response.mcp_list_tools.completed'."""
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# Copyright (c) [2025] [OpenAI]
|
|
3
|
+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
|
|
4
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
#
|
|
6
|
+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
|
|
7
|
+
#
|
|
8
|
+
# Original file was released under Apache License Version 2.0, with the full license text
|
|
9
|
+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
|
|
10
|
+
#
|
|
11
|
+
# This modified file is released under the same license.
|
|
12
|
+
|
|
13
|
+
from typing_extensions import Literal
|
|
14
|
+
|
|
15
|
+
from ..._models import BaseModel
|
|
16
|
+
|
|
17
|
+
__all__ = ["ResponseMcpListToolsFailedEvent"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ResponseMcpListToolsFailedEvent(BaseModel):
|
|
21
|
+
item_id: str
|
|
22
|
+
"""The ID of the MCP tool call item that failed."""
|
|
23
|
+
|
|
24
|
+
output_index: int
|
|
25
|
+
"""The index of the output item that failed."""
|
|
26
|
+
|
|
27
|
+
sequence_number: int
|
|
28
|
+
"""The sequence number of this event."""
|
|
29
|
+
|
|
30
|
+
type: Literal["response.mcp_list_tools.failed"]
|
|
31
|
+
"""The type of the event. Always 'response.mcp_list_tools.failed'."""
|