Data processing method and device and electronic equipment

By determining and utilizing the fast version plug-in with the same function but shorter time-consuming fast version plug-in in the agent application, the problem of user request execution time is solved and the user experience is improved.

CN120045239APending Publication Date: 2025-05-27联想诺谛(北京)智能科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411933674.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

In process orchestration-based agent applications, when there are multiple time-consuming plug-ins in the process, users need to wait a long time to obtain response content, resulting in a reduced user experience.

Method used

By determining the first plug-in that executes the user request and its corresponding fast version plug-in (second plug-in), these fast version plug-in have the same functions but work time less than the first plug-in. Based on the first plug-in and the second plug-in, multiple execution results are obtained, and the user request is continued to be executed before the first execution result arrives, and the target second plug-in that can execute the user request instead of the first plug-in.

Benefits of technology

By replacing the first plug-in with the same functionality but shorter time, the execution time of user requests is significantly shortened and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045239A_ABST
    Figure CN120045239A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device and electronic equipment. The method comprises the steps that a first plug-in for executing a user request is determined; if it is determined that the first plug-in is the target type plug-in, determining at least one second plug-in corresponding to the first plug-in; the function of the second plug-in is the same as that of the first plug-in, and the working time of the second plug-in is shorter than that of the first plug-in; respectively executing the user request based on the first plug-in and each second plug-in to obtain a corresponding first execution result and at least one second execution result; wherein before the first execution result is obtained, the user request continues to be executed based on the second execution results, and corresponding third execution results are obtained respectively; and in response to the obtained first execution result, based on the first execution result and each second execution result, determining a target second plug-in capable of replacing the first plug-in to execute the user request from each second plug-in, and continuing to execute the user request based on a target third execution result corresponding to the target second plug-in.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data processing, and particularly to a data processing method, apparatus, and electronic device. Background Art

[0002] In an intelligent agent (Agent) application based on process orchestration, the intelligent agent application completes relatively complex tasks for users by executing a series of processes composed of plugins. However, when there are multiple time-consuming plugins in the process, users need to wait for a long time to obtain the response content.

[0003] Currently, the conventional optimization solution usually optimizes the response time by caching the execution results of time-consuming plugins. However, if there are time-consuming plugins with strong timeliness and un-cached execution results in the process, the response time is still long, thus reducing the user experience. Summary of the Invention

[0004] In view of this, embodiments of this application provide a data processing method, apparatus, and electronic device.

[0005] According to a first aspect of this application, embodiments of this application provide a data processing method, including:

[0006] Determine a first plugin for executing a user request;

[0007] If it is determined that the first plugin is a target type plugin, determine at least one second plugin corresponding to the first plugin; the function of the second plugin is the same as that of the first plugin, and the working time consumption is less than that of the first plugin;

[0008] Execute the user request based on the first plugin and each second plugin respectively to obtain corresponding first execution results and at least one second execution result; wherein, before obtaining the first execution result, continue to execute the user request based on each second execution result to obtain corresponding third execution results respectively;

[0009] In response to obtaining the first execution result, based on the first execution result and each second execution result, determine a target second plugin that can replace the first plugin to execute the user request from each second plugin, and continue to execute the user request based on the target third execution result corresponding to the target second plugin.

[0010] Optionally, determining at least one second plugin corresponding to the first plugin includes:

[0011] Determine a fourth execution result transmitted to the first plugin, and plugin list information corresponding to the first plugin, where the plugin list information includes information corresponding to each second plugin;

[0012] Process the fourth execution result, user request, and plugin list information based on the plugin selection model to determine at least one second plugin corresponding to the first plugin.

[0013] Optionally, continue to execute the user request based on each second execution result to obtain corresponding third execution results respectively, including:

[0014] Determine at least one execution path based on the user request; the execution path includes a second plugin; each execution path corresponds to each second plugin respectively;

[0015] Continue to execute each second execution result according to the corresponding execution path to continue executing the user request and obtain corresponding third execution results respectively.

[0016] Optionally, continue to execute the user request based on the target third execution result corresponding to the target second plugin, including:

[0017] Continue to execute the user request by executing the target third execution result corresponding to the target second plugin according to the target execution path corresponding to the target second plugin.

[0018] Optionally, determine a target second plugin that can replace the first plugin to execute the user request from each second plugin based on the first execution result and each second execution result, including:

[0019] Process the first execution result, each second execution result, and the user request based on the branch selection model to obtain an output result; the output result includes the comparison information between each second execution result and the first execution result;

[0020] Determine a target second plugin that can replace the first plugin to execute the user request from each second plugin based on the comparison information between each second execution result and the first execution result.

[0021] Optionally, at least include the following methods for determining a second plugin:

[0022] Select at least one plugin from existing plugins based on the function of the first plugin as the second plugin corresponding to the first plugin;

[0023] Train at least one plugin model using training data based on the function of the first plugin as the second plugin corresponding to the first plugin;

[0024] Generate at least one plugin model using a large language model based on the function of the first plugin as the second plugin corresponding to the first plugin.

[0025] Optionally, determine that the first plugin is a target type plugin, including:

[0026] Obtain the marking information of the first plugin;

[0027] If the marked information indicates that the working time of the first plugin is greater than the time threshold, determine that the first plugin is a target type plugin.

[0028] According to the second aspect of the present application, an embodiment of the present application provides a data processing device, including:

[0029] A first determination module, configured to determine a first plugin for executing a user request;

[0030] A second determination module, configured to determine at least one second plugin corresponding to the first plugin if it is determined that the first plugin is a target type plugin; the function of the second plugin is the same as that of the first plugin, and the working time is less than that of the first plugin;

[0031] A first execution module, configured to execute the user request based on the first plugin and each second plugin respectively to obtain corresponding first execution results and at least one second execution result; wherein, before obtaining the first execution result, continue to execute the user request based on each second execution result to obtain corresponding third execution results respectively;

[0032] A second execution module, configured to, in response to obtaining the first execution result, based on the first execution result and each second execution result, determine a target second plugin that can replace the first plugin to execute the user request from each second plugin, and continue to execute the user request based on the target third execution result corresponding to the target second plugin.

[0033] Optionally, the data processing device further includes:

[0034] A selection module, configured to, based on the fourth execution result transmitted to the first plugin and the plugin list information corresponding to the first plugin, where the plugin list information includes information corresponding to each second plugin; based on the fourth execution result, the user request, and the plugin list information, select at least one second plugin from multiple second plugins; process the fourth execution result, the user request, and the plugin list information based on a plugin selection model to determine at least one second plugin corresponding to the first plugin.

[0035] According to the third aspect of the present application, an embodiment of the present application provides an electronic device, including:

[0036] At least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the data processing method as in the first aspect or any implementation manner of the first aspect.

[0037] The above description is only an overview of the technical solution of the present application. In order to better understand the technical means of the present application, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the present application more obvious and understandable, the following specifically illustrates the specific embodiments of the present application. Description of the Drawings

[0038] Figure 1 It is a schematic flowchart of a data processing method in an embodiment of the present application;

[0039] Figure 2 It is a schematic diagram of the execution path of a user request in an embodiment of the present application;

[0040] Figure 3 It is a schematic diagram of the execution path of another user request in an embodiment of the present application;

[0041] Figure 4 It is a schematic diagram of retaining the path for executing a user request through the second plugin A′1 in an embodiment of the present application;

[0042] Figure 5 It is a schematic diagram of retaining the path for executing a user request through the first plugin A in an embodiment of the present application;

[0043] Figure 6 It is a schematic flowchart of the formation process of the second plugin in an embodiment of the present application;

[0044] Figure 7 It is a schematic structural diagram of a data processing device in an embodiment of the present application;

[0045] Figure 8 It is a schematic hardware structure diagram of an electronic device in an embodiment of the present application. Detailed Embodiments

[0046] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0047] An embodiment of the present application provides a data processing method, as Figure 1 shown, including:

[0048] S101, determine the first plugin for executing the user request.

[0049] In this embodiment, a series of processes composed of plugins can be executed through an agent application to implement the execution of the user request.

[0050] In this embodiment, during the execution process of a user request, the first plugin to be executed currently can be determined in real time, that is, the first plugin that executes the user request.

[0051] S102, if it is determined that the first plugin is a target type plugin, determine at least one second plugin corresponding to the first plugin; the function of the second plugin is the same as that of the first plugin, and the working time consumption is less than that of the first plugin.

[0052] In this embodiment, the target type plugin can be a plugin whose required time during execution is greater than a threshold value.

[0053] In this embodiment, the second plugin can be a fast version plugin of the first plugin.

[0054] In this embodiment, when registering a plugin, multiple fast version plugins can be configured for the target type plugin. The differences between these fast version plugins can be: their performance performances are inconsistent in different scenarios. The common points of these fast version plugins can be: the function is the same as that of the first plugin, and the working time consumption is less than that of the first plugin.

[0055] In this embodiment, if it is determined that the first plugin is a target type plugin, then all the second plugins corresponding to the first plugin can be found, and then at least one second plugin can be determined from them to execute the user request.

[0056] S103, execute the user request based on the first plugin and each second plugin respectively to obtain the corresponding first execution result and at least one second execution result; among them, before obtaining the first execution result, continue to execute the user request based on each second execution result to obtain the corresponding third execution result respectively.

[0057] In this embodiment, after determining at least one second plugin corresponding to the first plugin, based on the first plugin and each second plugin, a parallel execution path of the user request can be created, and then the user request can be executed respectively according to the parallel execution path to obtain the corresponding first execution result and at least one second execution result.

[0058] In this embodiment, since the first plugin is a target type plugin and the working time consumption is greater than that of the second plugin, therefore, after the second plugin finishes execution, the first plugin has not finished execution yet. In order to execute the user request faster, after obtaining the second execution result and before obtaining the first execution result, according to the parallel execution path of the user request, continue to execute the user request based on the second execution results of each second plugin to obtain the corresponding third execution result respectively.

[0059] For example, such as Figure 2As shown, if the second plugins corresponding to the first plugin A are determined to be A′1 and A′2, the parallel execution paths requested by the user include: A→B, A′1→B, and A′2→B. After the second plugins A′1 and A′2 are executed, the corresponding second execution results can be obtained. At this time, although the first plugin A has not been executed yet, after the second plugins A′1 and A′2 are executed, the second execution results can be processed by plugin B respectively to obtain the corresponding third execution results.

[0060] S104. In response to obtaining the first execution result, based on the first execution result and each second execution result, determine a target second plugin that can replace the first plugin to execute the user request from each second plugin, and continue to execute the user request based on the target third execution result corresponding to the target second plugin.

[0061] In this embodiment, after the first execution result is obtained, the parallel execution paths of the user request can be selected, that is, select the execution path to be retained, that is, select whether to retain the execution result of the first plugin or which second plugin's execution result to retain. For example, as Figure 3 shown, the user request has execution paths A→B, A′1→B, and A′1→B′1. When selecting to retain the path of executing the user request through the second plugin A′1, the retained execution path is as Figure 4 shown. When selecting to retain the path of executing the user request through the first plugin A, the retained execution path is as Figure 5 shown. If it is selected to retain the execution result of which second plugin, then that second plugin is the target second plugin, and the user request can be continued to be executed based on the target third execution result corresponding to the target second plugin. In this way, the user request can be executed quickly.

[0062] The data processing method provided in the embodiment of the present application determines a first plugin for executing a user request; if it is determined that the first plugin is a target type plugin, determine at least one second plugin corresponding to the first plugin; the function of the second plugin is the same as that of the first plugin, and the working time consumption is less than that of the first plugin; execute the user request based on the first plugin and each second plugin respectively to obtain the corresponding first execution result and at least one second execution result; wherein, before obtaining the first execution result, continue to execute the user request based on each second execution result to obtain the corresponding third execution results respectively; in response to obtaining the first execution result, based on the first execution result and each second execution result, determine a target second plugin that can replace the first plugin to execute the user request from each second plugin, and continue to execute the user request based on the target third execution result corresponding to the target second plugin; in this way, when the first plugin of the target type is executed, a second plugin with the same function and less working time consumption than the first plugin can be used to execute the user request, thereby shortening the time consumption of executing the user request.

[0063] In an optional embodiment, in step S102, determining at least one second plug-in corresponding to the first plug-in includes:

[0064] Determining the fourth execution result transmitted to the first plug-in, and the plug-in list information corresponding to the first plug-in, where the plug-in list information includes information corresponding to each second plug-in; processing the fourth execution result, the user request, and the plug-in list information based on the plug-in selection model to determine at least one second plug-in corresponding to the first plug-in.

[0065] In this embodiment, a plug-in selection module can be pre-trained to select at least one second plug-in from multiple second plug-ins. For example, as Figure 2 shown, the first plug-in A has corresponding second plug-ins A′1, A′2, and A′3. Through the plug-in selection model, A′1 and A′2 corresponding to the first plug-in A can be selected from A′1, A′2, and A′3 to execute the user request.

[0066] The inputs of the plug-in selection model are the fourth execution result transmitted to the first plug-in, the plug-in list information corresponding to the first plug-in, and the user request. The plug-in list information can include tag information, application scenario information, etc. of each second plug-in. The plug-in selection model selects at least one second plug-in that performs better in the current scenario from all the second plug-ins based on the user request and the fourth execution result transmitted to the first plug-in.

[0067] In this embodiment, determining at least one second plug-in corresponding to the first plug-in based on the plug-in selection model can quickly and accurately determine at least one second plug-in.

[0068] In an optional embodiment, in step S103, continuing to execute the user request based on each second execution result to obtain corresponding third execution results respectively includes:

[0069] Determining at least one execution path based on the user request; the execution path includes second plug-ins; each execution path corresponds to each second plug-in; continuing to execute each second execution result according to the corresponding execution path to continue executing the user request and obtaining corresponding third execution results respectively.

[0070] In this embodiment, based on the user request, an execution path including the first plug-in and the plug-ins after the first plug-in can be determined. After determining at least one second plug-in corresponding to the first plug-in, at least one other execution path corresponding to the user request can be determined. The execution path can include second plug-ins and the plug-ins after the second plug-ins. Thus, when continuing to execute the user request based on each second execution result, each second execution result can be continued to be executed according to the corresponding execution path to obtain corresponding third execution results respectively.

[0071] In this embodiment, by determining the execution path including the second plug-in, after obtaining each second execution result and before the first plug-in finishes execution, the user request can be continuously executed according to the execution path, so as to quickly execute the user request.

[0072] In an alternative embodiment, in step S104, continuing to execute the user request based on the target third execution result corresponding to the target second plug-in includes:

[0073] Continuing to execute the target third execution result corresponding to the target second plug-in according to the target execution path corresponding to the target second plug-in to continue executing the user request.

[0074] In this embodiment, after determining to use the target second plug-in to replace the first plug-in to execute the user request, since the second execution result corresponding to the target plug-in has been continuously executed according to the execution path of the user request to obtain the target third execution result, when continuing to execute the user request, the target third execution result can be further continuously executed according to the target execution path corresponding to the target second plug-in to continue executing the user request, so as to quickly execute the user request.

[0075] In an alternative embodiment, in step S104, determining the target second plug-in that can replace the first plug-in to execute the user request from each second plug-in based on the first execution result and each second execution result includes:

[0076] Processing the first execution result, each second execution result, and the user request based on the branch selection model to obtain an output result; the output result includes the comparison information between each second execution result and the first execution result; determining the target second plug-in that can replace the first plug-in to execute the user request from each second plug-in based on the comparison information between each second execution result and the first execution result.

[0077] In this embodiment, after the first plug-in finishes execution, the target second plug-in that can replace the first plug-in to execute the user request can be determined from each second plug-in through the branch selection model.

[0078] Specifically, as Figure 3 shown, after the first plug-in A finishes execution, the first execution result of the first plug-in A, the second execution result of the second plug-in A′1, and the user request, that is, the user target, can be input into the branch selection model to output the comparison information between the second execution result and the first execution result. For example, the effect of the second execution result is better than that of the first execution result. Then, based on the comparison information, it can be determined whether the second plug-in A′1 can replace the first plug-in A, so as to select whether to retain the path of executing the user request through the second plug-in A′1 or the path of executing the user request through the first plug-in A.

[0079] In this embodiment, through the branch selection model, the target second plug-in that can replace the first plug-in to execute the user request can be quickly determined from each second plug-in.

[0080] In an alternative embodiment, the method for determining the second plug-in may be:

[0081] Select at least one plug-in from the existing plug-ins based on the function of the first plug-in as the second plug-in corresponding to the first plug-in. Or based on the function of the first plug-in, train at least one plug-in model using training data as the second plug-in corresponding to the first plug-in. Or based on the function of the first plug-in, generate at least one plug-in model using a large language model as the second plug-in corresponding to the first plug-in.

[0082] Specifically, as Figure 6 shown, for the first plug-in, that is, the time-consuming plug-in A, when registering with the plug-in center, at least one plug-in can be automatically selected from the existing plug-ins based on the function of the time-consuming plug-in A as the fast version plug-in of the time-consuming plug-in A, that is, the second plug-in. The fast version plug-in of the time-consuming plug-in A can be manually registered. Or a fast version plug-in based on a large language model (LLM) can be automatically generated, so as to obtain multiple second plug-ins A'1, A'2 of the first plug-in.

[0083] In this embodiment, select at least one plug-in from the existing plug-ins based on the function of the first plug-in as the second plug-in corresponding to the first plug-in; or based on the function of the first plug-in, train at least one plug-in model using training data as the second plug-in corresponding to the first plug-in; or based on the function of the first plug-in, generate at least one plug-in model using a large language model as the second plug-in corresponding to the first plug-in; in this way, the second plug-ins of the first plug-in can be formed in multiple ways.

[0084] In an alternative embodiment, in step S102, determining that the first plug-in is a target type plug-in includes:

[0085] Obtain the marking information of the first plug-in; if the marking information indicates that the working time of the first plug-in is greater than the time threshold, determine that the first plug-in is a target type plug-in.

[0086] In this embodiment, the target type plug-in can be marked, so that based on the marking information of the first plug-in, it can be quickly determined whether the first plug-in is a target type plug-in.

[0087] The embodiment of the present application also provides a data processing device, as Figure 7 shown, including:

[0088] The first determination module 71 is used to determine the first plug-in that executes the user request;

[0089] A second determination module 72, configured to determine at least one second plugin corresponding to the first plugin if it is determined that the first plugin is a target type plugin; the functions of the second plugins are the same as those of the first plugin, and the working time consumption is less than that of the first plugin.

[0090] A first execution module 73, configured to execute a user request based on the first plugin and each second plugin respectively, to obtain corresponding first execution results and at least one second execution result; wherein, before obtaining the first execution result, continue to execute the user request based on each second execution result to obtain corresponding third execution results respectively.

[0091] A second execution module 74, configured to, in response to obtaining the first execution result, determine a target second plugin that can replace the first plugin to execute the user request from each second plugin based on the first execution result and each second execution result, and continue to execute the user request based on the target third execution result corresponding to the target second plugin.

[0092] In some embodiments, the data processing device further includes:

[0093] A selection module, configured to, based on a fourth execution result transmitted to the first plugin and plugin list information corresponding to the first plugin, where the plugin list information includes information corresponding to each second plugin; select at least one second plugin from multiple second plugins based on the fourth execution result, the user request, and the plugin list information; and determine at least one second plugin corresponding to the first plugin by processing the fourth execution result, the user request, and the plugin list information based on a plugin selection model.

[0094] The data processing device provided in the embodiments of the present application determines a first plugin for executing a user request; if it is determined that the first plugin is a target type plugin, determines at least one second plugin corresponding to the first plugin; the functions of the second plugins are the same as those of the first plugin, and the working time consumption is less than that of the first plugin; executes the user request based on the first plugin and each second plugin respectively to obtain corresponding first execution results and at least one second execution result; wherein, before obtaining the first execution result, continue to execute the user request based on each second execution result to obtain corresponding third execution results respectively; in response to obtaining the first execution result, determine a target second plugin that can replace the first plugin to execute the user request from each second plugin based on the first execution result and each second execution result, and continue to execute the user request based on the target third execution result corresponding to the target second plugin; thus, when the first plugin of the target type is executed, a second plugin with the same function and less working time consumption than the first plugin can be used to execute the user request, thereby shortening the time consumption for executing the user request.

[0095] According to the embodiments of the present application, the present application further provides an electronic device and a readable storage medium.

[0096] Figure 8 FIG. Figure 8 shows a schematic block diagram of an exemplary electronic device 800 that may be used to implement embodiments of the present application. The electronic device is intended to represent various forms of digital computers, such as, for example, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as, for example, personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the present application described and / or claimed herein.

[0097] As Figure 8 shown, the electronic device 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0098] A plurality of components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, an optical disc, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0099] The computing unit 801 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 executes the various methods and processes described above, such as the data processing method. For example, in some embodiments, the data processing method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the data processing method described above can be executed. Alternatively, in other embodiments, the computing unit 801 can be configured to execute the data processing method by any other suitable means (e.g., by means of firmware).

[0100] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a dedicated or general-purpose programmable processor, that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0101] The program code for implementing the methods of this application can be written in any combination of one or more programming languages. These program codes can be provided to the processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program codes can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0102] In the context of this application, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0103] To provide for interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic, speech, or tactile input).

[0104] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of a communication network include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0105] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is generated by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.

[0106] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present application can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and no limitations are imposed herein.

[0107] In addition, the terms "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "a plurality of" means two or more, unless otherwise specifically defined.

[0108] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A data processing method, comprising: Determining a first plug-in to execute the user request; If it is determined that the first plug-in is a target type plug-in, determining at least one second plug-in corresponding to the first plug-in; The function of the second plug-in is the same as that of the first plug-in, and the working time of the second plug-in is less than that of the first plug-in; Executing the user request based on the first plug-in and each of the second plug-ins respectively, and obtaining a corresponding first execution result and at least one second execution result; wherein, before obtaining the first execution result, continuing to execute the user request based on each of the second execution results, and obtaining corresponding third execution results respectively; In response to obtaining the first execution result, based on the first execution result and each of the second execution results, a target second plug-in that can replace the first plug-in to execute the user request is determined from each of the second plug-ins, and the user request is continued to be executed based on a target third execution result corresponding to the target second plug-in.

2. The data processing method according to claim 1, determining at least one second plug-in corresponding to the first plug-in comprises: Determine a fourth execution result transmitted to the first plug-in, and plug-in list information corresponding to the first plug-in, wherein the plug-in list information includes information corresponding to each of the second plug-ins; The fourth execution result, the user request, and the plug-in list information are processed based on a plug-in selection model to determine at least one second plug-in corresponding to the first plug-in.

3. The data processing method according to claim 1, further executing the user request based on each of the second execution results to obtain a corresponding third execution result, comprising: determining at least one execution path based on the user request; The execution path includes the second plug-in; Each of the execution paths corresponds to each of the second plug-ins respectively; Each of the second execution results is continued to be executed according to the corresponding execution path to continue to execute the user request, and corresponding third execution results are obtained respectively.

4. The data processing method according to claim 3, continuing to execute the user request based on the target third execution result corresponding to the target second plug-in, comprises: The target third execution result corresponding to the target second plug-in is continued to be executed according to the target execution path corresponding to the target second plug-in to continue to execute the user request.

5. The data processing method according to claim 1, based on the first execution result and each of the second execution results, determining a target second plug-in from each of the second plug-ins that can replace the first plug-in to execute the user request, comprising: Processing the first execution result, each of the second execution results, and the user request based on a branch selection model to obtain an output result; The output result includes comparison information between each of the second execution results and the first execution result; Based on the comparison information between each of the second execution results and the first execution result, a target second plug-in that can replace the first plug-in to execute the user request is determined from each of the second plug-ins.

6. The data processing method according to claim 1, comprising at least one of the following methods for determining the second plug-in: Selecting at least one plug-in from existing plug-ins based on the function of the first plug-in as a second plug-in corresponding to the first plug-in; Based on the function of the first plug-in, at least one plug-in model is obtained by training using the training data as a second plug-in corresponding to the first plug-in; Based on the function of the first plug-in, at least one plug-in model is generated using a large language model as a second plug-in corresponding to the first plug-in.

7. The data processing method according to claim 1, determining that the first plug-in is a target type plug-in comprises: Obtaining tag information of the first plug-in; If the marking information indicates that the working time of the first plug-in is greater than a time threshold, it is determined that the first plug-in is a target type plug-in.

8. A data processing device, comprising: A first determining module, used to determine a first plug-in to execute a user request; A second determination module is used to determine at least one second plug-in corresponding to the first plug-in if the first plug-in is determined to be a target type plug-in; the function of the second plug-in is the same as that of the first plug-in, and the working time of the second plug-in is less than the working time of the first plug-in; A first execution module, configured to execute the user request based on the first plug-in and each of the second plug-ins, respectively, to obtain a corresponding first execution result and at least one second execution result; wherein, before obtaining the first execution result, the user request is continued to be executed based on each of the second execution results, to obtain a corresponding third execution result; A second execution module is used to determine, in response to obtaining the first execution result, a target second plug-in from each of the second plug-ins that can replace the first plug-in to execute the user request based on the first execution result and each of the second execution results, and continue to execute the user request based on a target third execution result corresponding to the target second plug-in.

9. The data processing apparatus according to claim 8, further comprising: A selection module, configured to select a plug-in based on a fourth execution result transmitted to the first plug-in and plug-in list information corresponding to the first plug-in, wherein the plug-in list information includes information corresponding to each of the second plug-ins; Based on the fourth execution result, the user request and the plug-in list information, at least one second plug-in is selected from multiple second plug-ins; based on the plug-in selection model, the fourth execution result, the user request and the plug-in list information are processed to determine at least one second plug-in corresponding to the first plug-in.

10. An electronic device, comprising: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the data processing method as described in any one of claims 1-7.