Adaptive routing scheduling method

By adopting an adaptive routing and scheduling method, based on multi-dimensional complexity assessment and hierarchical capability orchestration, the complexity of tasks is automatically quantified and adaptively distributed, solving the problems of resource waste and subjective user judgment in existing technologies, and achieving efficient task processing and improved system robustness.

CN123145197APending Publication Date: 2026-11-20CHINA MERCHANTS GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611277766.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, the unified processing pipeline mode causes simple queries to consume deep inference resources, reducing system throughput and response latency, and the lack of pre-processed complex metric means leads to coarse resource allocation; manual switching mode relies on user subjective judgment, which is prone to selection errors, cannot adapt to the task requirements of dynamically changing session context, and the system business logic is tightly coupled, making it difficult to reuse and extend the underlying basic capabilities.

Method used

The system uses an adaptive routing scheduling method to acquire user task requests, perform multi-dimensional complexity assessments, generate a comprehensive complexity score, and execute adaptive routing scheduling based on the score to generate routing decision results, including fast processing paths, deep analysis paths, or dual-mode responses. It also uses a layered orchestration mechanism to call the corresponding path to execute task processing and supports a circuit breaker mechanism to manage service recovery processes.

Benefits of technology

It achieves the matching of corresponding computing resources and inference links for simple and complex tasks, automatically quantifies task complexity and adaptively distributes tasks, optimizes resource allocation and response speed, improves system robustness, reduces user operation burden, and avoids resource waste and abnormal blocking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145197A_ABST
    Figure CN123145197A_ABST
Patent Text Reader

Abstract

The application discloses a self-adaptive routing scheduling method, and relates to the technical field of task scheduling, comprising: obtaining a user task request, performing multi-dimensional complexity evaluation on the user task request, and generating a comprehensive complexity score; performing self-adaptive routing scheduling according to a comparison result between the comprehensive complexity score and a preset complexity threshold, generating a routing decision result, and the routing decision result comprising any one of a fast processing path, a deep analysis path or a dual-mode response with a deep analysis entry; calling a path corresponding to the routing decision result through a hierarchical capability arrangement mechanism to execute task processing, and outputting a task response result. The application can automatically quantify task complexity and adaptively distribute and match corresponding processing paths, which can not only reduce the operation burden of users, but also avoid consuming deep reasoning computing power for simple tasks, optimize resource allocation and response speed, and isolate abnormalities through differentiated paths to improve system robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of task scheduling technology, and in particular to an adaptive routing scheduling method. Background Technology

[0002] Currently, there are two main mature solutions for handling heterogeneous requests in the industry. One is a unified processing pipeline mode, which does not differentiate between task complexity and allows all requests to go through the entire process of intent recognition, deep model inference, and multi-round tool orchestration. The other is a manual mode switching solution, which sets up two entry points, query and analysis, in the interactive interface and allows users to select the processing path in advance. Both solutions have simple architectures and low development costs, and are the mainstream choice for enterprise intelligent service systems.

[0003] However, both existing solutions have inherent shortcomings that cannot be avoided. The unified pipeline mode allows simple queries to consume deep inference resources, reducing system throughput and increasing response latency. Furthermore, the lack of pre-processed complex metric methods leads to inefficient resource allocation, and abnormal complex tasks can block the overall service channel. The manual switching mode relies on user subjective judgment, which is prone to selection errors and increases user operation costs. It also cannot adapt to the task requirements of dynamically changing session contexts. Moreover, the existing system's business logic is tightly coupled, making it difficult to reuse and extend the underlying basic capabilities. Overall, there are significant bottlenecks in service robustness and resource utilization efficiency. Summary of the Invention

[0004] The main purpose of this application is to provide an adaptive routing scheduling method that aims to eliminate the risk of simple queries consuming deep inference resources and complex task anomalies blocking the overall service channel in the unified processing pipeline mode, while avoiding the reliance on user subjective judgment for manual mode switching.

[0005] To achieve the above objectives, this application proposes an adaptive routing scheduling method, the method comprising: Obtain user task requests, perform multi-dimensional complexity evaluation on the user task requests, and generate a comprehensive complexity score; Adaptive routing scheduling is performed based on the comparison between the comprehensive complexity score and the preset complexity threshold to generate a routing decision result. The routing decision result includes any one of the following: a fast processing path, a deep analysis path, or a dual-mode response with a deep analysis entry point. The fast processing path uses a shortest link, single-step reasoning, and deterministic execution strategy to complete standardized task processing. The deep analysis path uses a task decomposition, multi-agent collaborative execution, and iterative optimization strategy to complete complex analysis task processing. When the core dependent service of the deep analysis path fails, degradation processing is automatically triggered, transferring the request to a simplified version of the fast processing path for execution, and a circuit breaker mechanism is used to manage the service recovery process. The task processing is executed by calling the path corresponding to the routing decision result through a hierarchical capability orchestration mechanism, and the task response result is output.

[0006] In one possible implementation, the step of performing a multi-dimensional complexity evaluation of the user task request to generate a comprehensive complexity score includes: The semantic complexity of the user task request is evaluated by extracting the number of concept entities, the maximum path depth of the dependency tree, and the proportion of ambiguous words in the user task request through word segmentation and dependency parsing, and calculating the semantic complexity score item. The data source breadth assessment is performed on the user task request, the query intent of the user task request is matched with the pre-built metadata graph, the number of data sources to be accessed and the number of cross-system related fields are determined, and the data source breadth score sub-item is calculated. The reasoning steps of the user task request are estimated and evaluated. The semantic features of the user task request are matched with a preset reasoning pattern template library to determine the minimum number of reasoning steps required to complete the user task request, and the reasoning step estimation score item is calculated. The time-series correlation degree of the user task request is evaluated, and it is detected whether the user task request contains time range description, trend analysis request and time granularity level, and the time-series correlation degree score sub-item is calculated. The semantic complexity score, the data source breadth score, the reasoning step prediction score, and the temporal correlation score are weighted and fused according to their respective weights to generate the comprehensive complexity score.

[0007] In one possible implementation, the semantic complexity evaluation of the user task request involves extracting the number of concept entities, the maximum path depth of the dependency tree, and the proportion of ambiguous words from the user task request through word segmentation and dependency parsing, and calculating semantic complexity scoring sub-items, including: The user task request is segmented into words, and the independent business concepts involved in the user task request are taken as concept entities. The number of entities of the concept entities is counted. Dependency parsing is performed on the user task request to construct a dependency parsing tree, and the maximum path depth from the root node to the leaf node in the dependency parsing tree is calculated. Based on a pre-set domain dictionary, the user task request is matched with words to identify words with semantic ambiguity, and the proportion of ambiguous words to all content words is calculated. The semantic complexity score item is obtained by weighting and summing the number of entities of the concept entity, the maximum path depth, and the ambiguity ratio according to their respective weights.

[0008] In one possible implementation, the preset complexity threshold includes a first threshold and a second threshold, wherein the first threshold is less than the second threshold; The step of performing adaptive route scheduling based on the comparison result between the comprehensive complexity score and the preset complexity threshold, and generating a route decision result, includes: The overall complexity score is compared with the first threshold and the second threshold, respectively; When the overall complexity score is less than or equal to the first threshold, a routing decision result is generated to route to the fast processing path; When the overall complexity score is greater than or equal to the second threshold, a routing decision result is generated to route to the deep analysis path; When the overall complexity score is greater than the first threshold and less than the second threshold, the user's historical behavior data, current system load status data, and context association data of the user's task request and historical session are obtained. An adjusted routing preference score is generated based on the user's historical behavior data, current system load status data, and context association data. A routing decision result containing any one of the following is generated based on the routing preference score: a fast processing path, a deep analysis path, or a dual-mode response with a deep analysis entry point.

[0009] In one possible implementation, the step of invoking the path corresponding to the routing decision result through a hierarchical capability orchestration mechanism to perform task processing and output the task response result includes: When the routing decision result is a fast processing path, the single-step reasoning capability in the atomic capability layer is invoked through the hierarchical capability orchestration mechanism. The single-step reasoning capability includes data query capability, statistical aggregation capability and text generation capability. The shortest link execution strategy is adopted, skipping the task decomposition and multi-step planning stages, and directly performing single-step processing on the user task request through the single-step reasoning capability, and querying whether there are historical results of the same request in the preset result cache. If they exist, the cached result is directly obtained. The processing results are formatted into a standard response template, and the task response results are output.

[0010] In one possible implementation, the step of invoking the path corresponding to the routing decision result through a hierarchical capability orchestration mechanism to perform task processing and output the task response result includes: When the routing decision result is a deep analysis path, the user task request is decomposed into multiple sub-tasks by the planning agent, and a directed acyclic graph is constructed according to the dependency relationship between each sub-task to determine the execution order of each sub-task. The execution agent calls the corresponding atomic or composite capabilities from the hierarchical capability orchestration mechanism to execute each subtask according to the task type of each subtask, and the verification agent verifies the accuracy and consistency of the task execution results. When the verification agent detects that the task execution result is abnormal or the confidence level is insufficient, it triggers the planning agent to replan the task execution scheme to form an iterative optimization closed loop. When the core dependency service of the deep analysis path is abnormal, it performs degradation processing through the circuit breaker and outputs the task response result in a structured format.

[0011] In one possible implementation, the step of invoking the path corresponding to the routing decision result through a hierarchical capability orchestration mechanism to perform task processing and output the task response result includes: When the routing decision result is a dual-mode response with a deep analysis entry point, the basic query capabilities in the atomic capability layer are invoked through the hierarchical capability orchestration mechanism to generate a brief query result; A brief result response is generated based on the brief query results, and an entry link for a deep analysis entry is generated based on the brief result response. The deep analysis entry is used by the user to trigger the full execution of the deep analysis path. The brief result response and the deep analysis entry link are combined into a dual-mode response result, and the task response result is output.

[0012] Furthermore, to achieve the above objectives, this application also proposes an adaptive routing scheduling device, which includes: The acquisition module is used to acquire user task requests, perform multi-dimensional complexity evaluation on the user task requests, and generate a comprehensive complexity score. The scheduling module is used to perform adaptive route scheduling based on the comparison result between the comprehensive complexity score and the preset complexity threshold, and generate a route decision result. The route decision result includes any one of the following: a fast processing path, a deep analysis path, or a dual-mode response with a deep analysis entry point. The fast processing path uses the shortest link, single-step reasoning, and deterministic execution strategy to complete standardized task processing. The deep analysis path uses task decomposition, multi-agent collaborative execution, and iterative optimization strategy to complete complex analysis task processing. When the core dependent service of the deep analysis path fails, degradation processing is automatically triggered, transferring the request to a simplified version of the fast processing path for execution, and managing the service recovery process through a circuit breaker mechanism. The execution module is used to call the path corresponding to the routing decision result through a hierarchical capability orchestration mechanism to perform task processing and output the task response result.

[0013] In addition, to achieve the above objectives, this application also proposes an adaptive routing scheduling device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the adaptive routing scheduling method as described above.

[0014] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and which, when executed by a processor, implements the steps of the adaptive routing scheduling method described above.

[0015] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the adaptive routing scheduling method described above.

[0016] This application provides an adaptive routing scheduling method. The method acquires a user task request, performs a multi-dimensional complexity assessment of the request, generates a comprehensive complexity score, and then executes adaptive routing scheduling based on a comparison between the comprehensive complexity score and a preset complexity threshold. This generates a routing decision result, which includes any one of a fast processing path, a deep analysis path, or a dual-mode response with a deep analysis entry point. A hierarchical capability orchestration mechanism is then used to call the path corresponding to the routing decision result to execute task processing and output a task response result. Furthermore, before executing task processing, the method performs a multi-dimensional complexity assessment of the user task request and adaptively routes it to a differentiated processing path based on the assessment results. This ensures that simple and complex tasks are matched with corresponding computing resources and inference links, automatically quantifying task complexity and adaptively routing to matching processing paths. By relying on hierarchical capability orchestration to reuse underlying capabilities, the method eliminates the need for users to manually select processing modes, reducing operational burden. It also avoids simple tasks consuming deep inference computing power, optimizing resource allocation and response speed. Simultaneously, differentiated paths isolate anomalies to improve system robustness. Attached Figure Description

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

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

[0019] Figure 1 The system architecture diagram of the adaptive routing scheduling system provided for the adaptive routing scheduling method of this application; Figure 2 A flowchart illustrating the deep analysis of path cooperation and circuit breaking provided for the adaptive routing scheduling method of this application; Figure 3 This is a flowchart illustrating the multi-dimensional complexity evaluation of the adaptive routing scheduling method in this application.

[0020] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0021] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0022] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0023] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device, big data service platform, adaptive routing scheduling system, etc., capable of realizing the above functions. The following description uses an adaptive routing scheduling system as an example to illustrate this embodiment and the subsequent embodiments.

[0024] For reference Figure 1The adaptive routing scheduling system adopts a layered architecture, divided from top to bottom into a user layer, an evaluation layer, a decision layer, an execution layer, and a capability orchestration layer. The user layer receives user task requests from external input and passes them down to the evaluation layer. The evaluation layer performs feature quantification evaluation of the task request from four dimensions: semantic complexity, data source breadth, inference step estimation, and temporal correlation. Then, a weighted fusion operation is performed to obtain a comprehensive task complexity score. For example, for simple query tasks, the overall quantification values ​​output by each evaluation dimension are relatively low, resulting in a lower comprehensive complexity score after weighting. For multi-condition comprehensive analysis tasks, all four dimensions output higher quantification values, resulting in a higher comprehensive complexity score after weighting. The comprehensive complexity score output by the evaluation layer is input to the adaptive routing decision engine within the decision layer. The decision engine uses a dual-threshold strategy to determine the route branch, where T1 represents the upper threshold of the fast path and T2 represents the lower threshold of the deep path. When the comprehensive complexity score is less than or equal to T1... When the overall complexity score is greater than or equal to T2, the execution layer selects the fast processing path, which uses single-step lightweight inference, prioritizes calling atomic capabilities and hitting the cache to complete task processing. When the overall complexity score is greater than or equal to T2, the execution layer switches to the deep analysis path, which uses the processing logic of planned execution verification to complete the orchestration of atomic or composite capabilities, and supports circuit breaking and degradation processing. When the overall complexity score is between T1 and T2, a dual-mode response is executed, outputting basic query results while opening the deep analysis entry. All three types of processing branches of the execution layer call the basic capabilities provided by the underlying capability orchestration layer, such as data query, text generation, statistical calculation, knowledge retrieval, and tool call. After the capability orchestration layer completes the capability scheduling calculation, the task response results are output uniformly. The entire layered architecture decouples the task complexity assessment logic, routing decision logic, business execution logic and underlying capability resources. Tasks of different complexities can be matched with corresponding processing links to realize on-demand allocation of computing resources, taking into account the response latency of simple tasks and the processing depth of complex tasks.

[0025] Based on this, this application provides an adaptive routing scheduling method. In this embodiment, the adaptive routing scheduling method includes steps S11 to S13: Step S11: Obtain the user task request, perform a multi-dimensional complexity evaluation on the user task request, and generate a comprehensive complexity score. It should be noted that user task requests refer to natural language query and analysis text commands input by users in the enterprise human resource intelligent agent system, including simple information retrieval requests and complex multi-dimensional analysis requests. Multi-dimensional complexity assessment refers to a complete evaluation process that quantifies the difficulty of task execution from four independent dimensions: semantic complexity, data source breadth, reasoning step estimation, and temporal correlation. Semantic complexity refers to the evaluation dimension that measures the language structure, number of entities, and degree of semantic ambiguity of the request text; data source breadth refers to the evaluation dimension that measures the number of data sources required to complete the task and the complexity of cross-system correlation; reasoning step estimation refers to the evaluation dimension that measures the minimum length of the reasoning link required to complete the task; temporal correlation refers to the evaluation dimension that measures whether the task involves time series, trend comparison, and multi-granularity time operations; the comprehensive complexity score refers to the output of a standardized value with a fixed range of 0.0 to 1.0 after normalizing and weighting the independent score items of the four dimensions. The higher the value, the higher the execution complexity of the user task request.

[0026] In addition, the system's internal multi-dimensional task complexity assessment module handles all computational work in this step. The core purpose of this step is to automatically quantify the task difficulty before the request enters the formal processing pipeline, eliminating the need for users to manually distinguish task types and resolving the shortcomings of manual mode selection leading to misjudgments and increased user workload. In one possible implementation, the weighting coefficients corresponding to the four dimensions can be obtained offline based on the full historical request data, and the system supports periodic incremental updates of the weights to continuously optimize the accuracy of complexity assessment.

[0027] Specifically, the system first receives the user's raw natural language text input and performs text cleaning and identity information binding preprocessing operations; the multi-dimensional task complexity evaluation module sequentially performs four independent scoring calculations: The first step involves text segmentation and dependency parsing to count the number of concept entities, the maximum depth of the syntax tree, and the proportion of ambiguous words, calculating the semantic complexity score. The second step matches the pre-built metadata graph to count the number of required data sources and the number of cross-system related field pairs, calculating the data source breadth score. The third step performs similarity matching between the text semantic vector and a pre-built inference pattern template library to estimate the minimum number of inference steps, calculating the inference step estimation score. The fourth step identifies the time range within the text, trend analysis requirements, and differences in time granularity, calculating the temporal correlation score. Finally, the trained four-dimensional normalized weights are retrieved, and the four sub-items are weighted and summed to generate a comprehensive complexity score within the range of 0.0 to 1.0, while retaining the independent scores of each dimension for auxiliary routing decisions.

[0028] For example, if a user's task request is "Analyze the changes in the turnover rate of the group's R&D center over the past three years and provide improvement suggestions," the system will preprocess the text and score it sequentially: semantic complexity. Rating sub-item 0.65, breadth of data sources Scoring sub-item 0.72, Reasoning steps prediction The scoring sub-item is 0.80, and the temporal correlation is... The scoring sub-item is 0.85; preset weights are retrieved: alpha=0.35, beta=0.25, gamma=0.25, delta=0.15, where alpha, beta, gamma, and delta are normalized weight coefficients satisfying alpha + beta + gamma + delta = 1.0. The weighted calculation formula is:

[0029] The calculated overall complexity score is 0.735.

[0030] Step S12: Based on the comparison result between the comprehensive complexity score and the preset complexity threshold, adaptive routing scheduling is performed to generate a routing decision result. The routing decision result includes any one of a fast processing path, a deep analysis path, or a dual-mode response with a deep analysis entry point. The fast processing path uses the shortest link, single-step reasoning, and deterministic execution strategy to complete standardized task processing. The deep analysis path uses task decomposition, multi-agent collaborative execution, and iterative optimization strategies to complete complex analysis task processing. When the core dependent service of the deep analysis path fails, degradation processing is automatically triggered, transferring the request to a simplified version of the fast processing path for execution, and the service recovery process is managed through a circuit breaker mechanism. It should be noted that the preset complexity threshold refers to two critical values ​​determined by the system based on historical request data, including a first threshold and a second threshold, with the first threshold being less than the second threshold. The first threshold refers to the upper limit of the score for fast path adaptation requests; tasks with scores below this value can be correctly processed through the fast path. The second threshold refers to the lower limit of the score for deep path adaptation requests; tasks with scores above this value must be analyzed through the deep path. Adaptive routing scheduling refers to the scheduling logic where the adaptive routing decision engine automatically matches the corresponding processing pipeline based on the comprehensive complexity score, without manual intervention. The routing decision result refers to the instruction identifier output by the engine, used to guide the subsequent task processing flow. The fast processing path refers to a short processing pipeline for standardized simple query tasks, using single-step lightweight inference and a second-level response. The deep analysis path refers to a long processing pipeline for multi-source complex analysis tasks, supporting multi-agent decomposition and iteration, and complete deep inference. The dual-mode response with a deep analysis entry point refers to a hybrid response scheme where, when the complexity is in the fuzzy range, a brief query result is output first, followed by a jump to the deep analysis channel.

[0031] In addition, the system's internal adaptive routing decision engine handles all decision-making calculations in this step. The core purpose of this step is to automatically distribute tasks based on a quantified comprehensive complexity score, enabling lightweight processing of simple tasks and in-depth analysis of complex tasks, balancing system response speed and analytical completeness, while also addressing the shortcomings of wasted unified pipeline resources and rigid manual mode switching. In one possible implementation, the first and second thresholds support incremental self-optimization. The system periodically collects user satisfaction and task accuracy metrics after routing is completed, automatically fine-tuning the two thresholds to continuously improve routing accuracy.

[0032] Specifically, the adaptive routing decision engine reads the comprehensive complexity score output in step S11, retrieves the first threshold T1 and the second threshold T2 stored in the system's persistent storage, and performs a numerical comparison. If the comprehensive complexity score is ≤ T1, a routing decision result is directly generated that routes to the fast processing path. If the comprehensive complexity score is ≥ T2, a routing decision result is directly generated that routes to the deep analysis path. If the comprehensive complexity score is between T1 and T2, the engine activates the auxiliary decision-making mechanism, simultaneously retrieving three types of supplementary data: the user's historical request path usage ratio, the current overall system load, and the continuity of the current session context. The engine calculates the adjusted routing preference score. If the preference is for deep analysis, a deep analysis path decision is output; if the preference is for fast query, a dual-mode response decision with a deep analysis entry point is output.

[0033] For example, the system presets T1=0.30 and T2=0.70, and the overall complexity score of 0.45 is in the middle of the two thresholds. The auxiliary decision-making mechanism finds that the current system is under low load and that 70% of the user's historical requests use the deep path. It calculates the preference score and it leans towards deep analysis. The engine finally generates a routing decision result that routes to the deep analysis path. If the current system is under high load and the user rarely uses the deep path, a dual-mode response routing decision result with a deep analysis entry is generated.

[0034] Step S13: The task processing is performed by calling the path corresponding to the routing decision result through the hierarchical capability orchestration mechanism, and the task response result is output.

[0035] It should be noted that the layered capability orchestration mechanism refers to a reusable capability scheduling framework composed of three layers: atomic capability layer, composite capability layer, and scenario capability layer. The atomic capability layer refers to the bottom layer that stores indivisible basic computing units, including standardized single-function components such as data query, statistical aggregation, and text generation. The composite capability layer refers to the middle layer that forms business modules by orchestrating multiple atomic capabilities. The scenario capability layer refers to the upper layer that orchestrates composite capabilities to form complete business solutions. Task processing refers to the process of calling layered capabilities according to dedicated execution logic to complete the entire process of data reading, inference calculation, and result verification. Task response results refer to user-readable output content consisting of standardized text, structured reports, and visual charts.

[0036] In addition, the system's internal three-layer capability orchestration and execution engine handles the capability scheduling for this step. It rapidly processes paths, deeply analyzes paths, shares unified identity authentication, data source access, and manages the underlying infrastructure for session management. The core purpose of this step is to leverage decoupled layering capabilities to achieve component reuse, differentiate the processing logic corresponding to different routing decisions, and introduce circuit breaking and degradation mechanisms to ensure overall service availability. This addresses the shortcomings of tightly coupled underlying capabilities and the abnormal blocking of simple queries by complex tasks. In one possible implementation, the layered capability orchestration mechanism supports hot-swapping of capabilities; adding new HR analysis functions only requires registering a new orchestration process at the scenario layer, without modifying the underlying scheduling logic.

[0037] Specifically, the three-layer capability orchestration and execution engine reads the routing decision results and executes task processing in three branches: When the decision is to use a fast processing path, the engine directly schedules the data query and lightweight text generation single-step capabilities of the atomic capability layer, skips the task decomposition stage, prioritizes reading the result cache, and quickly formats and outputs short text. When the decision involves a deep analysis path, the engine scheduler plans the agent by breaking down subtasks and constructing a directed acyclic graph. It then calls upon the executing agent to perform parallel computations using hierarchical scheduling of atomic and composite capabilities. The engine verifies the agent's real-time verification results and triggers a circuit breaker to switch to a fast path simplification logic when a core service times out or reports an error. Finally, it outputs a structured report with charts and suggestions for reference. Figure 2 ; When the decision is a dual-mode response, the engine only calls the basic query atomic capabilities to generate brief text results, adds an entry link for one-click jump to the in-depth analysis path, and then merges the output; after all processing is completed, it is uniformly packaged into a standardized task response result and pushed to the user terminal.

[0038] For example, the routing decision result is a deep analysis path. The engine scheduling and planning agent breaks down the turnover rate analysis request into three sub-tasks: data collection, statistical calculation, and suggestion generation, and constructs a linear directed acyclic graph. The execution agent calls the data query and statistical aggregation atomic capabilities in parallel to collect personnel data from the past three years, and verifies the integrity of the data. If the turnover data source service times out continuously, the circuit breaker switches the degradation logic, uses historical snapshot data to complete the basic calculation, and finally outputs a structured task response result that includes a three-year turnover trend chart, the distribution of turnover reasons, and optimization measures.

[0039] This embodiment automatically quantifies the execution difficulty of user task requests from four dimensions: semantics, data source, inference, and time sequence, and outputs a standardized comprehensive complexity score. The entire process eliminates the need for users to manually label task types, thus avoiding misjudgments and operational burdens caused by manual selection. Adaptive routing is achieved based on two preset thresholds, supplemented by user profiles, system load, and session context for ambiguous intervals, automatically generating three types of differentiated routing decisions. This enables on-demand resource allocation for simple tasks (lightweight) and complex tasks (deep), significantly reducing end-to-end response latency for simple requests and improving overall computing power utilization. A three-layer decoupled layered capability orchestration framework matches routing decisions to corresponding processing pipelines, ensuring that computation is performed only on local infrastructure and the entire process is only executed after the user actively authorizes the activation of intelligent services. This adapts to various user request scenarios within the group's human resources department, compressing the average response time of standardized high-frequency queries to less than 2 seconds while ensuring the output of complete and implementable diagnostic reports for complex multi-dimensional talent analysis tasks. Simultaneously, it avoids complex task failures blocking basic query services, significantly improving system throughput, resource utilization, and a seamless intelligent user experience. The underlying layered capability architecture significantly reduces the development and maintenance costs of new HR business functions.

[0040] Based on this, embodiments of this application provide an adaptive routing scheduling method, referring to... Figure 2 , Figure 2 This is a flowchart illustrating Embodiment 2 of the adaptive routing scheduling method of this application.

[0041] In one feasible implementation, the step of performing a multi-dimensional complexity evaluation of the user task request and generating a comprehensive complexity score includes: Step S21: Perform semantic complexity evaluation on the user task request. Extract the number of concept entities, the maximum path depth of the dependency syntax tree, and the proportion of ambiguous words in the user task request through word segmentation and dependency parsing, and calculate the semantic complexity score item. It should be noted that semantic complexity assessment refers to a single-item scoring process used to measure the language structure, business entities, and semantic ambiguity of request text; word segmentation refers to the text preprocessing operation of cutting continuous natural language text into independent lexical units; dependency parsing refers to the algorithm that parses the grammatical relationships between words in a sentence, such as modification, subject-verb, verb-object, etc., and generates a tree structure; the number of concept entities refers to the total number of independent human resources business terms in the request text, such as turnover rate, organization, talent structure, etc.; the maximum path depth of the dependency parsing tree refers to the length of the hierarchy from the root node to the farthest leaf node of the parsing tree, used to characterize the semantic nesting complexity; the proportion of ambiguous words refers to the ratio of words with multiple business interpretations in the text to all valid content words; the semantic complexity score sub-item refers to the standardized score of 0 to 1 calculated only from the language semantic dimension, which is one of the inputs for generating the comprehensive complexity score.

[0042] Furthermore, the core purpose of this system operation is to quantify the difficulty of task comprehension at the textual language level; the more entities, the deeper the nesting, and the more ambiguity in a statement, the higher the corresponding score. In one possible implementation, the domain dictionary can be periodically updated with newly added human resources business terms, simultaneously revising the matching rules for ambiguous terms to improve the accuracy of ambiguity ratio calculation.

[0043] Specifically, the system reads the cleaned user task request text, first performs Chinese word segmentation to split all lexical units; then calls the dependency parsing algorithm to construct a complete syntax tree, traversing the tree structure to count the maximum path depth; it calls a pre-set human resources domain dictionary for word-by-word matching, counts ambiguous words with multiple business interpretations, and divides them by all content words to obtain the proportion of ambiguous words; it counts the total number of all independent business concept entities identified in the text; and it multiplies the number of entities, syntax tree depth, and ambiguity proportion by their corresponding training weights, sums and normalizes them, and outputs the semantic complexity score sub-item:

[0044] Where w1, w2, and w3 are dimension weight coefficients obtained through training with historical data, N_entity is the number of entities, D_tree is the depth of the dependency tree, and R_ambig is the ambiguity ratio.

[0045] For example, the user task request is "Analyze the changes in the turnover rate of the group's R&D center in the past three years and provide improvement suggestions". After word segmentation, the identified entities are the group's R&D center, turnover rate, and improvement suggestions, a total of 3; the maximum path depth of the dependency syntactic tree is 4; the proportion of ambiguous words is 0.05; and the semantic complexity score is 0.65 when substituted into the weight formula.

[0046] Step S22: Perform a data source breadth assessment on the user task request, match the query intent of the user task request with the pre-built metadata graph, determine the number of data sources to be accessed and the number of cross-system related fields, and calculate the data source breadth score sub-item. It should be noted that the data source breadth assessment refers to a single scoring process that measures the amount of data sources required for task execution and the difficulty of cross-database joins; query intent refers to the data query, statistics, and analysis objectives parsed from the user's task request; the pre-built metadata graph refers to a graph structure database that pre-stores the relationships between various human resources data tables, fields, and systems; the number of data sources refers to the number of independent data tables and data warehouses that need to be read to complete the current task; the number of cross-system join fields refers to the total number of field pairs that need to be joined between data tables of different business systems; the data source breadth scoring sub-item refers to a standardized score of 0 to 1 calculated only from the data source dimension, with higher scores for more data sources and more cross-database joins.

[0047] Furthermore, the core purpose of this system operation is to quantify the complexity of the data acquisition process. Multi-source cross-database queries will increase this score, distinguishing between simple single-table queries and complex multi-database association analysis tasks. In one possible implementation, the metadata graph supports dynamic synchronization of newly added business data tables. Newly launched HR systems will automatically update graph nodes and related edges without requiring reconstruction of the evaluation logic.

[0048] Specifically, the system parses the data query target contained in the user's task request, uses the query intent as the retrieval condition to traverse the pre-built metadata graph; matches all independent data sources that must be read to complete the analysis, and counts the total number of data sources; traverses the matching data source association edges, and counts the number of field pairs used for Join connection between different systems; substitutes the number of data sources and the number of cross-system association fields into the preset non-linear scoring formula, and outputs the data source breadth scoring sub-item after normalization.

[0049] For example, a user requested a three-year turnover analysis for the group's R&D center. The metadata graph matched four data sources: the employee master data table, the turnover event table, the on-the-job snapshot table, and the organization dimension table, with a total of six pairs of cross-system related fields. The data source breadth score was calculated to be 0.72.

[0050] Step S23: Estimate the reasoning steps for the user task request, match the semantic features of the user task request with a preset reasoning pattern template library, determine the minimum number of reasoning steps required to complete the user task request, and calculate the reasoning step estimation score item. It should be noted that the reasoning step prediction assessment refers to a single-item scoring process that measures how many logical operations and multiple rounds of deduction are required for a task; semantic features refer to the vector representation of the user's task request after encoding; the pre-built reasoning pattern template library refers to a set of pre-stored reasoning logic templates of four types: single-step query, multi-step sequence, branch, and loop; minimum number of reasoning steps refers to the minimum number of logical operations that cannot be omitted in completing the user's analysis goal; the reasoning step prediction score sub-item refers to a standardized score of 0 to 1 calculated only from the logical reasoning dimension, with higher scores for more steps.

[0051] Furthermore, the core purpose of this system operation is to estimate the length of the task inference chain, distinguish between one-step direct queries and multi-round iterative analysis tasks, and provide a dimension of inference difficulty for the comprehensive score. In one possible implementation, the inference pattern template library supports manually added industry-specific analysis templates, and newly added templates are automatically included in the matching calculation.

[0052] Specifically, the system transforms user task requests into fixed-dimensional semantic feature vectors, and calculates their similarity with all templates in the reasoning pattern template library in turn. The reasoning pattern template library includes single-step direct query mode, multi-step sequential reasoning mode, conditional branch reasoning mode, and loop reflection optimization mode, etc.; selects the reasoning template with the highest matching degree, and reads the number of basic reasoning steps in the template; identifies filtering, sorting, and nested additional constraints in the request and adds correction steps; performs normalization conversion based on the corrected minimum number of reasoning steps, and outputs the reasoning step prediction score sub-item.

[0053] For example, the turnover trend analysis request matches a multi-step sequential reasoning template with 4 basic steps, plus 2 constraints: annual stratification and cause statistics. After correction, the minimum reasoning steps are 6, and the calculated reasoning step prediction score is 0.80.

[0054] Step S24: Evaluate the temporal correlation of the user task request, detect whether the user task request contains a time range description, trend analysis request and time granularity level, and calculate the temporal correlation score sub-item. It should be noted that the time series correlation assessment refers to a single scoring process that measures whether a task involves time series data and time comparison calculations; the time range description refers to text content with a limited time frame, such as the past three years, the current year, or a quarter; the trend analysis requirement refers to analysis requirements such as change comparison, growth and decline, and trend judgment; the time granularity level refers to different statistical granularities such as annual, quarterly, and monthly, and granularity conversion will increase complexity; the time series correlation score sub-item refers to a standardized score of 0 to 1 calculated only from the time data dimension, and the score is higher if it includes time series and multi-granularity trend analysis.

[0055] Furthermore, the core purpose of this system operation is to distinguish between static queries without time requirements and dynamic analysis tasks that require time-series calculations, thus supplementing the complex quantification of the time dimension. In one possible implementation, the time-series keyword thesaurus can be expanded to include customizable enterprise statistical period vocabulary, adapting to the time caliber of enterprise-specific reports.

[0056] Specifically, the system calls the time-series keyword library to search the user's task request text sentence by sentence, determining whether there are time range descriptions, trend analysis requests, or multi-time granularity conversion requirements. For each valid time-series feature identified, a corresponding base score is added. After all features are detected, normalization and scaling are performed, and the time-series relevance score sub-item is output. For example, if the request contains three time-series features: a "last three years" time range, a "turnover rate change" trend request, and an annual granularity conversion, the scores are added and normalized to obtain a time-series relevance score sub-item of 0.85.

[0057] Step S25: The semantic complexity score, the data source breadth score, the reasoning step prediction score, and the temporal correlation score are weighted and fused according to their respective weights to generate the comprehensive complexity score.

[0058] It should be noted that weighted fusion refers to the numerical operation of multiplying the scores of the four independent dimensions by their respective dedicated normalized weights and then summing them up; the corresponding weights refer to the four fixed coefficients of alpha, beta, gamma, and delta obtained through offline training of all historical requests, and the sum of the four weights equals 1; the comprehensive complexity score refers to the unified standardized value output after the four-dimensional scores are fused, with a value range of 0.0 to 1.0, which is the sole quantitative basis for routing decisions.

[0059] Furthermore, the core purpose of this system operation is to merge the four independent difficulty indicators—language, data, reasoning, and time—into a single, comparable value, eliminating the problem of difficulty in directly judging multiple dimensions and indicators. In one possible implementation, the system supports periodic incremental learning, automatically fine-tuning the weights of the four dimensions using task accuracy and user feedback data after routing execution, continuously improving the classification accuracy of the overall score.

[0060] Specifically, the system retrieves the four independent scoring sub-items output from steps S21 to S24, reads the offline training normalized weights alpha, beta, gamma, and delta; substitutes them into the fusion formula to complete the weighted summation; constrains the calculation result to the range of 0.0 to 1.0, generates the final comprehensive complexity score, and simultaneously caches the four original sub-scores for the routing engine to retrieve for auxiliary judgment. (See reference...) Figure 3 .

[0061] This embodiment relies on word segmentation and dependency syntax to extract three core features from the semantic level of text: entity, nesting depth, and ambiguity. It accurately quantifies the difficulty of natural language understanding and forms standardized sub-scores for the semantic dimension. By combining a pre-built metadata graph with the multi-source data tables required for the matching task, it counts the number of data sources and cross-database associations, quantifying the complexity of the data acquisition process. By matching the task logic with a pre-built inference template library, it estimates the minimum inference steps and distinguishes between simple single-step queries and multi-round iterative analysis tasks. By detecting three types of temporal features in the text—time range, trend, and multi-granularity—it quantifies the additional computational overhead brought by temporal sequence analysis. By using normalized weights trained offline, it weights and fuses the scores of the four dimensions to output a unique comprehensive complexity score that can be used for routing determination. The entire process is completed offline on the local system without transmitting user personnel requests or business data externally. All text parsing, graph matching, template matching, and weighted calculations do not require cloud involvement. At the same time, dictionaries, graphs, inference templates, and dimension weights for each dimension can be dynamically updated and incrementally optimized to adapt to the continuously iterating human resources business scenarios of enterprises. The four-dimensional indicators comprehensively cover all factors affecting task complexity from the four dimensions of language, data, logic, and time, avoiding judgment bias caused by single-dimensional evaluation. The generated comprehensive complexity score can objectively distinguish between simple high-frequency queries and deep multi-dimensional analysis tasks, realizing lightweight diversion of simple tasks and deep pipeline processing of complex tasks from the source, effectively optimizing system computing power allocation and shortening response latency for ordinary users.

[0062] In one feasible implementation, the semantic complexity evaluation of the user task request involves extracting the number of concept entities, the maximum path depth of the dependency tree, and the proportion of ambiguous words from the user task request through word segmentation and dependency parsing, and calculating semantic complexity score items, including: Step S31: Perform word segmentation on the user task request, take the independent business concepts involved in the user task request as concept entities, and count the number of entities of the concept entities. It should be noted that independent business concepts refer to nouns and words that are specific to human resources business and can independently refer to a certain type of indicator, organization, personnel, or process; concept entities refer to all independent human resources business words obtained after word segmentation and filtering; and the number of entities refers to the total count of concept entities after filtering.

[0063] Furthermore, the core purpose of this system operation is to extract the total number of business keywords within the request text. More business entities represent more objects to be analyzed, leading to higher semantic complexity. In one possible implementation, the human resources domain word segmentation lexicon supports dynamically added business terms. When a company adds new talent indicators or organization names, these terms can be manually entered into the lexicon, improving entity recognition accuracy.

[0064] Specifically, the system reads the cleaned user task request text, calls the built-in HR-specific word segmentation tool to perform full-text word segmentation, filters out general function words without business meaning such as auxiliary words, conjunctions, and adverbs after segmentation, matches the remaining words one by one with the pre-set human resources business dictionary, and marks the successfully matched words as concept entities; iterates through all matching results and counts the number of concept entities.

[0065] For example, if a user's task request is "analyze the changes in the turnover rate of the group's R&D center over the past three years and provide improvement suggestions", after filtering out function words through word segmentation, three independent business concepts are obtained: group R&D center, turnover rate, and improvement suggestions. The total number of entities obtained is 3.

[0066] Step S32: Perform dependency parsing on the user task request, construct a dependency parsing tree, and calculate the maximum path depth from the root node to the leaf node in the dependency parsing tree; It should be noted that dependency parsing refers to natural language processing algorithms that parse the grammatical dependency relationships such as subject-predicate, verb-object, and modifiers within a sentence; dependency parsing refers to tree-structured data with the core vocabulary of the sentence as the root node and the remaining modifying words as leaf nodes at each level; the root node refers to the core predicate or core noun of the entire sentence, which is the starting level of the parsing tree; the leaf node refers to the terminal word node without lower-level modifying words; the maximum path depth refers to the total number of levels traversed from the root node to the farthest leaf node, used to measure the semantic nesting complexity of the sentence.

[0067] Furthermore, the core purpose of this system operation is to quantify the nesting level of statements. The deeper the modification relationship and the greater the path depth, the more complex the semantic logic representing the user's needs. In one possible implementation, the syntactic analysis tool incorporates grammatical correction rules from the human resources domain, which can correct dependency judgment biases in long business sentences and avoid distortion in path depth calculation.

[0068] Specifically, the system reads the word sequence completed by word segmentation in step S31, calls the dependency parsing algorithm to identify the modification, subject-verb, and verb-object dependency relationships of each word; builds a complete dependency parsing tree with the core words of the sentence as the root node; recursively traverses all branches of the parsing tree, counts the level length of each branch from the root node to the end leaf node, compares all link values, and extracts the maximum value as the maximum path depth.

[0069] For example, if the user's task request is "analyze the changes in the turnover rate of the group's R&D center over the past three years and provide improvement suggestions", after parsing and generating a dependency syntax tree, all branches are traversed. The root node to the farthest leaf node passes through 4 layers of vocabulary, and the maximum path depth is calculated to be 4.

[0070] Step S33: Based on a preset domain dictionary, perform word matching on the user task request, identify words with semantic ambiguity, and calculate the proportion of ambiguous words to all content words. It should be noted that the pre-built domain dictionary refers to a dedicated thesaurus that pre-includes multi-meaning terms in human resources and annotates them with different business scenarios; word matching refers to comparing the segmented effective content words with the domain dictionary one by one; semantically ambiguous words refer to words that have two or more completely different business meanings in human resources business; all content words refer to all words with actual business meanings after removing function words and auxiliary words; ambiguity ratio refers to the decimal between 0 and 1 obtained by dividing the total number of ambiguous words by the total number of all content words. In one possible implementation, the domain dictionary supports regular updates of ambiguous words, supplementing multi-meaning annotations for newly added business terms of the enterprise, and continuously improving the accuracy of ambiguity recognition.

[0071] Specifically, in step S31, after word segmentation, the system removes all valid content words containing function words and matches each word against a pre-set human resources ambiguity dictionary. It then counts the total number of ambiguous words with multiple business meanings that successfully match. Finally, it divides the total number of ambiguous words by the total number of all content words and calculates the ambiguity ratio. For example, if a user's task request text contains 20 valid content words, and only the word "development" has two meanings (career development and business development), the number of ambiguous words is 1, resulting in an ambiguity ratio of 0.05.

[0072] Step S34: The number of entities of the concept entity, the maximum path depth and the ambiguity ratio are weighted and summed according to their respective weights to obtain the semantic complexity score item.

[0073] It should be noted that the corresponding weights refer to three sets of fixed normalized weight coefficients obtained through offline training using historical human resource request samples, corresponding to the three features: number of entities, maximum path depth, and ambiguity ratio. In one possible implementation, the weight coefficients of the three features can be fine-tuned incrementally on a monthly basis, and retrained based on semantic recognition error samples to continuously optimize the semantic score discrimination.

[0074] Specifically, the system sequentially reads three sets of feature values: the number of entities output in step S31, the maximum path depth output in step S32, and the ambiguity ratio output in step S33; retrieves three exclusive weight coefficients completed in offline training, substitutes them into the weighted summation formula to complete the accumulation operation; performs normalization scaling on the accumulation result, constrains the value to fall within the range of 0~1, and generates a semantic complexity score sub-item.

[0075] This embodiment uses a dedicated HR word segmentation tool to split the text and filter and count the number of human resources business entities, intuitively quantifying the number of business objects to be analyzed within the request; it constructs a tree structure through dependency parsing and calculates the maximum path depth to accurately measure the semantic nesting complexity of the statement; it matches the ambiguous domain dictionary to count the proportion of fuzzy words, quantifying the difficulty of understanding caused by semantic ambiguity; and it generates a unified and standardized semantic complexity scoring item by weighting and summing the exclusive weights obtained from training on the three types of semantic features, thereby avoiding the one-sided semantic complexity judgment caused by a single feature, effectively distinguishing between short, single queries and multi-level complex analysis requests, and supporting the system to achieve differentiated task routing and on-demand allocation of computing power.

[0076] In one feasible implementation, the preset complexity threshold includes a first threshold and a second threshold, wherein the first threshold is less than the second threshold; the step of performing adaptive routing scheduling based on the comparison result between the comprehensive complexity score and the preset complexity threshold to generate a routing decision result includes: Step S41: Compare the comprehensive complexity score with the first threshold and the second threshold respectively; It should be noted that the core purpose of this system operation is to classify tasks into three complexity ranges, enabling basic task routing and distinguishing between simple queries, medium-level fuzzy requests, and deep analysis requests. In one possible implementation, the first and second thresholds support monthly incremental self-optimization, and the system automatically fine-tunes the two critical values ​​based on routing accuracy and user satisfaction data to improve the accuracy of range division.

[0077] Specifically, the adaptive routing decision engine reads the persistent first threshold T1 and second threshold T2 from the local configuration file, and simultaneously reads the comprehensive complexity score obtained from the four-dimensional fusion. First, it performs a comparison calculation between the comprehensive complexity score and the first threshold, recording a judgment flag indicating "score ≤ T1" or "score > T1". Then, it performs a comparison calculation between the comprehensive complexity score and the second threshold, recording a judgment flag indicating "score ≥ T2" or "score < T2". Both sets of comparison flags are cached synchronously as the basis for determining the subsequent three branch routing logics. For example, the system presets the first threshold T1 = 0.30, the second threshold T2 = 0.70, and the current comprehensive complexity score is 0.735. The first comparison determines 0.735 > 0.30, and the second comparison determines 0.735 ≥ 0.70, caching both sets of judgment flags for subsequent branch logic to read.

[0078] Step S42: When the overall complexity score is less than or equal to the first threshold, generate a routing decision result to the fast processing path; It should be noted that a comprehensive complexity score less than or equal to the first threshold indicates that the current user task belongs to a standardized simple query task, which does not require multi-step inference or multi-source data association operations; routing to the fast processing path refers to the output of instruction identifiers used to guide the system to call short-link, single-step inference pipelines; the fast processing path refers to a lightweight processing pipeline that is oriented towards high-frequency simple queries, adopts the shortest execution link, prioritizes result caching, and uses single-step atomic capability calls.

[0079] Furthermore, the core purpose of this operation is to offload low-complexity standardized requests to lightweight pipelines, saving computational resources for large models and multi-source connections, and reducing end-to-end response time. In one possible implementation, the routing decision result can include a cache query identifier to guide the hierarchical orchestration mechanism to prioritize retrieving historical request caches, further shortening response time.

[0080] Specifically, the adaptive routing decision engine reads the comparison markers cached in step S41. If the markers show that the overall complexity score is ≤ the first threshold, a standardized routing decision result is directly generated. This result records that the target processing pipeline is a fast processing path and adds a cache priority scheduling flag. The complete routing decision result is then sent to the hierarchical capability orchestration mechanism to trigger a lightweight single-step task processing flow.

[0081] Step S43: When the comprehensive complexity score is greater than or equal to the second threshold, generate a routing decision result for the deep analysis path; It should be noted that a comprehensive complexity score greater than or equal to the second threshold indicates that the current user task belongs to a complex analysis task involving multi-source data, multi-round derivation, and time-series trends; the routing to the deep analysis path refers to the output instruction identifier used to guide the system to call the long pipeline of multi-agent decomposition, DAG task orchestration, and iterative verification; the deep analysis path refers to the complete analysis pipeline that supports subtask decomposition, parallel computing of multi-source data, result reflection and optimization, and service circuit breaking and degradation for complex analysis needs.

[0082] Furthermore, the core purpose of this system operation is to offload highly complex, multi-dimensional analysis requests to the complete inference pipeline, ensuring that the analysis results are complete and provide actionable insights. In one possible implementation, the routing decision result can be appended with a resource expansion flag, guiding the orchestration mechanism to allocate more threads and memory resources for parallel computation of complex multi-subtasks.

[0083] Specifically, the adaptive routing decision engine reads the comparison markers cached in step S41. If the markers show that the comprehensive complexity score is ≥ the second threshold, a standardized routing decision result is generated. This result records the target processing pipeline as a deep analysis path and adds a multi-threaded resource scheduling identifier. The complete routing decision result is then sent to the hierarchical capability orchestration mechanism to trigger the multi-agent task decomposition and multi-source data parallel processing process.

[0084] Step S44: When the comprehensive complexity score is greater than the first threshold and less than the second threshold, obtain user historical behavior data, current system load status data and context association data of the user task request and historical session, generate an adjusted routing preference score based on the user historical behavior data, current system load status data and context association data, and generate a routing decision result based on the routing preference score that includes any one of a fast processing path, a deep analysis path or a dual-mode response with a deep analysis entry.

[0085] It should be noted that a comprehensive complexity between the two thresholds indicates that the task belongs to a fuzzy medium complexity request, and the optimal processing pipeline cannot be accurately determined solely by the comprehensive score; user historical behavior data refers to the routing records corresponding to all past requests of the account, including the frequency ratio of fast path and deep path usage; current system load status data refers to the system's real-time computing power usage, service concurrency, and inference queue backlog values; context association data refers to the topic matching degree between the current request and the historical instructions of the same session; the adjusted routing preference score refers to a score of 0 to 1 after adjusting for the three types of auxiliary data, with a score closer to 1 indicating a preference for deep paths and a score closer to 0 indicating a preference for fast paths; the dual-mode response with a deep analysis entry point refers to a hybrid response scheme that first outputs a brief query result and then provides a one-click jump to the complete deep analysis channel.

[0086] Furthermore, the core purpose of this system operation is to solve the challenge of determining the complexity range, combining user habits, system resources, and session continuity for a comprehensive judgment to avoid misdirection based on a single score. In one possible implementation, if the routing preference score approaches the intermediate threshold, the system defaults to outputting a dual-mode response, accommodating both immediate query and in-depth analysis needs.

[0087] Specifically, the adaptive routing decision engine identifies the comprehensive complexity score as falling between T1 and T2. First, it reads the historical path usage percentage of the account from the local user behavior database, reads the real-time system load output from the service monitoring module, and retrieves the session cache to determine the relevance between the current request and historical conversation topics. These three types of data are then substituted into the auxiliary scoring formula to calculate the adjusted routing preference score. If the preference score is higher than the intermediate threshold, a decision is generated to route to the deep analysis path; if the preference score is lower than the intermediate threshold, a decision is generated to route to the fast processing path; if the score is close to the intermediate value, a dual-mode response decision with a deep analysis entry point is generated. Finally, the corresponding routing decision result is distributed to the hierarchical capability orchestration mechanism.

[0088] For example, if the overall complexity score is 0.45, which is between 0.30 and 0.70, the system queries that 70% of the user's historical requests use deep paths, the current system has low load, and this request continues the talent analysis session, calculating a routing preference score of 0.72, which is higher than the critical value, and finally generates a routing decision result that routes to the deep analysis path; if the current system has high load and the user rarely uses deep analysis, the preference score is 0.31, generating a dual-mode response decision with a deep analysis entry point.

[0089] This embodiment clearly divides the task range into three categories—simple, ambiguous, and complex—by comparing the comprehensive complexity score with two preset threshold values, thus establishing the foundation for routing branch determination. Low-scoring simple tasks are directly routed to a lightweight, fast pipeline, reducing computational consumption and shortening response latency through caching and single-step inference. High-scoring complex tasks are allocated a complete deep analysis pipeline, relying on multi-agent, multi-source parallel computation to output complete structured analysis conclusions. For the intermediate ambiguous range, three auxiliary dimensions—user historical habits, system real-time load, and session context—are introduced to generate a correction tendency score for refined determination, providing rapid... It offers three selectable output options: depth, and dual-mode, thus completely resolving multiple shortcomings such as waste of unified processing pipeline resources, misjudgment due to manual mode switching, and inaccurate routing of fuzzy requests. It achieves fully automatic and seamless routing of task complexity, ensuring second-level response for simple requests, outputting complete and deployable analysis reports for complex requests, and balancing real-time query and in-depth expansion capabilities for medium-level fuzzy requests. At the same time, it improves the overall computing power utilization and system concurrency throughput through differentiated pipeline scheduling, and ensures that complex task failures will not block basic query services, thus comprehensively improving the service stability of the human resource intelligent agent system and providing users with a seamless and intelligent experience.

[0090] In one feasible implementation, the step of invoking the path corresponding to the routing decision result through a hierarchical capability orchestration mechanism to perform task processing and output task response results includes: Step S51: When the routing decision result is a fast processing path, the single-step reasoning capability in the atomic capability layer is called through the hierarchical capability orchestration mechanism. The single-step reasoning capability includes data query capability, statistical aggregation capability and text generation capability. It should be noted that the routing decision result for fast processing means that the adaptive routing decision engine determines that the user's task request belongs to a low-complexity standardized query task and issues a lightweight processing scheduling instruction; the layered capability orchestration mechanism refers to a unified capability scheduling and operation engine composed of a three-layer architecture: atomic capability layer, composite capability layer, and scenario capability layer; the atomic capability layer refers to the bottom basic unit layer of the layered orchestration framework, which stores indivisible and independently running standardized basic operation components; single-step reasoning capability refers to the bottom atomic component that can complete the complete query operation in a single call without multiple rounds of logical deduction; data query capability refers to the basic capability of reading structured personnel records from the business database based on filtering conditions; statistical aggregation capability refers to the basic capability of performing simple calculations such as counting, summation, and averaging on a small amount of data in a single table; and text generation capability refers to the lightweight generation capability of concatenating short natural language responses based on fixed templates.

[0091] Furthermore, the core purpose of this step is to call only the lightest underlying atomic components for simple query tasks, without loading complex multi-task orchestration logic, thereby reducing system computational overhead from the source. In one possible implementation, all single-step inference capabilities in the atomic capability layer use independent, isolated running threads, and different types of query requests do not compete for resources when executed in parallel.

[0092] Specifically, the layered capability orchestration engine receives the routing decision results marked as fast processing paths, locks the atomic capability layer at the bottom of the layered capability orchestration framework, parses the business requirements of user task requests, matches data query capabilities if it is personnel information retrieval, matches statistical aggregation capabilities if it is simple headcount statistics, and matches text generation capabilities if a brief text reply is required, and completes the resource initialization and call chain creation of the corresponding single-step inference capability.

[0093] For example, if a user's task request is "find Zhang San's contact information", the routing decision result is a fast processing path; the hierarchical capability orchestration mechanism locks the atomic capability layer, matches and calls the data query class single-step reasoning capability, and prepares to execute a single employee data table retrieval operation.

[0094] Step S52: Adopt the shortest link execution strategy, skip the task decomposition and multi-step planning stages, directly perform single-step processing on the user task request through the single-step reasoning capability, and query whether there are historical results of the same request in the preset result cache. If there are, directly obtain the cached result. It should be noted that the shortest link execution strategy refers to the scheduling rule that eliminates multi-level task planning and subtask decomposition processes, retaining only the simplest execution link of "request-atomic capability-result"; task decomposition refers to the computational stage in the deep path planning agent that breaks down complex analysis requirements into multiple subtasks; multi-step planning refers to the processing stage of multi-round dependent subtasks based on the orchestration of directed acyclic graphs; single-step processing refers to the computational process that completes all business requirements by executing only one atomic capability call; pre-set result cache refers to a high-speed temporary storage area in the system memory that stores the historical output content of high-frequency standardized queries; identical requests refer to historical user task requests with completely consistent text semantics and filtering conditions; directly obtaining cached results refers to skipping database reading and capability calculation, and directly reading the historical responses retained in the cache, further reducing the time consumption.

[0095] Furthermore, the core purpose of this step in the layered capability orchestration engine is to eliminate all unnecessary intermediate computations and reuse historical query caches, compressing the response time of simple requests to the second level. In one possible implementation, a pre-configured result cache is set with a timed expiration policy; when personnel data is updated, the corresponding cache entry is automatically cleared to avoid outputting expired data.

[0096] Specifically, the layered capability orchestration and execution engine employs a shortest-link execution strategy, actively shielding the system's built-in task decomposition and multi-step planning modules, and refraining from performing any subtask splitting or dependency graph construction operations. It prioritizes accessing the pre-set high-speed result cache, performing semantic hash matching on the current user's task request. If a historical request record with a completely matching hash value exists in the cache, the complete intermediate processing result stored in the cache is directly read. If no matching data is found in the cache, the single-step inference capability initialized in step S51 is invoked to perform a single business operation and obtain the processing result. For example, if a user repeatedly initiates a request to "find Zhang San's contact information," the system skips the task decomposition and multi-step planning stages, retrieves the pre-set result cache, hits a historical query record, and directly reads the personnel contact information data from the cache, without needing to access the employee database again to perform the query.

[0097] Step S53: Format the processing result into a standard response template and output the task response result.

[0098] It should be noted that the processing result refers to the structured raw personnel data read from the cache or output by the single-step reasoning capability; the standard response template refers to a lightweight text template with a unified sentence structure that is predefined for simple query scenarios, distinguishing different query types such as personnel information and statistical values; the output task response result refers to pushing the formatted, standardized, and concise text to the user's interactive terminal for display.

[0099] Furthermore, the core purpose of the layered capability orchestration engine in performing this step is to unify the output display format of simple queries, remove complex charts and multi-layered analysis modules, and output lightweight, readable text to meet the goal of delivering data within seconds in a fast-track approach. In one possible implementation, the standard response template supports customized corporate wording, allowing modification of text wording to adapt to internal office interaction standards.

[0100] Specifically, the layered capability orchestration and execution engine reads the structured raw processing results from the cache or single-step inference capability output, identifies the query type corresponding to the current request, and retrieves the matching standard response template; it fills the raw data fields into the template reserved placeholders to generate neat and concise plain text content; and it pushes the formatted text as the task response result to the user's terminal for display.

[0101] For example, the cache retrieves Zhang San's office phone number, mobile phone number, and email address. The system matches this with a standard personnel query response template, fills in the fields, and outputs the text "Zhang San (Human Resources Department of Group Headquarters) has the following contact information: Office phone: 010-XXXXXXXX, Mobile phone: 138XXXXXXXX, Email: zhangsan@example.com", as the final task response result.

[0102] This embodiment minimizes resource consumption by scheduling only lightweight single-step inference capabilities at the atomic capability layer when the routing is determined to be a fast processing path, without loading complex scheduling logic for composite capabilities and scenario capabilities. By adopting the shortest link execution strategy, redundant intermediate links such as task decomposition and multi-step planning are directly shielded. At the same time, a high-speed result cache is introduced to reuse high-frequency query historical results, significantly reducing database access and capability computation time, achieving second-level response. By filling the original processing results into a lightweight standard response template, a concise and well-organized text task response result is output, which meets the interactive requirements of simple queries. The entire fast path processing flow relies entirely on the underlying lightweight atomic components and memory cache, without starting high-consumption modules such as large model deep inference and multi-agent collaboration. All cached data and atomic operations are completed on local infrastructure, without transmitting user query and real-time human data to the external cloud. At the same time, the underlying standardized components of the three-layer capability orchestration framework are fully reused, eliminating the need to develop a separate simple query pipeline, reducing system development and maintenance costs, and specifically adapting to 60%-70% standardized high-frequency HR queries such as employee information queries, holiday balance, and organizational structure. The request can effectively reduce the overall computing power consumption of the system, improve the service concurrency throughput, and solve the existing technical defects of resource waste and high response latency in processing simple tasks through a unified full pipeline.

[0103] In one feasible implementation, the step of invoking the path corresponding to the routing decision result through a hierarchical capability orchestration mechanism to perform task processing and output task response results includes: Step S61: When the routing decision result is a deep analysis path, the user task request is decomposed into multiple sub-tasks by the planning agent, a directed acyclic graph is constructed according to the dependency relationship between each sub-task, and the execution order of each sub-task is determined. It should be noted that the routing decision result is as follows: Deep Analysis Path refers to the adaptive routing decision engine determining that the user task request belongs to a complex human resource analysis need involving multiple sources, multiple steps, and time sequence, and issuing a complete deep analysis scheduling instruction; Planning Agent refers to the independent intelligent computing unit in the deep analysis path that is specifically responsible for requirement decomposition and process planning; Dependency refers to the pre- and post-constraint logic between two subtasks, where the post-subtask must wait for the pre-subtask to complete before it can start; Directed Acyclic Graph refers to a graph structure without closed loops, where nodes correspond to individual subtasks, and unidirectional directed edges represent subtask dependencies; Execution Order refers to the order in which all subtasks are scheduled based on the topological sorting of the directed acyclic graph.

[0104] Furthermore, the deep analysis path incorporates a planning agent that handles all decomposition and graph construction operations for this step. The core purpose of this step is to break down the fuzzy and complex overall analysis requirements into standardized, subdivided units that can be executed step by step. Simultaneously, the graph model solidifies task constraints, preventing logical chaos in the execution process. In one possible implementation, the planning agent incorporates a human resources domain inference template library, enabling rapid decomposition of industry-standard analysis processes based on these templates, reducing the time spent on semantic parsing and decomposition.

[0105] Specifically, the planning agent receives user task requests marked as deep analysis paths, parses all analysis requirements within the request, and breaks them down into multiple sub-tasks; it reviews the prerequisites for each sub-task and identifies the dependencies between pairs of sub-tasks; it constructs a directed acyclic graph with individual sub-tasks as nodes and dependency constraints as unidirectional directed edges, and synchronously verifies that there are no closed loops within the graph; it uses the Kahn topological sorting algorithm to traverse the graph structure and outputs the standardized execution order of all sub-tasks.

[0106] For example, if a user request is to "analyze the changes in the turnover rate of the group's R&D center over the past three years and provide improvement suggestions", the planning agent is broken down into three sub-tasks: data collection, statistical analysis, and insight generation. The dependency relationship is identified so that statistical analysis can only be executed after data collection is completed, and insight generation can only be executed after statistical analysis is completed. A linear directed acyclic graph is built, and topological sorting determines the execution order as data collection → statistical analysis → insight generation.

[0107] Step S62: The execution agent calls the corresponding atomic or composite capabilities from the hierarchical capability orchestration mechanism to execute each subtask according to the task type of each subtask, and the verification agent verifies the accuracy and consistency of the task execution results. It should be noted that: the execution agent refers to an independent intelligent unit responsible for scheduling capability components and implementing sub-task operations in the deep analysis path; the hierarchical capability orchestration mechanism refers to a three-layer reusable capability scheduling framework comprising atomic capability layers, composite capability layers, and scenario capability layers; atomic capability refers to an indivisible underlying basic computing component, including data query, statistical aggregation, text generation, etc.; composite capability refers to a business function module formed by the orchestration and combination of multiple atomic capabilities; the verification agent refers to an independent intelligent unit specifically responsible for verifying the compliance and completeness of the calculation results; accuracy verification refers to checking whether the calculated values ​​and data records meet the threshold of the human resources business logic; consistency verification refers to cross-source data comparison to confirm that there are no conflicting deviations in the same dimension indicators output by different data sources.

[0108] Furthermore, the core purpose of this step is to automatically complete multi-source data processing using components with hierarchical decoupling capabilities, synchronously verify the quality of results, and prevent erroneous data from entering subsequent analysis stages. In one possible implementation, the executing agent supports multi-threaded parallel scheduling of dependency-free subtasks at the same topology level, reducing overall analysis time.

[0109] Specifically, the execution agent processes each subtask sequentially according to the subtask execution order output in step S61; identifies the business type of the current subtask, matches the corresponding computing components from the atomic capability layer and composite capability layer of the hierarchical capability orchestration mechanism, and allocates system resources to perform the computation; after the computation of a single subtask is completed, the output raw result is pushed to the verification agent; the verification agent performs verification in two steps: the first step compares the indicator values, data records, and personnel business thresholds to complete the accuracy verification; the second step compares the same dimension indicators across multiple data sources to complete the consistency verification and outputs the verification mark.

[0110] For example, the subtask is data collection. The execution agent calls the atomic capabilities of the data query class to read four sets of personnel data tables in parallel. After the collection is completed, the data is pushed to the verification agent. The verification agent checks that the number of employees and the value of resignation records are not out of bounds (accuracy verification). At the same time, it compares the coded values ​​of the same department in multiple tables and finds no conflicts (consistency verification). The result is marked as verified as passed.

[0111] Step S63: When the verification agent detects that the task execution result is abnormal or the confidence level is insufficient, it triggers the planning agent to replan the task execution scheme to form an iterative optimization closed loop, and performs degradation processing through the circuit breaker when the core dependency service of the deep analysis path is abnormal, and outputs the task response result in a structured format.

[0112] It should be noted that: abnormal task execution results refer to the verification agent identifying unqualified calculation content such as numerical out-of-bounds values, missing data, and conflicts between multiple source indicators; insufficient confidence refers to the completeness and matching degree of the original data used for analysis being lower than the preset business threshold; replanning the task execution scheme refers to the planning agent adjusting the sub-task splitting logic and changing the data acquisition channel based on the current anomaly points; core dependent services refer to the backend services such as large model inference and personnel database that are essential for deep path operation; circuit breaker refers to the state management component that manages service failures and blocks invalid requests; degradation processing refers to switching to lightweight and simplified calculation logic when core services fail to ensure that basic results can be output; and structured task response results refer to standardized multi-level analysis reports that include data charts, indicator scores, textual conclusions, and improvement suggestions.

[0113] Furthermore, the core purpose of this step is to construct an iterative optimization closed loop of "execution-verification-replanning," while isolating service failures through circuit breaker degradation to prevent complex tasks from blocking the overall system. In one possible implementation, the circuit breaker is set to three transition states: closed, half-open, and open. The state is automatically switched by a sliding window error rate to precisely control the timing of degradation triggering.

[0114] Specifically, after the verification agent's output results are marked as abnormal or lack confidence, the system automatically wakes up the planning agent. The planning agent re-divides sub-tasks and adjusts the data acquisition links based on abnormal data channels and indicator defects to form a new execution plan. The circuit breaker continuously monitors the request success rate and response latency of the core dependent services of the deep path. When the error rate in the sliding window exceeds the preset threshold, it switches to the open state, blocks the original deep operation logic and starts degradation processing, and uses historical snapshots and simplified statistical logic to output basic data. After all sub-tasks have completed the operation and verification (or degradation fallback operation), the system integrates all indicators, trend data and text insights to generate a structured analysis report with hierarchical modules as the task response result output.

[0115] For example, the verification agent identifies that a second-tier company's human resources data source is missing and the result confidence is insufficient, triggering the planning agent to re-plan the sub-task and replace the historical monthly snapshot as the data source; at the same time, the company's database service times out continuously, the circuit breaker switches to open state to execute degradation logic, and finally outputs a structured analysis report containing three-year turnover trends, risk warnings, and optimization measures, and marks the missing data source.

[0116] This embodiment breaks down complex human resource analysis needs into standardized sub-tasks through a planning agent. It uses directed acyclic graphs and topological sorting to solidify task dependencies and execution order, addressing the problem of unclear execution processes for complex needs. The execution agent uses hierarchical scheduling of atomic and reusable composite components to perform multi-source data computation in parallel. A verification agent performs dual verification of results for accuracy and cross-data source consistency, avoiding erroneous data analysis at the source. An iterative closed loop for automatic replanning in case of verification anomalies is established, while a circuit breaker manages core service failures, triggering a degradation mechanism to ensure the availability of basic analysis results and preventing complete loss of output due to a single service failure. The final output is a structured professional report integrating charts, conclusions, and recommendations. The entire deep analysis process relies on a three-layer decoupling orchestration framework, reuses underlying standardized computational components, supports multi-agent collaborative parallel computation, and is adaptable to complex HR tasks such as cross-year talent loss assessments, organizational performance benchmarking, and comprehensive cadre evaluations. Deep analysis scenarios: All raw HR data, user analysis requests, and intermediate calculation results are stored and processed locally on the local infrastructure without being transmitted to the cloud. Coupled with service circuit breaking and data verification multi-layer stability protection mechanisms, it can not only output complete and practical in-depth diagnostic reports, but also isolate complex task failures without affecting the system's simple query pipeline, greatly improving the completeness of complex analysis tasks, the overall robustness of the system, and the adaptability to human resources business scenarios.

[0117] In one feasible implementation, the step of invoking the path corresponding to the routing decision result through a hierarchical capability orchestration mechanism to perform task processing and output task response results includes: Step S71: When the routing decision result is a dual-mode response with a deep analysis entry point, the basic query capability in the atomic capability layer is called through the hierarchical capability orchestration mechanism to generate a brief query result; It should be noted that the routing decision result of a dual-mode response with in-depth analysis entry point refers to a comprehensive complexity score falling within a fuzzy range between the first and second thresholds. The auxiliary decision-making mechanism determines that it cannot be solely assigned to either a fast processing path or a deep analysis path, and the system generates a compromise scheduling instruction. The layered capability orchestration mechanism refers to a three-layer standardized capability scheduling and operation framework consisting of an atomic capability layer, a composite capability layer, and a scenario capability layer. The atomic capability layer refers to the bottom layer of the layered framework, an indivisible set of basic computational components. Basic query capabilities refer to lightweight single-table retrieval and simple statistical underlying computational components within the atomic capability layer, requiring no multi-source association or multi-step derivation. Concise query results refer to lightweight raw data containing only core basic personnel indicators and minimal text, without involving multi-dimensional trend or in-depth attribution analysis.

[0118] Furthermore, the core purpose of this step is to quickly generate basic data that is immediately visible to the user, meeting their immediate need for quick information viewing, while also reserving an entry point for subsequent in-depth analysis. In one possible implementation, the basic query capability reuses the cache retrieval logic of the fast processing path, prioritizing reading from the memory cache to further shorten the time required to generate concise results.

[0119] Specifically, the hierarchical capability orchestration engine receives dual-mode response routing decision results marked with deep analysis entry points, locking the underlying atomic capability layer of the hierarchical capability orchestration mechanism. The engine selects basic query capability components, allocates independent lightweight threads to perform retrieval operations, and only calls a single master data source to obtain core basic indicators, without triggering complex operations such as multi-table joins and time-series statistics. After the operation is completed, it outputs a brief query result containing only core personnel fields. For example, if a user request is "comparing the talent health status of each subsidiary this year," the overall complexity is in the fuzzy range, and the routing decision is a dual-mode response. The hierarchical orchestration mechanism calls the basic query capabilities of the atomic capability layer, only reads the basic total talent indicators of each company, and generates a brief query result: a basic list of the number of employees in each subsidiary of the group.

[0120] Step S72: Generate a brief result response based on the brief query result, and generate an entry link for the deep analysis entry based on the brief result response. The deep analysis entry is used for users to trigger the full execution of the deep analysis path. It should be noted that the brief result response refers to a short plain text reply generated after filling the brief query results into a lightweight and simple template, which only displays basic values ​​and does not include charts, attributions, or improvement suggestions; the deep analysis entry point refers to the function jump channel provided by the front-end interaction layer; the entry link refers to a clickable interactive icon that binds complete deep analysis task parameters and records the current user request, context session, and query conditions; triggering the complete execution of the deep analysis path means that after the user clicks the link, the system automatically reissues the deep analysis path routing decision and starts the complete multi-agent analysis process of planning, execution, and verification.

[0121] Furthermore, the core purpose of this step is to balance the need for immediate and easy viewing with the need for subsequent in-depth analysis and expansion. In scenarios with fuzzy complexity, it is unnecessary to force a full, lengthy process or provide only basic information. In one possible implementation, the entry link includes an expiration date indicator; the link automatically expires after the current session expires, avoiding parameter confusion across sessions.

[0122] Specifically, the layered capability orchestration engine reads the brief query results output in step S71, matches them with a simple single-line response template to complete field filling, and generates a plain text brief result response. The engine extracts all context parameters such as the user's task request, session ID, user identity, and query filtering conditions, and encapsulates them to generate a clickable entry link for in-depth analysis. The built-in parameters of the link can completely restore the current analysis requirements. After clicking, the user can directly start the complete in-depth analysis path without having to repeatedly enter the query conditions.

[0123] For example, a brief query result is a list of the number of employees in each subsidiary. The system fills in a simple template to generate a brief result response: The basic number of employees in each second-level company this year has been displayed for you; at the same time, a link to the in-depth analysis entry point is generated [View the complete talent structure health benchmarking analysis]. Clicking the link will automatically start the in-depth analysis process of multi-data source association and multi-dimensional indicator calculation.

[0124] Step S73: Combine the brief result response and the deep analysis entry link into a dual-mode response result, and output the task response result.

[0125] It should be noted that the dual-mode response result refers to an integrated return content that simultaneously includes basic text information and in-depth interactive entry points; the output task response result refers to pushing the combined dual-mode content to the user's front-end interactive interface for display, which constitutes complete external delivery content. Furthermore, the core purpose of this step is to uniformly deliver two types of content, allowing scenarios with ambiguous complexity to meet both immediate viewing and in-depth expansion needs. In one possible implementation, the dual-mode response result supports customized interface styles, allowing adjustment of the display position of entry links and text prompts to adapt to enterprise office interface specifications.

[0126] Specifically, the layered capability orchestration engine reads the brief result response and in-depth analysis entry link generated in step S72, integrates and encapsulates the two pieces of content into a standardized dual-mode response data packet; the data packet carries both basic text content and interactive identifiers that can be jumped to, and the engine pushes the integrated data packet to the user's interactive terminal as the final task response result display for this user task request.

[0127] For example, the system integrates a brief headcount text with a link to in-depth analysis, generating a dual-mode response and displaying the results: Current headcount for each second-tier company this year: R&D Center 216, Administration Department 58, Marketing Department 92. For a complete talent structure health and talent pipeline benchmarking report, click the "View Complete Talent Structure Health Benchmarking Analysis" entry to generate it with one click.

[0128] This embodiment addresses intermediate-level requests with fuzzy complexity by rapidly generating simplified raw data using only lightweight basic query capabilities at the atomic capability layer. It avoids initiating high-consumption computations such as multi-source association and multi-agent operations, ensuring users can immediately access basic information. A concise text response is generated based on the basic data, while a dedicated entry link for in-depth analysis is encapsulated within the complete request context. Users can switch to the full in-depth analysis pipeline with a single click without repeatedly entering their requirements. By integrating the simplified text and the jump entry into a unified dual-mode response, it adapts to intermediate-level fuzzy scenarios where complexity is difficult to accurately determine. This solves the problem of wasted resources in the unified pipeline while compensating for the inability of a single fast path to meet in-depth analysis needs. It provides a seamless compromise for human resource queries with complexity between two thresholds. Users can choose to view only basic values ​​or generate a complete structured in-depth analysis report, balancing system computing power control with diverse user query requirements. Furthermore, it reuses existing underlying atomic components of the three-layer capability orchestration framework, eliminating the need to develop entirely new processing pipelines, reducing system development and maintenance costs, and improving the overall adaptability of the agent system and user experience.

[0129] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0130] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. An adaptive routing scheduling method, characterized in that, include: Obtain user task requests, perform multi-dimensional complexity evaluation on the user task requests, and generate a comprehensive complexity score; Adaptive routing scheduling is performed based on the comparison between the comprehensive complexity score and the preset complexity threshold to generate a routing decision result. The routing decision result includes any one of the following: a fast processing path, a deep analysis path, or a dual-mode response with a deep analysis entry point. The fast processing path uses a shortest link, single-step reasoning, and deterministic execution strategy to complete standardized task processing. The deep analysis path uses a task decomposition, multi-agent collaborative execution, and iterative optimization strategy to complete complex analysis task processing. When the core dependent service of the deep analysis path fails, degradation processing is automatically triggered, transferring the request to a simplified version of the fast processing path for execution, and a circuit breaker mechanism is used to manage the service recovery process. The task processing is executed by calling the path corresponding to the routing decision result through a hierarchical capability orchestration mechanism, and the task response result is output.

2. The adaptive routing scheduling method as described in claim 1, characterized in that, The process of evaluating the complexity of the user task request from multiple dimensions to generate a comprehensive complexity score includes: The semantic complexity of the user task request is evaluated by extracting the number of concept entities, the maximum path depth of the dependency tree, and the proportion of ambiguous words in the user task request through word segmentation and dependency parsing, and calculating the semantic complexity score item. The data source breadth assessment is performed on the user task request, the query intent of the user task request is matched with the pre-built metadata graph, the number of data sources to be accessed and the number of cross-system related fields are determined, and the data source breadth score sub-item is calculated. The reasoning steps of the user task request are estimated and evaluated. The semantic features of the user task request are matched with a preset reasoning pattern template library to determine the minimum number of reasoning steps required to complete the user task request, and the reasoning step estimation score item is calculated. The time-series correlation degree of the user task request is evaluated, and it is detected whether the user task request contains time range description, trend analysis request and time granularity level, and the time-series correlation degree score sub-item is calculated. The semantic complexity score, the data source breadth score, the reasoning step prediction score, and the temporal correlation score are weighted and fused according to their respective weights to generate the comprehensive complexity score.

3. The adaptive routing scheduling method as described in claim 2, characterized in that, The semantic complexity assessment of the user task request involves extracting the number of concept entities, the maximum path depth of the dependency tree, and the proportion of ambiguous words from the user task request through word segmentation and dependency parsing, and calculating semantic complexity scoring sub-items, including: The user task request is segmented into words, and the independent business concepts involved in the user task request are taken as concept entities. The number of entities of the concept entities is counted. Dependency parsing is performed on the user task request to construct a dependency parsing tree, and the maximum path depth from the root node to the leaf node in the dependency parsing tree is calculated. Based on a pre-set domain dictionary, the user task request is matched with words to identify words with semantic ambiguity, and the proportion of ambiguous words to all content words is calculated. The semantic complexity score item is obtained by weighting and summing the number of entities of the concept entity, the maximum path depth, and the ambiguity ratio according to their respective weights.

4. The adaptive routing scheduling method as described in claim 1, characterized in that, The preset complexity threshold includes a first threshold and a second threshold, wherein the first threshold is less than the second threshold; The step of performing adaptive route scheduling based on the comparison result between the comprehensive complexity score and the preset complexity threshold, and generating a route decision result, includes: The overall complexity score is compared with the first threshold and the second threshold, respectively; When the overall complexity score is less than or equal to the first threshold, a routing decision result is generated to route to the fast processing path; When the overall complexity score is greater than or equal to the second threshold, a routing decision result is generated to route to the deep analysis path; When the overall complexity score is greater than the first threshold and less than the second threshold, the user's historical behavior data, current system load status data, and context association data of the user's task request and historical session are obtained. An adjusted routing preference score is generated based on the user's historical behavior data, current system load status data, and context association data. A routing decision result containing any one of the following is generated based on the routing preference score: a fast processing path, a deep analysis path, or a dual-mode response with a deep analysis entry point.

5. The adaptive routing scheduling method as described in claim 1, characterized in that, The step of calling the path corresponding to the routing decision result through the hierarchical capability orchestration mechanism to perform task processing and output task response results includes: When the routing decision result is a fast processing path, the single-step reasoning capability in the atomic capability layer is invoked through the hierarchical capability orchestration mechanism. The single-step reasoning capability includes data query capability, statistical aggregation capability and text generation capability. The shortest link execution strategy is adopted, skipping the task decomposition and multi-step planning stages, and directly performing single-step processing on the user task request through the single-step reasoning capability, and querying whether there are historical results of the same request in the preset result cache. If they exist, the cached result is directly obtained. The processing results are formatted into a standard response template, and the task response results are output.

6. The adaptive routing scheduling method as described in claim 1, characterized in that, The step of calling the path corresponding to the routing decision result through the hierarchical capability orchestration mechanism to perform task processing and output task response results includes: When the routing decision result is a deep analysis path, the user task request is decomposed into multiple sub-tasks by the planning agent, and a directed acyclic graph is constructed according to the dependency relationship between each sub-task to determine the execution order of each sub-task. The execution agent calls the corresponding atomic or composite capabilities from the hierarchical capability orchestration mechanism to execute each subtask according to the task type of each subtask, and the verification agent verifies the accuracy and consistency of the task execution results. When the verification agent detects that the task execution result is abnormal or the confidence level is insufficient, it triggers the planning agent to replan the task execution scheme to form an iterative optimization closed loop. When the core dependency service of the deep analysis path is abnormal, it performs degradation processing through the circuit breaker and outputs the task response result in a structured format.

7. The adaptive routing scheduling method as described in claim 1, characterized in that, The step of calling the path corresponding to the routing decision result through the hierarchical capability orchestration mechanism to perform task processing and output task response results includes: When the routing decision result is a dual-mode response with a deep analysis entry point, the basic query capabilities in the atomic capability layer are invoked through the hierarchical capability orchestration mechanism to generate a brief query result; A brief result response is generated based on the brief query results, and an entry link for a deep analysis entry is generated based on the brief result response. The deep analysis entry is used by the user to trigger the full execution of the deep analysis path. The brief result response and the deep analysis entry link are combined into a dual-mode response result, and the task response result is output.