Task processing method, system and device, electronic equipment and storage medium

By adopting a "request-response" interaction model between the client and the server, the client controls the task execution process, while the server responds passively. This solves the problem of insufficient data security and fault tolerance in cloud-dominated task processing, and achieves data security and controllability of task execution.

CN123178000APending Publication Date: 2026-11-27BEIJING KINGSOFT OFFICE SOFTWARE INC +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611404663.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing cloud-based task processing methods suffer from insufficient data security and poor fault tolerance, posing a high risk of user data leakage and making them prone to unintended modifications when cloud anomalies occur.

Method used

The client initiates a task request to the server. The server parses the intent and generates task orchestration information. The client sends call requests sequentially according to the orchestration information and receives execution information. Finally, the task execution result is generated. The client has complete control over the task execution, while the server only responds passively.

Benefits of technology

It reduces the risk of data leakage, improves the controllability and fault tolerance of task execution, reduces client resource consumption, and lowers system maintenance costs and upgrade complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178000A_ABST
    Figure CN123178000A_ABST
Patent Text Reader

Abstract

The application relates to a task processing method, system and device, electronic equipment and a storage medium, and comprises the following steps: a client sends a task request to a server in response to a task trigger signal, the server analyzes the task request, determines task arrangement information corresponding to the task, sends calling requests corresponding to at least part of task units to the server in sequence according to the task arrangement information, the server calls a target capability module corresponding to the task unit to perform corresponding processing, receives execution information returned by the server in response to the calling request, and generates a task execution result of the task according to the execution information corresponding to the calling request. Therefore, the client can independently control the whole process of task execution, can utilize cloud capabilities, and can ensure the security of user data and the controllability of the task execution process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more particularly to a task processing method, system, apparatus, electronic device, and storage medium. Background Technology

[0002] Currently, in office scenarios such as spreadsheet processing and document editing, related technologies typically employ a cloud-dominated processing approach. Specifically, users upload raw document or spreadsheet data to the cloud, where a large-scale model understands the user's instructions, autonomously plans execution steps, and invokes various cloud-deployed tools to complete the entire task processing flow, ultimately returning the results to the client. In this approach, the planning of the execution flow, the breakdown of subtasks, the decision-making regarding tool invocation, and the handling of exceptions are all autonomously completed by the cloud; the client merely serves as a channel for data uploading and result display.

[0003] However, the above solution has the following problems: On the one hand, users need to upload the complete original data to the cloud. The cloud-based large model and various tools can access all data content during the processing, which poses a risk of user data leakage. On the other hand, when a logical error or anomaly occurs in any link of the cloud, the error may propagate along the cloud's preset execution chain, resulting in unintended modifications to user data, and the client has difficulty intervening in the execution process. Summary of the Invention

[0004] This application provides a task processing method, system, apparatus, electronic device, and storage medium to solve the technical problems of insufficient data security and poor fault tolerance caused by cloud-dominated task processing methods in the prior art.

[0005] Firstly, this application provides a task processing method, the method comprising: In response to a task trigger signal, a task request is sent to the server so that the server can perform intent parsing on the task request and determine the task orchestration information corresponding to this task. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit. Based on the task orchestration information, call requests corresponding to at least some of the task units are sent to the server in sequence, so that the server can call the target capability module corresponding to the task unit to perform corresponding processing. Receive the execution information returned by the server in response to the call request; The task execution result for this task is generated based on the execution information corresponding to the call request.

[0006] In one possible implementation, the method further includes: In response to a client-side startup event, the system retrieves the capability description document and invocation protocol of the capability module deployed on the server. The capability description document is used to send the task request to the server, and the invocation protocol is used to send the invocation request to the server.

[0007] In one possible implementation, the step of obtaining the capability description documents and invocation protocols of the capability modules deployed in the server in response to a client startup event includes: In response to the client startup event, a version query request is sent to the server to obtain the current version information of the capability modules deployed in the server; If the current version information is inconsistent with the version information stored locally on the client, the capability description document and calling protocol of the capability module are obtained from the server. The method further includes: If the current version information matches the version information stored locally on the client, the locally stored capability description document and the calling protocol are used.

[0008] In one possible implementation, the task trigger signal includes a user instruction; the step of sending a task request to the server in response to the task trigger signal includes: Obtain terminal-side context data, which is local data of the target object on the client side targeted by the user command; Based on the user instructions and the terminal-side context data, a prompt word is generated; The prompt word is sent to the server as the task request, so that the server can call an artificial intelligence model to analyze the intent of the task request and determine the task arrangement information corresponding to this task.

[0009] In one possible implementation, generating prompt words based on the user instruction and the terminal-side context data includes: Obtain the client's runtime environment information; The runtime environment information, the user instructions, and the terminal context data are combined according to a preset format to generate prompt words; The runtime environment information is used by the server to determine the range of capability modules corresponding to the current task when determining the task orchestration information. Different runtime environments correspond to different ranges of capability modules.

[0010] In one possible implementation, after receiving the execution information returned by the server in response to the call request, the method further includes: The execution information is verified in a sandbox environment deployed on the client. If the verification fails, fault tolerance processing is performed on the task unit corresponding to the execution information.

[0011] In one possible implementation, the fault-tolerant processing includes at least one of the following: Resend the call request corresponding to the task unit to the server; Skip the task unit and continue executing subsequent task units; The execution information is adapted and adjusted according to the current terminal environment; This mission is terminated.

[0012] In one possible implementation, the execution information includes execution result data or executable instructions; if the execution information includes the executable instructions, the method further includes: The executable instructions are executed by calling the execution engine deployed in the client.

[0013] In one possible implementation, generating the task execution result for this task based on the execution information corresponding to the invocation request includes: Based on the execution information corresponding to the call request, update the corresponding local region in the target object on the client side.

[0014] In one possible implementation, the step of sequentially sending call requests corresponding to at least a portion of the task units to the server based on the task orchestration information includes: Based on the task orchestration information, call requests corresponding to at least some of the task units are sent to the server in sequence. Specifically, after sending a call request corresponding to the current task unit to the server and receiving the corresponding execution information, the subsequent task units that have not yet been executed in the task orchestration information are adjusted according to the currently received execution information. The adjustment includes at least one of the following: determining whether to continue executing the subsequent task unit, modifying the execution parameters of at least one subsequent task unit, adding at least one task unit, deleting at least one subsequent task unit, or changing the execution order of at least two subsequent task units.

[0015] Secondly, this application provides a task processing system, including a client and a server; The client, in response to the task trigger signal, sends a task request to the server; The server performs intent parsing on the task request to determine the task orchestration information corresponding to this task. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit. The client sends call requests corresponding to at least some of the task units to the server in sequence according to the task orchestration information; The server, in response to the call request, invokes the target capability module corresponding to the task unit to perform the corresponding processing, and returns the execution information to the client; The client receives execution information returned by the server in response to the call request; and generates the task execution result for this task based on the execution information corresponding to the call request.

[0016] Thirdly, this application provides a task processing apparatus, the apparatus comprising: The task initiation module is used to send a task request to the server in response to a task trigger signal, so that the server can perform intent parsing on the task request and determine the task orchestration information corresponding to this task. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit. The task scheduling module is used to send call requests corresponding to at least some of the task units to the server in sequence according to the task orchestration information, so that the server can call the target capability module corresponding to the task unit to perform corresponding processing. An information receiving module is used to receive execution information returned by the server in response to the call request; The result generation module is used to generate the task execution result of this task based on the execution information corresponding to the call request.

[0017] Fourthly, this application provides an electronic device, including: a processor and a memory, wherein the processor is configured to execute a task processing program stored in the memory to implement the task processing method described in any one of the first aspects.

[0018] Fifthly, this application provides a storage medium storing one or more programs that can be executed by one or more processors to implement the task processing method described in any one aspect.

[0019] Compared with the prior art, the technical solution provided in this application has the following advantages: In the method provided in this application, the client initiates a task request to the server. After the server performs intent parsing and generates task orchestration information, the client sends a call request to the server based on the task orchestration information and receives the execution information returned by the server. Finally, the task execution result is generated based on the obtained execution information. In the above process, the client and server adopt a "request-response" interaction mode. The client receives corresponding execution information each time it sends a call request, and the server only performs corresponding processing after receiving the client's call request. Therefore, the server is always in a passive response position, while the client has complete control over the entire task execution process. Based on this architecture, the client does not need to expose the full task execution plan or intermediate data to the server in advance. The server and its various capability modules only obtain the input data corresponding to the current task unit when called by the client, and cannot actively obtain global task information or client-side data without client authorization. This reduces the risk of excessive data exposure due to server attacks or permission abuse at the architectural level. Meanwhile, the client only needs to initiate task requests, send call requests, and receive and generate execution results, while the server handles computationally intensive tasks such as task understanding, decomposition, and orchestration, which require large-scale knowledge base support. This effectively reduces the client's resource consumption, enabling a lightweight deployment, especially suitable for terminal devices with limited computing resources. Furthermore, upgrades or expansions of server-side capabilities can be completed solely on the server side; the client can acquire new task processing capabilities without requiring version updates, significantly reducing system maintenance costs and upgrade complexity. Attached Figure Description

[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0023] Figure 1 This is a schematic diagram of the architecture of a task processing system provided in an embodiment of this application; Figure 2 A flowchart illustrating an embodiment of a task processing method provided in this application; Figure 3 A flowchart illustrating another task processing method provided in this application; Figure 4 A block diagram illustrating an embodiment of a task processing apparatus provided in this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0025] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0026] To address the technical problems of insufficient data security and poor fault tolerance caused by cloud-dominated task processing methods in the prior art, this application provides a task processing method, system, device, electronic device, and storage medium that enables the client to have autonomous control over the entire task execution process, ensuring the security of user data and the controllability of the task execution process while utilizing cloud capabilities.

[0027] Figure 1 This is a schematic diagram of the architecture of a task processing system provided in an embodiment of this application. Figure 1 The example task processing system includes client 101 and server 102.

[0028] In this context, client 101 refers to a functional module or application running on the user's device. For example, client 101 can be a standalone application, such as the WPS Office desktop client or mobile app; client 101 can also refer to a functional component or software development kit integrated into an application, such as the spreadsheet component, document component, or presentation component in WPS Office; client 101 can also refer to a web client, such as an online document editing page accessed through a browser. Client 101 provides an interface for the user, receives user commands, and initiates task requests to server 102. Furthermore, client 101 can be deployed on various types of user devices, including but not limited to personal computers, laptops, tablets, and smartphones, to adapt to different user scenarios.

[0029] Server 102 refers to a server or server cluster deployed on the network side. For example, server 102 can be a standalone physical server, cloud server, virtual machine, or a distributed server cluster composed of multiple servers. Server 102 has data storage, computing and processing, and task scheduling capabilities. It is used to receive task requests sent by client 101, parse and orchestrate the task requests, and return the execution results to client 101.

[0030] The client 101 and server 102 communicate via a network, which can be achieved through wired and / or wireless network connections. For example, the client 101 and server 102 can exchange data via the Internet, local area network, or mobile communication network (such as 4G or 5G networks). During data transmission, the client 101 and server 102 can communicate using Hypertext Transfer Protocol (HTTP) or Hypertext Transfer Protocol Secure (HTTPS) to ensure the reliability and security of data transmission.

[0031] In the technical solutions provided in the embodiments of this application: Client 101, in response to the task trigger signal, sends a task request to the server; Server 102 performs intent parsing on the task request to determine the task orchestration information corresponding to this task. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit. Client 101, according to the task orchestration information, sequentially sends call requests corresponding to at least some task units to server 102; Server 102, in response to the call request, calls the target capability module corresponding to the task unit to perform the corresponding processing, and returns the execution information to client 101; Client 101 receives execution information returned by server 102 in response to the call request; and generates the task execution result for this task based on the execution information corresponding to the call request.

[0032] The server 102 deploys multiple capability modules, each with different specific functions. For example, capability modules may include, but are not limited to: a computation module for performing data calculations, a code generation module for generating code or scripts, a format parsing module for parsing format specifications, a knowledge retrieval module for retrieving industry knowledge, and an image processing module for recognizing and processing images. These capability modules are decoupled from each other; the deployment, upgrade, or replacement of any capability module does not affect the normal operation of other capability modules.

[0033] In one specific implementation of this application embodiment, the aforementioned capability modules can be deployed on the server 102 in the form of agents. For example, the server 102 may include multiple agents, each with independent functional boundaries and knowledge domains, focusing on completing a specific type of task unit, such as a natural language understanding agent, a code generation agent, a data computation agent, a format specification parsing agent, and an industry knowledge retrieval agent. Each agent is deployed and maintained independently, without interference, thus enabling the overall processing capability of the server 102 to have good scalability. Of course, it is also allowed for agents to call each other. The main agent can call sub-agents to execute sub-tasks and return the sub-task results to the main agent.

[0034] pass Figure 1 In the example task processing system, client 101 only needs to handle task triggering, sending call requests, and receiving and presenting execution results, while the computationally intensive or large-scale knowledge base-required processing, such as task understanding, decomposition, and orchestration, is handled by server 102. This reduces the resource consumption of client 101 and improves task processing efficiency. At the same time, client 101 can initiate and execute tasks without exposing complete user data, thus improving the security of user data. Furthermore, upgrades to server 102 or expansions of its capabilities can be completed on the server 102 side without requiring client 101 to update its version to obtain new task processing capabilities.

[0035] For the specific implementation of the interaction between the client 101 and the server 102, as well as the specific processing procedures such as how the server 102 performs intent parsing of the task request, how it generates task orchestration information, and how the client 101 executes the call request based on the task orchestration information, please refer to the detailed description of the following method embodiments.

[0036] Figure 2 This is a flowchart illustrating an embodiment of a task processing method provided in this application. Figure 2 The process shown applies to the client, for example... Figure 1 The example client 101. (e.g.) Figure 2 As shown, the method includes the following steps: Step 201: In response to the task trigger signal, a task request is sent to the server so that the server can perform intent parsing on the task request and determine the task orchestration information corresponding to this task. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit.

[0037] In this embodiment, the task trigger signal is the initiation condition for the current task processing. For example, the triggering source of the task trigger signal is not limited to user commands, but may also include various forms such as scheduled tasks, event listeners, and application programming interface calls, to cover the automated processing needs in different application scenarios.

[0038] A task request is a data packet sent by the client to the server to request the execution of a current task. This data packet carries the input information necessary for the server to parse and orchestrate the task. Upon receiving a task request, the server parses its intent to determine the corresponding task orchestration information. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit. Each task unit corresponds to an independently executable operation (such as reading column A, calling the formula engine, or requesting cloud-based format parsing). The task units are arranged in execution order, and each task unit is executed by the target capability module specified by the server.

[0039] In one embodiment, the server can invoke an artificial intelligence model to parse the intent of a task request and determine the task orchestration information corresponding to the current task. The artificial intelligence model is used to understand the operational intent expressed by the user's instructions in the prompt words, identify the target object and data characteristics corresponding to the client-side context data, and combine the range of available capability modules indicated by the capability specification document (a document in which the server describes the functions, applicable scenarios, input and output specifications, and calling methods of each capability module deployed, used to inform the client or the artificial intelligence model of the availability and specific uses of each capability module, detailed below) to decompose the user instruction into at least one executable atomic operation, match the corresponding target capability module for each atomic operation, and determine the execution order between the atomic operations, thereby generating task orchestration information.

[0040] In this way, the server does not need to rely on fixed rules preset by humans. Instead, it automatically completes the conversion from fuzzy user instructions to structured execution schemes based on the artificial intelligence model's ability to understand natural language instructions and reason about context. This allows it to adapt to diverse and non-standardized task requests without human intervention.

[0041] In one embodiment, the task orchestration information can be organized using a Directed Acyclic Graph (DAG) structure. Specifically, each task unit in the task orchestration information corresponds to a node in the DAG, and the directed edges between nodes represent the execution order dependencies and data flow between task units. Through the structured organization of the DAG, the task orchestration information can clearly express the sequential constraints between task units; that is, a task unit can only enter the executable state after all the preceding task units it depends on have been executed. Simultaneously, the acyclic nature of the DAG ensures that there are no circular dependencies in the task orchestration information, thereby ensuring that the task execution process can terminate within a finite number of steps, avoiding execution deadlock caused by circular waiting. In this way, the task orchestration information not only lists the task units to be executed and their corresponding target capability modules, but also fully describes the logical relationships between each task unit through the topological structure of nodes and edges, providing a clear navigation basis for the orderly execution of the client.

[0042] In one embodiment, the task trigger signal includes a user instruction; an exemplary implementation of sending a task request to the server in response to the task trigger signal includes: acquiring client-side context data, which is local data of the client-side target object targeted by the user instruction; generating a prompt word based on the user instruction and the client-side context data; and sending the prompt word as a task request to the server, so that the server can call an artificial intelligence model to perform intent parsing on the task request and determine the task orchestration information corresponding to this task.

[0043] In this context, "client-side" refers to the end-user side. The target object on the client side of a user command refers to the client-side data entity that the user's current operation or command points to, such as the currently opened document, the currently selected table area, or the currently viewed page content. The user command describes the user's intended operation on the target object, while the client-side context data provides information about the specific object on which this intended operation is applied. Together, they constitute the semantic basis of the task request.

[0044] In this embodiment, the client does not upload all the original data, but only collects partial data (such as table summaries, sampled data, structural information, etc.) of the target object on the client side targeted by the user command. The user command, client-side context data, etc. are combined according to a preset format to generate a prompt word, which is then sent to the server as a task request.

[0045] The purpose of the above design is twofold: firstly, to retain a complete copy of the original data locally on the client side, preventing the exposure of user data assets due to server-side data leaks; secondly, to enable the server to obtain the minimum dataset necessary to complete the current task by parsing the prompts, thereby accurately understanding the user's intent, identifying the user's current business scenario, and, in conjunction with the availability of multiple candidate capability modules deployed on the server, determining which task units need to be executed, the execution order of these task units, and which target capability module should handle each task unit. In other words, the task orchestration information output by the server is essentially a customized execution plan for the current task. The cloud is responsible for breaking down the task, matching tools, and planning the sequence, while the client executes accordingly.

[0046] In this way, after the client initiates a task, the server can complete the structured decomposition and execution planning of complex tasks with only access to partial data, providing a clear execution basis for the subsequent sequential execution by the client.

[0047] Furthermore, in one embodiment, an exemplary implementation of generating prompt words based on user instructions and client-side context data includes: obtaining the client's runtime environment information; combining the runtime environment information, user instructions, and client-side context data according to a preset format to generate prompt words; wherein, the runtime environment information is used by the server to determine the range of capability modules corresponding to this task when determining task orchestration information, and different runtime environments correspond to different ranges of capability modules.

[0048] This embodiment, building upon the previous embodiment, further incorporates client runtime environment information into the prompt. The runtime environment information reflects the client's current hardware and software status and runtime context, such as client type (e.g., WPS Spreadsheet, WPS Document, WPS Presentation), client version number, operating system type and version, hardware configuration (e.g., memory size, whether it has GPU acceleration capabilities), network status, and user permission level. This runtime environment information is sent to the server along with user commands and client-side context data, serving as one of the decision bases for the server when orchestrating tasks.

[0049] When parsing prompts, the server not only understands the user's operational intent and the target object corresponding to the client-side context data, but also determines the range of capability modules corresponding to the current task by combining runtime environment information. In other words, when determining task orchestration information, the server considers what the current client "can support." Different runtime environments allow clients to handle different types and complexities of operations. Based on this, the server dynamically filters capability modules that match the current runtime environment as a candidate set, and only matches target capability modules for each task unit from this candidate set. For example, if the runtime environment information indicates that the current client is a mobile device in a weak network state, the server tends to select lightweight capability modules with low bandwidth and computing power requirements when orchestrating tasks; if the runtime environment information indicates that the current client is a high-performance desktop device, it can select computationally intensive capability modules with high requirements for image processing or big data analysis capabilities. Through the above method, the task orchestration information generated by the server is not a unified solution applicable to all clients, but an adaptation solution tailored to the current client runtime environment, thereby optimizing the execution efficiency and user experience of the client side while ensuring task executability.

[0050] Step 202: Based on the task orchestration information, send invocation requests corresponding to at least some task units to the server in sequence, so that the server can invoke the target capability module corresponding to the task unit to perform the corresponding processing.

[0051] After receiving the task orchestration information returned by the server, the client sends call requests corresponding to at least some of the task units to the server in the execution order specified in the task orchestration information, so that the server can call the corresponding target capability module to perform the corresponding processing. It should be noted that the client does not necessarily send call requests for all task units to the server. In actual execution, the client may terminate the sending of subsequent call requests in some situations. For example, after executing a task unit, the client determines based on the returned execution information that subsequent task units do not need to be executed (e.g., the execution result of the current task unit has met the task objective, the execution conditions of subsequent task units are not met, or the user actively cancels the task); or, after executing a task unit, the client decides to skip some subsequent task units based on the returned execution information (e.g., the execution of subsequent task units depends on the execution result of the current task unit, but the data returned by the current task unit is empty or the data format does not meet expectations, making the execution of subsequent task units that depend on this data meaningless). In the above situations, call requests corresponding to some task units will not be sent to the server. Therefore, this application uses "at least some" to limit the number of task units for which call requests are actually sent to cover the above situations, as described below.

[0052] It's also important to note that the client doesn't send all call requests to the server at once. Instead, it sends them one by one or in batches according to the execution order in the task orchestration information. The timing of sending each call request is controlled by the client, giving it dynamic decision-making power over subsequent execution strategies during execution, rather than mechanically executing a pre-planned sequence of instructions from the server. In other words, the task orchestration information provides the client with the overall framework and initial path for execution, but the actual execution pace, path selection, and strategy adjustments are all flexibly controlled by the client based on real-time conditions.

[0053] Accordingly, in one embodiment, an exemplary implementation of the client sequentially sending call requests corresponding to at least some task units to the server according to task orchestration information includes: sequentially sending call requests corresponding to at least some task units to the server according to task orchestration information; wherein, after sending a call request corresponding to the current task unit to the server and receiving the corresponding execution information, the client adjusts the subsequent task units that have not yet been executed in the task orchestration information according to the currently received execution information, and the adjustment includes at least one of the following: determining whether to continue executing the subsequent task unit, modifying the execution parameters of at least one subsequent task unit, adding at least one task unit, deleting at least one subsequent task unit, or changing the execution order of at least two subsequent task units.

[0054] In this embodiment, the client does not mechanically execute tasks one by one according to the task orchestration information during execution. Instead, it uses the task orchestration information as an execution reference. After completing the current task unit and receiving the corresponding execution information, the client obtains the key input that affects the subsequent execution strategy, namely the execution result of the current task unit. Based on the information contained in the execution result (such as whether the task unit was executed successfully or failed, the content and format of the returned data, whether any anomalies occurred, etc.), the client makes real-time decisions on how to proceed with the subsequent execution process.

[0055] For example, if the current task unit executes successfully and the returned data meets expectations, the client may decide to continue executing subsequent task units and may adjust the execution parameters of subsequent task units based on the content of the returned data to make subsequent processing more accurate; if the current task unit executes successfully but the returned data is empty or the data range has changed significantly, the client may decide to skip subsequent task units that depend on that data to avoid invalid calculations; if the current task unit executes unsuccessfully, the client may decide to terminate the current task or choose to retry the current task unit based on the failure type; if new processing requirements are discovered during execution, the client may insert new task units into subsequent task units; if the dependencies between subsequent task units change, the client may adjust their execution order to make the execution path more consistent with the actual situation.

[0056] Through the above methods, the client has the ability to make dynamic decisions during the execution process. It can flexibly adjust the execution plan of the unexecuted part based on the execution information obtained during the task execution process, thereby making the entire task processing flow more adaptable and robust in the face of various changes during the execution process.

[0057] On the one hand, since the client has complete control over the task execution rhythm and path selection, any execution anomaly of a task unit or logical error of a cloud capability module only affects the current task unit itself. The client can then independently decide to retry, skip, or terminate the current task unit without spreading the error to other task units that have not yet been executed. This achieves fault isolation at the task execution level and effectively avoids the situation where the entire task process becomes uncontrollable due to the failure of a single task unit.

[0058] On the other hand, the client sends call requests sequentially, rather than sending all task unit call requests to the server at once. A call request for any task unit is only sent after the preceding task unit has completed and the client determines that continued execution is necessary based on the execution result. Each execution of the server-side capability module is predicated on an active call from the client. This mechanism limits the impact of a single call to the task unit corresponding to that call at the call initiation level. During execution, the server-side capability module only processes the data involved in the current task unit and does not have the ability to manipulate the target object on the client side across task units. Even if the execution result of a task unit does not meet expectations, the client can terminate execution in that task unit and no longer send call requests for subsequent task units to the server, thus effectively preventing large-scale unintended modifications to the target object on the client side due to erroneous output or logical defects in the cloud-based capability module.

[0059] Step 203: Receive the execution information returned by the server in response to the call request.

[0060] In step 203, after the client sends the call request, it receives the execution information returned by the server in response to the call request.

[0061] Specifically, after receiving a call request from the client, the server invokes the target capability module corresponding to that task unit to perform the corresponding processing. Each capability module on the server is deployed independently and is responsible for a specific type of task unit (such as data calculation, code generation, format specification parsing, industry knowledge retrieval, etc.).

[0062] Furthermore, since different capability modules on the server handle different types of tasks, the execution information returned is diverse: some capability modules directly return execution result data (such as sorting results, statistical values, summary reports, etc.), while some capability modules return executable instructions (such as VBA (Visual Basic for Applications) scripts, JavaScript code, etc.).

[0063] The client can directly use the execution result data as input for subsequent task units, for generating task execution results, or for updating target objects on the client side.

[0064] For executable instructions, such as VBA scripts or WPS JavaScript API code, the technical solution provided in this application also includes: invoking an execution engine deployed in the client to execute the executable instructions.

[0065] The execution engine deployed on the client is a runtime environment used to execute executable instructions, such as the macro execution engine or JavaScript engine built into WPS Office. The execution engine is separated from the client's flow control function. The client's flow control function is only responsible for controlling and scheduling the task flow, while the actual execution of executable instructions is handled by the execution engine, thus achieving decoupling of flow control and instruction execution at the architectural level.

[0066] Taking a table processing scenario as an example, if the current task unit is "to clean the currently selected cell range", the server calls the code generation module to generate a piece of JavaScript code for data cleaning as an executable instruction and returns it to the client. The client calls the execution engine to execute the JavaScript code and perform cleaning operations on the selected cell range, such as removing blank characters, standardizing date formats, and marking duplicate values.

[0067] Taking document formatting as an example, if the current task unit is "to uniformly adjust the title styles in the document to the official document format", the server calls the code generation module to generate a VBA script as an executable instruction and returns it to the client. The client calls the execution engine to execute the VBA script, traversing all the title paragraphs in the document and adjusting their font, font size, alignment and paragraph spacing and other format attributes one by one.

[0068] In the above scenario, the logic for generating executable instructions and the business decisions are completed by the cloud capability module. The client is only responsible for calling the execution engine to execute the executable instruction, thereby ensuring the reliability and consistency of instruction execution.

[0069] It should be noted that the generation logic and business decisions of executable instructions are handled by the cloud capability module. The client does not modify the content of executable instructions independently, but can verify the security and correctness of executable instructions in a sandbox environment before execution. Only after the verification is passed can the execution engine be called to execute them.

[0070] Furthermore, since the call requests are sent on demand and sequentially, each execution of the server-side capability module is contingent upon the client's active invocation; the server does not proactively push execution results to the client or initiate new task units. In other words, the server is always in a passive response position, while the client has complete control over the execution rhythm.

[0071] Step 204: Generate the task execution result for this task based on the execution information corresponding to the call request.

[0072] During task execution, the client generates the task execution result based on the execution information corresponding to each received call request.

[0073] In the aforementioned steps, each time the client sends a call request to the server, it receives one piece of execution information. Each piece of execution information corresponds to the output of a task unit in this task. During task execution, the client continuously receives and records the execution information corresponding to each task unit. When the task terminates (including but not limited to all task units having been completed, early termination due to abnormal circumstances, or user-initiated cancellation), the client summarizes and integrates the recorded execution information to generate the task execution result.

[0074] It should be noted that generating a task execution result does not require all task units involved in the current task to be completed. During actual execution, the client may terminate the task and generate a result in the following situations: a task unit fails and the fault tolerance strategy is to terminate the task; the user actively cancels the task during execution; or the client determines that subsequent task units do not need to be executed based on the current execution result. In these situations, although some task units have not yet been executed, the client can still generate the task execution result based on the execution information corresponding to the completed task units. This task execution result includes not only the processing output of the executed task units but also the reason for task termination, a list of unexecuted task units, and execution progress information, allowing the user to understand part of the task's execution status and the reasons for incomplete execution.

[0075] Taking a document processing scenario as an example, suppose this task includes three task units: the first task unit checks the document for formatting compliance, returning a check report and several formatting anomaly annotations; the second task unit automatically corrects the detected formatting anomalies, returning the corrected paragraph content and correction records; the third task unit reformatts the corrected document, returning a formatted page image. After the client completes the invocation and reception of the above three task units in sequence, it summarizes the check report, correction records, and formatted page image into the task execution result and presents it to the user.

[0076] In another scenario, if the second task unit fails to execute, the client decides to terminate the task based on the fault tolerance strategy. The client then generates the task execution result based on the detection report returned by the first task unit and the failure information returned by the second task unit. This result may include information such as "Format specification detection has been completed, X format anomalies were found; automatic correction failed, the reason is XXX; this task has been terminated, and subsequent task units (layout) have not been executed".

[0077] In another scenario, if the task consists of only one task unit, the client will directly use the execution information corresponding to that task unit as the task execution result of the current task.

[0078] In this way, the client integrates the scattered and sequentially returned execution information into a unified task execution result with business semantics, making it easier for users to perceive the overall processing of the task. At the same time, even if the task is not fully completed, it can still provide users with feedback on partial execution results and reasons for termination, thereby improving the interpretability of the system and the user experience.

[0079] Furthermore, in one embodiment, the client continuously monitors the execution status of the task during execution. When it is determined that the task has been completed (i.e., all task units to be executed in the task orchestration information have been completed and the returned results meet expectations), or the task cannot be completed (e.g., due to the failure of a task unit and the fault tolerance strategy is to terminate the task, the user actively cancels the task, the server returns an unrecoverable error message, etc.), the client can also call the reporting agent deployed on the server to generate a task report.

[0080] For example, the task report includes the execution status of each task unit, specifically including: the execution status of each task unit (success, failure, skipped, not executed), a summary of the execution results of each task unit, the total execution time of the task, and the overall completion status of the task. For example, the task report can be generated in a structured data format (such as JSON) or a natural language description, allowing users to intuitively understand the overall processing of the task. After the report is generated, the client returns the task report to the user, for example, by displaying it in a user interface pop-up, in the application's notification center, or sending it to the user via email. Through these methods, users can fully understand the execution results of the task and, when a part of the task succeeds or fails, perform subsequent processing or manual intervention based on the information provided in the report.

[0081] The technical solution provided in this application embodiment involves a client initiating a task request to a server. The server parses the intent and generates task orchestration information. The client then sends a call request to the server based on the orchestration information and receives execution information returned by the server. Finally, the client generates the task execution result based on the acquired execution information. In this process, the client and server adopt a "request-response" interaction model. The client receives corresponding execution information each time it sends a call request, while the server only performs corresponding processing after receiving the client's call request. Therefore, the server is always in a passive response position, while the client has complete control over the entire task execution process. Based on this architecture, the client does not need to expose the full task execution plan or intermediate data to the server beforehand. The server and its various capability modules only obtain the input data corresponding to the current task unit when called by the client, and cannot actively obtain global task information or client-side data without client authorization. This reduces the risk of excessive data exposure due to server attacks or permission abuse at the architectural level. Meanwhile, the client only needs to initiate task requests, send call requests, and receive and generate execution results, while the server handles computationally intensive tasks such as task understanding, decomposition, and orchestration, which require large-scale knowledge base support. This effectively reduces the client's resource consumption, enabling a lightweight deployment, especially suitable for terminal devices with limited computing resources. Furthermore, upgrades or expansions of server-side capabilities can be completed solely on the server side; the client can acquire new task processing capabilities without requiring version updates, significantly reducing system maintenance costs and upgrade complexity.

[0082] Figure 3 A flowchart illustrating another task processing method provided in this application. Figure 3 The process shown is in Figure 2 Based on the illustrated process, the following steps are included: Step 301: In response to the client startup event, obtain the capability description document and calling protocol of the capability module deployed on the server. The capability description document is used to send task requests to the server, and the calling protocol is used to send calling requests to the server.

[0083] A client startup event refers to the initialization process triggered when a client application switches from a non-running state to a running state. This includes, but is not limited to, scenarios such as a user actively opening the client application, the operating system automatically starting the client service process after booting, and the client application being woken up in the background by a system event. In response to the client startup event, the client obtains the capability documentation and calling protocols of the capability modules deployed on the server.

[0084] Capability documentation refers to a document provided by the server that describes the functionality, applicable scenarios, input / output specifications, and invocation methods of each deployed capability module. It is used to inform clients of the availability and specific purpose of each capability module. When a client initiates a task request, it sends the range of available capability modules indicated in the capability documentation as part of a prompt to the server. This helps the server determine the range of capability modules corresponding to the current task during intent parsing and task orchestration.

[0085] A call protocol refers to the agreed-upon data interaction format, interface specifications, and communication rules between the client and server. It standardizes the data format and transmission method when the client sends a call request. When the client sends a call request based on the task orchestration information, it constructs and sends the call request according to the data format and interface specifications defined by the call protocol to ensure that the server can correctly parse and respond to the call request.

[0086] By obtaining capability description documents and invocation protocols, the client can perceive the range of currently available capability modules on the server and their invocation methods during the startup phase, thereby providing the necessary information basis for initiating subsequent task requests and sending invocation requests.

[0087] In one embodiment, in response to a client startup event, obtaining the capability specification document and calling protocol of the capability module deployed on the server includes: in response to a client startup event, sending a version query request to the server to obtain the current version information of the capability module deployed on the server; if the current version information is inconsistent with the version information stored locally on the client, obtaining the capability specification document and calling protocol of the capability module from the server; if the current version information is consistent with the version information stored locally on the client, using the locally stored capability specification document and calling protocol.

[0088] In this embodiment, the client does not unconditionally pull the complete capability specification document and calling protocol from the server every time it starts. Instead, it first sends a version query request to the server to obtain the current version information of the capability modules deployed on the server. The version information is used to identify the version status of the capability module, such as the version number, update timestamp, or content hash value of the capability module. The client compares the obtained current version information with the version information stored locally: if the two are inconsistent, it means that the capability module on the server side has been added, deleted, updated, or replaced, and the client needs to retrieve the capability specification document and calling protocol from the server again to ensure that the information stored locally is consistent with the actual deployment on the server side; if the two are consistent, it means that the capability module on the server side has not changed since the client last retrieved it, and the client can directly use the locally stored capability specification document and calling protocol, thereby avoiding network traffic consumption and startup delay caused by repeated retrieval. Through the above version check mechanism, the client can optimize resource consumption and response speed during the startup phase while ensuring information accuracy.

[0089] Step 302: In response to the task trigger signal, send a task request to the server so that the server can perform intent parsing on the task request and determine the task orchestration information corresponding to this task.

[0090] Step 303: Based on the task orchestration information, send invocation requests corresponding to at least some task units to the server in sequence, so that the server can invoke the target capability module corresponding to the task unit to perform the corresponding processing.

[0091] Step 304: Receive the execution information returned by the server in response to the call request.

[0092] For a detailed description of steps 302 to 304, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.

[0093] Step 305: Verify the execution information in the sandbox environment deployed on the client; if the verification fails, perform fault tolerance processing for the task unit corresponding to the execution information.

[0094] After receiving the execution information returned by the server in response to the call request, the client does not use it directly without conditions. Instead, it performs security and / or correctness verification on the execution information within a sandbox environment deployed on the client. The sandbox is an isolated execution environment used to preprocess and verify execution information without affecting the normal operation of the client. The sandbox environment is isolated from the client's main runtime environment in terms of resource access, system calls, and data read / write. Any operation on the execution information within the sandbox will not have any actual impact on the target object on the client side. Only when the execution information passes verification will the client allow execution or presentation of that information; if verification fails, the execution information will not be directly applied to the target object on the client side.

[0095] The verification content can be flexibly set according to the type of execution information and the task scenario. For example, for execution information of executable instruction type, the verification content includes, but is not limited to: whether the instruction has syntax errors, whether the instruction contains malicious operations (such as deleting files, accessing sensitive system APIs, attempting unauthorized read / write, etc.), and whether the execution of the instruction is within the expected resource consumption range. For execution information of execution result data type, the verification content includes, but is not limited to: whether the data format is consistent with expectations, whether the data range is reasonable, and whether the data is complete and without missing data. Through the above verification mechanism, it is possible to effectively avoid the pollution or damage to the target object on the client side due to abnormal data or defective code returned by the server, ensuring that the execution information returned by each call is security checked before being applied to the target object on the client side, thereby ensuring the integrity and stability of the data on the client side.

[0096] If verification fails, the client performs fault tolerance for that task unit. Fault tolerance includes at least one of the following: The client resends the call request corresponding to the task unit to the server. If the verification failure is due to recoverable reasons such as data corruption during network transmission, temporary server anomalies, or timeouts, the client can choose to resend the call request corresponding to the current task unit to the server to obtain new execution information for replacement. During retries, the client can adopt a backoff retry strategy based on the actual scenario, such as gradually increasing the waiting time interval during multiple retries to avoid continuous retry failures due to server overload.

[0097] Skip the current task unit and continue executing subsequent task units. If the verification fails because the execution result of the current task unit has a minor impact on the overall task objective, or the execution of subsequent task units does not depend on the return result of the current task unit, the client can skip the current task unit and continue executing subsequent task units. This method is suitable for task unit failures on non-critical paths, ensuring that the entire task flow is not completely interrupted by the failure of a single non-core task unit. For example, in a data processing task, if a task unit is responsible for generating intermediate statistical charts, and the generation result of these charts does not affect the execution of subsequent data cleaning and storage operations, the client can skip this task unit and continue executing subsequent task units. The final task execution result will include a record of skipping the task unit and an explanation of the reason.

[0098] The execution information is adapted and adjusted according to the current client-side environment before execution. When the verification fails due to compatibility issues between the execution information and the current client-side environment (e.g., the API referenced in the execution information is unavailable in the current client version, the file path in the execution information does not match the current client-side file system structure, or some resources that the execution information depends on do not exist in the current client-side environment), the client can adapt and adjust the execution information according to the actual situation of the current client-side environment. For example, the API call can be replaced with an alternative supported by the current version, the file path can be corrected to the correct path in the current client-side environment, or the missing dependent resources can be downloaded from the server, so that the adjusted execution information can be executed correctly in the current client-side environment.

[0099] Terminate the current task. When the reason for the verification failure is an unrecoverable serious error (such as the execution information containing malicious code, the permissions required by the execution information exceeding the scope granted by the client, or the execution result of the core task unit continuously failing verification and not having the conditions to skip or retry), the client terminates the current task and provides feedback to the user on the reason for the task termination and the execution status of the executed task units, to prevent the client from continuing to execute subsequent operations that may produce unpredictable results.

[0100] By combining the above-mentioned fault tolerance strategies, the client can flexibly choose the most appropriate handling method based on the specific reason for failure and the task scenario when verification fails. This will maximize the success rate of task completion while ensuring security, or provide clear feedback to the user when the task cannot continue to be executed.

[0101] The sandbox verification mechanism described above can effectively prevent the client-side target object from being contaminated or damaged due to abnormal data or defective code returned by the server. It ensures that the execution information returned by each call is security-checked before being applied to the client-side target object, thereby guaranteeing the integrity and stability of the client-side data.

[0102] Step 306: Generate the task execution result for this task based on the execution information corresponding to the call request.

[0103] In one embodiment, the corresponding local region in the target object on the client side is updated based on the execution information corresponding to the call request.

[0104] In this embodiment, when generating the task execution result, the client does not write or replace all the content of the target object at once, but only updates the local area of ​​the target object corresponding to the task unit's execution result. For example, in a table processing scenario, if the execution result of a task unit is to adjust the format of data in a specific column of the table, the client only updates the cell area corresponding to that column, without affecting the data in other rows and columns of the table; if the execution result of another task unit is to insert an image into the document, the client only updates the insertion position corresponding to the image, without affecting the content of other paragraphs or pages in the document.

[0105] In this way, the client precisely applies the execution results to a local area of ​​the target object, avoiding unnecessary modifications to the overall structure of the target object, thereby reducing operational overhead while ensuring the accuracy of differential positioning. Furthermore, when a task terminates prematurely due to an exception, the local updates to the target object by successfully executed task units have already taken effect, while the areas corresponding to unexecuted or failed task units remain unchanged. This preserves some of the task's execution results, preventing the loss of completed work due to a complete rollback.

[0106] Figure 3 The process shown is in Figure 2 Based on the process shown, an additional process has been added for the client to obtain the capability description documents and calling protocols of the server-side capability modules during the client startup phase. This allows the client to perceive the range of currently available capability modules on the server and their calling methods during the startup phase, providing the necessary information basis for initiating subsequent task requests and sending calling requests. Figure 3 The process also includes sandbox verification and fault tolerance procedures for execution information. By verifying the security and / or correctness of execution information in a sandbox environment deployed on the client, it ensures that the execution information returned by each call is security-checked before being applied to the target object on the client side. This effectively avoids pollution or damage to the target object on the client side due to abnormal data or defective code returned by the server. When verification fails, the client can flexibly choose fault tolerance strategies such as retry, skip, adaptation adjustment, or termination according to the reason for failure and the task scenario, so as to maximize the success rate of task completion while ensuring security.

[0107] Figure 4 This is a block diagram illustrating an embodiment of a task processing apparatus provided in this application. Figure 4 As shown, the device includes: The task initiation module 41 is used to send a task request to the server in response to a task trigger signal, so that the server can perform intent parsing on the task request and determine the task orchestration information corresponding to this task. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit. The task scheduling module 42 is used to send call requests corresponding to at least some of the task units to the server in sequence according to the task orchestration information, so that the server can call the target capability module corresponding to the task unit to perform corresponding processing. Information receiving module 43 is used to receive execution information returned by the server in response to the call request; Result generation module 44 is used to generate the task execution result of this task based on the execution information corresponding to the call request.

[0108] In one possible implementation, the device further includes: The capability management module is used to respond to a client startup event, obtain the capability description document and calling protocol of the capability module deployed in the server, the capability description document is used to send the task request to the server, and the calling protocol is used to send the calling request to the server.

[0109] In one possible implementation, the capability management module includes: The version query unit is used to respond to the client startup event, send a version query request to the server, and obtain the current version information of the capability modules deployed in the server; The pull unit is used to retrieve the capability description document and calling protocol of the capability module from the server when the current version information is inconsistent with the version information stored locally on the client. The reuse unit is used to use the locally stored capability description document and the calling protocol when the current version information is consistent with the version information stored locally on the client.

[0110] In one possible implementation, the task initiation module 41 includes: A context acquisition unit is used to acquire terminal-side context data, wherein the terminal-side context data is local data of the target object on the client side targeted by the user instruction; The prompt word generation unit is used to generate prompt words based on the user instruction and the terminal-side context data; The request sending unit is used to send the prompt word as the task request to the server, so that the server can call an artificial intelligence model to perform intent parsing on the task request and determine the task arrangement information corresponding to this task.

[0111] In one possible implementation, the prompt word generation unit includes: The environment acquisition subunit is used to acquire the client's runtime environment information; The combination subunit is used to combine the runtime environment information, the user instructions, and the terminal context data according to a preset format to generate prompt words; The runtime environment information is used by the server to determine the range of capability modules corresponding to the current task when determining the task orchestration information. Different runtime environments correspond to different ranges of capability modules.

[0112] In one possible implementation, the device further includes: The sandbox verification module is used to verify the execution information in a sandbox environment deployed on the client after receiving the execution information returned by the server in response to the call request. The fault tolerance module is used to perform fault tolerance processing on the task unit corresponding to the execution information if the verification fails.

[0113] In one possible implementation, the fault-tolerant processing includes at least one of the following: Resend the call request corresponding to the task unit to the server; Skip the task unit and continue executing subsequent task units; The execution information is adapted and adjusted according to the current terminal environment; This mission is terminated.

[0114] In one possible implementation, the device further includes: An execution engine module is used to invoke an execution engine deployed in the client to execute the executable instructions when the execution information includes executable instructions.

[0115] In one possible implementation, the result generation module 44 is specifically used for: Based on the execution information corresponding to the call request, update the corresponding local region in the target object on the client side.

[0116] In one possible implementation, the task scheduling module 42 is specifically used for: Based on the task orchestration information, call requests corresponding to at least some of the task units are sent to the server in sequence. Specifically, after sending a call request corresponding to the current task unit to the server and receiving the corresponding execution information, the subsequent task units that have not yet been executed in the task orchestration information are adjusted according to the currently received execution information. The adjustment includes at least one of the following: determining whether to continue executing the subsequent task unit, modifying the execution parameters of at least one subsequent task unit, adding at least one task unit, deleting at least one subsequent task unit, or changing the execution order of at least two subsequent task units.

[0117] like Figure 5 As shown in the figure, this application provides an electronic device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114. Memory 113 is used to store computer programs; In one embodiment of this application, when the processor 111 executes a program stored in the memory 113, it implements the task processing method provided in any of the foregoing method embodiments, including: In response to a task trigger signal, a task request is sent to the server so that the server can perform intent parsing on the task request and determine the task orchestration information corresponding to this task. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit. Based on the task orchestration information, call requests corresponding to at least some of the task units are sent to the server in sequence, so that the server can call the target capability module corresponding to the task unit to perform corresponding processing. Receive the execution information returned by the server in response to the call request; The task execution result for this task is generated based on the execution information corresponding to the call request.

[0118] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the task processing method provided in any of the foregoing method embodiments.

[0119] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0120] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0121] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.

[0122] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A task processing method, characterized in that, The method includes: In response to a task trigger signal, a task request is sent to the server so that the server can perform intent parsing on the task request and determine the task orchestration information corresponding to this task. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit. Based on the task orchestration information, call requests corresponding to at least some of the task units are sent to the server in sequence, so that the server can call the target capability module corresponding to the task unit to perform corresponding processing. Receive the execution information returned by the server in response to the call request; The task execution result for this task is generated based on the execution information corresponding to the call request.

2. The method according to claim 1, characterized in that, The method further includes: In response to a client-side startup event, the system retrieves the capability description document and invocation protocol of the capability module deployed on the server. The capability description document is used to send the task request to the server, and the invocation protocol is used to send the invocation request to the server.

3. The method according to claim 2, characterized in that, The step of responding to a client startup event by obtaining the capability description documents and invocation protocols of the capability modules deployed on the server includes: In response to the client startup event, a version query request is sent to the server to obtain the current version information of the capability modules deployed in the server; If the current version information is inconsistent with the version information stored locally on the client, the capability description document and calling protocol of the capability module are obtained from the server. The method further includes: If the current version information matches the version information stored locally on the client, the locally stored capability description document and the calling protocol are used.

4. The method according to claim 1, characterized in that, The task trigger signal includes a user instruction; the step of sending a task request to the server in response to the task trigger signal includes: Obtain terminal-side context data, which is local data of the target object on the client side targeted by the user command; Based on the user instructions and the terminal-side context data, a prompt word is generated; The prompt word is sent to the server as the task request, so that the server can call an artificial intelligence model to analyze the intent of the task request and determine the task arrangement information corresponding to this task.

5. The method according to claim 4, characterized in that, The step of generating prompt words based on the user instruction and the terminal-side context data includes: Obtain the client's runtime environment information; The runtime environment information, the user instructions, and the terminal context data are combined according to a preset format to generate prompt words; The runtime environment information is used by the server to determine the range of capability modules corresponding to the current task when determining the task orchestration information. Different runtime environments correspond to different ranges of capability modules.

6. The method according to claim 1, characterized in that, After receiving the execution information returned by the server in response to the call request, the method further includes: The execution information is verified in a sandbox environment deployed on the client. If the verification fails, fault tolerance processing is performed on the task unit corresponding to the execution information.

7. The method according to claim 6, characterized in that, The fault-tolerant processing includes at least one of the following: Resend the call request corresponding to the task unit to the server; Skip the task unit and continue executing subsequent task units; The execution information is adapted and adjusted according to the current terminal environment; This mission is terminated.

8. The method according to claim 1, characterized in that, The execution information includes execution result data or executable instructions; when the execution information includes the executable instructions, the method further includes: The executable instructions are executed by calling the execution engine deployed in the client.

9. The method according to claim 1, characterized in that, The step of generating the task execution result for this task based on the execution information corresponding to the call request includes: Based on the execution information corresponding to the call request, update the corresponding local region in the target object on the client side.

10. The method according to claim 1, characterized in that, The step of sequentially sending call requests corresponding to at least a portion of the task units to the server based on the task orchestration information includes: Based on the task orchestration information, call requests corresponding to at least some of the task units are sent to the server in sequence. Specifically, after sending a call request corresponding to the current task unit to the server and receiving the corresponding execution information, the subsequent task units that have not yet been executed in the task orchestration information are adjusted according to the currently received execution information. The adjustment includes at least one of the following: determining whether to continue executing the subsequent task unit, modifying the execution parameters of at least one subsequent task unit, adding at least one task unit, deleting at least one subsequent task unit, or changing the execution order of at least two subsequent task units.

11. A task processing system, characterized in that, Including both client and server sides; The client, in response to the task trigger signal, sends a task request to the server; The server performs intent parsing on the task request to determine the task orchestration information corresponding to this task. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit. The client sends call requests corresponding to at least some of the task units to the server in sequence according to the task orchestration information; The server, in response to the call request, invokes the target capability module corresponding to the task unit to perform the corresponding processing, and returns the execution information to the client; The client receives the execution information returned by the server in response to the call request; In addition, the task execution result for this task is generated based on the execution information corresponding to the call request.

12. A task processing device, characterized in that, The device includes: The task initiation module is used to send a task request to the server in response to a task trigger signal, so that the server can perform intent parsing on the task request and determine the task orchestration information corresponding to this task. The task orchestration information includes at least one task unit corresponding to this task, the execution order of each task unit, and the target capability module corresponding to each task unit. The task scheduling module is used to send call requests corresponding to at least some of the task units to the server in sequence according to the task orchestration information, so that the server can call the target capability module corresponding to the task unit to perform corresponding processing. An information receiving module is used to receive execution information returned by the server in response to the call request; The result generation module is used to generate the task execution result of this task based on the execution information corresponding to the call request.

13. An electronic device, characterized in that, include: A processor and a memory, the processor being configured to execute a task processing program stored in the memory to implement the task processing method according to any one of claims 1-10.

14. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the task processing method according to any one of claims 1-10.