Task processing method, computer device, storage medium and computer program product
By using a master intelligent agent to select target intelligent agents and break down tasks, and utilizing multi-agent collaboration to process sub-tasks, the problem of single-point computing power bottleneck in traditional task processing is solved, thereby improving task processing efficiency.
Patent Information
- Application Number
- CN202611505107.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-24
- Publication Date
- 2026-11-27
Smart Images

Figure CN123178012A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, and in particular to a task processing method, apparatus, system, computer device, computer-readable storage medium, and computer program product. Background Technology
[0002] Currently, with the increasing workload, improving task processing efficiency has become crucial.
[0003] In traditional technologies, task processing is typically handled independently by a single intelligent agent; however, this approach suffers from single-point computing power bottlenecks and time-consuming task processing, resulting in low task processing efficiency. Summary of the Invention
[0004] Therefore, it is necessary to provide a task processing method, apparatus, system, computer equipment, computer-readable storage medium, and computer program product that can improve task processing efficiency in response to the above-mentioned technical problems.
[0005] Firstly, this application provides a task processing method applied to a controlling intelligent agent, the method comprising:
[0006] From the candidate agents, identify the target agent that matches the task intent of the task to be processed;
[0007] The task to be processed is sent to the target intelligent agent; the target intelligent agent is used to send the first workpiece reference corresponding to the subtask in the task to be processed to the task execution intelligent agent corresponding to the subtask, so that the task execution intelligent agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent.
[0008] Based on the second workpiece reference returned by the target agent, the task processing result of the subtask is located, and the task processing result of the task to be processed is determined according to the task processing result of the subtask.
[0009] In one embodiment, determining the target agent from the candidate agents that matches the task intent of the task to be processed includes:
[0010] Obtain the agent field of the candidate agent; the agent field is used to characterize the functional description information of the candidate agent.
[0011] The agent field is semantically matched with the task intent of the task to be processed to obtain the matching degree between the candidate agent and the task intent.
[0012] From all the candidate agents, the candidate agent with the highest matching degree with the task intent is determined as the target agent.
[0013] In one embodiment, determining the task processing result of the task to be processed based on the task processing result of the subtask includes:
[0014] Perform conflict detection on the task processing results of the subtask to obtain the conflict detection results corresponding to the task processing results of the subtask.
[0015] If the conflict detection result indicates that there is no conflict between the task processing results of the subtasks, the task processing results of the subtasks are aggregated to obtain the task processing result of the task to be processed.
[0016] If the conflict detection result indicates that there is a conflict between the task processing results of the subtasks, the conflict type between the task processing results of the subtasks shall be determined.
[0017] Based on the conflict type, the task processing result of the task to be processed is determined.
[0018] In one embodiment, determining the task processing result of the task to be processed based on the conflict type includes:
[0019] If the conflict type belongs to the first conflict type, the task processing result of the task to be processed is generated based on the task processing result of the subtask.
[0020] If the conflict type is the second conflict type, a conflict diagnosis result corresponding to the task to be processed is generated based on the task processing result of the subtask. Based on the conflict diagnosis result, the task processing results of the subtask that have conflicts are updated to obtain the updated task processing result of the subtask. The updated task processing result is then aggregated with other task processing results to obtain the task processing result of the task to be processed. The other task processing results are used to represent the task processing results of the subtask other than the task processing results that have conflicts.
[0021] Secondly, this application provides a task processing method applied to a target intelligent agent, the method comprising:
[0022] The system receives a task to be processed from the master control agent; the master control agent is used to determine the target agent from the candidate agents that matches the task intent of the task to be processed, and the target agent is an aggregate agent;
[0023] The first workpiece reference corresponding to the subtask in the task to be processed is sent to the task execution agent corresponding to the subtask, so that the task execution agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and obtain the task processing result of the subtask.
[0024] The system receives a second artifact reference corresponding to the task processing result returned by the task execution agent and returns the second artifact reference to the master control agent. The master control agent is also used to locate the task processing result of the subtask based on the second artifact reference and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0025] In one embodiment, before sending the first artifact reference corresponding to the subtask in the task to be processed to the task execution agent corresponding to the subtask, the method further includes:
[0026] The content hash information, access control token, task identification information, storage address, and evidence chain metadata corresponding to the subtask are determined.
[0027] Based on the content hash information, the access control token, the task identifier information, the storage addressing address, and the evidence chain metadata, a first artifact reference corresponding to the subtask is generated.
[0028] In one embodiment, sending the reference to the first artifact corresponding to the subtask in the task to be processed to the task execution agent corresponding to the subtask includes:
[0029] Determine whether there are data dependencies and resource processing conflicts among the various task execution agents;
[0030] In the absence of data dependencies and resource processing conflicts among the task execution agents, the first artifact references corresponding to the subtasks in the task to be processed are sent in parallel to the task execution agents corresponding to the subtasks.
[0031] In the event of data dependencies and resource processing conflicts among the task execution agents, the first artifact references corresponding to the subtasks in the task to be processed are sent to the task execution agents corresponding to the subtasks in turn, according to the data dependencies and resource processing conflicts among the task execution agents.
[0032] In one embodiment, when the target agent is a specialized agent, the method further includes:
[0033] Obtain the reference to the third workpiece corresponding to the task to be processed;
[0034] Based on the third workpiece reference, the task data corresponding to the task to be processed is located, the task data corresponding to the task to be processed is processed, and the fourth workpiece reference corresponding to the task processing result of the task to be processed is returned to the main control agent; the main control agent is also used to locate the task processing result of the task to be processed based on the fourth workpiece reference.
[0035] In one embodiment, when the target agent is an exploratory agent, the method further includes:
[0036] From the candidate specialized agents, a target specialized agent that matches the task to be processed is identified;
[0037] Obtain the third workpiece reference corresponding to the task to be processed, send the third workpiece reference to the target special agent, so that the target special agent can locate the task data corresponding to the task to be processed based on the third workpiece reference, process the task data corresponding to the task to be processed, and obtain the task processing result of the task to be processed.
[0038] The system receives a fourth artifact reference corresponding to the task processing result of the task to be processed, returned by the target-specific intelligent agent, and returns the fourth artifact reference to the master intelligent agent; the master intelligent agent is also used to locate the task processing result of the task to be processed based on the fourth artifact reference.
[0039] Thirdly, this application provides a task processing method applied to a task execution intelligent agent, the method comprising:
[0040] The system receives a reference to a first artifact corresponding to a subtask in a task to be processed sent by a target intelligent agent; the target intelligent agent receives the task to be processed sent by a master intelligent agent; the master intelligent agent determines the target intelligent agent that matches the task intent of the task to be processed from among the candidate intelligent agents.
[0041] Based on the first artifact reference, the task data corresponding to the subtask is located, the task data is processed to obtain the task processing result of the subtask, and the second artifact reference corresponding to the task processing result of the subtask is returned to the target agent; the target agent is also used to return the second artifact reference to the master agent; the master agent is also used to locate the task processing result of the subtask based on the second artifact reference, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0042] In one embodiment, processing the task data to obtain the task processing result of the subtask includes:
[0043] From the task processing skills carried by the task execution agent, determine the target task processing skill that matches the sub-task;
[0044] Based on the target task processing skills, the task data corresponding to the sub-task is processed to obtain the task processing result of the sub-task.
[0045] In one embodiment, locating the task data corresponding to the subtask based on the first artifact reference includes:
[0046] Using the model context protocol, the task data corresponding to the subtask is located based on the first artifact reference.
[0047] In one embodiment, the step of processing the task data corresponding to the sub-task based on the target task processing skill to obtain the task processing result of the sub-task includes:
[0048] According to the task intent corresponding to the subtask, the task data corresponding to the subtask is pruned to obtain the processed task data.
[0049] Based on the target task processing skills, the processed task data is processed to obtain the task processing result of the subtask.
[0050] In one embodiment, the step of processing the processed task data based on the target task processing skill to obtain the task processing result of the sub-task includes:
[0051] Obtain the task processing rules for the subtask;
[0052] Based on the target task processing skills and the task processing rules, the processed task data is processed to obtain the task processing result of the subtask.
[0053] Fourthly, this application also provides a task processing device applied to a master intelligent agent, the device comprising:
[0054] The agent determination module is used to determine the target agent from the candidate agents that matches the task intent of the task to be processed;
[0055] The task sending module is used to send the task to be processed to the target intelligent agent; the target intelligent agent is used to send the first workpiece reference corresponding to the subtask in the task to be processed to the task execution intelligent agent corresponding to the subtask, so that the task execution intelligent agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent.
[0056] The result determination module is used to locate the task processing result of the subtask based on the second workpiece reference returned by the target agent, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0057] Fifthly, this application also provides a task processing apparatus applied to a target intelligent agent, the apparatus comprising:
[0058] The task receiving module is used to receive the task to be processed sent by the master control agent; the master control agent is used to determine the target agent that matches the task intent of the task to be processed from the candidate agents, and the target agent is an aggregate agent;
[0059] The reference sending module is used to send the reference of the first workpiece corresponding to the subtask in the task to be processed to the task execution agent corresponding to the subtask, so that the task execution agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and obtain the task processing result of the subtask.
[0060] The reference return module is used to receive the second workpiece reference corresponding to the task processing result returned by the task execution agent, and return the second workpiece reference to the master control agent; the master control agent is also used to locate the task processing result of the subtask based on the second workpiece reference, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0061] Sixthly, this application also provides a task processing apparatus for use in a task execution intelligent agent, the apparatus comprising:
[0062] A reference receiving module is used to receive a reference to a first workpiece corresponding to a subtask in a task to be processed sent by a target intelligent agent; the target intelligent agent is used to receive the task to be processed sent by a master intelligent agent; the master intelligent agent is used to determine the target intelligent agent that matches the task intent of the task to be processed from the candidate intelligent agents;
[0063] The data processing module is configured to locate the task data corresponding to the subtask based on the first workpiece reference, process the task data to obtain the task processing result of the subtask, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent; the target intelligent agent is further configured to return the second workpiece reference to the master intelligent agent; the master intelligent agent is further configured to locate the task processing result of the subtask based on the second workpiece reference, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0064] Seventhly, this application also provides a task processing system, the system comprising: a master control agent, a target agent, and a task execution agent;
[0065] The master control agent is used to determine the target agent that matches the task intent of the task to be processed from the candidate agents, and send the task to be processed to the target agent.
[0066] The target intelligent agent is used to send the first workpiece reference corresponding to the subtask in the task to be processed to the task execution intelligent agent corresponding to the subtask.
[0067] The task execution agent is used to locate the task data corresponding to the subtask based on the first artifact reference, process the task data, and return the second artifact reference corresponding to the task processing result of the subtask to the target agent.
[0068] The master control agent is also used to locate the task processing result of the subtask based on the second workpiece reference returned by the target agent, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0069] Eighthly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0070] From the candidate agents, identify the target agent that matches the task intent of the task to be processed;
[0071] The task to be processed is sent to the target intelligent agent; the target intelligent agent is used to send the first workpiece reference corresponding to the subtask in the task to be processed to the task execution intelligent agent corresponding to the subtask, so that the task execution intelligent agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent.
[0072] Based on the second workpiece reference returned by the target agent, the task processing result of the subtask is located, and the task processing result of the task to be processed is determined according to the task processing result of the subtask.
[0073] Ninthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0074] From the candidate agents, identify the target agent that matches the task intent of the task to be processed;
[0075] The task to be processed is sent to the target intelligent agent; the target intelligent agent is used to send the first workpiece reference corresponding to the subtask in the task to be processed to the task execution intelligent agent corresponding to the subtask, so that the task execution intelligent agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent.
[0076] Based on the second workpiece reference returned by the target agent, the task processing result of the subtask is located, and the task processing result of the task to be processed is determined according to the task processing result of the subtask.
[0077] In a tenth aspect, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0078] From the candidate agents, identify the target agent that matches the task intent of the task to be processed;
[0079] The task to be processed is sent to the target intelligent agent; the target intelligent agent is used to send the first workpiece reference corresponding to the subtask in the task to be processed to the task execution intelligent agent corresponding to the subtask, so that the task execution intelligent agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent.
[0080] Based on the second workpiece reference returned by the target agent, the task processing result of the subtask is located, and the task processing result of the task to be processed is determined according to the task processing result of the subtask.
[0081] The aforementioned task processing method, apparatus, system, computer equipment, storage medium, and computer program product, through a master intelligent agent, determine a target intelligent agent from candidate intelligent agents that matches the task intent of the task to be processed; send the task to be processed to the target intelligent agent; the target intelligent agent sends a first workpiece reference corresponding to a subtask in the task to the task execution intelligent agent corresponding to the subtask, enabling the task execution intelligent agent to locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and return a second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent; based on the second workpiece reference returned by the target intelligent agent, locate the task processing result of the subtask, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0082] The beneficial effects of this application are as follows: During task processing, the master control agent first filters target agents that match the intent of the task to be processed, then the target agents decompose the task, and only pass the first workpiece reference corresponding to the sub-task. Each task execution agent can locate and process the task data corresponding to the sub-task based on the first workpiece reference, and only return the second workpiece reference corresponding to the task processing result. Finally, the master control agent retrieves the corresponding task processing result based on the second workpiece reference, thereby obtaining the complete task processing result of the task to be processed. The entire process involves the master control agent, target agents and task execution agents jointly processing the task to be processed, avoiding the single-point computing power bottleneck that exists in the traditional method of processing by a single agent, which leads to long processing time and is conducive to improving task processing efficiency. Attached Figure Description
[0083] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0084] Figure 1 This is an application environment diagram of a task processing method in one embodiment;
[0085] Figure 2 This is a flowchart illustrating a task processing method in one embodiment;
[0086] Figure 3 This is a flowchart illustrating the intelligent routing decision-making process in one embodiment;
[0087] Figure 4 This is a schematic diagram of the multi-agent cooperative scheduling timing in one embodiment;
[0088] Figure 5 This is a schematic diagram of the main interface of the analysis workbench in one embodiment;
[0089] Figure 6 This is a schematic diagram of the monitoring interface in one embodiment;
[0090] Figure 7 This is a schematic diagram of a sub-agent management interface in one embodiment;
[0091] Figure 8 This is a schematic diagram of the skill library interface in one embodiment;
[0092] Figure 9 This is a schematic diagram of a report viewing interface in one embodiment;
[0093] Figure 10 This is a schematic diagram of the knowledge accumulation review interface in one embodiment;
[0094] Figure 11 This is a schematic diagram of a user operation flow in one embodiment;
[0095] Figure 12 This is a schematic diagram of the system deployment topology in one embodiment;
[0096] Figure 13 This is a schematic diagram of the overall four-layer architecture of the system in one embodiment;
[0097] Figure 14 This is a flowchart illustrating the declarative configuration and dynamic registration process of a sub-agent in one embodiment.
[0098] Figure 15 This is a schematic diagram of a context isolation and parallel execution architecture in one embodiment;
[0099] Figure 16 This is a schematic diagram comparing pass-by-reference and pass-by-value communication modes in one embodiment;
[0100] Figure 17 This is a flowchart illustrating the task processing method in another embodiment;
[0101] Figure 18 This is a flowchart illustrating the task processing method in yet another embodiment;
[0102] Figure 19 This is a schematic diagram of a standardized catalog structure for a skills package in one embodiment;
[0103] Figure 20 This is a schematic diagram illustrating the internal structure and loading relationship of a skill pack in one embodiment;
[0104] Figure 21This is a schematic diagram of a three-level progressive skills disclosure mechanism in one embodiment;
[0105] Figure 22 This is a schematic diagram illustrating the binding relationship between custom skill pack extensions and sub-agents in one embodiment;
[0106] Figure 23 This is a schematic diagram of the thick tool data preprocessing process in one embodiment;
[0107] Figure 24 This is a schematic diagram of a data batch processing and incremental aggregation architecture in one embodiment;
[0108] Figure 25 This is a schematic diagram of a four-layer quality assurance system architecture in one embodiment;
[0109] Figure 26 This is a flowchart illustrating the deterministic execution mechanism of a hook in one embodiment;
[0110] Figure 27 This is a flowchart illustrating the knowledge accumulation closed loop in one embodiment;
[0111] Figure 28 This is a schematic diagram of the complete end-to-end workflow in one embodiment;
[0112] Figure 29 This is a schematic diagram of the complete end-to-end workflow in another embodiment;
[0113] Figure 30 This is a schematic diagram of the complete end-to-end workflow in yet another embodiment;
[0114] Figure 31 This is a schematic diagram of the complete end-to-end workflow in another embodiment;
[0115] Figure 32 This is a schematic diagram of the model context protocol integration architecture in one embodiment;
[0116] Figure 33 This is a schematic diagram illustrating the collaborative layering relationship between skill packs and model context protocols in one embodiment;
[0117] Figure 34 This is a schematic diagram of a two-tiered knowledge management system architecture consisting of rules and skill packs in one embodiment;
[0118] Figure 35 This is a schematic diagram illustrating the effectiveness mechanism and cache impact of four rule injection types in one embodiment;
[0119] Figure 36 A flowchart illustrating rule configuration overriding and injection in one embodiment;
[0120] Figure 37 This is a schematic diagram illustrating the collaborative relationship between rules and various system mechanisms in one embodiment;
[0121] Figure 38 This is a flowchart illustrating the task processing method in another embodiment;
[0122] Figure 39 This is a structural block diagram of a task processing device in one embodiment;
[0123] Figure 40 This is a structural block diagram of the task processing device in another embodiment;
[0124] Figure 41 This is a structural block diagram of the task processing device in yet another embodiment;
[0125] Figure 42 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0126] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0127] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0128] Before introducing the specific embodiments of this application, the technical terms involved in this application will be explained:
[0129] 1. Agent: An intelligent agent based on a large language model, possessing the ability to make autonomous decisions, invoke tools, and execute tasks.
[0130] 2. SubAgent: A specialized agent with an independent context window, customizable system prompts, and exclusive tool permissions.
[0131] 3. Skill (Skill Pack): A collection of folders containing instructions, scripts, and resources that provide Agent with specialized capabilities that can be loaded on demand.
[0132] 4. MCP (Model Context Protocol): Defines a standardized protocol for exchanging context information between applications and AI models.
[0133] 5. Progressive Disclosure: A strategy for loading information in a layered, on-demand manner to avoid context window bloat.
[0134] 6. Pass-by-Reference: When agents communicate, they pass file pointers instead of the full text content, reducing token consumption.
[0135] 7. Artifact Reference: The core carrier of inter-agent communication, containing a lightweight, structured reference object that includes a content hash SHA-256 (Secure Hash Algorithm 256-bi), stores a URI (Uniform Resource Identifier), access control tokens, and evidence chain metadata.
[0136] 8. Content-Addressed Storage: Uses the encrypted hash value (SHA-256) of the data content as the storage index key. The same content is always mapped to the same address, and it naturally supports deduplication, anti-tampering and distributed deployment.
[0137] 9. Thick Tools: A strategy that performs data filtering, extraction, and formatting at the tool layer, returning only refined data to the LLM (Large Language Model).
[0138] 10. Hooks: Custom scripts that are automatically executed during critical phases of the Agent loop to achieve deterministic flow control.
[0139] 11. Rules (Hierarchical Persistence Rules): The behavioral constraint instructions of the Agent are written once and continuously injected into the System Prompt, supporting multiple types of condition injection and multi-level configuration coverage.
[0140] 12. Prompt Cache: The LLM API (Application Programming Interface) reuses cached prompt fragments by precisely matching prefixes.
[0141] 13. Token: The basic unit for text processing in large language models.
[0142] 14. Context Window: The maximum number of tokens that an LLM can hold in a single processing session.
[0143] The task processing method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, the target agent 102 communicates with the controlling agent 101 and the task execution agent 103 via a network. Specifically, refer to... Figure 1 The master control agent 101 identifies a target agent 102 from the candidate agents that matches the task intent of the task to be processed, and sends the task to the target agent 102. The target agent 102 sends the first artifact reference corresponding to the subtask in the task to the task execution agent 103 corresponding to the subtask. Based on the first artifact reference, the task execution agent 103 locates the task data corresponding to the subtask, processes the task data, and returns the second artifact reference corresponding to the task processing result of the subtask to the target agent 102. Based on the second artifact reference returned by the target agent 102, the task processing result of the subtask is located, and the task processing result of the task to be processed is determined according to the task processing result of the subtask. Here, the master control agent 101, also called the master agent, refers to the agent used for top-level scheduling of tasks; the target agent 102 refers to the agent among the candidate agents that matches the task intent of the task to be processed; and the task execution agent 103 refers to the agent used for processing task data.
[0144] In one exemplary embodiment, such as Figure 2 As shown, a task processing method is provided, which is applied to Figure 1 Taking the main controlling agent in the system as an example, this embodiment of the method includes the following steps:
[0145] Step S201: From the candidate agents, identify the target agent that matches the task intent of the task to be processed.
[0146] Among them, candidate intelligent agents refer to intelligent agents with various special business processing capabilities, including aggregation intelligent agents, special intelligent agents, and exploratory intelligent agents.
[0147] Among them, the aggregated intelligent agent refers to an intelligent agent that has the ability to split tasks, schedule multiple subtasks, determine dependency conflicts, detect conflicts in the results of multiple subtasks, and fuse semantic arbitration.
[0148] Among them, specialized intelligent agents refer to intelligent agents that are good at processing task data and are good at analyzing a single business dimension.
[0149] Among them, the exploratory agent refers to the agent used to identify the analytical dimensions required for task processing.
[0150] Among them, pending tasks refer to business tasks that require analysis and processing.
[0151] The task intent is used to characterize the processing requirements information corresponding to the task to be processed, including analysis dimensions, business processing objectives, applicable data scope, and output constraints.
[0152] For example, the master control agent receives the task to be processed sent by the user terminal through the network path between the master control agent and the user terminal; then, it performs semantic parsing on the task to be processed to obtain the task intent of the task to be processed; then, it reads the preset agent registry to determine the candidate agents corresponding to the master control agent; then, it determines the matching degree between the candidate agents and the task intent of the task to be processed, and selects the candidate agent with the highest matching degree with the task intent of the task to be processed from the candidate agents as the target agent that matches the task intent of the task to be processed.
[0153] Step S202: Send the task to be processed to the target intelligent agent; The target intelligent agent sends the first workpiece reference corresponding to the subtask in the task to be processed to the task execution intelligent agent corresponding to the subtask, so that the task execution intelligent agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent.
[0154] Subtasks refer to the subdivided processing units obtained by breaking down the task to be processed according to business analysis dimensions and data processing boundaries.
[0155] The first artifact reference refers to the artifact reference corresponding to the subtask, including the content hash information, access control token, task identification information, storage address, and evidence chain metadata corresponding to the subtask.
[0156] The task data corresponding to the subtask refers to the original business data corresponding to the subtask.
[0157] The task processing results of subtasks refer to the detailed conclusions, diagnostic reports, and optimization schemes output after analyzing and reasoning about the subtasks.
[0158] The second artifact reference refers to the artifact reference corresponding to the task processing result of the subtask, including the content hash information, access control token, task identification information, storage address, and evidence chain metadata corresponding to the task processing result of the subtask.
[0159] For example, the master intelligent agent sends the task to be processed to the target intelligent agent through a network path. Then, if the target intelligent agent is an aggregation intelligent agent, it splits the task according to the business analysis dimension and data processing boundary corresponding to the task, obtaining subtasks within the task. Next, the target intelligent agent collects the metadata of the subtasks and encapsulates it to obtain a first artifact reference corresponding to the subtask. Then, the target intelligent agent determines the task execution intelligent agent corresponding to the subtask and sends the first artifact reference to the task execution intelligent agent through a network path. Finally, the task execution... The execution agent locates the task data corresponding to the subtask based on the first artifact reference. Then, the task execution agent obtains the task data corresponding to the subtask and performs integrity verification on the task data. If the integrity verification result of the task data corresponding to the subtask passes, the task data corresponding to the subtask is processed to obtain the task processing result of the subtask. Then, the task execution agent obtains the metadata of the task processing result of the subtask, encapsulates the metadata of the task processing result of the subtask, obtains the second artifact reference corresponding to the task processing result of the subtask, and returns the second artifact reference to the target agent through the network path between the two agents.
[0160] Step S203: Based on the second workpiece reference returned by the target agent, locate the task processing result of the subtask, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0161] The task processing result of the task to be processed is used to represent the comprehensive analysis conclusion of the task to be processed.
[0162] For example, the master control agent locates the task processing result of the subtask based on the second workpiece reference returned by the target agent; then, it performs integrity verification on the task processing result of the subtask; if the integrity verification result of the task processing result of the subtask passes, it integrates the task processing result of the subtask to obtain the task processing result of the task to be processed.
[0163] For example, see reference. Figure 3In the intelligent routing decision-making process, the user's input task intent is first parsed. LLM semantic understanding is used to process the input and extract key information, breaking it down into three categories: analysis scope, analysis depth, and output requirements. Then, the user-defined registered SubAgent registry is queried to obtain the description metadata of all SubAgents. Next, semantic matching is performed, matching the user intent with the SubAgent's description. After completion, the routing decision-making stage begins. The routing decision-making process has three branch paths: the first branch addresses the need for comprehensive reporting and multi-dimensional coverage, through global aggregation of SubAgents. The first branch executes a second-level scheduler, launching N user-defined, registered dimension-specific SubAgents in parallel. The second branch is for requests with a clearly defined single analysis dimension, which calls a user-defined, registered dimension-specific SubAgent. The third branch is for requests with an unclear analysis direction, which generates exploration results through a general exploration SubAgent, and then recommends dimension-specific analysis paths based on the exploration results, also calling dimension-specific SubAgents. The outputs of all dimension-specific SubAgents under the above three paths are uniformly summarized in the result aggregation stage. This stage reads data through artifact reference addressing and completes hash verification, while merging the entire chain of evidence to generate the final analysis report.
[0164] Among them, the multi-agent cooperative scheduling timing is as follows: Figure 4The diagram illustrates a complete collaborative workflow for a general data analysis. The "Dimension-Specific SubAgent" in the diagram is custom-registered by the user based on the actual analysis scenario (e.g., it can be freely defined by business domain, data type, analysis perspective, etc.), and is uniformly managed by the system using the same scheduling protocol. After a user submits a natural language request, "Analyze all data for this month and generate a complete report" (i.e., the task to be processed), the system first interacts with the primary agent. The primary agent loads the full supply (global basic configuration) configuration and incidents metadata of the Rules engine, injects the system prompt prefix (1500 tokens, 95% cache hit rate), completes intent parsing, and processes the data based on the full data and the complete report request. The primary agent loads the index of all skill calls (4000 tokens), retrieves the list of skill call capabilities, queries the subagent registry to obtain the list of registered subagents and the description metadata of each subagent, completes semantic matching, determines highly suitable subagent combinations, matches the global aggregate subagent through routing mode A, and passes it a list of subagents matching with artifact references (artifactReference). After receiving the global aggregate subagent, it loads the global reduce-level project-specific rules and injects the reduce function. The subagent context is loaded on demand, along with the analysis-func-casel (analysis function case library) sk library (5000 tokens). A multi-dimensional analysis process specification is generated, and a parallel execution phase is initiated. Each dimension subagent has an independent context and does not interfere with each other. Scheduling instructions carrying artifact references (artifactrefs) are sequentially issued to dimension-specific subagent-1 (user-defined), dimension-specific subagent-2 (user-defined), and dimension-specific subagent-N (user-defined). Dimension-specific subagent-1 loads dimension 1-specific rules, then executes step 1.2 to load the dimension-specific sk, opening an independent 5-8K tokens context to complete the analysis, writing the results to analysis-dim1.md (first dimension analysis report), and pushing a completion notification carrying artifactref, content_hash (content hash value), and proofance (source information) to the global aggregation subagent. Dimension-specific subagent-2 loads dimension 2-specific rules, executes step 1.2 to load the corresponding dimension-specific sk, opening an independent 5-8K tokens context for analysis, and writing the results to analysis-dim2.After the second dimension analysis report (md) is generated, a completion notification in the same format is pushed; the dimension-specific subagent-N loads the dimension-N-specific rules, executes step 1.2 to load the corresponding dimension-specific sk, allocates an independent 5-8K tokens context for analysis, writes it to analysis-dim-N.md (the Nth dimension analysis report), and then pushes a completion notification in the same format; after receiving the completion notifications from all dimension-specific subagents, the global aggregation subagent reads all subagent output artifacts based on the content_hash in each notification through ContentAddressable Storage (CAS) to complete the ACL (Access Control List). List (permission verification rules) verification and hash integrity verification are performed, summarizing all dimension analysis content (ensuring 100% completeness and tamper-proof verification pass), cross-dimensional correlation analysis of common issues and extraction of key information are conducted, and written to Final-Report.html (final comprehensive analysis report). The structured analysis report is then sent back to the primary agent, and finally returned to the user, completing the entire report generation process. The interactive participants throughout the process include the user, the primary agent, the Rules engine, the subagent registry, the global aggregation subagent, user-defined dimension-specific subagents-1 / 2 / N, content addressing storage (CAS), and the sk skill library.
[0165] It should be noted that the proposed solution is applied to data analysis and report generation products, targeting product managers, data analysts, operations personnel, and other roles within enterprises, providing intelligent data analysis capabilities based on AI agents.
[0166] This solution can be implemented as a standalone data analytics platform, such as a web application, or embedded as a capability module into existing enterprise-level toolchains (such as IDE (Integrated Development Environment) plugins, BI (Business Intelligence) platform extensions, and internal enterprise tool platforms). Its core features are: users describe their analytical needs in natural language, the system automatically completes the entire process from data preprocessing to structured report generation through multi-agent collaboration, and continuously accumulates analytical capabilities through a knowledge accumulation mechanism. Core application scenarios are shown in the table below:
[0167] Table 1 Core Application Scenarios
[0168]
[0169] Traditional BI tools require users to have SQL or data modeling skills, while rule script solutions require users to have programming skills. This solution lowers the barrier to data analysis to "being able to analyze as long as you can describe your needs" through natural language interaction, while ensuring that the depth of analysis is no less than that of professional analysts through multi-agent collaboration.
[0170] This solution provides the following five core functions on the product side:
[0171] Function 1: Natural Language-Driven Data Analysis
[0172] Users can trigger a complete data analysis process simply by describing their analysis needs in natural language, without writing code or SQL. The system supports three input methods:
[0173] 1. Natural language input: such as "Analyze user feedback data this month and generate a complete report".
[0174] 2. Preset command trigger: such as " / analyzedata / --full-report".
[0175] 3. Specify the Agent to call directly: such as "@Performance Problem Analysis analyzes the latest performance feedback".
[0176] like Figure 5 As shown, after the user enters their requirements in the dialog box, the system automatically identifies the intent, matches the skill set, and dispatches the corresponding Agent combination to perform analysis. The dialog area provides real-time feedback on the task breakdown plan and execution progress.
[0177] Function 2: Multi-dimensional parallel analysis and real-time status monitoring:
[0178] The system automatically breaks down complex analysis tasks into multiple dimensions, with multiple specialized SubAgents performing in-depth analysis in parallel. For example... Figure 6 As shown, users can view the information in real time:
[0179] 1. Perform a complete analysis of the current progress of the pipeline (intent resolution, skill loading, thick tool preprocessing, parallel analysis, result aggregation, report generation, quality verification, and knowledge accumulation).
[0180] 2. The parallel execution status of each SubAgent, the consumption of independent context tokens (5-8K tokens), and the output files.
[0181] 3. Hooks: Deterministic control trigger status and execution records.
[0182] 4. Tiered Token Consumption Statistics (L1 metadata / L2 core instructions / L3 resource layer consumption details).
[0183] Feature 3: Zero-code custom analysis capability:
[0184] Users can customize analysis dimensions and analysis knowledge according to their own business scenarios through declarative configuration files without writing any system code.
[0185] 1. Custom SubAgent: such as Figure 7 As shown, users register new analytics dimensions by creating a .md (Markdown, a lightweight markup language) configuration file. The configuration file includes a name, description (for intelligent routing semantic matching), authorized toolset (based on the principle of least privilege), and bound Skill references. The right-hand panel provides a real-time preview of the configuration file content and supports YAML (YAML is not Markup Language, a structured data serialization format) syntax highlighting.
[0186] 2. Custom Skills: such as Figure 8 As shown, users can create new analytics skill packs, defining domain-specific analytics frameworks, output specifications, and evaluation metrics. Skill skeletons can be generated with a single click using built-in templates.
[0187] Function 4: Structured report generation and multi-format export:
[0188] After the analysis is completed, the system automatically generates a structured data insight report. For example... Figure 9 As shown:
[0189] 1. The report consists of seven standard chapters: Executive Summary, Data Overview, In-depth Analysis of Core Issues, Cross-category Commonality Analysis, Governance Plan and Roadmap, Implementation Priority Matrix, and Appendix.
[0190] 2. The top supports exporting in three formats: HTML (HyperText Markup Language) (including visualization charts and interactive displays), Markdown (lightweight markup language) (suitable for version management), and JSON (JavaScript Object Notation) (suitable for downstream system consumption).
[0191] 3. The right panel displays the results of four layers of quality checks (template integrity, specification compliance, checklist item verification, and Hooks security scan) and data traceability information.
[0192] Function 5: Automatic knowledge accumulation and closed-loop reuse:
[0193] After each analysis, the system automatically extracts reusable analysis patterns and experiences, generating skill knowledge base update suggestions. For example... Figure 10 As shown:
[0194] 1. Display the Skill update suggestions automatically extracted by the stop Hook (intercept callback hook) in Diff (Difference) format, and mark the source task and the identified pattern type.
[0195] 2. Users can perform three auditing operations: "Confirm Merge" (automatically write to Git (distributed version control system) version management), "Merge After Modification" (write after manual adjustment), or "Reject" (do not merge, record the reason).
[0196] 3. The bottom displays historical knowledge accumulation records, helping users track the growth trajectory of the Skill knowledge base and achieve a positive cycle of "analysis execution, experience accumulation, knowledge reuse, and better analysis".
[0197] The typical user operation flow of this solution includes six steps, and the correspondence between each step and the product interface is as follows: Figure 11 As shown.
[0198] Step 1: Initiate the analysis task:
[0199] Users open the main interface of the analytics workbench and describe their analysis needs in natural language through the dialog input box. The interface adopts a conversational interaction paradigm: the left navigation bar displays the entry points for functional modules and a list of historical analysis records; the middle is the dialogue area, where the main control agent provides feedback on the task breakdown plan (including Skill matching results, thick tool preprocessing progress, and SubAgent scheduling plan) in the form of message bubbles after the user enters their needs; the right side is a real-time execution status panel, which displays the independent context token usage, execution progress, and loaded Skill list of each SubAgent in card format.
[0200] Operation method: User input → Main Agent response (displaying intent recognition results and task breakdown scheme) → Real-time updates of the execution status of each SubAgent in the right panel → After the analysis is completed, the dialog area will prompt that the report has been generated.
[0201] Step 2, (optional) Configure analysis dimensions:
[0202] When users need to perform analysis on new dimensions, they enter the SubAgent management interface. The left side of the interface displays all registered SubAgents in a card grid format (distinguished between "System Built-in" and "User Custom" labels). Each card displays its name, description (the core basis for intelligent routing semantic matching), list of authorized tools (reflecting the principle of least privilege), and bound Skill references. The right panel is a real-time preview area for configuration files, displaying the complete content of YAML pre-metadata and Markdown system suggestions, supporting syntax highlighting.
[0203] Operation method: The user clicks the "Register New SubAgent" button → The system creates a new .md configuration file → The user fills in the fields such as name, description, tools, skills, etc., and the system prompt text in the editor → After saving, the system automatically scans and registers, and the new SubAgent is immediately available.
[0204] Step 3, (optional) Management and analysis skills:
[0205] When users need to define new domain analysis methodologies, they enter the Skill library management interface. The interface uses tabs to distinguish three views: "All," "Built-in," and "Custom." A card grid displays each Skill's icon, name, description, type label, L1 Token consumption, and associated resource directories (scripts / , references / , templates / ). A top information bar explains the three-tier progressive loading mechanism, helping users understand the loading timing and Token consumption of each L1 / L2 / L3 level.
[0206] Operation method: The user clicks "Create using template" → The system automatically generates the SKILL.md (skill configuration document) skeleton of the new skill based on the skill-creator template → The user fills in the analysis framework and output specifications → Optionally, preprocessing scripts and report templates are placed in the corresponding resource directory → After saving, the system automatically adds it to the skill library.
[0207] Step 4: Monitor the execution progress:
[0208] During task execution, users can view the complete 8-step pipeline progress on the execution monitoring interface. The interface is divided into three areas from top to bottom:
[0209] Pipeline progress bar: Visually displays the 8 stages from "intent parsing" to "knowledge accumulation" in a linear chain of steps. Completed steps are marked with a green checkmark, the currently executing step is marked with a blue pulse animation, and steps to be executed are marked with a gray placeholder.
[0210] SubAgent Parallel State Area: Displays each parallel-executing SubAgent in a grid of cards, including its name, independent context token consumption (5-8K tokens), execution time, and output file path, intuitively demonstrating the "context isolation" mechanism.
[0211] Auxiliary information area: The right side displays the Hooks execution record (the triggering and result of beforeShellExec (callback logic before command execution) → afterShellExec (callback logic after command execution) → afterFileEdit (callback logic after file modification) → stop (stop)) and the hierarchical token consumption statistics (details of each level of L1 / L2 / L3, where L3 level displays "0 (disk read)").
[0212] Step 5, View and export the report:
[0213] After the analysis is complete, users can view the generated structured report in the report viewing interface. The interface is divided into two columns: left and right.
[0214] The left-hand report body area displays the report title and metadata (generation time, data volume, number of parallel agents, total time) at the top, and chapter tabs below (execution summary, data overview, in-depth analysis, common issues, governance solutions, appendix). The body area displays the content of the corresponding chapter, including statistical cards, visualization chart placeholders, and structured text.
[0215] The quality panel on the right displays the results of each of the four layers of quality assurance checks (template structure integrity, specification compliance, checklist verification items, and Hooks security scan results), as well as data traceability information (original data file path and preprocessing script version number).
[0216] The top export button area supports one-click export of HTML / Markdown / JSON formats.
[0217] Step Six: Review the accumulated knowledge:
[0218] After the analysis is complete, the system automatically triggers the stop hook to extract reusable modes. The knowledge accumulation review interface displays Skill update suggestions in Diff format. Each suggestion includes: the target Skill file path, the source task number, the extraction time, the specific Diff content (new rows are highlighted in green, deleted rows are highlighted in red), and a description of the identified pattern type.
[0219] Users can perform three actions on each suggestion:
[0220] 1. Confirm merge: The suggested content will be automatically written to the corresponding Skill file and version controlled via Git.
[0221] 2. Merge after modification: Users can adjust the Diff content in the editor before writing it in.
[0222] 3. Reject: Do not merge, record the reason for rejection for future reference.
[0223] The bottom displays a list of historical knowledge accumulation records, including merged and rejected suggestions, helping users track the growth trajectory of the Skill knowledge base.
[0224] This system deployment solution adopts a standard B / S (Browser / Server) architecture, supporting both cloud and on-premises deployment modes. Hardware requirements are shown in the table below:
[0225] Table 2 Core Application Scenarios
[0226]
[0227] like Figure 12The diagram shows the system deployment topology. The system is divided into five main modules: client layer, application server, LLM inference service, storage layer, and MCP extension layer (optional). The client layer includes three access points: web browser, command-line interface (CLI) tool, and optional integrated IDE plugin. All three access points connect to the application server via HTTPS (Hypertext Transfer Protocol Secure) / WSS (WebSocket Secure) protocols. The application server internally hosts a web front-end service (SPA (Single Page Application). Traffic from the web front-end service, command-line terminal, and IDE plugin is all aggregated via HTTPS / WSS to the API gateway (REST (Representational State)). Transfer (representational state transfer) / WebSocket (a two-way long-connection communication protocol for web pages)), the API gateway connects downwards to the Agent core engine. The Agent core engine, from top to bottom, includes the Agent scheduling engine (responsible for intent parsing and intelligent routing), the Agent runtime (implementing SubAgent instantiation, context isolation, and parallel scheduling), the Rules engine (equipped with layered persistence rules, supporting four injection types and caching optimization), the Skill manager (using L1 / L2 / L3 three-level progressive loading), and the Hooks execution engine (used for deterministic script triggering). The Agent core engine has three external pathways. The first pathway is the LLM API call, which connects to the LLM inference service. The LLM inference service includes locally deployed LLM for private scenarios and cloud-based LLM. The API; the second pathway connects to the storage layer via artifact reference passing. The storage layer consists of three layers: Content-AddressedStorage (stores raw data, intermediate artifact results and reports, using SHA-256 hash index), configuration storage (stores SubAgent definitions and Skill packages), and log storage (retains audit logs and execution records); the third pathway connects to the optional MCP extension layer via the MCP standard protocol. The MCP extension layer contains an MCP Gateway, a database server, and an external API server, forming a complete layered agent business processing architecture.
[0228] The front-end adopts a single-page application (SPA) architecture, implemented based on a modern web framework. The core interface includes six functional modules: analysis workbench, SubAgent management, Skill library management, execution monitoring, report viewing, and knowledge accumulation review. The front-end and back-end interact via a REST API, and real-time status updates for analysis tasks are achieved through WebSocket long connections, ensuring users can monitor the parallel execution progress of SubAgents and the triggering status of Hooks in real time. The core back-end components are shown in the table below:
[0229] Table 3 Backend Core Components
[0230]
[0231] This solution proposes a data analysis, processing, and report generation system based on multi-agent collaboration. The overall architecture consists of four layers: user interaction layer, agent scheduling layer, rule and skill layer, and data processing layer. For example... Figure 13The diagram shows the overall four-layer architecture of the system. From top to bottom, the system is divided into four main layers: Agent scheduling layer, rule and performance layer, Skills library (domain module), and data processing layer. The topmost Agent scheduling layer's user interaction layer supports three input methods: natural language input "Analyze this month's data", preset command trigger / analyze (analysis), and direct invocation of the SubAgent name by specifying the Agent. All requests from the user interaction layer are uniformly sent to the primary Agent. The main agent performs intent recognition and intelligent routing before entering the routing decision engine. The routing decision engine branches into three execution branches. The first branch queries registered SubAgents and retrieves the SubAgent registry, which stores user-defined declarative configurations and supports dynamic expansion. This branch further splits into two paths: dimension-specific and global analysis. Global analysis is handled by the global aggregation SubAgent, which performs secondary scheduling and distributes tasks to multiple dimension-specific intelligent agents (SubAgent-N). Dimension-specific analysis directly calls multiple dimension-specific intelligent agents (SubAgent-N). Exploratory analysis is processed by a general exploration SubAgent, which, after completing its exploration, also flows to the dimension-specific SubAgent-N. The rules and performance layer incorporates a layered persistent rules engine, including always-injected global behavior rules, intelligent matching domain-specific rules, and path-triggered / manual condition-based rules generated on demand. The system employs three types of rules, with the rule engine injecting behavioral constraints onto the main control agent, global aggregation sub-agent, dimension-specific sub-agents-N, and general exploration sub-agents, respectively. The Skills library (domain module) is divided into a user-defined Skills cluster on the left and a built-in Skills cluster on the right. User-defined Skills include domain knowledge Skills, data preprocessing Skills, and multiple custom skills (Skill-N). Built-in Skills include analysis framework Skills, report template Skills, and output strategy Skills. All Skills provide business processing capabilities to each sub-agent. The bottom data processing layer comprises two main modules: data preprocessing and result persistence. The data preprocessing module standardizes data formats, filters and refines JSON using thick tools, and includes deterministic Hooks. Hooks are divided into beforeExec (before Execute, pre-execution verification) security gating and afterExec (after Execute, post-execution verification) format verification. The result persistence module is responsible for report rendering and stop knowledge accumulation. The data processing layer provides all skills in the upper layer with data processing, result storage, and process hook control capabilities.
[0232] This solution adopts a "one master, multiple slaves" agent hierarchy architecture. The system pre-sets three general role types (master control agent, global aggregation sub-agent, and general exploration sub-agent), and also supports users to customize and register any number of dimension-specific sub-agents according to the actual analysis scenario, so as to realize the elastic expansion of analysis capabilities, as shown in the table below.
[0233] Table 4. Introduction of each Agent
[0234]
[0235] Among these features, the SubAgent for specific dimensions is the core embodiment of the system's scalability. Users can register new analytical dimensions without modifying any system code, simply through a declarative configuration file. For example, in user feedback analysis scenarios, dimensions such as "functional experience analysis" and "performance issue analysis" can be registered; in financial risk control scenarios, dimensions such as "transaction anomaly analysis" and "compliance audit analysis" can be registered.
[0236] Each SubAgent is declaratively configured via a Markdown file, including YAML pre-existing metadata and natural language system prompts. The system automatically discovers and registers all SubAgent definition files by scanning the configuration directory. Users can add a new .md configuration file to complete the launch of a new analysis dimension, achieving zero-code expansion.
[0237] The core scalability of this solution lies in SubAgent's declarative configuration and dynamic registration mechanism. Users do not need to write any scheduling code; they can define new analysis dimensions simply through standardized Markdown configuration files, which the system automatically scans, parses, and registers upon startup.
[0238] Configuration file specifications: Each SubAgent corresponds to a separate .md file, stored in a pre-defined configuration directory (e.g., agents / ). The file structure follows a unified declarative protocol, as shown in the table below.
[0239] Table 5 Configuration Files
[0240]
[0241] like Figure 14The diagram shows the flowchart of SubAgent declarative configuration and dynamic registration. The root directory of the system configuration is agents / , which contains configuration files such as dim-a.md (dimension A analysis agent), dim-b.md (dimension B analysis agent), and dim-c.md (dimension C analysis agent). Users can add files as needed, and adding any .md file will automatically complete the SubAgent registration. When the system starts, it will automatically scan the agents / configuration directory, read all .md files, and parse the YAML pre-metadata and Markdown system prompts. After parsing, the parsed data will be populated into the SubAgent registry. The SubAgent registry contains two main modules: one is the description semantic index... The first function provides a matching data source for the routing decision engine. The second function is to record the corresponding associations of sub-agent names, descriptions, tools, and business skills through a mapping table of "name→description→tools→skills". The runtime scheduling module on the left works as follows: the master agent executes the routing decision, retrieves the description in the SubAgent registry to complete semantic matching, and after matching the corresponding sub-agent entry, instantiates the SubAgent as needed, injects an independent context window into it, and loads the Skills declared in the configuration. The entire process realizes the automatic registration, retrieval, instantiation, and scheduling of lightweight sub-agents based on file configuration.
[0242] It's important to note that the master agent uses LLM semantic understanding to match user intent with the description fields of each sub-agent. This means that newly registered sub-agents do not require any routing rules to be added to the master agent; as long as the description semantics are clear, the master agent can automatically identify and schedule them. Each sub-agent's `tools` field explicitly declares its available toolset, following the principle of least privilege. The skill set declared in the `skills` field is automatically injected into the context through a loading mechanism when the sub-agent is instantiated, ensuring that the sub-agent possesses the necessary domain knowledge and analytical methodologies before analysis begins. The system supports both project-level and user-level configurations, with project-level configurations taking precedence over user-level configurations. Sub-agents with the same name are defined at the project level. This allows different data analysis projects to have their own dedicated sets of sub-agents.
[0243] Among them, the intelligent routing of the master agent is based on the sub-agent registry, and the process is as follows: Figure 3 As shown:
[0244] Step 1: Intent Resolution. The master agent receives user input (natural language description, preset commands, or directly specified agent), identifies the user's analysis intent through LLM semantic understanding capabilities, and extracts key information: analysis scope (full volume / specified file), analysis depth (overview / depth), and output requirements (format / granularity).
[0245] Step Two: Type Matching. The parsed results are semantically matched against the description field of the registered SubAgents, selecting the most suitable SubAgent combination. The matching strategy supports three modes:
[0246] 1. Mode A (Global Aggregation): When a user needs a comprehensive report, the system routes to the global aggregation SubAgent, which then schedules multiple dimension-specific SubAgents and aggregates the results.
[0247] 2. Mode B (Dimension-Specific): When the user specifies the analysis dimension, the system directly routes to the corresponding dimension-specific SubAgent (which is user-defined and registered).
[0248] 3. Mode C (Exploratory Analysis): When the user has not specified the direction of analysis, the system first routes to the general exploration SubAgent for data feature identification, and then recommends a dimension-specific analysis path based on the exploration results.
[0249] Step 3: Scheduling and Execution. The analysis task is distributed to the selected SubAgents. Before scheduling and execution, the master agent performs task planning and decomposition steps, parsing the complex analysis task proposed by the user into multiple subtasks with clearly defined inputs, outputs, and acceptance conditions. Each subtask includes at least a subtask identifier, analysis objective, input artifact reference, expected output format, candidate SubAgent, prerequisite dependencies, and quality checks. Based on the description, tools, and skills fields in the SubAgent registry and the current task intent, the master agent determines the SubAgent corresponding to each subtask and distributes the artifact reference (not the full data) of that subtask to the corresponding SubAgent for execution. It then transmits the data artifact reference (Artifact Reference, containing content hash and access control token, not the full data) and initiates parallel analysis. The artifact reference is a lightweight structured object bound to the subtask and may include fields such as artifactId, taskId, subTaskId, producerAgent, contentHash, storageURI, mimeType, schemaVersion, accessToken, and evidenceChain. The `contentHash` is calculated by the thick tool or SubAgent using a SHA-256 hash to digest the normalized artifact byte stream. The `storageURI` is generated by the content-addressed storage layer based on this hash, for example, by fragmenting the data into object storage addresses using hash prefixes. The `accessToken` is generated by the governance plane based on the task number, SubAgent identity, read / write permission scope, and validity period, and uses a signature mechanism to prevent forgery. The `evidenceChain` records the original data hash, upstream artifact reference, processing tool name and version, Skill version, processing parameters, timestamp, and generator identity. When a downstream SubAgent reads an artifact, it first verifies the token permissions, then retrieves the content by the URI and recalculates the hash. Only when the hashes match is entry into the context window allowed. This ensures the integrity, permission isolation, and traceability of subtask inputs and outputs without transmitting the full text.
[0250] Step 4: Result Aggregation. Collect the artifact references of the analysis results generated by each SubAgent (read and verify integrity through content hash addressing), integrate them into the final analysis report, and merge the evidence chains of each SubAgent to form a complete analysis traceability record.
[0251] Traditional single-agent models, when handling complex analytical tasks, accumulate all analytical rules, data context, and intermediate results within a single context window. Research shows that when the number of tokens in the context window exceeds 25K, the model's ability to accurately recall information significantly decreases. This solution addresses this issue through the following mechanism:
[0252] 1. Independent Context Window: Each SubAgent maintains an independent context window (5K-8K tokens), containing only information relevant to the current analysis subtask to avoid interference from irrelevant information. Each SubAgent does not process the entire task text, but rather processes it based on its own role configuration, the assigned subtask description, the matched Skill core instructions, and the authorized artifact references. Its context window only injects the necessary objectives, constraints, evidence fragments, and output templates for that subtask, and the scope of tool calls is limited by the `tools` field in the SubAgent configuration, allowing different SubAgents to specialize in processing corresponding subtasks within complex analysis tasks according to their own rules. For example... Figure 15As shown in the diagram, the top and bottom sides compare the context isolation architecture of this solution with the traditional single-agent architecture. The light green box on the left represents the context isolation architecture of this solution. The top layer is the master agent responsible for routing and aggregation. The master agent connects to four types of sub-agents: dimension-specific SubAgent-N independent context, dimension-specific SubAgent-1 independent context, dimension-specific SubAgent-2 independent context, and dimension-specific SubAgent-3 independent context. The dimension-specific SubAgent-N independent context performs dimension N analysis, loading only 5K tokens with content containing only dimension N-related information. The dimension-specific SubAgent-1 independent context performs dimension 1 analysis, loading only 5K tokens with content containing only dimension 1-related information. The dimension-specific SubAgent-2 independent context performs dimension 2 analysis, loading only 6K tokens with content containing only dimension 2-related information. The dimension-specific SubAgent-3 independent context performs dimension 3 analysis, loading only 5K tokens. The tokens contain only information related to dimension 3. The light red box on the right represents the traditional single-agent architecture, with a single agent at the top level, connecting to a unified context window. This window has a capacity of 25K-50K or more tokens. The unified context window simultaneously carries rule A (3K tokens), rule B (3K tokens), rule C (2K tokens), data context (10K tokens), intermediate results (8K tokens), and domain knowledge (N*3K tokens), which can lead to attention dilution, decreased accuracy, and performance loss. The comparison between the two architectures can intuitively demonstrate the advantages of the context isolation architecture in splitting independent contexts, compressing the single-round token load, and avoiding interference between multi-dimensional information.
[0253] 2. Content-Addressed Artifact Reference Pass-by-Reference Communication Protocol: Communication between SubAgents adopts a three-plane architecture—the control plane passes lightweight artifact references (consuming <200 tokens), the data plane reads the complete content by hash index through a content-addressed storage layer, and the governance plane maintains access control policies and evidence chain records. Compared to the traditional "value-passing" model (injecting the full text of the previous step's output into the next step's context), artifact reference passing saves over 90% of tokens, while ensuring 100% information fidelity and zero semantic drift. Simultaneously, it addresses data integrity, access security, and traceability issues in distributed scenarios from an architectural perspective. Figure 16As shown in the diagram, the top and bottom sides compare the artifact reference passing mode (green border on the left) and the traditional value passing mode (red border on the right), respectively. In the artifact reference passing mode on the left, after SubAgent-A generates 8K tokens, it only passes an ArtifactRef artifact reference containing less than 200 tokens, including hash, ACL, and proofance, to SubAgent-B, whose context is only 6K. SubAgent-B then passes the same lightweight artifact reference to SubAgent-C, whose context is only 5K. At the same time, SubAgent-A writes the complete result to content-addressed storage using SHA-256 hash indexing. Storage, carrying hash:sha256:a3f2b58c… and uri:cas: / / artifacts / a3f2… identifiers), both SubAgent-B and SubAgent-C read the storage content via hash addressing. During reading, integrity verification and access control verification are automatically performed, achieving 100% fidelity and tamper-proof protection. The entire system achieves zero information loss and saves 90% of tokens, possessing advantages such as SHA-256 tamper-proof verification, fine-grained access control, complete evidence chain traceability, and automatic evidence chain extension. On the right, under the traditional pass-by-value mode, SubAgent-A generates 8K… The tokens result is then completely copied and injected into SubAgent-B, injecting 8000 tokens of text, causing semantic drift and expanding SubAgent-B's context to 16K. SubAgent-B then repeatedly injects the full text into SubAgent-C, further expanding SubAgent-C's context to 24K. Ultimately, this results in continuous context expansion, lack of integrity verification, lack of access control, and lack of traceability. The artifact reference passing mode of this solution intuitively demonstrates that the artifact reference passing mode significantly reduces the context token occupation, which is conducive to ensuring data security and trustworthiness.
[0254] In the above task processing method, the master intelligent agent determines the target intelligent agent that matches the task intent of the task to be processed from the candidate intelligent agents; the task to be processed is sent to the target intelligent agent; the target intelligent agent sends the first artifact reference corresponding to the subtask in the task to the task execution intelligent agent corresponding to the subtask, so that the task execution intelligent agent locates the task data corresponding to the subtask based on the first artifact reference, processes the task data, and returns the second artifact reference corresponding to the task processing result of the subtask to the target intelligent agent; based on the second artifact reference returned by the target intelligent agent, the task processing result of the subtask is located, and the task processing result of the task to be processed is determined according to the task processing result of the subtask. In this way, during task processing, the master control agent first filters target agents that match the intent of the task to be processed. Then, the target agents decompose the task, passing only the first workpiece references corresponding to the sub-tasks. Each task execution agent can locate and process the task data corresponding to the sub-tasks based on the first workpiece references, and only returns the second workpiece references corresponding to the task processing results. Finally, the master control agent retrieves the corresponding task processing results based on the second workpiece references, thus obtaining the complete task processing result. The entire process involves the master control agent, target agents, and task execution agents jointly processing the task, avoiding the single-point computing power bottleneck that exists in traditional technologies where a single agent processes the task independently, resulting in long processing times. This is beneficial for improving task processing efficiency.
[0255] In an exemplary embodiment, step S201 above, which determines the target intelligent agent that matches the task intent of the task to be processed from the candidate intelligent agents, specifically includes the following: obtaining the intelligent agent field of the candidate intelligent agent; the intelligent agent field is used to characterize the functional description information of the candidate intelligent agent; semantically matching the intelligent agent field with the task intent of the task to be processed to obtain the matching degree between the candidate intelligent agent and the task intent; and determining the candidate intelligent agent with the highest matching degree with the task intent from all candidate intelligent agents as the target intelligent agent.
[0256] The functional description information is used to represent the business scenarios that the candidate intelligent agent is adapted to, the analysis dimensions it can handle, the special processing capabilities it possesses, the applicable data range and the boundaries of its output capabilities.
[0257] The matching degree is used to represent the degree of fit between the candidate agent and the task intent.
[0258] For example, the master agent obtains the configuration file of the candidate agents and inputs the configuration file into the trained information extraction model. Through the trained information extraction model, the functional description information of the candidate agents is extracted from the configuration file as the agent field of the candidate agent. Then, the agent field and the task intent of the task to be processed are respectively input into the feature extraction model for feature extraction processing to obtain the first feature vector of the agent field and the second feature vector of the task intent. Then, the first feature vector and the second feature vector are input into the similarity prediction model to obtain the similarity between the first feature vector and the second feature vector, which is used as the matching degree between the candidate agent and the task intent. Finally, from all the candidate agents, the candidate agent with the highest matching degree with the task intent is determined and the candidate agent is used as the target agent.
[0259] In this embodiment, by semantically matching the agent field of the candidate agent with the task intent of the task to be processed, and then selecting the candidate agent with the highest matching degree as the target agent, it is possible to accurately identify the agent that is suitable for the current business requirements, avoid the problem of operational deviation caused by manual selection of agents, and improve the overall task processing efficiency and the accuracy of analysis results.
[0260] In an exemplary embodiment, step S203, which determines the task processing result of the task to be processed based on the task processing result of the subtask, specifically includes the following: performing conflict detection on the task processing results of the subtasks to obtain conflict detection results corresponding to the task processing results of the subtasks; when the conflict detection results indicate that there are no conflicts between the task processing results of the subtasks, performing aggregation processing on the task processing results of the subtasks to obtain the task processing result of the task to be processed; when the conflict detection results indicate that there are conflicts between the task processing results of the subtasks, determining the conflict type between the task processing results of the subtasks; and determining the task processing result of the task to be processed based on the conflict type.
[0261] The conflict detection result refers to the conflict determination information output after cross-validating the task processing results of the subtasks, including whether there is a conflict or not.
[0262] Among them, the conflict type refers to the conflict classification corresponding to the task processing result of the subtask.
[0263] For example, the master control agent cross-compares the task processing results of subtasks by calling an AST syntax comparison tool to obtain a first conflict detection result corresponding to the task processing results of subtasks; simultaneously, it cross-compares the task processing results of subtasks by calling a Diff difference verification tool to obtain a second conflict detection result corresponding to the task processing results of subtasks; then, it merges the first and second conflict detection results to obtain a conflict detection result corresponding to the task processing results of subtasks; if the conflict detection results indicate that there are no conflicts between the task processing results of subtasks, it aggregates the task processing results of subtasks according to a preset aggregation rule to obtain the task processing result of the task to be processed; if the conflict detection results indicate that there are conflicts between the task processing results of subtasks, it queries the correspondence between the data difference characteristics and the conflict type based on the data difference characteristics between the task processing results of subtasks to obtain the conflict type between the task processing results of subtasks; then, it determines the task processing result of the task to be processed based on the conflict type.
[0264] In this embodiment, by uniformly performing conflict detection on the task processing results of sub-tasks and generating conflict detection results, contradictions between processing results can be identified in advance, avoiding the decrease in the credibility of the final processing result caused by directly splicing together contradictory conclusions. At the same time, the conflict identification and classification are completed automatically, eliminating the need for manual verification of the processing results of multiple sub-tasks one by one, and greatly reducing the cost of manual verification.
[0265] In an exemplary embodiment, the task processing result of the task to be processed is determined according to the conflict type, specifically including the following: if the conflict type belongs to the first conflict type, the task processing result of the task to be processed is generated based on the task processing result of the subtask; if the conflict type belongs to the second conflict type, the conflict diagnosis result corresponding to the task to be processed is generated based on the task processing result of the subtask; based on the conflict diagnosis result, the task processing results of the subtask that have conflicts are updated to obtain the updated task processing result of the subtask; the updated task processing result is aggregated with other task processing results to obtain the task processing result of the task to be processed; other task processing results are used to represent the task processing results of the subtask other than the task processing results that have conflicts.
[0266] The first conflict type is used to represent conflict types that can be reconstructed to be compatible (such as two agents adding different verification logic to the same function).
[0267] The second conflict type is used to represent irreconcilable business logic conflicts.
[0268] Among them, the conflict diagnosis results are used to guide the task execution agent to re-execute the standardized document of task data analysis, including information such as the conflict node identifier corresponding to the task to be processed, the reference of the involved artifacts, the conclusions of each party, the source of evidence, the priority of the applicable rules, and the expected resolution goal.
[0269] The updated task processing result is based on the conflict diagnosis result, and is obtained by updating the task processing results of subtasks that have conflicts.
[0270] For example, when the conflict type is the first type, the master control agent performs semantic fusion processing on the subtask's processing result based on the context corresponding to the subtask's processing result to obtain the processing result of the task to be processed. When the conflict type is the second type, the master control agent generates a conflict diagnosis result for the task to be processed based on the conflict information between the subtask's processing results (such as conflict index values, contradictory judgment opinions, etc.) and sends the conflict diagnosis result to the task execution agent. Based on the conflict diagnosis result, the task execution agent processes the task data corresponding to the subtask again and returns the updated processing result of the subtask. Then, the master control agent performs conflict detection again on the updated processing result and other processing results. If the conflict detection result indicates that there is no conflict between the updated processing result and other processing results, the master control agent aggregates the updated processing result and other processing results according to a preset aggregation rule to obtain the processing result of the task to be processed. Other processing results are used to represent the processing results of the subtasks other than the processing results of the conflicting subtasks.
[0271] In this embodiment, by setting different task processing logic for the two types of conflicts, the problem of logical confusion in the final report caused by directly splicing contradictory conclusions is avoided. Moreover, there is no need for manual location of conflicts and writing of correction instructions, so the conflict diagnosis, iterative correction and result summary are completed automatically, which helps to ensure the efficiency of task processing result generation.
[0272] In one exemplary embodiment, such as Figure 17 As shown, this application also provides another task processing method, which can be applied to... Figure 1 Taking the target intelligent agent as an example, the specific steps include the following:
[0273] Step S1701: Receive the task to be processed sent by the master intelligent agent; the master intelligent agent is used to determine the target intelligent agent that matches the task intent of the task to be processed from the candidate intelligent agents, and the target intelligent agent is the aggregate intelligent agent.
[0274] Step S1702: Send the first artifact reference corresponding to the subtask in the task to be processed to the task execution agent corresponding to the subtask, so that the task execution agent can locate the task data corresponding to the subtask based on the first artifact reference, process the task data, and obtain the task processing result of the subtask.
[0275] Step S1703: Receive the second artifact reference corresponding to the task processing result returned by the task execution agent, and return the second artifact reference to the main control agent; the main control agent is also used to locate the task processing result of the subtask based on the second artifact reference, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0276] For example, the master control agent receives the task to be processed sent by the user terminal through a network path between the master control agent and the user terminal; then, it performs semantic parsing on the task to be processed to obtain the task intent; then, it reads a preset agent registry to determine the candidate agents corresponding to the master control agent; next, it determines the matching degree between the candidate agents and the task intent of the task to be processed, and selects the candidate agent with the highest matching degree from the candidate agents as the target agent matching the task intent; the master control agent sends the task to be processed to the target agent through a network path between the master control agent and the target agent; then, if the target agent is an aggregation agent, the target agent splits the task to be processed according to the business analysis dimension and data processing boundary corresponding to the task to be processed to obtain sub-tasks in the task to be processed; then, the target agent collects the metadata of the sub-tasks and encapsulates the metadata of the sub-tasks to obtain the first artifact reference corresponding to the sub-task; then, the target agent determines the task execution agent corresponding to the sub-task and, through communication with... The network pathway between task execution agents sends a first artifact reference to the task execution agent. Then, based on the first artifact reference, the task execution agent locates the task data corresponding to the subtask. Next, the task execution agent obtains the task data corresponding to the subtask and performs integrity verification on it. If the integrity verification result is successful, the task data is processed to obtain the task processing result of the subtask. Then, the task execution agent obtains the metadata of the task processing result of the subtask, encapsulates the metadata to obtain a second artifact reference corresponding to the task processing result of the subtask, and returns the second artifact reference to the target agent through the network pathway. Based on the second artifact reference returned by the target agent, the master agent locates the task processing result of the subtask. Next, it performs integrity verification on the task processing result of the subtask. If the integrity verification result of the subtask's task processing result is successful, the task processing result of the subtask is integrated to obtain the task processing result of the task to be processed.
[0277] It should be noted that the specific limitations of the above steps can be referred to the relevant embodiments of steps S201 to S203, which will not be repeated here.
[0278] In this embodiment, during task processing, the master control agent first filters target agents that match the intent of the task to be processed. Then, the target agents decompose the task, passing only the first workpiece reference corresponding to the sub-task. Each task execution agent can locate and process the task data corresponding to the sub-task based on the first workpiece reference, and only returns the second workpiece reference corresponding to the task processing result. Finally, the master control agent retrieves the corresponding task processing result based on the second workpiece reference, thereby obtaining the complete task processing result of the task to be processed. The entire process involves the master control agent, target agents, and task execution agents jointly processing the task to be processed, avoiding the single-point computing power bottleneck that exists in the traditional method of processing independently by a single agent, which leads to long processing time and is conducive to improving task processing efficiency.
[0279] In an exemplary embodiment, step S1702, before sending the first artifact reference corresponding to the subtask in the task to be processed to the task execution agent corresponding to the subtask, specifically includes the following: determining the content hash information, access control token, task identification information, storage address, and evidence chain metadata corresponding to the subtask; and generating the first artifact reference corresponding to the subtask based on the content hash information, access control token, task identification information, storage address, and evidence chain metadata.
[0280] The content hash information is used to represent the hash fingerprint of the original data content of the subtask.
[0281] The access control token is an encrypted credential representing the read / write permission rules for carrying subtasks.
[0282] The task identifier information is used to indicate the combination of numbers of the task to be processed and its subtasks.
[0283] The storage address is used to represent the resource location path of the subtask.
[0284] Among them, the evidence chain metadata is used to represent the set of traceability information for the lifecycle operation logs of subtasks.
[0285] For example, the target agent performs a digest operation on the task data corresponding to the subtask using the SHA-256 hash algorithm to obtain the content hash information of the subtask. Next, based on the agent identity (e.g., agent identifier) of the agent executing the subtask, an access control token is generated for the subtask. Then, the task number of the task to be processed and the task number of the subtask are combined to obtain the task identifier information of the subtask. Next, according to the storage rules of Content Addressed Storage (CAS), a storage addressing address is generated for the subtask based on the content hash information. Then, the full-process operation information (e.g., generation subject information, data write timestamp, scheduling operation records, etc.) corresponding to the subtask is combined to obtain the evidence chain metadata of the subtask. Finally, the content hash information, access control token, task identifier information, storage addressing address, and evidence chain metadata are encapsulated and compressed to obtain the first artifact reference corresponding to the subtask.
[0286] In this embodiment, the first artifact reference is generated by extracting five types of core metadata corresponding to the subtask: content hash information, access control token, task identification information, storage address, and evidence chain metadata. This integrates security verification, access control, data addressing, task differentiation, and traceability and evidence storage capabilities into a single lightweight artifact reference, which is beneficial to improving data processing efficiency in multi-subtask scenarios.
[0287] In an exemplary embodiment, step S1702, before sending the reference to the first artifact corresponding to the subtask in the task to be processed to the task execution agent corresponding to the subtask, specifically includes the following: determining whether there are data dependencies and resource processing conflicts among the task execution agents; if there are no data dependencies and resource processing conflicts among the task execution agents, sending the reference to the first artifact corresponding to the subtask in the task to be processed in parallel to the task execution agent corresponding to the subtask; if there are data dependencies and resource processing conflicts among the task execution agents, sending the reference to the first artifact corresponding to the subtask in the task to be processed to the task execution agent corresponding to the subtask in sequence according to the data dependencies and resource processing conflicts among the task execution agents.
[0288] Data dependency refers to the pre- and post-task references between subtasks of different task-executing agents in task processing. For example, if a subtask needs to read the artifact reference output by another subtask as input data, then there is a strong data dependency between the two. Subtasks with dependencies cannot be executed in parallel at the same time. They must wait for the upstream subtask to complete its data output and generate the corresponding artifact reference before the downstream subtask can obtain the data and begin processing.
[0289] Among them, resource processing conflict refers to the situation where at least two task execution agents need to occupy the same type of shared resources for their corresponding subtasks. When these tasks are executed in parallel, abnormal states such as resource preemption, read-write conflicts, and computing power congestion will occur.
[0290] For example, the target agent constructs a global scheduling topology graph corresponding to the subtasks based on the input dependency information and resource requirement information corresponding to the subtasks, as well as the relationships between the subtasks. It then traverses and verifies the global scheduling topology graph to determine whether there are data dependencies or resource processing conflicts among the task execution agents. If there are no data dependencies or resource processing conflicts among the task execution agents, the first artifact references corresponding to the subtasks in the task to be processed are sent in parallel to the task execution agents corresponding to the subtasks. If there are data dependencies or resource processing conflicts among the task execution agents, the processing order of the subtasks is determined according to these relationships, and the first artifact references corresponding to the subtasks in the task to be processed are sent sequentially to the task execution agents corresponding to the subtasks according to this processing order.
[0291] In this embodiment, by uniformly judging whether there are data dependencies and resource processing conflicts among the task execution agents, the execution sequence of upstream and downstream sub-tasks with data reference relationships is guaranteed to be compliant, avoiding the situation where multiple tasks simultaneously compete for shared resources. This is beneficial to improving the reliability of multi-task collaborative processing and the overall processing speed of analysis tasks.
[0292] In an exemplary embodiment, when the target agent is a specialized agent, the method specifically includes the following: obtaining a third artifact reference corresponding to the task to be processed; locating the task data corresponding to the task to be processed based on the third artifact reference, processing the task data corresponding to the task to be processed, and returning a fourth artifact reference corresponding to the task processing result to the master agent; the master agent is also used to locate the task processing result of the task to be processed based on the fourth artifact reference.
[0293] The third artifact reference refers to the artifact reference corresponding to the task to be processed, including the content hash information, access control token, task identification information, storage address, and evidence chain metadata corresponding to the task to be processed.
[0294] Among them, the task data corresponding to the task to be processed refers to the original business data corresponding to the task to be processed.
[0295] The task processing results of the pending task refer to the output content such as detailed conclusions, diagnostic reports and optimization schemes after analyzing and reasoning about the pending task.
[0296] The fourth artifact reference refers to the artifact reference corresponding to the task processing result of the task to be processed, including the content hash information, access control token, task identification information, storage address, and evidence chain metadata corresponding to the task processing result of the task to be processed.
[0297] For example, when the target agent is a specialized agent, the content hash information, access control token, task identification information, storage address, and evidence chain metadata corresponding to the task to be processed are encapsulated to obtain a third artifact reference corresponding to the task to be processed. Then, based on the third artifact reference, the task data corresponding to the task to be processed is located, and the integrity of the task data corresponding to the task to be processed is verified. If the integrity verification result of the task data to be processed passes, the task data corresponding to the task to be processed is processed to obtain the task processing result of the task to be processed. Then, through the network path between the target agent and the main agent, the fourth artifact reference corresponding to the task processing result of the task to be processed is returned to the master agent. The master agent is also used to locate the task processing result of the task to be processed based on the fourth artifact reference.
[0298] In this embodiment, when the matched target agent is a specialized agent, the original task data is located and processed based on the third workpiece reference corresponding to the task to be processed, and then the fourth workpiece reference corresponding to the task processing result is returned, so as to realize zero-loss information transmission between the specialized agent and the main control agent, which helps to reduce the system context carrying pressure and data transmission resource consumption.
[0299] In an exemplary embodiment, when the target agent is an exploratory agent, the method specifically includes the following: determining a target specialized agent that matches the task to be processed from candidate specialized agents; obtaining a third artifact reference corresponding to the task to be processed, sending the third artifact reference to the target specialized agent, enabling the target specialized agent to locate the task data corresponding to the task to be processed based on the third artifact reference, processing the task data corresponding to the task to be processed, and obtaining the task processing result of the task to be processed; receiving a fourth artifact reference corresponding to the task processing result of the task to be processed returned by the target specialized agent, and returning the fourth artifact reference to the master agent; the master agent is also used to locate the task processing result of the task to be processed based on the fourth artifact reference.
[0300] Among them, candidate specialized intelligent agents refer to available intelligent agents that are good at processing task data in a single business analysis dimension.
[0301] Among them, the target-specific intelligent agent refers to the intelligent agent that matches the task to be processed among the candidate-specific intelligent agents.
[0302] For example, when the target agent is an exploratory agent, the matching degree between the candidate specialized agents and the task intent of the task to be processed is determined. From the candidate specialized agents, the one with the highest matching degree is selected as the target specialized agent matching the task to be processed. The content hash information, access control token, task identification information, storage address, and evidence chain metadata corresponding to the task to be processed are encapsulated to obtain a third artifact reference corresponding to the task to be processed. This third artifact reference is sent to the target specialized agent through a network path, enabling the target specialized agent to locate the task data corresponding to the task to be processed based on the third artifact reference. If the integrity verification result of the task data to be processed passes, the task data corresponding to the task to be processed is processed to obtain the task processing result. A fourth artifact reference corresponding to the task processing result of the task to be processed is received from the target specialized agent through a network path, and this fourth artifact reference is returned to the master agent. The master agent locates the task processing result of the task to be processed based on the fourth artifact reference.
[0303] In this embodiment, when the target agent obtained by matching is an exploratory agent, the exploratory agent first selects the target specialized agent that is suitable for the current task requirements from all candidate specialized agents. This eliminates the need for the master agent to compare the capabilities of various specialized agents one by one, reducing the computing power and context load of the master agent and improving the overall efficiency of task scheduling and data processing.
[0304] In one exemplary embodiment, such as Figure 18 As shown, this application also provides another task processing method, which can be applied to... Figure 1 Taking the task execution agent in the example, the specific steps are as follows:
[0305] Step S1801: Receive the first workpiece reference corresponding to the subtask in the task to be processed sent by the target intelligent agent; the target intelligent agent is used to receive the task to be processed sent by the master intelligent agent; the master intelligent agent is used to determine the target intelligent agent that matches the task intent of the task to be processed from the candidate intelligent agents.
[0306] Step S1802: Based on the first workpiece reference, locate the task data corresponding to the subtask, process the task data to obtain the task processing result of the subtask, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent; the target intelligent agent is also used to return the second workpiece reference to the master intelligent agent; the master intelligent agent is also used to locate the task processing result of the subtask based on the second workpiece reference, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0307] For example, the master control agent receives the task to be processed sent by the user terminal through a network path between the master control agent and the user terminal; then, it performs semantic parsing on the task to be processed to obtain the task intent; then, it reads a preset agent registry to determine the candidate agents corresponding to the master control agent; next, it determines the matching degree between the candidate agents and the task intent of the task to be processed, and selects the candidate agent with the highest matching degree from the candidate agents as the target agent matching the task intent; the master control agent sends the task to be processed to the target agent through a network path between the master control agent and the target agent; then, if the target agent is an aggregation agent, the target agent splits the task to be processed according to the business analysis dimension and data processing boundary corresponding to the task to be processed to obtain sub-tasks in the task to be processed; then, the target agent collects the metadata of the sub-tasks and encapsulates the metadata of the sub-tasks to obtain the first artifact reference corresponding to the sub-task; then, the target agent determines the task execution agent corresponding to the sub-task and, through communication with... The network pathway between task execution agents sends a first artifact reference to the task execution agent. Then, based on the first artifact reference, the task execution agent locates the task data corresponding to the subtask. Next, the task execution agent obtains the task data corresponding to the subtask and performs integrity verification on it. If the integrity verification result is successful, the task data is processed to obtain the task processing result of the subtask. Then, the task execution agent obtains the metadata of the task processing result of the subtask, encapsulates the metadata to obtain a second artifact reference corresponding to the task processing result of the subtask, and returns the second artifact reference to the target agent through the network pathway. Based on the second artifact reference returned by the target agent, the master agent locates the task processing result of the subtask. Next, it performs integrity verification on the task processing result of the subtask. If the integrity verification result of the subtask's task processing result is successful, the task processing result of the subtask is integrated to obtain the task processing result of the task to be processed.
[0308] It should be noted that the specific limitations of the above steps can be referred to the relevant embodiments of steps S201 to S203, which will not be repeated here.
[0309] In this embodiment, during task processing, the master control agent first filters target agents that match the intent of the task to be processed. Then, the target agents decompose the task, passing only the first workpiece reference corresponding to the sub-task. Each task execution agent can locate and process the task data corresponding to the sub-task based on the first workpiece reference, and only returns the second workpiece reference corresponding to the task processing result. Finally, the master control agent retrieves the corresponding task processing result based on the second workpiece reference, thereby obtaining the complete task processing result of the task to be processed. The entire process involves the master control agent, target agents, and task execution agents jointly processing the task to be processed, avoiding the single-point computing power bottleneck that exists in the traditional method of processing independently by a single agent, which leads to long processing time and is conducive to improving task processing efficiency.
[0310] In an exemplary embodiment, the task data is processed to obtain the task processing result of the subtask, specifically including the following: determining the target task processing skill that matches the subtask from the task processing skills carried by the task execution agent; and processing the task data corresponding to the subtask based on the target task processing skill to obtain the task processing result of the subtask.
[0311] Among them, task processing skills, also known as skill packs, are used to represent the data processing logic carried by the task execution agent, including analysis rules, data operation functions, parsing scripts, verification and judgment logic and output templates for the corresponding business dimensions.
[0312] Among them, target task processing skills refer to task processing skills that match the task intent of the sub-task.
[0313] For example, the task execution agent acquires skill information of the task processing skills it carries, as well as the task intent of the subtask; the skill information is used to characterize the skill description information of the task processing skills; then, the skill information of the task processing skills and the task intent of the subtask are respectively input into the feature extraction model for feature extraction processing to obtain the feature vector of the skill information and the feature vector of the task intent of the subtask; then, based on the feature vector of the skill information and the feature vector of the task intent of the subtask, the matching degree between the task processing skills and the subtask is determined; then, the task processing skills with a matching degree greater than a preset matching degree are determined from the task processing skills and used as the target task processing skills that match the subtask; then, the target task processing skills are loaded, and the task data corresponding to the subtask is input into the loaded target task processing skills; and the task processing result of the subtask is output through the loaded target task processing skills.
[0314] It should be noted that this Skill package solution encapsulates knowledge and experience in the field of data analysis into Skill packages. Each Skill is a self-contained folder, using a standardized structure such as... Figure 19 As shown. The Skill package includes a required document called the Core Definition File. This document contains prerequisite metadata storing skill names and function descriptions, analysis instructions recording the complete analysis process and specifications, and optional bundled resources. The bundled resources are divided into a script directory, a reference directory, and a report template directory. The script directory contains program files for data preprocessing, including two types of scripts responsible for data parsing and standardization, and statistical calculations. The reference directory contains two documents: an analysis framework description and a classification system definition. The report template directory contains two types of documents: a complete report webpage template and a chapter template.
[0315] The internal structure and loading relationship of the Skill pack are as follows: Figure 20 As shown. The Skill package is a self-contained folder. During Agent runtime, file loading and reading are completed in three layers. The first layer loads the SKILL.md core definition file (required) at startup. This file is split into YAML pre-metadata, which includes "name:full-analysis-templates" and "description:analyzing massive amounts of data...". The second layer loads Markdown analysis instructions during matching. The Markdown analysis instructions include five parts: Skill positioning, core value, analysis framework (five-step method), output specifications, and quality checklist. The third layer reads optional bundled resources as needed during execution. The bundled resources are divided into three subdirectories, with different resources stored in different subdirectories. The entire skill package is loaded layer by layer to support the complete operation of the Agent.
[0316] One of the core innovations of this solution is the progressive disclosure mechanism, which loads Skill knowledge in three levels on demand, solving the problem of context window bloat in traditional methods. Figure 21 As shown:
[0317] When the system starts, it only loads the name and description fields of all registered skills. Taking 10 skills as an example, each skill's metadata costs approximately 100 tokens, consuming a total of approximately 1000 tokens. The purpose of this layer is to allow the agent to quickly build a "capability index," knowing "what analytical skills I possess."
[0318] Once the Agent identifies a match between the current analysis task and a specific Skill, it loads the complete SKILL.md file of that Skill, containing detailed analysis procedures, specifications, constraints, and quality standards. The core instructions for a single Skill typically do not exceed 5000 tokens. It's important to note that the relationship between SubAgents and Skills is not strictly one-to-one. A SubAgent can be bound to one or more Skills. Skill matching employs a two-level routing mechanism: First, the controlling Agent selects candidate SubAgents based on user intent, SubAgent description, authorized toolset, and historical execution results. Second, within the Skill set bound to the candidate SubAgents, the Agent performs similarity scoring and rule filtering based on user intent, subtask objectives, input data types, and expected outputs against the names and descriptions of each Skill, selecting one or more Skills with scores exceeding a threshold. If multiple Skills match simultaneously, they are executed in a combined manner, with the primary Skill handling the analysis process and secondary Skills handling validation or formatting. If no Skill matches, a general exploration Skill is loaded, and suggestions for new Skills are generated.
[0319] When the Agent performs specific analysis steps, it reads scripts, templates, and reference materials bundled with the Skill as needed. These resources are read directly from the file system without being pre-injected into the context window, and theoretically, there are no token restrictions.
[0320] The comparison data between the traditional method (full loading) and this solution (gradual disclosure) is shown in the table below:
[0321] Table 6 Comparison Data
[0322]
[0323] Skill packages transform analytical knowledge from "personal experience" to "reusable assets": they make explicit the implicit experiences of excellent analysts, such as analytical frameworks, attribution methods, and report structures, into structured instructions in SKILL.md, enabling agents to perform analyses according to unified, high-quality standards. Skill files are version-managed via Git, supporting change tracking and rollback; the latest analytical specifications are automatically synchronized after team members pull code. When adding a new analysis type, only the corresponding Skill folder and SubAgent configuration file need to be created, without modifying the core system logic. Using Skill creation templates (skill-creator), new specialized analytical capabilities can be deployed in just 30 minutes. Skill files are self-contained and portable, supporting management and reuse at both the project and user levels.
[0324] This solution designs Skills as open, extensible interfaces, allowing users to customize Skills according to their specific business needs without needing to understand the system's internal implementation. Custom Skills and built-in Skills share the same progressive loading protocol, and the system treats them identically.
[0325] like Figure 22 The diagram shows the creation process for a custom skill, as detailed below:
[0326] Step 1 (Define Metadata): The user creates a new folder in the Skill directory, writes the YAML pre-metadata in the SKILL.md file, and declares the name and description fields. The description field should clearly describe the analysis scenarios and core capabilities that the Skill is applicable to, so that the system can accurately match it in the L1 stage.
[0327] Step Two (Writing Analysis Instructions): Define the analysis methodology for this domain in the Markdown body of SKILL.md, including the analysis process, evaluation metrics, output specifications, etc. Users can refer to the structure of the built-in Skills or automatically generate the skeleton using the built-in skill-creator template.
[0328] Step 3 (Resource Binding): If needed, users can place preprocessing scripts (scripts / ), references (references / ), and report templates (templates / ) in the Skill folder. The Agent will read these on demand through L3 during the execution phase.
[0329] Step 4 (Associate with SubAgent): In the SubAgent configuration file, reference the newly created Skill name through the skills field, or set the default loading strategy in the global configuration.
[0330] In this embodiment, by automatically selecting target task processing skills that are suitable for the current subtask from the task processing skills carried by the task execution agent, independent processing logic does not need to be issued by the external scheduling layer. This enables local and rapid matching of skills and subtasks, avoids interference between multiple types of analysis logic, and helps to improve the processing speed of task data corresponding to subtasks.
[0331] It should be noted that in data analysis scenarios, raw data files (such as Excel and CSV) may contain a large number of irrelevant fields and redundant information. This solution introduces a "thick tool" strategy, performing data filtering and structuring at the tool layer, and outputting only refined data to the LLM. The comparison between thick and thin tool modes is shown in the table below:
[0332] Table 7 Comparison of Thick Tool and Thin Tool Patterns
[0333]
[0334] The scripts / directory bundled with Skill contains data preprocessing scripts (such as Python), which are responsible for:
[0335] 1. Read the original data file (Excel / CSV) and parse the data structure.
[0336] 2. Extract key fields according to the analysis requirements.
[0337] 3. Perform basic statistical calculations (total, category count, percentage).
[0338] 4. Output structured data in refined JSON format.
[0339] like Figure 23 The diagram shows the data preprocessing pipeline for the thick tool. The system receives a raw data file containing at least 10,000 tokens in Excel / CSV format as input. The process is divided into two paths: the thin tool mode directly inputs the raw data, which carries at least 10,000 tokens of noise interference, into the LLM semantic analysis layer; while the thick tool preprocessing layer processes the raw data step-by-step using deterministic code. The first step involves data parsing to read the file structure and identify field schemas. The second step involves extracting key fields, filtering and removing irrelevant columns according to analytical requirements. The third step involves basic statistical calculations, including totals, category counts, percentages, and time trend calculations. The fourth step outputs a refined JSON structured data file of 500-1000k in size, containing only 500-1000 tokens of pure information. This refined JSON is then input into the LLM semantic analysis layer, which sequentially performs deep attribution analysis, correlation factor inference, and governance suggestion generation, ultimately outputting an analysis report with structured data.
[0340] During the analysis process, the agent calls this script to obtain refined data and then performs deep attribution analysis and insight generation based on the semantic understanding capabilities of LLM. This approach offloads deterministic statistical computation to the traditional code layer, entrusting only the high-order analysis tasks requiring semantic understanding to LLM, thus fully leveraging the complementary advantages of both.
[0341] like Figure 24The diagram shows the architecture for batch data processing and incremental aggregation. For large-scale raw data exceeding the capacity of a single context, the overall processing flow consists of four steps. Step one involves thick-tool data splitting, where the data splitting engine divides the raw data into multiple independent subsets according to time sharding and category grouping rules, such as subset 1 for category A, subset 2 for category B, subset 3 for category C, and so on up to subset N. Step two involves parallel or serial processing by the SubAgent, where each data subset is processed by its corresponding SubAgent, generating intermediate results and producing ArtifactRef references. Step three involves aggregation by the SubAgent, where the aggregation agent uses the ArtifactRef references to perform hash addressing to read all intermediate result artifacts, simultaneously completing ACL verification and integrity verification, and then conducting cross-subset correlation analysis and comprehensive attribution. Finally, step four outputs the final structured analysis report.
[0342] When faced with enterprise-level large-scale data or complex code projects, simply feeding data into an LLM can easily exceed the capacity limit of a single context window, or introduce a large amount of irrelevant information, leading to model "illusion" and attention dilution. Therefore, this solution's thick tool layer is designed with a two-dimensional preprocessing strategy for both "linear massive data" and "complex network data" to achieve efficient context distillation:
[0343] 1. Strategies for linear massive data: Batch processing and incremental aggregation (Map-Reduce). When the original data (such as massive logs or user feedback streams) is relatively independent in dimensions, but the total scale exceeds the model's processing limit, the system adopts a horizontal divide-and-conquer strategy:
[0344] Step 1: Thick Tool Data Slicing. The thick tool slices the raw data into multiple subsets within the security token waterline according to preset business dimensions (such as time windows and anomaly category grouping).
[0345] Step 2: SubAgent processes each data subset sequentially or in parallel, generating intermediate analysis results for each subset processed at a time, writing them to content-addressed storage and generating corresponding artifact references (including content hashes and evidence chains).
[0346] Step 3: The aggregation SubAgent reads all intermediate result artifacts by content hash addressing through artifact references (automatically performing ACL verification and integrity verification), performs cross-subset correlation analysis and comprehensive attribution, and merges the evidence chains of each subset, thereby completing the comprehensive attribution and report generation of the full data without exceeding the single context limit.
[0347] 2. Strategies for Complex Network Data: Cross-File Dependency Extraction and Context Pruning (Graph Pruning) In real-world code engineering scenarios, files often have highly coupled dependencies (such as inheritance or cross-service API calls). Simple slicing or full-text search cannot capture the true business topology. Therefore, a thick tool layer introduces a vertical graph pruning mechanism:
[0348] Step 1: Construction of Topology and Dependency Graph. When parsing entry files (such as core business code or database schema), the thick tool traces outwards through static analysis scripts (such as reference resolution based on LSP (Language Server Protocol)) to construct a complete dependency topology graph containing "caller-current node-callee".
[0349] Step Two: Deterministic Context Pruning. Faced with a rapidly expanding dependency tree, thick tools perform precise pruning based on the current SubAgent's intent. For example, when troubleshooting an interface anomaly, only the function signature, interface contract, and core comments with a first-degree association are retained, completely eliminating redundant internal implementation code of the called function. It should be noted that the specific implementation of graph pruning based on intent includes the following steps: First, the intent of the current SubAgent is parsed into a set of pruning predicates, which include the focus node type, the type of relationship to retain, the maximum number of hops, the node attribute weights, and the output field set. Second, a constrained breadth-first or depth-first traversal is performed in the dependency graph centered on the entry node, calculating the node retention score based on factors such as semantic similarity, distance from the entry node, relationship type weight, whether it hits the Rules risk label, and whether it contains interface contracts or core annotations. Third, only nodes with scores exceeding the threshold or on mandatory dependency paths are retained. Low-scoring nodes are summarized, retaining only the function signature, input and output parameters, exception types, interface contracts, and key annotations, while deleting internal implementation details. Finally, the retained nodes, edges, evidence sources, and summary fields are encapsulated into a GraphContext JSON. Through this deterministic pruning process, the system significantly compresses the context size while preserving the task-related technical semantics, reducing the attention consumption of large models on irrelevant implementation details.
[0350] Step 3: Encapsulate the high-density graph context. The thick tool reorganizes and encapsulates the previously scattered related fragments in multiple physical files into a high-information-density JSON object (containing: focus fragments, upstream influence surfaces, and downstream dependencies).
[0351] This fusion strategy enables the system to handle a variety of complex scenarios with ease. Instead of reasoning in localized code like "blind men touching an elephant," LLM directly receives "high-fidelity microenvironments" (typically compressible to 1000-3000 tokens) refined from thick tools. This not only completely breaks the hard context constraints of LLM in handling large-scale projects, but also greatly reduces the probability of illusions in the analysis of complex relational logic.
[0352] It should be noted that the structure of the analysis report (i.e., the result of the target task processing) is standardized using the report template Skill in Skill. A typical report structure is shown in the table below:
[0353] Table 8 Report Structure
[0354]
[0355] The report generation engine supports multiple output formats, controlled by the output strategy skill:
[0356] 1. HTML format: Supports visual charts, interactive data displays, and directory navigation, suitable for online browsing and reporting.
[0357] 2. Markdown format: Lightweight markup language output, suitable for version control and collaborative editing.
[0358] 3. Structured JSON format: Machine-readable structured data output, suitable for downstream system consumption.
[0359] The report generation process incorporates multiple data security mechanisms, as detailed below:
[0360] 1. Skill-level data masking guidelines: Define data masking rules in the analytics framework Skill, requiring Agents to perform data masking when referencing original data (such as hashing user IDs, masking sensitive content, etc.).
[0361] 2. Forced scanning at the Hook level: After the report file is written, the sensitive information scanning script is automatically executed through the afterFileEdit Hook to detect whether there is any personal information, contact information, etc. that has not been desensitized. If a problem is found, the output is blocked and feedback is sent to the Agent for correction.
[0362] It should be noted that this solution designs a four-layer quality assurance system from generation to output:
[0363] The first layer is template assurance: all analysis outputs are generated based on predefined report templates, ensuring the consistency and integrity of the report structure.
[0364] The second layer is the specification constraints: the analysis specifications defined in the Skill (such as "must include supporting data" and "attribution analysis should go down to at least the second-order cause") are automatically followed during Agent execution.
[0365] The third layer is quality inspection: After the analysis is completed, the Agent verifies the quality of the report item by item according to the quality checklist defined in the Skill, including but not limited to: whether the data references are accurate, whether the attribution logic is complete, and whether the recommendations are feasible.
[0366] The fourth layer, Hooks, provides deterministic fallback: Key quality assurance operations are implemented through the Hooks mechanism, without relying on the probabilistic decisions of the LLM, as shown in the table below:
[0367] Table 9 Hook Events
[0368]
[0369] like Figure 25 The diagram illustrates the Agent analysis execution process. This process relies on a four-layer quality assurance system to complete verification and control in stages, ultimately outputting a high-quality analysis report. The first layer of the four-layer quality assurance system is template assurance executed during the generation phase, relying on the report template Skill to predefine the report structure, thereby ensuring the consistency and completeness of the report. The second layer is the standard constraint executed during the execution phase, relying on the analysis specification Skill to set constraints, requiring that the analysis content must include data support and attribution to at least the second-level cause. The third layer is the quality check executed during the output phase, using a quality checklist to verify the accuracy of data citations, the completeness of attribution logic, and the feasibility of recommendations. The fourth layer is the Hooks deterministic fallback, configuring four types of hook logic in sequence: beforeShellExec, afterFileEdit, afterShellExec, and stop. Among them, beforeShellExec is responsible for security gating and script whitelist verification, afterFileEdit completes format verification and de-identification scanning, afterShellExec generates audit logs to achieve operation traceability, and the stop stage completes knowledge accumulation and outputs Skill update suggestions. After all four layers of quality control are completed, a high-quality analysis report is finally output.
[0370] like Figure 26As shown in the diagram, this illustrates the complete interaction flow of the five modules—Agent execution engine, Hooks control layer, deterministic script, file system, and Skill knowledge base—through all Hook trigger points during the analysis task execution process. The Agent execution engine triggers `beforeShellExecution` (callback logic before command execution) and calls the Hooks control layer. The Hooks control layer runs a whitelist verification script. The deterministic script determines whether the target script exists in the whitelist. If not, execution is directly rejected, and a blocking signal is sent back to the Agent execution engine. After successful verification, the Agent execution engine runs a data analysis script. Upon completion of the script execution, `afterShellExecution` (callback logic after command execution) is triggered. The Hooks control layer starts an audit log recording script. The deterministic script writes the `audit.log` execution log to the file system. After the log is written, the Agent execution engine continues to write the `report.html` report file to the file system, subsequently triggering `afterFileEdit` (file editing). (After the callback logic is modified), the Hooks control layer calls the deterministic script to execute the format verification and de-identification scanning script. The process enters the alt (Alternative) branch. If the scan detects sensitive information or un-de-identified content, it reports back to the Hooks control layer, which instructs the Agent execution engine to block the output and issue a correction request. The Agent execution engine completes the correction and de-identification and rewrites the report file. If all security scans pass and the verification is qualified, it sends a release command to the Hooks control layer. The Agent execution engine triggers the stop hook that marks the end of the process. The Hooks control layer executes the knowledge extraction script. The deterministic script identifies reusable analysis patterns, generates Skill update suggestions, and synchronizes them to the Skill knowledge base. At the same time, the update suggestions are sent back to the Hooks control layer and issued to the Agent execution engine. Finally, the Agent execution engine submits the generated report for manual review. The entire process realizes multi-module collaboration to complete script security verification, operation log retention, data de-identification control, and continuous iteration and updating of the Skill knowledge base.
[0371] It should be noted that this solution uses stop hooks to achieve automatic accumulation and compounding of analytical knowledge, as detailed below:
[0372] Step 1 (Automatic Trigger): The stop Hook automatically executes the knowledge extraction script each time an analysis task is completed.
[0373] Step Two (Pattern Recognition): The script analyzes the execution process and identifies the following:
[0374] 1. Have any new reusable analysis patterns been discovered?
[0375] 2. Have you encountered any data features or anomalies that are worth recording?
[0376] 3. Are there any skill analysis rules that can be optimized?
[0377] Step 3 (Suggestion Generation): Generate Skill update suggestions (Diff format), including suggested new rules, supplementary templates, or optimized check items.
[0378] Step 4 (Manual Review): Submit the update suggestions to analysts for review. Once confirmed, they will be automatically merged into the Skill knowledge base; otherwise, they will be rejected or require manual adjustments before merging.
[0379] Step 5 (Knowledge Reuse): The updated Skill is automatically loaded and applied in the next analysis task, forming a positive cycle of "analysis execution → experience accumulation → knowledge reuse → better analysis".
[0380] like Figure 27 As shown, the diagram is divided into a compound interest effect module on the left and a positive knowledge accumulation cycle module on the right. The compound interest effect on the left demonstrates the progressive process of continuous knowledge accumulation, from the first basic rule to the Nth rule plus experience accumulation, and then to the N+Mth rule plus experience plus pattern library. The positive knowledge accumulation cycle process on the right is as follows: When the analysis task is executed, the Agent performs analysis according to the Skill specification. After the process ends, the stop hook automatically triggers the knowledge extraction script to perform pattern recognition and extraction, and discover new reusable analysis patterns, data features worth recording, and Skill rules that can be optimized. Then, Diff format skill update suggestions are generated. The update suggestions enter the manual review stage, which is divided into three types of operations: confirmation, confirmation after modification, and rejection. If confirmation or confirmation after modification is selected, the content will be merged into the Skill knowledge base with Git version management to achieve continuous growth of the Skill knowledge base. If rejection is selected, the merging operation will not be performed. The updated Skill will be automatically loaded in the next analysis task, starting a positive cycle of improvement with use. The knowledge accumulated in the cycle eventually forms the compound interest effect shown on the left.
[0381] like Figure 28 , Figure 29 , Figure 30 and Figure 31The diagram illustrates the complete end-to-end workflow, horizontally divided into ten roles: User, Main Agent, Rules Engine, Skill Library, Thick Tool Preprocessing Layer, Global Aggregation SubAgent, Dimension-Specific SubAgent-N, Content-AddressedStorage, Hooks Deterministic Control, and Knowledge Base. It comprehensively presents the entire process from user input to the final report output. The user inputs a pre-defined command in natural language, specifying all data in the `data` directory to generate a complete report. The first step involves the Main Agent initiating Rules persistence rule injection, requesting the Rules engine to load Rules, and performing a full injection of Always Apply Rules (approximately 500 tokens) and preparing Intelligent Rules metadata (approximately 50 tokens / item), achieving prefix stability and a 95% cache hit rate. The second step involves intent parsing and skill loading. The Main Agent, relying on LLM semantic understanding, extracts the analysis scope and depth format, first loading all skill metadata indexes (approximately 1000 tokens) at the L1 level from the Skill Library, and then receiving the returned skill list to complete semantic matching and location analysis-framework. The Skill is then executed at the L2 level to load and match the complete Skill instructions (approximately 5000 tokens), and the returned analysis process specifications are received. The third step is the thick tool data preprocessing. The main control Agent calls the data_parser.py data parsing script to complete the parsing of raw data, extraction of key fields, and basic statistical calculations, generating an artifact reference ArtifactRef containing content_hash, access_control, proofance, and approximately 200 tokens. The refined JSON artifact carrying the SHA-256 hash index is then written to Content-addressed Storage.The fourth step involves scheduling the global aggregation subAgent using routing mode A. The global aggregation subAgent inherits from the global Rules and loads project-specific Rules, executing each subAgent's independent context in parallel (occupying 5K-8K tokens). It schedules dimension 1-specific analysis and passes the artifact reference ArtifactRef. Dimension-specific subAgent-N inherits from the global Rules, loads the dimension-specific Rules and L2-level dimension-specific Skills, reads data artifacts by content_hash addressing, completes ACL verification and integrity verification, builds an independent context analysis environment, and writes the analysis result artifact analysis-dim1 carrying a SHA-256 hash index. Similarly, it schedules dimension 2-N-specific analysis, and each dimension subAgent independently performs calculations and writes the results to the corresponding analysis-dimN result artifact. The fifth step involves artifact reference passing and result aggregation. The global aggregation subAgent receives completion notifications from each dimension, along with information including content_hash, proofance, evidence tracing, and approximately 200... The tokens' ArtifactRef reads all subAgent output artifacts by addressing by content_hash, completes ACL verification and hash integrity verification, returns complete analysis content with 100% fidelity and performs anti-tampering verification, integrates cross-dimensional subAgent evidence chains, merges dimensional correlation analysis and extracts common issues; the sixth step is report generation and quality assurance, globally aggregates subAgents to generate structured report artifacts with SHA-256 hash indexes based on template Skills, triggers afterFileEdit Hook to hand over Hooks to deterministically control template structure checks, specification compliance checks, checklist item-by-item verification, runs deterministic pre-verification scan scripts, the process enters alt mutual exclusion branch, if unmasked information is detected, output is blocked and a correction requirement is fed back, after correction and demasking are completed, a new hash is generated, evidence traceability records correction history are retained and rewritten to the report artifact, if all security checks pass, it is released; the seventh step, knowledge accumulation, triggers stop. Hooks deterministically control reusable pattern recognition, generate Skill update suggestions in Diff format and push them to the knowledge base. The update suggestions enter the manual review stage and the alt branch is activated again. If the manual selection confirms the merge, the content is merged into the skill / rules knowledge base with Git version management. If the manual selection rejects, the reason for rejection is recorded.Upon completion of the entire process, the master agent delivers a structured report as the final output, including HTML / Markdown / JSON formats, a data summary, and traceability back to the original data. The report includes a final artifact reference and a complete chain of evidence, and also outputs analysis time, with minute-level and day-level specification classifications, achieving over 95% API cost reduction and 60-75% end-to-end tamper-proof performance.
[0382] In an exemplary embodiment, the task data corresponding to the subtask is located based on the first artifact reference, specifically including the following: the task data corresponding to the subtask is located based on the first artifact reference through the model context protocol.
[0383] Among them, the Model Context Protocol (MCP) is a communication protocol used to represent the interaction of artifact references between the task execution agent, the master agent, and the target agent.
[0384] For example, the task execution agent queries the correspondence between preset protocols and verification methods based on the model context protocol to obtain the verification method corresponding to the model context protocol, which is used as the target verification method for the first workpiece reference; then, the first workpiece reference is verified according to the target verification method to obtain the verification result of the first workpiece reference; if the verification result indicates that the first workpiece reference has passed the verification, the task data corresponding to the subtask is located based on the first workpiece reference.
[0385] It should be noted that this solution supports the integration of external data sources and tool capabilities through the MCP protocol, enabling flexible expansion of analytical capabilities.
[0386] By encapsulating external tool capabilities (such as database queries, API calls, and file system operations) through the MCP Server, Agents can call these capabilities through a unified MCP protocol, allowing for reuse by all Agents after a single development effort.
[0387] In this solution, MCP primarily constrains external data and tool invocation during the data analysis process. Specifically, when an Agent or SubAgent needs to access databases, file systems, enterprise APIs, retrieval services, or computational scripts, the MCP protocol handles capability discovery, parameter schema verification, permission authentication, invocation execution, and structured result return. The Agent's internal task planning, semantic reasoning, and result summarization do not rely on MCP. By uniformly encapsulating external capabilities as an MCP Server, the system can employ consistent invocation entry points, authentication methods, audit logs, and exception handling mechanisms across different data sources, preventing SubAgents from directly calling heterogeneous interfaces and causing distributed permissions and inconsistent result formats.
[0388] Skill is responsible for defining "what to analyze and how to analyze" (knowledge orchestration layer), while MCP Server is responsible for providing "specific data acquisition and processing capabilities" (capability execution layer). The two work together in layers to decouple knowledge and capabilities.
[0389] As the number of MCP Servers increases, a unified entry point, unified authentication, and unified monitoring can be achieved through the MCP Gateway, avoiding the complexity caused by decentralized server management.
[0390] like Figure 32 The diagram shows the integrated architecture of the MCP protocol. From top to bottom, the architecture consists of five layers: Skill Orchestration Layer, Agent Cluster, MCP Gateway Unified Governance Layer, MCP Server Capability Execution Layer, and the underlying external data source. The Skill Orchestration Layer includes three parts: definition of what to analyze, definition of how to analyze, and definition of quality specifications. Through orchestration drivers, it connects to the overall analysis SubAgent, specialized analysis SubAgent, exploratory analysis SubAgent, and master control agent within the Agent cluster. The master control agent in the Agent cluster connects downwards to the MCP Gateway Unified Governance Layer via the MCP standard protocol. The MCP Gateway Unified Governance Layer integrates three management capabilities: unified authentication, unified routing, and unified monitoring. The MCP Gateway Unified Governance Layer connects downwards to the MCP Server Capability Execution Layer. The MCP Server Capability Execution Layer includes four types of services: Database Query Server, External API Server, File System Server, and Custom Analysis Server. The Database Query Server has a built-in query_database() function and connects to a relational database from an external data source. The External API... The Server has a built-in `call_external_api()` function that interfaces with third-party APIs. The File System Server has built-in `read_file()` and `write_file()` functions that interface with file storage. The Custom Analysis Server has built-in `run_analysis_script()` functions that interface with business systems. The entire architecture relies on the Skill knowledge orchestration layer to complete the definition of analysis logic and quality rules. Various analysis tasks are undertaken by the Agent cluster. After unified governance by the MCP Gateway, multiple types of MCP Server capabilities are invoked to achieve standardized access and analysis of various external data sources, including relational databases, third-party APIs, file storage, and business systems.
[0391] like Figure 33The diagram illustrates the layered architecture of Skill and MCP collaboration. This architecture consists of three main parts: the left-side Capability Execution Layer (MCP), the middle Agent Orchestration Layer, and the right-side Knowledge Orchestration Layer (Skill). The right-side Knowledge Orchestration Layer (Skill) sequentially sets which modules to analyze, clarifying objectives, scope, and metrics, and then passes this information down to the analysis modules, defining processes, frameworks, and specifications. Finally, it passes this information down to the output modules, specifying templates, formats, and anonymization. The content output by the Knowledge Orchestration Layer (Skill) guides the Agent in understanding what to do and how to do it, and contributes to the knowledge accumulation process in the middle Agent Orchestration Layer. The middle Agent Orchestration Layer contains the Agent runtime environment, relying on the Skill... The driver and MCP call logic initiate specific capability calls to the left-side capability execution layer (MCP) through the MCP. The left-side capability execution layer (MCP) performs three operations in sequence: first, it obtains data from multiple channels such as databases, APIs, and files; second, it completes data processing by relying on scripts, calculations, and transformations; and third, it persists the results by writing to files and storing them. After the capability execution layer (MCP) completes the processing, it returns the processing results to the agent orchestration layer, forming a complete closed-loop analysis architecture in which the skill knowledge defines and drives the agent, the agent calls the underlying data processing capabilities through the MCP, and the knowledge is back-accumulated after processing.
[0392] In this embodiment, by locating the task data corresponding to the subtask based on a standardized model context protocol, the data interaction interface and transmission logic under the multi-agent distributed architecture are uniformly standardized. This eliminates the need to adapt the corresponding interaction logic for different agents, reduces system integration and development and maintenance costs, and helps to improve the response speed of task data reading and the overall scheduling and operation efficiency.
[0393] In an exemplary embodiment, based on the target task processing skill, the task data corresponding to the sub-task is processed to obtain the task processing result of the sub-task. Specifically, this includes: pruning the task data corresponding to the sub-task according to the task intent of the sub-task to obtain processed task data; and processing the processed task data based on the target task processing skill to obtain the task processing result of the sub-task.
[0394] Among them, the processed task data refers to the data obtained after performing context pruning on the task data corresponding to the subtask according to the task intent of the subtask.
[0395] For example, the task execution agent parses the task intent corresponding to the subtask to obtain the analysis objective, focus indicators, effective data range, retained fields, and graph traversal constraints contained in the task intent, which serve as pruning predicates for the task data corresponding to the subtask. Then, according to the pruning predicates, the task data corresponding to the subtask is pruned to obtain processed task data. Next, based on the target task processing skill, the processed task data is processed to obtain the task processing result of the subtask. Then, the target task processing skill is loaded, and the task data corresponding to the subtask is input into the loaded target task processing skill. Through the loaded target task processing skill, the task processing result of the subtask is output.
[0396] In this embodiment, by performing targeted pruning on the task data corresponding to the subtask based on the task intent, redundant fields, invalid data fragments and unnecessary dependency information that are irrelevant to the current analysis target can be filtered out. This is beneficial to significantly reduce the overall volume of input data, avoid irrelevant data from interfering with the analysis logic, and improve the speed of data reasoning.
[0397] In an exemplary embodiment, based on the target task processing skill, the processed task data is processed to obtain the task processing result of the subtask. Specifically, this includes: obtaining the task processing rules of the subtask; and processing the processed task data based on the target task processing skill and the task processing rules to obtain the task processing result of the subtask.
[0398] Among them, task processing rules, also known as Rules, are a set of pre-configured constraints and verification logic for sub-tasks, including data calculation thresholds, attribution level requirements, conflict judgment criteria, output compliance constraints, de-identification filtering conditions, audit verification specifications, indicator statistical standards, and anomaly interception conditions.
[0399] For example, the task execution agent obtains the task identification information of the subtask, queries the correspondence between the task identification information and the task processing rules based on the task identification information, and obtains the task processing rules of the subtask; based on the target task processing skills and the task processing rules, it processes the processed task data to obtain the task processing result of the subtask.
[0400] It should be noted that in agent-driven data analysis systems, there are two types of knowledge with different granularities that need to be managed: one is behavioral constraints, such as lightweight, frequently reused behavioral norms such as "output reports should use Chinese", "original data must be anonymized when citing it", and "attribution analysis should go at least to the second-order cause"; the other is domain-level knowledge, such as heavyweight, on-demand professional methodologies such as complete analysis frameworks, output specifications, and quality checklists.
[0401] The aforementioned Skill package mechanism has solved the problem of domain-level knowledge management (through three-level progressive loading), but the following unaddressed needs still exist in behavioral constraints:
[0402] 1. Persistence across sessions: Users do not need to repeatedly declare behavioral preferences and constraints each time they start an analytics task.
[0403] 2. Precise control of the scope of application: Different types of constraints should take effect under different conditions to avoid irrelevant rules occupying the context.
[0404] 3. Multi-level configuration management: Team-level general specifications, project-level exclusive rules, and user-level personal preferences need to be managed in layers and support inheritance and overriding.
[0405] 4. API call cost optimization: As the most stable prefix part of Prompt, behavioral constraints should maximize the Prompt cache hit rate.
[0406] This solution proposes a layered persistent rules engine (Rules), which, together with the Skill package, forms a two-layer knowledge management system combining lightweight constraints and heavyweight knowledge, constituting a complete Agent context engineering solution. During data analysis task execution, the Agent needs to continuously adhere to the corresponding Rules. Rules, as the behavioral constraint layer, are injected preferentially or conditionally into the context of the controlling Agent and SubAgents to define behavioral boundaries such as output language, anonymization strategies, evidence citation methods, report formats, compliance checks, and domain-disallowed operations. Skills, as the task knowledge layer, are loaded after intent matching to guide specific analysis processes and methods. The execution order is as follows: first, team-level, project-level, and user-level Rules are parsed and merged to form the constraint set for the current task; then, SubAgents and Skills are matched based on task intent; subsequently, during SubAgent execution, Rules constrain its tool calls, data processing, and output generation, with Hooks performing deterministic verification at key nodes. This collaborative mechanism ensures that the analysis process possesses both professional methodologies and is controlled by cross-session persistent constraints.
[0407] like Figure 34As shown, the diagram is divided into a comparison of typical rules and typical skills, and a diagram of a two-tiered knowledge management system. In the comparison of typical rules and typical skills, the Rules example includes using Chinese characters in output, mandatory anonymization of cited data, mandatory data support in reports, and standardized monetary units. The Skills example includes a complete five-step analysis framework, a seven-chapter report structure template, a Python script for data parsing, and an attribution analysis methodology. The two-tiered knowledge management system diagram is divided into two main levels: "Rules Layer - Behavioral Constraints" and "Skills Layer - Domain-Level Knowledge." The "Rules Layer - Behavioral Constraints" are lightweight, each requiring 3000-5000 tokens, with a total quantity of less than 2000 tokens, and are injected into the System. The Prompt layer is at the very beginning and persists across sessions. Its caching effect is stable prefix, 95% cache hit rate, and a 60-73% cost reduction. The "Skills layer - domain-level knowledge" is heavyweight, with each entry occupying 100-500 tokens. It contains scripts, templates, and reference content. The injection method is a three-level progressive loading of "L1→L2→L3" and disclosure on demand. The resource effect is that L3 resources are read from disk and do not occupy the context window. The "Rules layer - behavioral constraints" represents behavioral constraints, which tells the Agent the "rules". The "Skills layer - domain-level knowledge" represents domain knowledge, which tells the Agent the "methods". Both types of knowledge are jointly distributed to the Agent runtime to constrain the Agent's entire operation process and guide business methods.
[0408] This solution designs four types of Rules injection, providing precise control over the scope of effectiveness for rules in different scenarios. It minimizes the consumption of invalid tokens while ensuring the consistency of Agent behavior, as shown in the table below:
[0409] Table 10 Rules Injection Types
[0410]
[0411] Among them, the effectiveness mechanism and caching impact of the four Rules injection types are as follows: Figure 35As shown in the diagram, this diagram is divided into an upper module for sorting cache friendliness and a lower module for four injection types. The top cache friendliness sorting from high to low is Always-99%, Intelligent-95%, Glob-70-90%, and Manual-50%, corresponding to the four rule injection types below: Always Injection, Intelligent Matching, Path Triggering, and Manual Invocation. ① Always Injection loads the complete rule content, each rule occupies 100-500 tokens, and is injected unconditionally on each request. The cache hit rate is 99%, and the prefix is completely stable. The example shows that the output uses Chinese characters, and the referenced data must be anonymized. ② Intelligent Matching injects only the metadata of name and description, about 50 tokens, which is injected by the Agent based on LL. M. Semantic understanding determines whether the complete content has been loaded, with a 95% cache hit rate and stable metadata. Examples include financial compliance audit rules and medical data privacy protection rules. ③ Path-triggered type corresponds to Glob, with a preset path pattern such as data / 7.xsx. When the data file path is matched, the complete rule content is injected, with a 70-90% cache hit rate, and the value varies with the file type. Examples include Excel anti-suspicion processing specifications and CSV encoding processing rules. ④ Manual type corresponds to Manual, which relies on the user to explicitly reference the @rule name to trigger. It is loaded on demand and will not be automatically injected, with a 50% cache hit rate and 50K random triggering. An example is the special report format audit export specification. The cache hit performance of the four injection types corresponds one-to-one with the top cache friendliness ranking, forming a tiered rule persistence injection scheme.
[0412] Among them, the intelligent matching rules adopt a "metadata-first" strategy similar to Skill L1. Only the name and description of each rule (approximately 50 tokens per rule) are injected into SystemPrompt. After receiving the user's analysis request, the Agent, based on the semantic understanding capabilities of LLM, determines whether the current task needs to load the full text of a rule. This mechanism consumes very few tokens (metadata) in most requests, only appending the complete content when it is truly relevant, achieving a dual optimization of "on-demand loading" and "caching friendliness." Path-triggered rules match the data file paths involved in the analysis task using declarative Glob patterns (such as data / ** / *.xlsx, logs / ** / *.csv). For example, when a user submits an Excel format data file, the system automatically injects Excel preprocessing specification rules; when the data source is a log file, it automatically injects log parsing specifications. This mechanism does not require the Agent to perform semantic judgment; the matching process is a deterministic path comparison calculation. In practical deployment, it is recommended to set the 5-10 most critical global rules (such as data security, output language, and citation standards) to always-injected, the domain-specific rules (such as industry terminology and compliance requirements) to intelligent matching, the data format-related rules to path-triggered, and the low-frequency special rules to manual invocation. This combination ensures the consistency of Agent behavior while keeping the total token consumption of always-injected rules below 2000 tokens.
[0413] This solution supports three levels of rule configuration, with higher-priority rules overriding lower-priority rules with the same name, enabling rule management across projects and teams, as shown in the table below:
[0414] Table 11 Rules Configuration
[0415]
[0416] It should be noted that the three-tier configuration override and injection process of Rules is as follows: Figure 36As shown. This flowchart illustrates the complete process of three layers of configuration sources being processed by the rule merging engine and then injected into the final System Prompt structure. The top three layers of configuration sources are: team-level rules (highest priority, centrally managed and enforceable in the Dashboard); project-level rules (file path: project / rules / .md, medium priority, used to store project-specific specifications); and user-level rules (file path: ~ / .config / rules / .md, lowest priority, carrying personal preferences). All three layers of rules are input into the rule merging engine. The rule merging engine first checks for name conflicts. If a conflict exists, it handles the conflicting rules according to the higher priority logic: Team > Project > User. Otherwise, all rules are retained. After conflict resolution, all rules are categorized into four types: Manual, Always Apply, Glob Match, and Intelligent. Manual rules await explicit user invocation; Always Apply rules are directly injected into the System Prompt header; Glob Match rules are injected only after path matching is completed in the conditional injection area; and Intelligent rules only inject the name and description to form a list of available rules. The final System Prompt structure is formed by... The Prompt structure consists of five layers: built-in Agent directives (fixed), Always Apply Rules (stable), matching Glob Rules (conditions), available rule list Intelligent (metadata), and Skill metadata index L1 (stable). The built-in Agent directives (fixed), Always Apply Rules (stable), matching Glob Rules (conditions), and available rule list Intelligent (metadata) constitute the prefix stable region, which belongs to the high hit range of the Prompt Cache. The entire process completes multi-level rule fusion, conflict resolution, and classified layered injection, ensuring cache hit rate and rule control priority.
[0417] The Rules engine in this solution features a deeply optimized Prompt caching mechanism for the LLM API. The Prompt cache is based on byte-for-byte prefix matching—when consecutive requests for the Prompt have the same prefix sequence, the LLM API can reuse the pre-computed KV-Cache. The cache read cost is only 10% of the base input price (equivalent to a 90% discount), while the cache write cost is 125% of the base price (only an extra 25% is paid on the first request). The break-even point requires only two requests.
[0418] Because the Rules content is injected at the very beginning of the System Prompt (second only to the built-in Agent directive), and the metadata portions of Always Apply and Intelligent types remain completely consistent across different analysis tasks, they constitute the most stable part of the request prefix. As long as the Rules content remains unchanged, prefix matching will hit the cache regardless of how the analysis requirements and data submitted by the user differ each time.
[0419] In this setup, Rules are placed at the beginning of the System Prompt, with dialogue history and user input at the end. Since caching is based on prefix matching, the more stable the initial content, the larger the reusable cache fragments, resulting in more significant cost savings. Rules should not contain dynamic variables such as timestamps, counters, or session IDs. If dynamic information needs to be transmitted, it should be done via messages rather than modifying the Rules content to avoid disrupting prefix stability and causing cache invalidation. Always-injectable Rules should ideally be limited to 2000 tokens (less than 1% of a 200K context window) to ensure that excessively large rule content does not crowd out the context space for data analysis and report generation, as shown in the table below:
[0420] Table 12 Comparison Data of Rules Engine Optimization
[0421]
[0422] The Rules engine does not operate in isolation but works in deep collaboration with other core mechanisms of this solution: Rules define what rules agents "should follow" (behavioral constraints), and Skills define how agents "should analyze" (domain methodology). They are loaded in layers: Rules take effect when the agent starts (injected into the System Prompt), while Skills are loaded on demand after task matching (L2 level). This layering avoids the management chaos and context bloat caused by mixing all specification information in the same layer. The rules of the master agent take effect on all sub-agents (through inheritance), while each sub-agent can add its own rules through project-level configuration. For example, a global data anonymization rule is enforced on all sub-agents, while the rule "financial data must retain four decimal places" only applies to the financial analysis sub-agent. Rules guide agents to comply with behavioral norms through the semantic understanding capabilities of LLM (probabilistic compliance, but significantly improved through persistent injection), while Hooks enforce checks at key nodes through deterministic scripts (100% execution rate). Together, they form a double-insurance mechanism of "soft constraints and hard fallback." For example, the Rules statement "No un-anonymized personal information may appear in the report" guides the Agent to proactively anonymize the data during the generation process. The afterFileEdit Hook forces the anonymization scanning script to be executed after the report is written as a fallback. The persistence and stability of the Rules content directly determine the Prompt cache hit rate. This solution designs the Rules as a "write once, stay stable across sessions" configuration file and follows the "static before, dynamic after" concatenation principle to ensure that the System Prompt prefix remains consistent across different analysis tasks, thereby achieving a high Prompt cache hit rate and forming a positive cycle of "stable rules → high cache hit rate → low API cost".
[0423] Among them, the rules and their collaborative relationship with various system mechanisms, such as... Figure 37As shown in the diagram, the top of the image represents the Rules hierarchical persistent rules engine. This engine houses Rules-related capabilities, including three core features: behavioral constraints, four injection types, and three-layer configuration coverage. The engine connects downwards to four collaborative mechanisms: "Rules×Prompt Cache," "Rules×Hooks," "Rules×SubAgent," and "Rules×Skills." Among these, "Rules×Prompt Cache" is the most prominent. "Cache" forms a cost optimization closed loop, relying on stable rules to achieve high cache hit rate, thereby reducing API costs by 60-73%; "Rules×Hooks" adopts a control mode of soft constraints plus hard fallback, with Rules responsible for guiding Agents to actively comply with the specifications, and Hooks relying on mandatory scripts to complete deterministic execution verification; "Rules×SubAgent" realizes rule inheritance and isolation, with global Rules taking effect on all SubAgents, and exclusive Rules only acting on their corresponding specific SubAgents; "Rules×Skills" constructs a two-layer knowledge management system, with Rules as lightweight behavioral constraints and Skills as heavyweight domain knowledge. The four collaborative mechanisms work together to integrate the constraint capabilities of the Rules layered persistent rule engine into the entire chain of cache optimization, process verification, multi-agent scheduling, and business analysis knowledge.
[0424] In this embodiment, by first obtaining the task processing rules specific to the subtasks, and then combining them with the target task processing skills to jointly analyze and calculate the processed task data, a deep binding between business analysis logic and standardized constraints is achieved. This avoids problems such as inconsistent analysis standards for different subtasks, non-compliant output content, and chaotic calculation standards for key indicators, which helps to improve the accuracy of task processing results.
[0425] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0426] In one exemplary embodiment, such as Figure 38 As shown, another task processing method is provided. Taking the application of this method to the main intelligent agent as an example, it includes the following steps:
[0427] Step S3801: Obtain the agent field of the candidate agent; the agent field is used to characterize the functional description information of the candidate agent.
[0428] Step S3802: Semantically match the agent field with the task intent of the task to be processed to obtain the matching degree between the candidate agent and the task intent.
[0429] Step S3803: From all candidate agents, determine the candidate agent with the highest matching degree with the task intent, and use it as the target agent.
[0430] Step S3804: Send the task to be processed to the target intelligent agent; The target intelligent agent sends the first workpiece reference corresponding to the subtask in the task to be processed to the task execution intelligent agent corresponding to the subtask, so that the task execution intelligent agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent.
[0431] Step S3805: Based on the second artifact reference returned by the target agent, locate the task processing result of the subtask.
[0432] Step S3806: Perform conflict detection on the task processing results of the subtask to obtain the conflict detection results corresponding to the task processing results of the subtask.
[0433] Step S3807: If the conflict detection results indicate that there are no conflicts between the task processing results of the subtasks, the task processing results of the subtasks are aggregated to obtain the task processing result of the task to be processed.
[0434] Step S3808: If the conflict detection result indicates that there is a conflict between the task processing results of the subtasks, determine the conflict type between the task processing results of the subtasks.
[0435] Step S3809: If the conflict type is the first conflict type, generate the task processing result of the task to be processed based on the task processing result of the subtask.
[0436] Step S3810: If the conflict type is the second conflict type, generate a conflict diagnosis result for the task to be processed based on the task processing result of the subtask. Based on the conflict diagnosis result, update the task processing results of the subtask that have conflicts to obtain the updated task processing result of the subtask. Aggregate the updated task processing result with other task processing results to obtain the task processing result of the task to be processed. Other task processing results are used to represent the task processing results of the subtask other than the task processing results that have conflicts.
[0437] In the above task processing method, during task processing, the master control agent first filters target agents that match the intent of the task to be processed, then the target agents decompose the task, and only pass the first workpiece reference corresponding to the sub-task. Each task execution agent can locate and process the task data corresponding to the sub-task based on the first workpiece reference, and only return the second workpiece reference corresponding to the task processing result. Finally, the master control agent retrieves the corresponding task processing result based on the second workpiece reference, thereby obtaining the complete task processing result of the task to be processed. The whole process involves the master control agent, target agents and task execution agents jointly processing the task to be processed, avoiding the single-point computing power bottleneck that exists in the traditional method of processing by a single agent, which leads to long processing time and is conducive to improving task processing efficiency.
[0438] Based on the same inventive concept, this application also provides a task processing apparatus for implementing the task processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more task processing apparatus embodiments provided below can be found in the limitations of the task processing method described above, and will not be repeated here.
[0439] In one exemplary embodiment, such as Figure 39 As shown, a task processing device is provided, including: an agent determination module 3901, a task sending module 3902, and a result determination module 3903, wherein:
[0440] The agent determination module 3901 is used to determine the target agent from the candidate agents that matches the task intent of the task to be processed.
[0441] The task sending module 3902 is used to send the task to be processed to the target intelligent agent; the target intelligent agent is used to send the first workpiece reference corresponding to the subtask in the task to be processed to the task execution intelligent agent corresponding to the subtask, so that the task execution intelligent agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent.
[0442] The result determination module 3903 is used to locate the task processing result of the subtask based on the second workpiece reference returned by the target intelligent agent, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0443] In an exemplary embodiment, the agent determination module 3901 is further configured to obtain the agent field of the candidate agent; the agent field is used to characterize the functional description information of the candidate agent; the agent field is semantically matched with the task intent of the task to be processed to obtain the matching degree between the candidate agent and the task intent; from each candidate agent, the candidate agent with the highest matching degree with the task intent is determined as the target agent.
[0444] In an exemplary embodiment, the result determination module 3903 is further configured to perform conflict detection on the task processing results of the subtasks to obtain conflict detection results corresponding to the task processing results of the subtasks; if the conflict detection results indicate that there are no conflicts between the task processing results of the subtasks, the task processing results of the subtasks are aggregated to obtain the task processing result of the task to be processed; if the conflict detection results indicate that there are conflicts between the task processing results of the subtasks, the conflict type between the task processing results of the subtasks is determined; and the task processing result of the task to be processed is determined according to the conflict type.
[0445] In an exemplary embodiment, the result determination module 3903 is further configured to: generate a task processing result for the task to be processed based on the task processing result of the subtask when the conflict type belongs to a first conflict type; generate a conflict diagnosis result corresponding to the task to be processed based on the task processing result of the subtask when the conflict type belongs to a second conflict type; update the conflicting task processing results in the task processing results of the subtask based on the conflict diagnosis result to obtain the updated task processing result of the subtask; and aggregate the updated task processing result with other task processing results to obtain the task processing result of the task to be processed. Other task processing results are used to represent the task processing results of the subtask other than the conflicting task processing results.
[0446] In one exemplary embodiment, such as Figure 40 As shown, a task processing apparatus is provided, including: a task receiving module 4001, a reference sending module 4002, and a reference returning module 4003, wherein:
[0447] The task receiving module 4001 is used to receive the task to be processed sent by the master intelligent agent; the master intelligent agent is used to determine the target intelligent agent that matches the task intent of the task to be processed from the candidate intelligent agents, and the target intelligent agent is the aggregate intelligent agent.
[0448] The reference sending module 4002 is used to send the reference of the first workpiece corresponding to the subtask in the task to be processed to the task execution agent corresponding to the subtask, so that the task execution agent can locate the task data corresponding to the subtask based on the reference of the first workpiece, process the task data, and obtain the task processing result of the subtask.
[0449] The reference return module 4003 is used to receive the second workpiece reference corresponding to the task processing result returned by the task execution agent, and return the second workpiece reference to the main control agent; the main control agent is also used to locate the task processing result of the subtask based on the second workpiece reference, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0450] In an exemplary embodiment, the task processing apparatus further includes a reference generation module, configured to determine the content hash information, access control token, task identification information, storage address, and evidence chain metadata corresponding to the subtask; and generate a first artifact reference corresponding to the subtask based on the content hash information, access control token, task identification information, storage address, and evidence chain metadata.
[0451] In an exemplary embodiment, the reference sending module 4002 is further configured to determine whether there are data dependencies and resource processing conflicts among the task execution agents; if there are no data dependencies and resource processing conflicts among the task execution agents, the references of the first artifacts corresponding to the subtasks in the task to be processed are sent in parallel to the task execution agents corresponding to the subtasks; if there are data dependencies and resource processing conflicts among the task execution agents, the references of the first artifacts corresponding to the subtasks in the task to be processed are sent sequentially to the task execution agents corresponding to the subtasks according to the data dependencies and resource processing conflicts among the task execution agents.
[0452] In an exemplary embodiment, when the target intelligent agent is a specialized intelligent agent, the task processing device further includes a first processing module, configured to obtain a third workpiece reference corresponding to the task to be processed; based on the third workpiece reference, locate the task data corresponding to the task to be processed, process the task data corresponding to the task to be processed, and return a fourth workpiece reference corresponding to the task processing result to the master intelligent agent; the master intelligent agent is further configured to locate the task processing result of the task to be processed based on the fourth workpiece reference.
[0453] In an exemplary embodiment, when the target agent is an exploratory agent, the task processing device further includes a second processing module, configured to: determine the target agent matching the task to be processed from the candidate agents; obtain a third artifact reference corresponding to the task to be processed; send the third artifact reference to the target agent, enabling the target agent to locate the task data corresponding to the task to be processed based on the third artifact reference; process the task data corresponding to the task to be processed to obtain the task processing result; receive a fourth artifact reference corresponding to the task processing result returned by the target agent; and return the fourth artifact reference to the master agent; the master agent is further configured to locate the task processing result based on the fourth artifact reference.
[0454] In one exemplary embodiment, such as Figure 41 As shown, a task processing apparatus is provided, including: a reference receiving module 4101 and a data processing module 4102, wherein:
[0455] The reference receiving module 4101 is used to receive the first workpiece reference corresponding to the subtask in the task to be processed sent by the target intelligent agent; the target intelligent agent is used to receive the task to be processed sent by the master intelligent agent; the master intelligent agent is used to determine the target intelligent agent that matches the task intent of the task to be processed from the candidate intelligent agents.
[0456] The data processing module 4102 is used to locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, obtain the task processing result of the subtask, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent; the target intelligent agent is also used to return the second workpiece reference to the master intelligent agent; the master intelligent agent is also used to locate the task processing result of the subtask based on the second workpiece reference, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0457] In an exemplary embodiment, the data processing module 4102 is further configured to determine a target task processing skill that matches the subtask from the task processing skills carried by the task execution agent; and process the task data corresponding to the subtask based on the target task processing skill to obtain the task processing result of the subtask.
[0458] In an exemplary embodiment, the data processing module 4102 is further configured to locate the task data corresponding to the subtask based on the first artifact reference via the model context protocol.
[0459] In an exemplary embodiment, the data processing module 4102 is further configured to prune the task data corresponding to the subtask according to the task intent corresponding to the subtask to obtain processed task data; and process the processed task data based on the target task processing skill to obtain the task processing result of the subtask.
[0460] In an exemplary embodiment, the data processing module 4102 is further configured to obtain the task processing rules of the subtask; and based on the target task processing skills and the task processing rules, process the processed task data to obtain the task processing result of the subtask.
[0461] Each module in the aforementioned task processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can invoke and execute the operations corresponding to each module.
[0462] In one exemplary embodiment, reference is made to Figure 1 A task processing system is provided, which includes a master control agent 101, a target agent 102, and a task execution agent 103.
[0463] The master control agent 101 is used to determine the target agent 102 that matches the task intent of the task to be processed from the candidate agents, and send the task to be processed to the target agent 102.
[0464] The target agent 102 is used to send the reference of the first artifact corresponding to the subtask in the task to be processed to the task execution agent 103 corresponding to the subtask.
[0465] The task execution agent 103 is used to locate the task data corresponding to the subtask based on the first artifact reference, process the task data, and return the second artifact reference corresponding to the task processing result of the subtask to the target agent 102.
[0466] The master control agent 101 is also used to locate the task processing result of the subtask based on the second workpiece reference returned by the target agent 102, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
[0467] In the aforementioned task processing system, during task processing, the master control agent first filters target agents that match the intent of the task to be processed. Then, the target agents decompose the task, passing only the first workpiece reference corresponding to the sub-task. Each task execution agent, based on the first workpiece reference, can locate and process the task data corresponding to the sub-task, returning only the second workpiece reference corresponding to the task processing result. Finally, the master control agent retrieves the corresponding task processing result based on the second workpiece reference, thus obtaining the complete task processing result. The entire process involves the master control agent, target agents, and task execution agents jointly processing the task, avoiding the single-point computing power bottleneck and long processing time issues inherent in traditional technologies where a single agent processes independently, thus improving task processing efficiency.
[0468] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 42 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores data such as task intentions and task processing results. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a task processing method.
[0469] Those skilled in the art will understand that Figure 42 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0470] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0471] In one exemplary embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above-described method embodiments.
[0472] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0473] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0474] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0475] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A task processing method, characterized in that, Applied to a master intelligent agent, the method includes: From the candidate agents, identify the target agent that matches the task intent of the task to be processed; The task to be processed is sent to the target intelligent agent; the target intelligent agent is used to send the first workpiece reference corresponding to the subtask in the task to be processed to the task execution intelligent agent corresponding to the subtask, so that the task execution intelligent agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and return the second workpiece reference corresponding to the task processing result of the subtask to the target intelligent agent. Based on the second workpiece reference returned by the target agent, the task processing result of the subtask is located, and the task processing result of the task to be processed is determined according to the task processing result of the subtask.
2. The method according to claim 1, characterized in that, The step of identifying the target agent from the candidate agents that matches the task intent of the task to be processed includes: Obtain the agent field of the candidate agent; the agent field is used to characterize the functional description information of the candidate agent. The agent field is semantically matched with the task intent of the task to be processed to obtain the matching degree between the candidate agent and the task intent. From all the candidate agents, the candidate agent with the highest matching degree with the task intent is determined as the target agent.
3. The method according to claim 1, characterized in that, Determining the task processing result of the task to be processed based on the task processing result of the subtask includes: Perform conflict detection on the task processing results of the subtask to obtain the conflict detection results corresponding to the task processing results of the subtask. If the conflict detection result indicates that there is no conflict between the task processing results of the subtasks, the task processing results of the subtasks are aggregated to obtain the task processing result of the task to be processed. If the conflict detection result indicates that there is a conflict between the task processing results of the subtasks, the conflict type between the task processing results of the subtasks shall be determined. Based on the conflict type, the task processing result of the task to be processed is determined.
4. The method according to claim 3, characterized in that, The step of determining the task processing result of the task to be processed based on the conflict type includes: If the conflict type belongs to the first conflict type, the task processing result of the task to be processed is generated based on the task processing result of the subtask. If the conflict type is the second conflict type, a conflict diagnosis result corresponding to the task to be processed is generated based on the task processing result of the subtask. Based on the conflict diagnosis result, the task processing results of the subtask that have conflicts are updated to obtain the updated task processing result of the subtask. The updated task processing result is then aggregated with other task processing results to obtain the task processing result of the task to be processed. The other task processing results are used to represent the task processing results of the subtask other than the task processing results that have conflicts.
5. A task processing method, characterized in that, Applied to a target intelligent agent, the method includes: The system receives a task to be processed from a master intelligent agent; the master intelligent agent is used to determine the target intelligent agent that matches the task intent of the task to be processed from the candidate intelligent agents, and the target intelligent agent is an aggregate intelligent agent. The first workpiece reference corresponding to the subtask in the task to be processed is sent to the task execution agent corresponding to the subtask, so that the task execution agent can locate the task data corresponding to the subtask based on the first workpiece reference, process the task data, and obtain the task processing result of the subtask. The system receives a second artifact reference corresponding to the task processing result returned by the task execution agent and returns the second artifact reference to the master control agent. The master control agent is also used to locate the task processing result of the subtask based on the second artifact reference and determine the task processing result of the task to be processed based on the task processing result of the subtask.
6. The method according to claim 5, characterized in that, Before sending the first artifact reference corresponding to the subtask in the task to be processed to the task execution agent corresponding to the subtask, the method further includes: The content hash information, access control token, task identification information, storage address, and evidence chain metadata corresponding to the subtask are determined. Based on the content hash information, the access control token, the task identifier information, the storage addressing address, and the evidence chain metadata, a first artifact reference corresponding to the subtask is generated.
7. The method according to claim 5, characterized in that, Sending the reference of the first artifact corresponding to the subtask in the task to be processed to the task execution agent corresponding to the subtask includes: Determine whether there are data dependencies and resource processing conflicts among the various task execution agents; In the absence of data dependencies and resource processing conflicts among the task execution agents, the first artifact references corresponding to the subtasks in the task to be processed are sent in parallel to the task execution agents corresponding to the subtasks. In the event of data dependencies and resource processing conflicts among the task execution agents, the first artifact references corresponding to the subtasks in the task to be processed are sent to the task execution agents corresponding to the subtasks in turn, according to the data dependencies and resource processing conflicts among the task execution agents.
8. The method according to claim 5, characterized in that, When the target agent is a specialized agent, the method further includes: Obtain the reference to the third workpiece corresponding to the task to be processed; Based on the third workpiece reference, the task data corresponding to the task to be processed is located, the task data corresponding to the task to be processed is processed, and the fourth workpiece reference corresponding to the task processing result of the task to be processed is returned to the main control agent; the main control agent is also used to locate the task processing result of the task to be processed based on the fourth workpiece reference.
9. The method according to claim 5, characterized in that, When the target agent is an exploratory agent, the method further includes: From the candidate specialized agents, a target specialized agent that matches the task to be processed is identified; Obtain the third workpiece reference corresponding to the task to be processed, send the third workpiece reference to the target special agent, so that the target special agent can locate the task data corresponding to the task to be processed based on the third workpiece reference, process the task data corresponding to the task to be processed, and obtain the task processing result of the task to be processed. The system receives a fourth artifact reference corresponding to the task processing result of the task to be processed, returned by the target-specific intelligent agent, and returns the fourth artifact reference to the master intelligent agent; the master intelligent agent is also used to locate the task processing result of the task to be processed based on the fourth artifact reference.
10. A task processing method, characterized in that, The method, applied to a task execution agent, includes: The system receives a reference to a first artifact corresponding to a subtask in a task to be processed sent by a target intelligent agent; the target intelligent agent receives the task to be processed sent by a master intelligent agent; the master intelligent agent determines the target intelligent agent that matches the task intent of the task to be processed from among the candidate intelligent agents. Based on the first artifact reference, the task data corresponding to the subtask is located, the task data is processed to obtain the task processing result of the subtask, and the second artifact reference corresponding to the task processing result of the subtask is returned to the target agent; the target agent is also used to return the second artifact reference to the master agent; the master agent is also used to locate the task processing result of the subtask based on the second artifact reference, and determine the task processing result of the task to be processed based on the task processing result of the subtask.
11. The method according to claim 10, characterized in that, The process of processing the task data to obtain the task processing result of the subtask includes: From the task processing skills carried by the task execution agent, determine the target task processing skill that matches the sub-task; Based on the target task processing skills, the task data corresponding to the sub-task is processed to obtain the task processing result of the sub-task.
12. The method according to claim 11, characterized in that, The step of locating the task data corresponding to the subtask based on the first artifact reference includes: Using the model context protocol, the task data corresponding to the subtask is located based on the first artifact reference.
13. The method according to claim 11, characterized in that, The step of processing the task data corresponding to the sub-task based on the target task processing skill to obtain the task processing result of the sub-task includes: According to the task intent corresponding to the subtask, the task data corresponding to the subtask is pruned to obtain the processed task data. Based on the target task processing skills, the processed task data is processed to obtain the task processing result of the subtask.
14. The method according to claim 13, characterized in that, The step of processing the processed task data based on the target task processing skill to obtain the task processing result of the sub-task includes: Obtain the task processing rules for the subtask; Based on the target task processing skills and the task processing rules, the processed task data is processed to obtain the task processing result of the subtask.
15. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 14.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.
17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.
