A method, system and device for intelligent dialogue-based multi-agent collaborative invocation

By calculating the matching score between tool calls and agent delegation paths in the intelligent dialogue system, and combining it with a data frame pipeline architecture, the standardization and real-time issues in multi-agent collaborative interaction are solved, achieving efficient multimodal data processing and dynamic scheduling.

CN123157362APending Publication Date: 2026-11-24THREE GORGES HI TECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing intelligent dialogue systems suffer from problems such as a lack of standardized protocols for tool invocation, hard-coded multi-agent orchestration logic, and rigid multimodal data processing in multi-agent collaborative interactions. These issues result in high cross-model adaptation costs, weak dynamic scheduling capabilities, and poor real-time performance.

Method used

By calculating the matching score of the tool call path and the agent delegation path based on the intent recognition result and slot parameter calculation, a pipeline architecture of data frames is adopted to schedule processing nodes, supporting asynchronous parallel processing and synchronous aggregation of multimodal data, and realizing intent-based collaborative scheduling.

Benefits of technology

It enables flexible collaborative scheduling of multiple agents and tool calls, reduces response latency, and improves the processing capability of complex tasks and real-time interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157362A_ABST
    Figure CN123157362A_ABST
Patent Text Reader

Abstract

A method, system, and device for multi-agent collaborative invocation based on intelligent dialogue, relating to the field of intelligent dialogue technology, is disclosed. The method includes: receiving user input and parsing its intent to obtain intent recognition results and slot parameters; calculating matching scores for tool invocation paths and agent delegation paths based on the intent recognition results and slot parameters; determining a target execution path based on the two matching scores and their difference; the target execution path may include a tool invocation path, an agent delegation path, or a hybrid execution path; scheduling processing nodes through a data frame-based pipeline architecture to execute tasks according to the target execution path; obtaining the task execution result and encapsulating it into a response data frame for output. This invention achieves intent-based collaborative scheduling of multi-agent and tool invocation, significantly reducing response latency and improving the processing capability of complex tasks and real-time interactive experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent dialogue technology, and specifically to a method, system, and device for multi-agent collaborative invocation based on intelligent dialogue. Background Technology

[0002] With the rapid evolution of Large Language Models (LLM) and multimodal model technologies, pre-trained large models such as the GPT series, LLaMA, ChatGLM, and Qwen have been widely deployed in high-frequency interaction scenarios such as intelligent customer service, intelligent assistants, in-vehicle interaction, smart home control, office collaboration, medical consultation, e-commerce shopping guides, and industrial command execution. Users can complete information queries, function operations, service processing, and device control through conversational, abbreviated, and ambiguous natural language, significantly reducing the threshold for human-computer interaction and improving service efficiency and user experience. At the same time, the capabilities of a single model are no longer sufficient to cover all the needs of complex business scenarios. Capabilities such as multi-agent collaboration, external tool invocation, and cross-system communication are gradually becoming the core requirements of the next generation of intelligent dialogue systems.

[0003] Among related technologies, the mainstream technical approaches for intelligent dialogue systems can be summarized into several categories, including single-model end-to-end dialogue, hard-coded tool invocation, static agent orchestration, and protocol-free cross-system communication. Regarding tool invocation, existing systems primarily rely on Function Call mechanisms provided by model service providers; for multi-agent collaboration, predefined flowcharts or state machines are typically used to control the invocation order between agents; and for data processing, simple request-response patterns are often employed to handle multimodal data.

[0004] However, the aforementioned existing technologies have the following technical problems in real, open, and dynamic multi-agent collaborative interaction environments: First, the lack of standardized protocols for tool invocation leads to high costs for cross-model adaptation. Different LLMs use different function call data formats, resulting in inconsistent tool invocation interfaces and poor tool portability and reusability. Although existing systems have introduced the MCP protocol, the integration methods are mostly simple client-side encapsulations, failing to achieve unified management of the tool registry center and full support for the OAuth authorization process, thus failing to truly achieve the goal of standardizing tool invocation.

[0005] Second, the multi-agent orchestration logic is hard-coded, resulting in weak dynamic scheduling capabilities. Existing systems solidify the collaborative relationships between agents in code or configuration files, using predefined flowcharts or state machines to control the calling order between agents. When the dialogue context changes, the calling order of agents cannot be dynamically adjusted in real time, leading to insufficient system flexibility.

[0006] Third, the multimodal data processing architecture is rigid and lacks real-time performance. Existing systems mostly use simple serial methods to process multimodal data such as text, voice, and images, which cannot effectively support concurrent data processing and synchronous output. In real-time dialogue scenarios, when faced with the need for simultaneous input of multiple modal data, the existing architecture often results in high response latency, poor data flow, and a sluggish user experience, making it difficult to meet the real-time interaction requirements of millisecond-level response. Summary of the Invention

[0007] This invention provides a method, system, and device for multi-agent collaborative invocation based on intelligent dialogue, which can solve the technical problem of weak dynamic scheduling capability caused by the rigid orchestration logic in the prior art.

[0008] In a first aspect, the present invention provides a multi-agent collaborative invocation method based on intelligent dialogue, the method comprising: Receive user input and perform intent parsing to obtain intent recognition results and slot parameters; Based on the above intent recognition results and slot parameters, the matching scores of the tool invocation path and the agent delegation path are calculated respectively. Based on the two matching scores mentioned above and their difference, the target execution path is determined; the target execution path includes a tool invocation path, an agent delegation path, or a hybrid execution path. Based on the aforementioned target execution path, the processing nodes are scheduled and the task is executed through a data frame-based pipeline architecture. Obtain the task execution result and encapsulate it into a response data frame for output.

[0009] In conjunction with the first aspect, in one implementation, the matching score of the aforementioned calculation tool call path specifically includes: Obtain the semantic embedding vector corresponding to the above intent recognition results; Obtain the description vector of the candidate tool, and calculate the semantic similarity between the description vector and the semantic embedding vector corresponding to the intent recognition result. Calculate the structural compatibility score between the above slot parameters and candidate tool parameters; Based on the preset weight coefficients, the semantic similarity and structural compatibility scores are weighted and summed to obtain the tool capability matching degree. Based on the matching degree of the above tool capabilities, obtain the matching score of the above tool call path.

[0010] In conjunction with the first aspect, in one implementation, calculating the structural compatibility score between the aforementioned slot parameters and candidate tool parameters specifically includes: The total number of parameters required to obtain candidate tools; Iterate through each required parameter of the above candidate tools and find the corresponding slot value in the above slot parameters; If a corresponding slot value is found, the type of the slot value is compatible with the type of the required parameter, and the slot value is not empty, then the parameter is considered to have matched successfully. The proportion of successfully matched parameters to the total number mentioned above is used as the structural compatibility score.

[0011] In conjunction with the first aspect, in one implementation, calculating the matching score of the agent's delegation path specifically includes: Based on the above intent recognition results, determine the number of capability dimensions required for the task and the requirements for each capability dimension; Obtain the capability claims of candidate agents in each capability dimension; For each capability dimension, a successful match is recorded when the above capability declaration is semantically consistent with the above requirement, or when there is an inclusion relationship where the above capability declaration covers the requirement. Based on the preset weights, the matching results for each capability dimension are weighted and summed to obtain the above-mentioned agent capability matching degree. Based on the aforementioned agent capability matching degree, the matching score of the aforementioned agent delegation path is obtained.

[0012] In conjunction with the first aspect, in one implementation, the target execution path is determined based on the two matching scores mentioned above and their difference, specifically including: Compare the absolute value of the above difference with a preset difference threshold; If the absolute value of the above difference is less than or equal to the above difference threshold, then the above target execution path is determined to be a hybrid execution path; If the absolute value of the above difference is greater than the above difference threshold, then the path with the higher matching score will be selected as the target execution path.

[0013] In conjunction with the first aspect, in one implementation, the task execution of the aforementioned hybrid execution path includes: The tool call path and the agent delegation path are executed in parallel, and the execution results of the tool call path and the agent delegation path are obtained respectively. The execution results of the two paths are scored from multiple dimensions, and the execution result with the higher overall quality score is selected as the final task execution result.

[0014] In conjunction with the first aspect, in one implementation, before receiving user input, the method further includes: Define multiple types of data frames; these include system instruction frames, control instruction frames, business data frames, and application frames, which are used for flow and processing in the pipeline architecture.

[0015] In conjunction with the first aspect, in one implementation, obtaining the semantic embedding vector corresponding to the intent recognition result specifically includes: The above intent recognition results are encoded to obtain an initial intent vector representation; When there is a previous dialogue, the above slot parameters are encoded into a slot vector representation. Based on the preset state decay coefficient, the state representation of the previous dialogue, the above initial intent vector representation, and the slot vector representation are weighted and fused to obtain the updated intent vector representation, which serves as the semantic embedding vector corresponding to the above intent recognition result. When there is no previous dialogue, the above initial intent vector is used as the semantic embedding vector corresponding to the above intent recognition result.

[0016] Secondly, the present invention provides a multi-agent collaborative invocation system based on intelligent dialogue, the system comprising: The intent parsing module is used to receive user input and parse the intent to obtain the intent recognition result and slot parameters. The routing decision module is used to calculate the matching scores of the tool invocation path and the agent delegation path based on the intent recognition results and slot parameters mentioned above; and to determine the target execution path based on the two matching scores and their difference; the target execution path includes the tool invocation path, the agent delegation path, or a hybrid execution path. The task execution module is used to schedule processing nodes to execute tasks according to the above-mentioned target execution path through a pipeline architecture based on data frames; The result output module is used to obtain the task execution result and encapsulate the above task execution result into a response data frame for output.

[0017] Thirdly, the present invention provides a multi-agent collaborative invocation device based on intelligent dialogue. The device includes a processor, a memory, and a multi-agent collaborative invocation program based on intelligent dialogue stored in the memory and executable by the processor. When the multi-agent collaborative invocation program based on intelligent dialogue is executed by the processor, it implements the steps of the multi-agent collaborative invocation method based on intelligent dialogue.

[0018] The beneficial effects of the technical solutions provided by the embodiments of the present invention include: By calculating the matching score between the tool call path and the agent delegation path based on the intent recognition result and slot parameters, and flexibly determining the target execution path according to the score difference, the limitations of hard-coded orchestration are broken, and intent-based collaborative scheduling of multiple agents and tool calls is realized. In addition, a pipeline architecture based on data frames is adopted to schedule processing nodes, supporting asynchronous parallel processing and synchronous convergence of multimodal data, which significantly reduces response latency, improves the processing capacity of complex tasks and real-time interactive experience, and solves the technical problem of weak dynamic scheduling capability caused by the solidification of orchestration logic in related technologies. Attached Figure Description

[0019] Figure 1 This is a flowchart illustrating an embodiment of the multi-agent collaborative invocation method based on intelligent dialogue of the present invention; Figure 2 This is a flowchart illustrating another embodiment of the multi-agent collaborative invocation method based on intelligent dialogue of the present invention; Figure 3 This is a schematic diagram of the architecture of an embodiment of the multi-agent collaborative invocation system based on intelligent dialogue of the present invention; Figure 4 This is a schematic diagram of the architecture of another embodiment of the multi-agent collaborative invocation system based on intelligent dialogue of the present invention; Figure 5 These are schematic diagrams of three Pipeline topologies in embodiments of the present invention; Figure 6 This is a schematic diagram of the hardware structure of the multi-agent collaborative invocation device involved in the embodiment of the present invention. Detailed Implementation

[0020] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0021] In a first aspect, embodiments of the present invention provide a multi-agent collaborative invocation method based on intelligent dialogue.

[0022] In one embodiment, reference is made to Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the multi-agent collaborative invocation method based on intelligent dialogue of the present invention. The aforementioned multi-agent collaborative invocation method based on intelligent dialogue includes: S1. Receive user input and perform intent parsing to obtain intent recognition results and slot parameters; S2. Based on the intent recognition results and slot parameters, calculate the matching scores for the tool invocation path and the agent delegation path, respectively; S3. Determine the target execution path based on the two matching scores and their difference; the target execution path includes a tool invocation path, an agent delegation path, or a hybrid execution path; S4. Based on the target execution path, schedule processing nodes through a data frame-based pipeline architecture to execute the task; S5. Obtain the task execution result and encapsulate the task execution result into a response data frame for output.

[0023] In this embodiment, the matching score between the tool call path and the agent delegation path is calculated based on the intent recognition result and slot parameters. The target execution path is flexibly determined according to the score difference, breaking the hard-coded orchestration limitation and realizing intent-based collaborative scheduling of multiple agents and tool calls. In addition, a pipeline architecture based on data frames is adopted to schedule processing nodes, supporting asynchronous parallel processing and synchronous convergence of multimodal data. This significantly reduces response latency, improves the processing capability of complex tasks and the real-time interactive experience, and solves the technical problem of weak dynamic scheduling capability caused by the solidification of orchestration logic in related technologies.

[0024] Furthermore, in one embodiment, before receiving user input, the method further includes: Define multiple types of data frames; these include system instruction frames, control instruction frames, business data frames, and application frames, which are used for flow and processing in the pipeline architecture.

[0025] In this embodiment, based on the aforementioned various types of data frames, a data frame-based pipeline architecture is constructed to schedule processing nodes for task execution. The specific data flow, synchronization and aggregation, topology construction, and performance monitoring logic are formally described by the following formula: (1) Frame data frame flow formula: The processing of the input Frame by the Processor node can be represented as:

[0026] Where p represents the current Processor node, (p) represents the input Frame data obtained from the asynchronous queue. This indicates the processing logic executed by Processor p on input Frame f. Indicates the processing result Push to the next Processor node in the upstream / downstream direction. This indicates the output of Processor p. For asynchronous Processors, the queue_frame operation consumes data from the asynchronous queue buffer, the process_frame is executed by the asynchronous coroutine handler, and the push_frame writes the result to the asynchronous queue buffer of the downstream Processor.

[0027] (2) Convergence formula for parallel synchronous pipelines: When n parallel pipelines need to output synchronously, the convergence process is expressed as:

[0028] in, This represents the output buffer queue of the i-th parallel pipeline. This represents the cached Frame data in the i-th Pipeline. SyncFrame is the synchronization control instruction Frame. When SyncFrame arrives, all Frames in the cache queue are written to the upstream / downstream at once, achieving precise synchronization of multi-channel data.

[0029] (3) PipelineTask DAG Execution Formula: The execution dependency relationship of Processors in the DAG is represented as follows:

[0030] Where P is the set of all Processor nodes in the DAG, E is the set of directed edges between Processors, and the number of edges is... express Execution depends on The output is determined by the topological order of the DAG. The Source node is the starting node with an in-degree of 0, and the Sinker node is the ending node with an out-degree of 0. PipelineTask activates DAG execution by sending StartFrame through Runner, ends execution by EndFrame, terminates abnormally by StopTaskFrame, and exits by CancelFrame.

[0031] (4) MetricsFrame performance metric calculation formula: Monitoring metrics are collected and transmitted between Processors through MetricsFrame. Core metrics include:

[0032]

[0033]

[0034]

[0035] in, This represents the delay time from receiving the input to outputting the first token, i.e., the first token delay; This represents the delay time from receiving the input to outputting the first data block (Chunk, used for audio frames), i.e., the first frame delay; This represents the delay time from receiving the input to outputting the first byte, i.e., the first byte delay; This indicates the processing time of Processor p, i.e., the processor time. Each Processor writes its own monitoring metrics into the MetricsFrame when processing it, and the Sinker node finally aggregates and outputs a complete performance report.

[0036] Furthermore, in one embodiment, the calculation of the matching score of the tool call path in step S2 above specifically includes: First, obtain the semantic embedding vector corresponding to the above intent recognition result; Secondly, the description vectors of the candidate tools are obtained, and the semantic similarity between the description vectors and the semantic embedding vectors corresponding to the intent recognition results is calculated. Next, calculate the structural compatibility score between the above slot parameters and candidate tool parameters; Next, based on the preset weight coefficients, the semantic similarity and structural compatibility scores are weighted and summed to obtain the tool capability matching degree. Finally, based on the tool capability matching degree mentioned above, the matching score of the tool call path is obtained.

[0037] Furthermore, in this embodiment, calculating the structural compatibility score between the aforementioned slot parameters and candidate tool parameters specifically includes: First, obtain the total number of parameters required for the candidate tools; Secondly, iterate through each required parameter of the above candidate tools and find the corresponding slot value in the above slot parameters; Then, if a corresponding slot value is found, the type of the slot value is compatible with the type of the required parameter, and the slot value is not empty, then the parameter is considered to have matched successfully; if no corresponding slot value is found, or the type of the slot value is incompatible, or the slot value is empty, then the parameter is considered to have failed to match.

[0038] Finally, the proportion of successfully matched parameters to the total number mentioned above is calculated as the structural compatibility score.

[0039] Specifically, in this embodiment, to formally describe the discovery and matching process of MCP tools, an MCP tool capability matching degree calculation formula is used. When the MCP client discovers a tool in the registry center, it calculates the capability matching degree between the user intent and the tool description. The calculation formula is as follows:

[0040] Where q represents the query object of the user intent recognition result, t represents the candidate tool, and E(q) represents the semantic embedding vector of the user query intent recognition result, that is, the semantic embedding vector corresponding to the intent recognition result. ) represents the description vector of the candidate tool, i.e., the semantic embedding vector of the tool description, cos(E(q), E( )) represents the cosine similarity between the two, which measures the semantic relevance between the intent and the tool description; This represents the set of slot parameters extracted from user input. This represents the parameter schema definition of the candidate tool. ( , The score represents the matching score between the slot parameters and the candidate tool parameters, which measures the structural compatibility between the parameters provided by the user and the parameters required by the tool. and Let be the weighting coefficient, satisfying + = 1, default = 0.6, = 0.4, prioritizing semantic relevance.

[0041] The formula for calculating the structural compatibility score, or matching score, between slot parameters and candidate tool parameters is as follows:

[0042] Where n is the total number of parameters required by the candidate tool, and slot_i is the slot value corresponding to the i-th parameter in the user input. For the i-th parameter defined in the tool schema, For a binary matching function, when Types and Type compatible and The value is 1 if the parameter is not empty, and 0 otherwise. This formula measures the completeness of the parameters required by the parameter coverage tool provided by the user; the higher the parameter coverage, the higher the matching score.

[0043] In addition, the OAuth authorization process must be completed before using the tool. In the standard OAuth authorization process, The generation follows the PKCE (Proof Key for Code Exchange) specification, and the calculation formula is as follows:

[0044]

[0045] in, A randomly generated high-entropy string, between 43 and 128 characters in length, composed of letters, numbers, and specific characters; SHA256 is a secure hash algorithm. A hash operation is performed to generate a fixed-length digest; BASE64URL is a URL-safe Base64 encoding that encodes the hash digest into a transmittable string format. It is sent during authorization requests. and =S256, Send the original token during token exchange. MCP Server verifies SHA256 ( Is it equal to the previously received? This ensures that the authorization code has not been intercepted or tampered with.

[0046] Furthermore, in one embodiment, step S2 above, calculating the matching score of the agent delegation path, specifically includes: First, based on the above intent recognition results, determine the number of capability dimensions required for the task and the requirements for each capability dimension; Secondly, the capability statements of the candidate agents are obtained for each capability dimension. For each capability dimension, a successful match is recorded when the capability statement is semantically consistent with the requirement, or when there is an inclusion relationship where the capability statement covers the requirement; otherwise, a failed match is recorded. Here, the inclusion relationship specifically refers to the capability scope represented by the capability statement covering (i.e., including) the semantic scope of the task requirement.

[0047] Then, based on the preset weights, the matching results for each capability dimension are summed in a weighted manner to obtain the above-mentioned agent capability matching degree. Finally, based on the aforementioned agent capability matching degree, the matching score of the aforementioned agent delegation path is obtained.

[0048] Optionally, the intent recognition results can be converted into task requirements in the capability dimension.

[0049] Specifically, to formally describe the discovery and matching process of A2A agents, an A2A agent capability matching degree calculation formula is adopted. When the main agent discovers the sub-agent through the Agent Card, the matching degree between the task requirements and the agent's capabilities is calculated using the following formula:

[0050] Where task represents the task currently to be delegated, agent represents the candidate sub-agent, and k is the number of capability dimensions required by the task. The requirements for the task in the i-th capability dimension (such as text-generation, code-analysis, image-understanding, etc.). Provide the capability declarations for the candidate agent in the i-th capability dimension (obtained from the capabilities field of AgentCard). For the capability matching function, when and The value is 1 when the semantics are consistent or the inclusion relationship is true, and 0 otherwise. Let the weight of the i-th capability dimension satisfy... The weights can be dynamically adjusted according to the task type; for example, the code-analysis dimension has a higher weight in code generation tasks.

[0051] In addition, to ensure the reliability and real-time performance of the task execution, this embodiment also includes constructing the A2A task state transition probability matrix and calculating the A2A communication delay.

[0052] Specifically, in task lifecycle management, the state transition process can be modeled as a discrete-time Markov chain. Let the task state space be... These correspond to Created, Executing, Streaming, Completed, and Failed, respectively. The one-step transition probability matrix is ​​defined as:

[0053] in, Indicates from State transition to The conditional probabilities are given, with Completed and Failed being absorbing states, and the probability of transitioning back to themselves is 1. This matrix describes the state transition patterns of the A2A task between normal execution, streaming updates, successful completion, and abnormal failure, providing a theoretical basis for task timeout detection and anomaly recovery.

[0054] Furthermore, regarding A2A communication performance evaluation, for SSE streaming push mode, the end-to-end communication latency... The calculation formula is as follows:

[0055] in, This refers to network transmission latency (including HTTP connection establishment and TLS handshake time). The processing time for the sub-agent to start outputting the first result after receiving a request. Let be the transmission time from the sub-agent to the master agent for the j-th SSE data block, and m be the total number of data blocks in the SSE stream. This formula is used to evaluate the real-time performance of A2A streaming communication and guide the optimization of SSE push frequency and data block size.

[0056] Furthermore, in one embodiment, step S3 above, determining the target execution path based on the two matching scores and their difference, specifically includes: First, the absolute value of the above difference is compared with the preset difference threshold; the default value of the difference threshold θ is 0.1, which can be adjusted according to the actual scenario.

[0057] If the absolute value of the above difference is less than or equal to the above difference threshold, then the above target execution path is determined to be a hybrid execution path; at this time, the matching degree of the two paths is close, and parallel execution can achieve dual verification, and the task execution quality is ensured by selecting the best output.

[0058] If the absolute value of the above difference is greater than the above difference threshold, then the path with the higher matching score is selected as the target execution path. In this case, one path is obviously better than the other, and there is no need to execute in parallel to save resources.

[0059] Specifically, to formally describe the routing decision-making process, a path comprehensive score formula is first defined. The comprehensive score is calculated for both the MCP tool invocation path and the A2A agent delegation path, using the following formula:

[0060] in, For path comprehensive scoring, task represents the task currently to be routed, and path represents the candidate path (MCP or A2A). The intent type matching score measures the degree of fit between the task intent type and the path (e.g., query intents have a higher matching degree with the MCP path, and reasoning intents have a higher matching degree with the A2A path). A task complexity matching score is assigned to measure the degree of fit between the number of task steps and the path processing capability. For capability matching score, the maximum value of M_tool(q, t) is taken for MCP path, and the maximum value of M_agent(task, agent) is taken for A2A path; S_history(path) is the historical call success rate score, which is the success rate of historical calls for this path; To calculate the load balancing score, subtract the load rate of the current path from 1. , , , , Let be the weighting coefficient, satisfying = 1, which can be dynamically adjusted according to the actual scenario.

[0061] In this embodiment, the default is... = 0.25, = 0.20, = 0.30, = 0.15, = 0.10, prioritizing capability matching.

[0062] Based on the comprehensive score above, the routing decision formula determines the final target execution path:

[0063] in, For the target execution path, candidate paths include MCP (pure tool call path), A2A (pure agent delegation path) and HYBRID (hybrid path, which activates both MCP and A2A paths simultaneously). and The scores are the combined scores for the tool invocation path and the agent delegation path, respectively.

[0064] When the scores of MCP and A2A are close (the difference is less than the threshold theta, theta = 0.1 by default), the HYBRID hybrid path is selected. The two paths are executed in parallel and the better result is taken to maximize the quality of task completion.

[0065] Preferably, in this embodiment, the task execution of the above-mentioned hybrid execution path includes: First, the tool invocation path and the agent delegation path are activated in parallel for execution, and the execution results of the tool invocation path and the agent delegation path are obtained respectively. Then, the execution results of the two paths are scored from multiple dimensions, and the execution result with the higher overall quality score is selected as the final task execution result.

[0066] Preferably, at least two of the following dimensions are set as evaluation criteria to score the returned results: (1) Semantic relevance: The degree to which the content of the evaluation result matches the user's current intent. The system will semantically compare the result with the user's question. The more relevant the answer is, the higher the score.

[0067] (2) Result validity (confidence): Evaluate whether the results are reliable and complete. For MCP tool calls, evaluate whether they are executed successfully and whether the returned data structure is complete; for A2A agents, evaluate the degree of confidence of the large model in generating the answer (i.e., model confidence).

[0068] (3) Response timeliness: The speed at which results are obtained. The lower the response latency, the higher the score for this item, in order to ensure a smooth user experience.

[0069] In one optional implementation of this embodiment, only the two dimensions of semantic relevance and result validity can be selected for scoring, which is suitable for scenarios with extremely high accuracy requirements but low latency sensitivity.

[0070] Based on the above embodiments, in this embodiment, obtaining the semantic embedding vector corresponding to the intent recognition result specifically includes: First, the intent recognition results are encoded to obtain an initial intent vector representation; then, it is determined whether there was a previous round of dialogue.

[0071] When there is a previous dialogue, the above slot parameters are encoded into a slot vector representation. Based on the preset state decay coefficient, the state representation of the previous dialogue, the above initial intent vector representation, and the slot vector representation are weighted and fused to obtain the updated intent vector representation, which serves as the semantic embedding vector corresponding to the above intent recognition result.

[0072] When there is no previous dialogue, the above initial intent vector is used as the semantic embedding vector corresponding to the above intent recognition result.

[0073] Specifically, context information is updated using the Dialogue State Tracking (DST) mechanism. In a multi-turn dialogue, the DST update process is represented as follows:

[0074]

[0075] in, This represents the state of the t-th round of dialogue. This indicates the state of the previous round of dialogue. This represents the intent recognition result in round t. This represents the slot parameters extracted in round t. This means encoding the intent recognition result and slot parameters of the current round into a vector representation. State decay coefficient (0 < <1, default = 0.7), which controls the fusion ratio of historical states and current inputs. The larger the value, the higher the weight of historical states, and the stronger the coherence of the dialogue. The smaller the value, the higher the weight of the current input, and the greater the flexibility of the dialogue. This formula implements exponential decay updates of the dialogue state, ensuring that the influence of long-term dialogues gradually weakens while the influence of recent dialogues remains strong.

[0076] Among them, the state representation of the t-th round of dialogue after fusion is obtained. This allows us to obtain the updated intent vector representation and perform tool capability matching degree calculation without any additional coding steps.

[0077] In this embodiment, by weighted fusion of historical dialogue states and current intent information, the effective continuation of multi-turn dialogue context is achieved, improving the accuracy and consistency of intent recognition results and slot parameters.

[0078] Furthermore, as a supplement to the foregoing embodiments, this embodiment provides a result fusion mechanism for scenarios involving multiple execution entities, such as the fusion process of execution results of multiple sub-agents.

[0079] The formula for fusing results from multiple agents is as follows: When multiple sub-agents execute in parallel and return results, the result fusion process is represented as a weighted aggregation:

[0080] in, For the final fusion result, m represents the number of sub-agents participating in the execution. The execution result of the i-th sub-agent (encapsulated as a Frame vector representation). Let be the fusion weight of the result of the i-th sub-agent, satisfying .

[0081] The fusion weight is dynamically calculated based on the reliability of the sub-agents and the relevance of the results. Specifically, the formula for calculating the fusion weight is as follows:

[0082] in, The relevance score between the result of the i-th sub-agent and the current dialogue intent is obtained by calculating the cosine similarity between the result vector representation and the intent vector representation, E(q). The reliability score for the i-th sub-agent is calculated based on a comprehensive evaluation of metrics such as historical call success rate, response latency, and result quality score. This formula ensures that sub-agents with high relevance and reliability receive higher weights during the fusion process, thereby improving the accuracy and credibility of the final response.

[0083] Furthermore, to ensure a good user experience in real-time interactive scenarios, this embodiment also supports an interrupt handling mechanism. When a user initiates an interrupt during task execution, the interrupt response time is calculated using the following formula:

[0084] in, The transmission time for sending the interruption frame (InterruptionFrame) The time required to clear the buffer queue of the asynchronous Processor. This is the time to restart the queue_frame to receive new input. For models that internalize interrupt instructions, This also includes the processing time for stopping streaming output within the model. By optimizing the parallel execution of buffer clearing and queue restarting, [this will be achieved]. Controlled at the millisecond level to ensure the real-time nature of interrupted yij-lbaomi responses.

[0085] like Figure 2 As shown, the above method specifically includes: Step S101: The system receives natural language dialogue input from the user, including multimodal forms such as plain text, speech (transcribed by ASR), and images (understood by MLLM); Step S102: Parse the dialogue intent and extract slots, combine Dialogue State Tracking (DST) to maintain the context information of multi-turn dialogue, and generate a structured intent representation. The intent representation includes task type label, target tool or agent identifier, task parameters, priority and dependency relationship. Step S103: Determine the task type based on the intent parsing results. The task type is divided into MCP tool call path, A2A agent delegation path, and hybrid path. The determination criteria include multiple dimensions such as intent type, task complexity, matching degree of available tools / agent capabilities, and historical call success rate.

[0086] The MCP tool call path includes: Step S104a, entering the MCP tool call path; Step S105a, discovering and calling the registered tool through the MCP client (initiating a tool call request after OAuth authorization); Step S106a, the tool executes and returns a structured result (the result is encapsulated as a TextFrame or injected into the Pipeline using an application Frame).

[0087] The A2A agent delegation path includes: step S104b, entering the A2A agent delegation path; step S105b, discovering the sub-agent through AgentCard and establishing JSON-RPC2.0 communication; step S106b, the sub-agent executes the task and streams back the intermediate and final results through SSE.

[0088] Step S107: For single-path execution (only the MCP tool call path or only the A2A agent delegation path), the execution results of the path are directly orchestrated and transferred through the PipelineFrame data frame; for mixed-path execution (both the MCP tool call path and the A2A agent delegation path are activated at the same time), the execution results of the two paths are evaluated from multiple dimensions through the PipelineFrame data frame, and the best one is selected for orchestration and transfer.

[0089] Step S108: Generate dialogue response (post-processing such as deduplication and sorting). Step S109: Output multimodal response (text is streamed via TextFrame, speech is synthesized via TTS and then streamed via AudioRawFrame, and image is output via ImageRawFrame). Step S110: Update the dialogue context and state tracking to provide a contextual basis for the next round of dialogue.

[0090] In this embodiment, the process supports dynamic route adjustment: during task execution, intermediate states are transmitted through Frame data frames, supporting necessary path adjustments, such as upgrading the MCP path to the A2A path, and dynamically inserting MCP tool call nodes into the A2A path. During adjustment, the context continuity is maintained through DST state.

[0091] Secondly, embodiments of the present invention also provide a multi-agent collaborative invocation system based on intelligent dialogue.

[0092] In one embodiment, reference is made to Figure 3 , Figure 3 This is a schematic diagram of the architecture of an embodiment of the multi-agent collaborative invocation system based on intelligent dialogue according to the present invention. The aforementioned multi-agent collaborative invocation system based on intelligent dialogue includes: an intent parsing module, a routing decision module, a task execution module, and a result output module.

[0093] The intent parsing module is used to receive user input and perform intent parsing to obtain intent recognition results and slot parameters.

[0094] The routing decision module is used to calculate the matching scores of the tool invocation path and the agent delegation path based on the above intent recognition results and slot parameters; and to determine the target execution path based on the two matching scores and the difference between them; the target execution path includes the tool invocation path, the agent delegation path or the hybrid execution path.

[0095] The task execution module is used to schedule processing nodes and perform task execution according to the above target execution path through a pipeline architecture based on data frames.

[0096] The results output module is used to obtain the task execution results and encapsulate the above task execution results into a response data frame for output.

[0097] Furthermore, in one embodiment, the routing decision module is also used for: Obtain the semantic embedding vector corresponding to the above intent recognition results; Obtain the description vector of the candidate tool, and calculate the semantic similarity between the description vector and the semantic embedding vector corresponding to the intent recognition result. Calculate the structural compatibility score between the above slot parameters and candidate tool parameters; Based on the preset weight coefficients, the semantic similarity and structural compatibility scores are weighted and summed to obtain the tool capability matching degree. Based on the matching degree of the above tool capabilities, obtain the matching score of the above tool call path.

[0098] Furthermore, in one embodiment, the routing decision module is also used for: The total number of parameters required to obtain candidate tools; Iterate through each required parameter of the above candidate tools and find the corresponding slot value in the above slot parameters; If a corresponding slot value is found, the type of the slot value is compatible with the type of the required parameter, and the slot value is not empty, then the parameter is considered to have matched successfully. The proportion of successfully matched parameters to the total number mentioned above is used as the structural compatibility score.

[0099] Furthermore, in one embodiment, the routing decision module is also used for: Based on the above intent recognition results, determine the number of capability dimensions required for the task and the requirements for each capability dimension; Obtain the capability claims of candidate agents in each capability dimension; For each capability dimension, a successful match is recorded when the above capability declaration is semantically consistent with the above requirement, or when there is an inclusion relationship where the above capability declaration covers the requirement. Based on the preset weights, the matching results for each capability dimension are weighted and summed to obtain the above-mentioned agent capability matching degree. Based on the aforementioned agent capability matching degree, the matching score of the aforementioned agent delegation path is obtained.

[0100] Furthermore, in one embodiment, the routing decision module is also used for: Compare the absolute value of the above difference with a preset difference threshold; If the absolute value of the above difference is less than or equal to the above difference threshold, then the above target execution path is determined to be a hybrid execution path; If the absolute value of the above difference is greater than the above difference threshold, then the path with the higher matching score will be selected as the target execution path.

[0101] Furthermore, in one embodiment, the task execution module described above is used for: The tool call path and the agent delegation path are executed in parallel, and the execution results of the tool call path and the agent delegation path are obtained respectively. The execution results of the two paths are scored from multiple dimensions, and the execution result with the higher overall quality score is selected as the final task execution result.

[0102] Furthermore, in one embodiment, the task execution module is also used for: Define multiple types of data frames; these include system instruction frames, control instruction frames, business data frames, and application frames, which are used for flow and processing in the pipeline architecture.

[0103] Furthermore, in one embodiment, the routing decision module is also used for: The above intent recognition results are encoded to obtain an initial intent vector representation; When there is a previous dialogue, the above slot parameters are encoded into a slot vector representation. Based on the preset state decay coefficient, the state representation of the previous dialogue, the above initial intent vector representation, and the slot vector representation are weighted and fused to obtain the updated intent vector representation, which serves as the semantic embedding vector corresponding to the above intent recognition result. When there is no previous dialogue, the above initial intent vector is used as the semantic embedding vector corresponding to the above intent recognition result.

[0104] This embodiment of the multi-agent collaborative invocation system, based on a technical architecture of dialogue intent parsing, MCP tool invocation and A2A agent delegation dual-path routing, PipelineFrame data frame orchestration, multi-agent parallel execution, result aggregation, and dialogue response, effectively solves the technical problems existing in traditional intelligent dialogue systems, such as low standardization of tool invocation, inconsistent communication protocols between agents, hard-coded orchestration logic, insufficient real-time performance of multimodal processing, and lack of MCP and A2A collaborative scheduling mechanisms. After the user's natural language input is processed in layers by the system, it can realize intent-driven dynamic agent scheduling, standardized tool invocation, and cross-protocol agent communication, and is suitable for multi-task scenarios such as intelligent customer service, in-vehicle interaction, smart home, office collaboration, medical consultation, and e-commerce shopping guide.

[0105] It should be noted that the above system modules may correspond to specific layered architectures in terms of physical implementation or software architecture. For example... Figure 4As shown, the overall architecture of this system adopts a six-layer design, including a user interaction layer, an intelligent dialogue parsing and intent routing layer, an MCP tool invocation layer, an A2A intelligent agent communication layer, a pipeline data processing and orchestration layer, and an execution and response layer. Each layer is decoupled through interface isolation to improve the system's scalability and maintainability.

[0106] The system is structured as follows: The top layer is the user interaction layer, responsible for receiving natural language and multimodal input (text, voice, images) from users, managing the dialogue context, and supporting multiple communication protocols such as HTTP / WebSocket / WebRTC. The second layer is the intelligent dialogue parsing and intent routing layer, which performs intent recognition, slot extraction, and dialogue state tracking on user input, generating agent scheduling strategies. This layer is the core scheduling hub of the system. The third layer includes a parallel MCP tool invocation layer and an A2A agent communication layer. The MCP tool invocation layer implements MCP client adapters, tool registration and discovery, OAuth authorization and authentication, tool execution, and result feedback, and is responsible for standardizing the entire tool invocation process. The A2A agent communication layer implements AgentCard discovery and JSON-RPC. The 2.0 communication layer, SSE streaming push, task delegation, and result aggregation are responsible for standardizing the entire communication process between intelligent agents. The MCP layer and A2A layer achieve collaborative scheduling through the Pipeline data frame mechanism and the intelligent dialogue parsing and intent routing layer. The fourth layer is the Pipeline data processing and orchestration layer, which realizes unified abstraction of Frame data frames, flexible orchestration of Processor processing nodes, dynamic construction of Pipeline topology, and operation management of PipelineTask DAG. The bottom layer is the execution and response layer, which adopts a master agent-sub-agent architecture and supports parallel execution and inference acceleration of multiple model engines (LLM, MLLM, Audio-LLM, Omni-LLM). The layers are decoupled through interface isolation to ensure the scalability and maintainability of the system.

[0107] See Figure 5The diagram illustrates three Pipeline topologies: a serial Pipeline, executed sequentially by the Source, Processor nodes (P1, P2), and Sinker, suitable for simple linear data processing flows; a parallel synchronous Pipeline, executed in parallel by multiple serial Pipelines, with results converged through SyncFrame synchronization points, suitable for parallel processing and synchronous output of multimodal data; and a PipelineTask DAG, which assembles multiple Pipelines into a directed acyclic graph, where the Source node distributes the results to the MCP and A2A processors via the Router based on intent parsing. The execution results of the two paths are uniformly encapsulated as Frames and injected into the Pipeline, with the Aggregator node selecting the best result for output.

[0108] This schematic clearly illustrates the data flow, control flow, and collaborative relationships between the modules, enabling a full-process upgrade from dialogue input to intent routing, from tool invocation to agent communication, and from data frame orchestration to multimodal output. It significantly improves the standardization of tool invocation, interoperability of agent communication, dynamic scheduling capabilities, real-time multimodal processing, and collaborative efficiency of MCP and A2A. It has high scalability, high reliability, and continuous evolution capabilities, and can efficiently support the collaborative invocation needs of multi-agents in complex and open scenarios.

[0109] The correspondence between the above system modules and the architecture layers is as follows: the intent parsing module and the routing decision module mainly correspond to the intelligent dialogue parsing and intent routing layer, and undertake the input receiving function of the user interaction layer; the task execution module mainly corresponds to the Pipeline data processing and orchestration layer, the MCP tool calling layer, and the A2A intelligent agent communication layer; the result output module mainly corresponds to the execution and response layer, and undertakes the output sending function of the user interaction layer.

[0110] The specific implementation methods of each of the above-mentioned architectural layers will be described in detail below with reference to specific embodiments.

[0111] Specific implementation of the Pipeline data processing and orchestration layer based on Frame data frames: This layer provides a unified foundation for data flow and processing across the entire system, enabling standardized encapsulation, asynchronous parallel processing, and synchronous aggregation of multimodal data. The system defines four types of Frame data frames, covering data types across all scenarios, from system control to business data. The first category is system instruction frames, used for system operation control and exception handling. Specifically, these include: CancelFrame (system exit instruction, used to clean up and exit the system when an exit signal is received); ErrorFrame (system runtime error instruction, used to transmit runtime exception information); StopTaskFrame (stop task instruction, used to terminate the execution of the current PipelineTask); InterruptionTaskFrame (interrupt task instruction, sent by the Source after receiving InterruptionTaskFrame, used for interrupting the speech / text stream); StartInterruptionFrame and InterruptionFrame (interrupt instructions, used to interrupt asynchronous Processors by directly cutting off the asynchronous buffer and restarting the queue_frame, and for models with internalized interrupt instructions, sent to the underlying model to trigger model interruption or stop streaming output); StopInterruptionFrame (stop interrupt instruction, used to resume normal processing); and MetricsFrame (system monitoring metric frame, used to collect performance metrics such as Processor runtime, first token / chunk / byte time, etc.).

[0112] The second category is control instruction frames, used for pipeline lifecycle management and synchronization control. Specifically, they include: StartFrame, the system start-up instruction, carrying initial parameters (whether to interrupt, whether to monitor, etc.); EndFrame, the end-up instruction; SyncFrame, the synchronization instruction needed for parallel pipeline synchronization, the output port will only output the buffer result after SyncFrame; and SyncNotifyFrame, used for event notification and broadcasting.

[0113] The third category is business data frames, mainly used for carrying multimodal data and suitable for interactive scenarios such as ChatBots. They support streaming output and specifically include: TextFrame (carrying text data); AudioRawFrame (carrying raw audio information frames); and ImageRawFrame (carrying raw image information frames). Data frames support streaming transmission; text can be streamed token-by-token, and audio can be streamed chunk-by-chunk, ensuring low-latency response in real-time dialogue scenarios.

[0114] The fourth category is application frames, which are custom data structures designed for specific business scenarios. The system provides a base class (structure definition) for application frames, and businesses can inherit from the base class to define their own application frames according to their specific needs. Application frame serialization supports two formats: PB (Protocol Buffers, which requires defining IDL Schema data specifications) and JSON. The PB format is suitable for high-performance scenarios, while the JSON format is suitable for flexible development scenarios.

[0115] Processor nodes are divided into synchronous Processors and asynchronous Processors based on their execution mode. Each Processor node is only responsible for Frame data of its corresponding type. Asynchronous Processors start an independent asynchronous queue and asynchronous coroutines to consume Frame data, providing an external interface `queue_frame` to input Frame data. After receiving the input data, the asynchronous coroutine uses `push_frame` to perform the next processing step and output the data, depending on whether it's upstream or downstream. Synchronous Processors execute sequentially in a chain and do not start an asynchronous queue. For Pipeline input Frames, please use `PipelineTask.queue_frame` instead of directly using a custom input queue. For Pipeline output Frames, implement the `sink` method in `OutputProcessor`. If retrieving directly from the sink queue, you can use the `OutputFrameProcessor` class to retrieve data via callback for processing.

[0116] Processors can be categorized by function as follows: Pass-through Processors, primarily handling system and control-level frames, executed in a chained order; Queue Processors, which, in addition to the pass-through Processor, add upstream / downstream asynchronous queue buffers and corresponding asynchronous upstream / downstream frame handlers, also executed in a chained order. If there's no need to wait for the next Processor's result, asynchronous processing can be used, directly writing frames into the queue buffer via `queue_frame`, with the queue Processor's handler asynchronously calling `process_frame`; Multimodal Data Aggregation Processors, performing aggregation processing on multimodal data, merging frames from different modalities into a unified multimodal representation; Filtering Processors, performing conditional filtering based on defined filter handlers; Log Processors, printing logs based on filtering conditions for easier frame tracing and debugging; Input / Output Processors, classifying and processing input / output frames, with corresponding subclasses or composite classes directly implementing the processing of the corresponding frame type.

[0117] Pipeline topologies support four types: Serial synchronous Pipeline, composed of synchronous Processors, where upstream / downstream frames are executed in a chained order. Each Pipeline has a head and a tail, namely a Source and a Sinker, used for assembling inputs / outputs with other Pipelines; Serial asynchronous Pipeline, composed of asynchronous / synchronous Processors. The asynchronous Processor adds an upstream / downstream asynchronous queue buffer and a corresponding asynchronous upstream / downstream frame handler to the synchronous Processor, executing in a chained order; Parallel asynchronous Pipeline, where multiple serial Pipelines execute in parallel without needing to synchronize with each other, and the parallelism in the process is equivalent to concurrent work at runtime; and Parallel synchronous Pipeline, where multiple serial Pipelines execute in parallel, and the processed upstream / downstream frames need to be synchronized at the exit point. The synchronization implementation uses an up / down queue to buffer the corresponding frames, and the frames buffered in the queue are written to the upstream / downstream when processing the SyncFrame.

[0118] PipelineTask assembles multiple Pipelines (serial Pipelines, parallel Pipelines, and parallel synchronous Pipelines) into a DAG (Directed Acyclic Graph) Processor. PipelineTask defines a SourceProcessor to interface with the assembled DAG Processor. During program startup, it sends control / system commands (StartFrame / MetricsFrame) through the Runner. For example, in a real-time chat scenario, when a user initiates a session connection and PipelineTask starts running, it initializes a StartFrame based on the PipelineParams initialization parameters (and also sends a MetricsFrame to collect monitoring information depending on whether monitoring is required). Upon receiving the StartFrame, the Processor in the DAG begins executing its corresponding startup process (if the MetricsFrame is processed, the monitoring information from the Processor is written into the MetricsFrame for collection). If the session ends, an EndFrame is sent; if the task is terminated (or a system error necessitates termination), a StopTaskFrame is sent; if a system process exit signal is triggered, a CancelFrame is sent to clear the process and exit.

[0119] In multimodal scenarios, when processing real-time online content such as text (rich text), images, audio, and video, multiple multimodal data may be displayed simultaneously. In such cases, data pipeline operations (corresponding Processors) require asynchronous data processing. The system uses asynchronous queue tasks for processing, and sets synchronization events when synchronization is needed. For large-scale data processing or offline processing, to accelerate data processing, it may be necessary to retain intermediate data. The data format is generally serialized columnar storage for easy batch loading and processing. Common libraries include Apache Arrow columnar formatting and the cuDF library for GPU-accelerated processing. These operations are implemented as subsequent extensions of the Processor.

[0120] The data flow, synchronization and aggregation, topology construction and performance monitoring logic of this layer are formally described using the formulas defined in the above embodiments, and will not be repeated here.

[0121] Specific implementation of the MCP tool call layer: Building upon the aforementioned Pipeline architecture, this layer fully integrates the Model Context Protocol (MCP), providing the system with standardized tool invocation capabilities. MCP is an open protocol used to standardize the interaction between LLM applications and external tools / resources. Its core architecture comprises three components: an MCP client (running within the LLM application and initiating tool invocation requests), an MCP server (providing tool implementations and returning structured results), and an MCP registry (managing tool service discovery and configuration information). This system's integration of MCP is not a simple client encapsulation, but rather a full-link standardization from tool registration, discovery, authorization, invocation to result feedback. To achieve deep integration and scheduling of these three core components, this module is specifically divided into the following four functional units: The MCP client adapter is responsible for uniformly converting Function Call responses from different LLMs into the MCP standard format, resolving the issue of different LLMs using different function call data formats. The adapter parses the LLM Function Call responses, extracts the tool name and parameters, and encapsulates them into the tool call request format specified by the MCP protocol, achieving the goal of "develop once, use across multiple models" for standardized tool calls. The adapter supports various LLM backends, including OpenAI compatible APIs, Anthropic APIs, Google Gemini APIs, and open-source models (through inference engines such as vLLM, SGLang, and Ollam). All backend Function Call responses are uniformly converted to the MCP format, eliminating the need for upper-layer business code to be aware of the underlying LLM differences.

[0122] The tool registration and discovery submodule enables unified management of MCP tools. Tool providers register tool definitions (including tool name, description, and parameter schema) through the MCP Server. MCP clients discover services through the tool registry (MCPRegistry) to obtain a list of available tools and configuration information. The registry, built around the LLM toolset configuration center management system, defines a unified interface specification and supports dynamic tool registration, discovery, and version management. The MCP Server supports two implementation methods: a high-level encapsulation based on FastMCP, suitable for rapid development of simple tool services, where developers only need to define tool functions and add decorators to automatically generate the MCP Server; and a low-level implementation based on Lowlevel, suitable for custom tool services requiring fine-grained control, where developers can customize request processing, session management, and error handling logic. Both implementation methods adhere to the MCP protocol specification, ensuring interoperability with MCP clients.

[0123] The OAuth authorization and authentication submodule implements the complete authorization process stipulated by the MCP protocol, ensuring the security and compliance of tool calls. The system supports two authorization modes: The first is the standard OAuth authorization process, including the following steps: generating a code_verifier and code_challenge (using the S256 challenge method); redirecting the user to the authorization endpoint of the MCP Server via the User-Agent; obtaining the Authorization Code after the user completes authorization; exchanging the Authorization Code and code_verifier for an Access Token and Refresh Token at the Token endpoint of the MCP Server; initiating an MCP request using the Access Token; automatically refreshing the Access Token when it expires using the Refresh Token. The second is a third-party authorization proxy process, where the MCP Server acts as an authorization proxy, redirecting the user to a third-party authorization server (such as Google OAuth, GitHub OAuth, etc.). After the user completes authorization at the third party, the MCP Server exchanges and obtains the third-party Access Token and generates its own Access Token bound to the third-party session, completing the original OAuth process. This module supports enterprise-level deployment scenarios, ensuring secure isolation of tool calls in multi-tenant environments.

[0124] The tool execution and result feedback submodule is responsible for the execution and result processing of MCP tools. Tool call requests are sent from the MCP client to the corresponding MCP server. The MCP server executes the tool logic and returns structured results. The result feedback module encapsulates the tool execution results into a TextFrame or application Frame and injects it into the data processing pipeline through the pipeline's queue_frame interface. This enables automatic feedback of tool call results to the dialogue context, ensuring that the LLM is aware of the tool execution results in subsequent dialogue rounds. The tool execution process supports timeout control, retry mechanisms, and error handling to ensure the reliability and robustness of tool calls.

[0125] Specific implementation of the A2A agent communication layer: Parallel to the MCP tool invocation layer, this layer fully integrates the Agent-to-Agent (A2A) protocol, providing the system with standardized inter-agent communication capabilities. A2A is an open protocol used to standardize the discovery, communication, and collaboration between agents. Its core architecture includes three core components: Agent Card (agent self-describing document), JSON-RPC 2.0 over HTTP(S) communication protocol, and task lifecycle management. This system's integration of A2A is not simply message forwarding, but rather achieves end-to-end standardization from agent discovery, communication establishment, task delegation to result aggregation. To achieve deep integration and scheduling of the above three core components, this module is specifically divided into the following three functional units: The Agent Card discovery submodule enables self-description and dynamic discovery of agents. Each agent registers an Agent Card upon startup, containing metadata such as the agent's name, description, capability tags, communication endpoints, and authentication methods. The Agent Card conforms to the A2A protocol specification, supports structured capability declarations and version management, and is defined in JSON format, including fields such as name (agent name), description (capability description), url (communication endpoint address), capabilities (a list of capability tags, such as text-generation, code-analysis, image-understanding, etc.), and authentication (authentication methods, such as API Key, OAuth, etc.). The main agent discovers available sub-agents through the Agent Card registry, obtaining their capability descriptions and communication parameters, enabling plug-and-play and dynamic expansion of agents. When a sub-agent's capabilities change, the Agent Card is automatically updated, and the main agent can detect the changes in real time and adjust its scheduling strategy accordingly.

[0126] The JSON-RPC 2.0 communication submodule implements the standard communication method specified by the A2A protocol. Communication between agents uses the JSON-RPC 2.0 over HTTP(S) protocol, supporting three communication modes: synchronous request-response mode, suitable for simple question-and-answer tasks, where the main agent sends a request and blocks, waiting for the sub-agent to return the result; SSE (Server-Sent Events) streaming push mode, suitable for long-running tasks requiring real-time feedback, where the sub-agent streams task execution progress and intermediate results to the main agent via SSE, allowing the main agent to display the execution process in real time; and asynchronous push notification mode, suitable for background tasks that do not require real-time response, where the sub-agent notifies the main agent via push notification upon task completion, without the main agent blocking or waiting. The communication module supports complete task lifecycle management, including state transitions such as task creation, execution, streaming update, completion, and failure, with each state change transmitted using a standardized message format.

[0127] The task delegation and result aggregation submodule is responsible for distributing tasks and collecting results from A2A agents. The main agent, based on the dialogue intent parsing results, delegates subtasks to one or more sub-agents for execution. Task delegation requests are encapsulated in the SendMessage format defined by the A2A protocol, including a task description (message object with fields such as role and parts), contextual information (dialogue history, tool call results, etc.), and the expected response format (text, file, structured JSON, etc.). After a sub-agent completes its execution, the task delegation and result aggregation submodule collects the execution results from all sub-agents, performs post-processing operations such as deduplication, sorting, and fusion, and encapsulates them into a unified result Frame, injecting it into the Pipeline data processing pipeline. This submodule supports parallel delegation of multiple sub-agents to execute different subtasks simultaneously, and achieves synchronized result aggregation through a parallel synchronization pipeline, ensuring the efficiency and consistency of multi-agent parallel execution.

[0128] The aforementioned communication submodule also supports a rich set of data exchange formats, including plain text, files (with URI and MIME types), and structured JSON data, meeting the data transmission needs of different business scenarios. In terms of security, A2A communication supports HTTPS encrypted transmission and authentication, ensuring the security and privacy of communication between intelligent agents. Regarding observability, the A2A communication module records complete communication logs and task status change history, supporting post-event auditing and troubleshooting.

[0129] The specific implementation of the intelligent dialogue parsing and intent routing layer: This layer is the core scheduling layer of the system, containing two core functional units: a dialogue intent parsing submodule and a dual-path intelligent routing submodule. Together, they achieve intelligent routing from user natural language input to the MCP tool invocation path or the A2A agent delegation path. The dialogue intent parsing submodule performs intent recognition and slot extraction on user input, and combines Dialogue State Tracking (DST) to maintain contextual information from multiple rounds of dialogue, generating a structured intent representation. The intent representation includes task type labels (tool invocation / agent delegation / hybrid mode), the identifier of the target tool or agent, task parameters, priority and dependencies, and intent vector representation (i.e., semantic embedding vector E(q)). Intent recognition uses the LLM's chat / completions interface for zero-shot or few-shot classification, combined with a rule engine for post-processing to ensure the accuracy and robustness of intent recognition.

[0130] The dual-path intelligent routing submodule dynamically selects either the MCP tool invocation path or the A2A agent delegation path based on the intent parsing results. The routing decision is comprehensively evaluated based on the following multi-dimensional factors: intent type (simple query intents are preferentially routed to the MCP tool invocation path, while complex reasoning intents are preferentially routed to the A2A agent delegation path); task complexity (single-step tasks prioritize MCP tool invocation, while multi-step tasks prioritize A2A agent delegation); capability matching of available tools / agents (semantic matching based on Agent Card capability tags and tool descriptions in the MCP Registry); historical call success rate (prioritizing tools or agents with high historical success rates); and load balancing (considering the current load of each tool / agent to avoid single-point overload).

[0131] For simple tasks such as data querying, API calls, and external resource access, the route is to the MCP tool call path, where the registered tool is discovered and invoked through the MCP client. For complex tasks such as reasoning, planning, and cross-domain collaboration, the route is to the A2A agent delegation path, where the appropriate sub-agent is discovered and communication is established through the Agent Card. For mixed tasks, both the MCP tool call path and the A2A agent delegation path are activated simultaneously. The parallel execution of the two paths is achieved through a parallel asynchronous pipeline, and the optimal result is selected through a parallel synchronous pipeline.

[0132] The dual-path intelligent routing submodule also supports dynamic route adjustment: during task execution, if the MCP tool call indicates that further agent inference is needed (e.g., confidence level below a preset threshold or inclusion of specific semantic tags), the routing submodule can upgrade the task from the MCP path to the A2A path; conversely, if the A2A sub-agent needs to call external tools during execution, the routing submodule can dynamically insert the MCP tool call node. This dynamic routing mechanism ensures that the system can select the optimal execution path under task scenarios of varying complexity, maximizing resource utilization efficiency and task completion quality. The dynamic routing decision-making process uses SyncNotifyFrame for event notification, ensuring that each Processor node can perceive route changes in real time and adjust its processing logic accordingly.

[0133] Specific implementation of the multi-agent execution and multimodal response layer: This layer is the system's execution and output layer, enabling parallel execution of multiple agents and unified output of multimodal responses. The multi-agent execution submodule adopts a Main Agent / Sub Agent architecture. The Main Agent is responsible for dialogue management, intent routing, and result aggregation, while the Sub Agents are responsible for specific task execution. Sub Agents can independently use the LLM's chat / completions API for inference, or they can integrate MCP tool invocation capabilities to achieve a composite execution mode of "Agent (MCP / Tool + LLM)". Sub Agents support multiple model engines, including text LLM (such as Qwen, LLaMA, ChatGLM, etc.), multimodal LLM (MLLM, supporting text + image input), audio LLM (Audio-LLM, supporting speech input and output), and full-modal LLM (Omni-LLM, supporting text + speech + image input and output), and inference is accelerated through open-source inference engines (such as vLLM, SGLang, Ollam, etc.).

[0134] The multimodal response output submodule converts the agent's execution results into user-perceptible multimodal output. Text results are encapsulated as TextFrames, audio results as AudioRawFrames, and image results as ImageRawFrames, and output via the sink method of the Pipeline's OutputProcessor. For real-time dialogue scenarios, the system supports streaming output: text generated by LLM is streamed token-by-token through TextFrames, and audio synthesized by TTS is streamed chunk-by-chunk through AudioRawFrames, ensuring that users receive real-time feedback during agent execution. The output submodule also supports interrupt handling: when a user initiates new input during agent execution, the system sends an InterruptionFrame to interrupt the current asynchronous Processor's buffer and restart the queue_frame. For models with internalized interrupt commands, an interrupt command is sent to trigger the model to stop streaming output, ensuring that users can interrupt and restart the dialogue at any time.

[0135] From a code implementation perspective, the system's layered architecture design ensures decoupling between layers through interface isolation: the cmd layer (ChatBot Factory) is responsible for commanding programs to launch ChatBots for different task scenarios, combined with the Bots The Config layer manages configurations and supports multiple communication protocols such as HTTP, WebSocket, and WebRTC. Users can select different ChatBot scenarios (such as voice assistant, text-based customer service, and multimodal analysis) via command-line parameters. The processors layer handles different types of frames, calling the modules and core / llm layers to process multimodal frames. Each processor is only responsible for its corresponding type of frame data, ensuring single responsibility and testability of the processing logic. The modules layer is divided into multimodal processing modules (text processing, audio processing, and image processing) and utility function modules (used for agent startup tool registration, runtime LLM calls, and tool execution). The utility function modules are the core implementation layer for MCP tool calls and A2A agent communication. The core / llm layer interfaces with open-source multimodal models and inference engines, providing a unified model call interface. The components layer provides common components (multimodal processing tools, configuration management, logging system, etc.) to support the common needs of each layer. This layered design allows each layer to evolve independently and be flexibly replaced, supporting continuous system iteration and scenario expansion.

[0136] The functions of each module in the above-mentioned intelligent dialogue-based multi-agent collaborative invocation system device correspond to the steps in the above-mentioned intelligent dialogue-based multi-agent collaborative invocation method embodiment, and their functions and implementation processes will not be described in detail here.

[0137] The multi-agent collaborative invocation system based on intelligent dialogue in this embodiment effectively improves the key technical problems of existing intelligent dialogue through unified abstraction of Frame data frames, standardized integration of MCP protocol, complete implementation of A2A protocol, dual-path intelligent routing, and dynamic pipeline orchestration.

[0138] Regarding tool invocation standardization, the MCP client adapter unifies the Function Call responses from different LLMs into the MCP standard format. Developers only need to define tool interfaces according to the MCP protocol to achieve standardized tool invocation. The MCP Registry tool registry center provides unified service discovery and configuration management. After a new tool is registered in the registry center, it can be discovered and invoked by all LLM backends. Support for the OAuth authorization process ensures the security and compliance of tool invocation. The standard OAuth process and third-party authorization proxy process cover the main security requirements of enterprise-level deployment. The tool execution result is automatically returned to the dialogue context through the Frame. The LLM can perceive the tool execution result in subsequent dialogue rounds without the need for developers to manually handle the connection between the result and the context. This embodiment ensures accurate matching between intent and tool through tool semantic matching degree calculation and ensures structural compatibility of parameters through slot parameter matching calculation. This embodiment realizes end-to-end standardization from tool registration, discovery, authorization, invocation to result return, improving the problems of inconsistent tool invocation formats, high adaptation costs, insufficient security, and missing result return.

[0139] Regarding inter-agent communication protocols, standardized inter-agent communication is achieved through the integration of the A2A protocol. The Agent Card discovery mechanism enables agents to self-describe their capabilities and register dynamically. The main agent can discover available agents without hardcoding the addresses and interfaces of sub-agents, and newly added agents only need to register an Agent Card to be automatically discovered and scheduled by the system. The JSON-RPC 2.0 over HTTP communication method ensures interoperability across frameworks, languages, and platforms. Regardless of whether sub-agents are developed using LangChain, AutoGen, CrewAI, or Google ADK, as long as they adhere to the A2A protocol specification, they can communicate directly with the main agent. SSE streaming push and asynchronous notifications support task scenarios with varying real-time requirements. Long-running tasks can provide real-time progress feedback via SSE, while background tasks can asynchronously notify results via push notifications. Task lifecycle management (creation, execution, streaming update, completion, failure) ensures the traceability and reliability of task execution. The task state transition probability matrix P provides a theoretical basis for timeout detection and anomaly recovery, and the A2A agent capability matching degree calculation ensures accurate matching between task requirements and agent capabilities. This embodiment achieves full standardization of communication between intelligent agents, improving the problems of difficult cross-framework collaboration and incomplete task management.

[0140] In terms of orchestration logic and dynamic scheduling, this embodiment achieves dynamic agent scheduling based on user intent through dialogue intent parsing and dual-path intelligent routing. Route scoring comprehensively considers dimensions such as intent type, task complexity, capability matching, historical success rate, and load balancing, selecting the optimal execution path in real time without the need for predefined fixed orchestration logic. Route decisions are based on a comparison of score differences and thresholds, and a dynamic route adjustment mechanism supports adjusting the execution path based on intermediate results during task execution. Dialogue state tracking enables updates to the dialogue state over multiple rounds, ensuring a balance between dialogue coherence and flexibility. The Pipeline's DAG orchestration supports dynamic construction and adjustment at runtime; adding a Processor or modifying the Pipeline topology does not require a system restart. The SyncNotifyFrame event notification mechanism ensures that each node is aware of topology changes, achieving intent-driven dynamic scheduling and runtime topology adjustment, thus improving the problems of rigid orchestration logic, lack of dynamic adjustment, and poor scalability.

[0141] In multimodal data processing, asynchronous parallel processing and synchronous aggregation of multimodal data are achieved through the unified abstraction of Frame data frames and the flexible orchestration of Pipelines. Four types of Frames cover all data types across various scenarios, from system control to business data, with each Frame having clear semantics and processing rules. The Frame flow process is formalized as the data processing process of Processor nodes, and parallel synchronous Pipeline aggregation ensures the synchronization of multiple data streams. The independent queues and coroutine mechanisms of asynchronous Processors ensure that each processing node can work in parallel without blocking each other, improving processing throughput in multimodal concurrent scenarios. An interrupt handling mechanism allows users to interrupt and restart the conversation at any time during execution. The MetricsFrame performance metrics provide tools for system performance monitoring and bottleneck location. This embodiment achieves parallel processing and synchronization of multimodal data, improving issues such as high response latency, data loss, and lack of interrupt handling.

[0142] Regarding MCP and A2A collaboration, a collaborative design of dual-path intelligent routing and Pipeline data processing enables the coordination of MCP tool invocation and A2A agent communication. After dialogue intent parsing, the system can simultaneously activate the MCP tool invocation path and the A2A agent delegation path, achieving parallel execution of the two paths through parallel asynchronous pipelines. A dynamic routing adjustment mechanism supports switching between the MCP and A2A paths during task execution based on intermediate results, improving resource utilization efficiency and task completion quality. This embodiment achieves deep collaboration and unified orchestration of the two protocols, completely resolving the problem of the inability to coordinate tool invocation and agent communication.

[0143] Thirdly, embodiments of the present invention provide a multi-agent collaborative invocation device based on intelligent dialogue. The multi-agent collaborative invocation device based on intelligent dialogue can be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0144] Reference Figure 6 , Figure 6 This is a schematic diagram of the hardware structure of the multi-agent collaborative invocation device involved in an embodiment of the present invention. The multi-agent collaborative invocation device in this embodiment may include a processor, a memory, a communication interface, and a communication bus.

[0145] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.

[0146] Communication interfaces include input / output (I / O) interfaces, physical interfaces, and logical interfaces used for interconnecting internal devices to enable multi-agent collaborative calling, as well as interfaces used for interconnecting the multi-agent collaborative calling device with other devices (such as other computing devices or user equipment). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc.; user equipment can be displays, keyboards, etc.

[0147] Memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0148] The processor can be a general-purpose processor, which can call a multi-agent cooperative invocation program based on intelligent dialogue stored in memory and execute the multi-agent cooperative invocation method provided in this embodiment of the invention. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the multi-agent cooperative invocation program is called can be referred to in various embodiments of the multi-agent cooperative invocation method of this invention, and will not be repeated here.

[0149] Those skilled in the art will understand that Figure 6 The hardware structure shown does not constitute a limitation of the invention and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0150] It should be noted that the sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0151] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or apparatus. The terms "first," "second," and "third," etc., are used to distinguish different objects, etc., and do not indicate a sequence, nor do they limit "first," "second," and "third" to different types.

[0152] In the description of the embodiments of the present invention, terms such as "exemplary," "for example," or "for instance" are used to indicate that they are examples, illustrations, or descriptions. Any embodiment or design that is described as "exemplary," "for example," or "for instance" in the embodiments of the present invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a specific manner.

[0153] In the description of the embodiments of the present invention, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present invention, "multiple" means two or more.

[0154] In some processes described in the embodiments of the present invention, multiple operations or steps are included in a specific order. However, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of the present invention, or may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.

[0155] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of the present invention.

[0156] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A multi-agent collaborative invocation method based on intelligent dialogue, characterized in that, The method includes: Receive user input and perform intent parsing to obtain intent recognition results and slot parameters; Based on the intent recognition results and slot parameters, the matching scores of the tool invocation path and the agent delegation path are calculated respectively. The target execution path is determined based on the two matching scores and their difference; the target execution path includes a tool invocation path, an agent delegation path, or a hybrid execution path. Based on the target execution path, the processing nodes are scheduled through a data frame-based pipeline architecture to execute the task; Obtain the task execution result and encapsulate the task execution result into a response data frame for output.

2. The multi-agent collaborative invocation method based on intelligent dialogue as described in claim 1, characterized in that, The matching score of the calculation tool call path specifically includes: Obtain the semantic embedding vector corresponding to the intent recognition result; Obtain the description vector of the candidate tool, and calculate the semantic similarity between the description vector and the semantic embedding vector corresponding to the intent recognition result; Calculate the structural compatibility score between the slot parameters and the candidate tool parameters; The semantic similarity and structural compatibility scores are weighted and summed according to preset weight coefficients to obtain the tool capability matching degree. Based on the tool capability matching degree, obtain the matching score of the tool call path.

3. The multi-agent collaborative invocation method based on intelligent dialogue as described in claim 2, characterized in that, The calculation of the structural compatibility score between the slot parameters and the candidate tool parameters specifically includes: The total number of parameters required to obtain candidate tools; Iterate through each required parameter of the candidate tool and find the corresponding slot value in the slot parameter; If a corresponding slot value is found, the type of the slot value is compatible with the type of the required parameter, and the slot value is not empty, then the parameter is considered to have been successfully matched. The proportion of successfully matched parameters to the total number is calculated as the structural compatibility score.

4. The multi-agent collaborative invocation method based on intelligent dialogue as described in claim 1, characterized in that, Calculate the matching score of the agent's delegation path, specifically including: Based on the intent recognition results, determine the number of capability dimensions required for the task and the requirements for each capability dimension; Obtain the capability claims of candidate agents in each capability dimension; For each capability dimension, a successful match is recorded when the capability declaration is semantically consistent with the requirement, or when there is an inclusion relationship where the capability declaration covers the requirement. Based on preset weights, the matching results for each capability dimension are weighted and summed to obtain the capability matching degree of the intelligent agent. Based on the agent's capability matching degree, obtain the matching score of the agent's delegation path.

5. The multi-agent collaborative invocation method based on intelligent dialogue as described in claim 1, characterized in that, Based on the two matching scores and their difference, the target execution path is determined, specifically including: The absolute value of the difference is compared with a preset difference threshold. If the absolute value of the difference is less than or equal to the difference threshold, then the target execution path is determined to be a hybrid execution path; If the absolute value of the difference is greater than the difference threshold, then the path with the higher matching score is selected as the target execution path.

6. The multi-agent collaborative invocation method based on intelligent dialogue as described in claim 1, characterized in that, The task execution of the hybrid execution path includes: The tool call path and the agent delegation path are executed in parallel, and the execution results of the tool call path and the agent delegation path are obtained respectively. The execution results of the two paths are scored from multiple dimensions, and the execution result with the higher overall quality score is selected as the final task execution result.

7. The multi-agent collaborative invocation method based on intelligent dialogue as described in claim 1, characterized in that, Before receiving user input, it also includes: Define multiple types of data frames, including system instruction frames, control instruction frames, business data frames, and application frames, for circulation and processing in a pipelined architecture.

8. The multi-agent collaborative invocation method based on intelligent dialogue as described in claim 2, characterized in that, Obtaining the semantic embedding vector corresponding to the intent recognition result specifically includes: The intent recognition result is encoded to obtain an initial intent vector representation; When there is a previous dialogue, the slot parameters are encoded into a slot vector representation, and the state representation of the previous dialogue, the initial intent vector representation, and the slot vector representation are weighted and fused according to a preset state decay coefficient to obtain an updated intent vector representation, which serves as the semantic embedding vector corresponding to the intent recognition result. When there is no previous dialogue, the initial intent vector is represented as the semantic embedding vector corresponding to the intent recognition result.

9. A multi-agent collaborative invocation system based on intelligent dialogue, characterized in that, The system includes: The intent parsing module is used to receive user input and parse the intent to obtain the intent recognition result and slot parameters. The routing decision module is used to calculate the matching scores of the tool invocation path and the agent delegation path based on the intent recognition results and slot parameters, respectively; and to determine the target execution path based on the two matching scores and their difference; the target execution path includes the tool invocation path, the agent delegation path, or a hybrid execution path. The task execution module is used to schedule processing nodes to execute tasks according to the target execution path through a pipeline architecture based on data frames; The result output module is used to obtain the task execution result and encapsulate the task execution result into a response data frame for output.

10. A multi-agent collaborative invocation device based on intelligent dialogue, characterized in that, The device includes a processor, a memory, and a multi-agent cooperative invocation program based on intelligent dialogue stored in the memory and executable by the processor, wherein when the multi-agent cooperative invocation program based on intelligent dialogue is executed by the processor, it implements the steps of the multi-agent cooperative invocation method based on intelligent dialogue as described in any one of claims 1 to 8.