An agent self-decision communication method, device and system, and related equipment thereof

By directly using local and remote usernames to generate QUIC connection identifiers during ICE negotiation between agents, the problem of difficulty in establishing end-to-end communication between agents is solved, enabling fast establishment of QUIC connections without additional signaling, and improving communication efficiency and success rate.

CN123185246APending Publication Date: 2026-11-27CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In complex network environments, it is difficult to establish end-to-end communication between existing agents, resulting in a low success rate.

Method used

By using the local and remote usernames generated during the ICE negotiation process as trusted anchors for the QUIC connection identifier, the QUIC connection can be established quickly without additional signaling. The QUIC connection identifier is generated by hash operation, avoiding the latency of multiple handshakes and parameter exchanges in traditional solutions.

Benefits of technology

In complex network environments, it effectively improves the efficiency and success rate of establishing end-to-end communication between intelligent agents, reduces signaling overhead, and improves the real-time performance and throughput of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185246A_ABST
    Figure CN123185246A_ABST
Patent Text Reader

Abstract

The application provides an agent self-decision communication method and device, equipment, medium and program product, relates to the artificial intelligence technical field, and is used for realizing the autonomous end-to-end communication between agents. The specific technical scheme is as follows: determining the agent identifier of the second agent matched with the service demand information; sending a connection request message to the second agent through a signaling server; receiving an acceptance response message from the second agent through the signaling server, wherein the acceptance response message carries a semantic protocol, and obtaining the ICE negotiation information between the first agent and the second agent; performing a hash operation based on the ICE negotiation information to obtain a QUIC connection identifier, and establishing a connection based on the QUIC connection identifier; and creating a QUIC flow based on the semantic protocol in the connection. The application is applied to the communication scene of multi-agent collaborative work.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to an intelligent agent self-decision communication method, device, system and related equipment based on ICE and QUIC. Background Technology

[0002] With the rapid development of large language model technology, autonomous intelligent agent systems represented by AutoGPT, MetaGPT, and OpenAI Agents SDK are rapidly evolving. Intelligent agents are no longer just encapsulations of cloud APIs, but are gradually evolving into network entities belonging to specific natural persons and running on heterogeneous terminals (PCs, mobile phones, IoT devices).

[0003] Among related technologies, the mainstream interoperability protocols currently include Agent-to-Agent Protocol (A2A), Agent Network Protocol (ANP), and Model Context Protocol (MCP). These protocols primarily focus on solving the problem of "what intelligent agents can say," namely, capability description, task negotiation, and context exchange.

[0004] Thus, in the process of implementing the above scheme, due to the complex network environment, when the agent is behind a network address translation or firewall, the above scheme is difficult to establish an end-to-end communication session, resulting in a low success rate of end-to-end communication between agents. Summary of the Invention

[0005] This application provides a method, apparatus, system and related equipment for intelligent agents to make autonomous decisions and communicate, which are used to realize autonomous end-to-end communication between intelligent agents.

[0006] In a first aspect, embodiments of this application provide an agent self-decision communication method, applied to a first agent, the method comprising:

[0007] The target agent identifier is determined, and the target agent identifier is the agent identifier of the second agent.

[0008] The first agent sends a connection request message to the second agent through the signaling server. The connection request message carries the agent identifier of the second agent and is used to request the establishment of a communication connection between the first agent and the second agent.

[0009] Receive connection response messages from the second agent through the signaling server.

[0010] If the connection response message is an ICE service address message, the first agent negotiates with the second agent based on the ICE candidate address carried in the ICE service address message, and obtains the ICE negotiation information between the first agent and the second agent.

[0011] Based on ICE negotiation information, a connection is established between the first and second intelligent agents.

[0012] The technical solution provided in this application brings at least the following beneficial effects:

[0013] The agent self-decision communication method provided in this application directly uses the ICE negotiation information generated during the ICE negotiation process as the trust anchor point for the derived QUIC connection identifier, thereby achieving rapid establishment of QUIC connection without additional signaling. This avoids the latency caused by multiple handshakes and parameter exchanges required in traditional solutions, and effectively improves the establishment efficiency and success rate of end-to-end communication between agents in complex network environments.

[0014] One possible implementation involves establishing a connection between the first and second intelligent agents based on the local and remote ICE usernames, including:

[0015] A hash operation is performed based on the ICE negotiation information to obtain the QUIC connection identifier, and a QUIC connection is established between the first agent and the second agent based on the QUIC connection identifier.

[0016] Another possible implementation,

[0017] Based on the ICE negotiation information, a hash operation is performed to obtain the QUIC connection identifier, including:

[0018] Concatenate the ICE negotiation information into a username string.

[0019] Perform a hash operation on the username string and take the first eight bytes of the hash value as the QUIC connection identifier.

[0020] Another possible implementation is to include an error message that carries an error code and a description of the reason for the error when the connection response message is an error message.

[0021] Alternatively, if the connection response message is a redirection message, the redirection message carries the identifier of the substitute agent, the identifier of the namespace where the substitute agent is located, and a description of the reason for the transfer.

[0022] Another possible implementation is that the connection request message also carries structured intent information and agent description information of the first agent.

[0023] The agent description information includes: the agent identifier of the first agent, the agent identifier of the first agent, the namespace and trust level of the first agent, the description of the communication purpose, the list of expected capabilities, the list of required capabilities, and the list of supported semantic protocols.

[0024] Structured intent information includes intent type, intent summary, and intent priority.

[0025] Another possible implementation is to disconnect the connection between the first and second agents through a client agent or a server agent, provided that a connection has already been established between the first and second agents.

[0026] If the disconnection occurs on the client side, the connection request message is stored.

[0027] If the disconnection occurs on the server side, then clear the connection request message.

[0028] Secondly, embodiments of this application provide an agent self-decision communication method, applied to a second agent, the method comprising:

[0029] The signaling server receives a connection request message from the first agent. The connection request message is used to request the establishment of a communication connection between the first agent and the second agent. The connection request message carries the agent identifier of the second agent, structured intent information, and agent description information of the first agent.

[0030] Decisions are made based on structured intent information and agent description information to obtain decision results. Based on the decision results, a connection response message is sent to the first agent through the signaling server. The decision results include any of the following: accept, reject, and transfer.

[0031] If the connection response message is an ICE service address message, ICE negotiation is performed with the first agent to obtain ICE negotiation information between the second agent and the first agent; the ICE service address message carries the ICE candidate address of the second agent.

[0032] Based on ICE negotiation information, a QUIC connection is established between the first and second intelligent agents.

[0033] One possible implementation involves establishing a QUIC connection based on ICE negotiation information, including:

[0034] A hash operation is performed based on the ICE negotiation information to obtain the QUIC connection identifier, and a QUIC connection is established between the second agent and the first agent based on the QUIC connection identifier.

[0035] The method also includes:

[0036] Within a QUIC connection, at least one QUIC stream is created based on a target semantic protocol, which is used to transmit data. The target semantic protocol is a semantic protocol from the list of semantic protocols supported by the first agent. The ICE service address message also carries the target semantic protocol.

[0037] Another possible implementation is that the agent description information includes: the agent identifier of the first agent, the agent identifier of the first agent, the namespace and trust level of the first agent, the description of the communication purpose, the list of expected capabilities, the list of required capabilities, and the list of supported semantic protocols; the structured intent information includes intent type, intent summary, and intent priority.

[0038] Decisions are made based on structured intent information and agent description information, resulting in decision outcomes, including:

[0039] Make at least one of the following decisions based on structured intent information and agent description information, and obtain the decision result:

[0040] Determine whether the second agent can provide the capabilities requested by the first agent.

[0041] Determine whether the intent type is a processable type.

[0042] Determine the relevance of the communication purpose indicated by the intent summary to one's own responsibilities.

[0043] The degree to which the expected skills list matches one's own abilities.

[0044] Priorities indicate the degree of urgency.

[0045] Are there any available peer-to-peer proxy resources?

[0046] Is it within the scope permitted by the security policy?

[0047] Another possible implementation is to disconnect the connection between the first and second agents through a client agent or a server agent, provided that a connection has already been established between them.

[0048] If the disconnection occurs on the client side, the connection request message is stored.

[0049] If the disconnection occurs on the server side, then clear the connection request message.

[0050] Thirdly, this application provides an intelligent agent self-decision communication system, including: a first device and a second device, wherein the first device includes a first intelligent agent and the second device includes a second intelligent agent.

[0051] The first intelligent agent is used to execute the method described in the first aspect above.

[0052] The second agent is used to execute the method described in the second aspect above.

[0053] Fourthly, embodiments of this application provide an intelligent agent self-decision communication device, applied to a first intelligent agent, comprising:

[0054] The determination module is used to determine the agent identifier of the second agent that matches the service demand information.

[0055] The sending module is used to send a connection request message to the second agent through the signaling server. The connection request message carries the agent identifier of the second agent and is used to request the establishment of a communication connection between the first agent and the second agent.

[0056] The receiving module is used to receive connection response messages from the second agent via the signaling server.

[0057] The negotiation module is used to negotiate with the second agent based on the ICE candidate address of the second agent carried in the ICE service address message when the connection response message is an ICE service address message, and to obtain the ICE negotiation information between the first agent and the second agent.

[0058] Establish a module for establishing a QUIC connection between the first and second agents based on ICE negotiation information.

[0059] In one possible implementation, the connection request message sent by the sending module also carries structured intent information and agent description information of the first agent.

[0060] The sending module is also specifically used to receive a connection request message from the first intelligent agent through the signaling server. The connection request message is used to request the establishment of a communication connection between the first intelligent agent and the second intelligent agent. The connection request message carries the intelligent agent identifier of the second intelligent agent, structured intent information and intelligent agent description information of the first intelligent agent.

[0061] Decisions are made based on structured intent information and agent description information to obtain decision results. Based on the decision results, a connection response message is sent to the first agent through the signaling server. The decision results include any of the following: accept, reject, and transfer.

[0062] If the connection response message is an ICE service address message, ICE negotiation is performed with the first agent to obtain ICE negotiation information between the second agent and the first agent; the ICE service address message carries the ICE candidate address of the second agent.

[0063] The agent description information includes: the agent identifier of the first agent, the agent identifier of the first agent, the namespace and trust level of the first agent, the description of the communication purpose, the list of expected capabilities, the list of required capabilities, and the list of supported semantic protocols.

[0064] Structured intent information includes intent type, intent summary, and intent priority.

[0065] Another possible implementation is that, if the connection response message received by the receiving module is an error message, the error message carries an error code and an explanation of the error reason.

[0066] Alternatively, if the connection response message is a redirection message, the redirection message carries the identifier of the alternative agent, the identifier of the namespace where the alternative agent is located, and a description of the reason for the transfer.

[0067] Another possible implementation involves establishing a module that performs a hash operation based on the ICE negotiation information to obtain a QUIC connection identifier, including:

[0068] Concatenate the ICE negotiation information into a username string.

[0069] The username string is hashed, and the first eight bytes of the hash value are used as the QUIC connection identifier. Based on the QUIC connection identifier, a QUIC connection is established between the second agent and the first agent.

[0070] Another possible implementation is that the establishment module is also used to create at least one QUIC stream within the QUIC connection based on the target semantic protocol, and the QUIC stream is used to transmit data; the target semantic protocol is a semantic protocol in the list of semantic protocols supported by the first agent; the ICE service address message also carries the target semantic protocol.

[0071] Fifthly, embodiments of this application provide an intelligent agent self-decision communication device, applied to a second intelligent agent, comprising:

[0072] The receiving module is used to receive a connection request message from the first intelligent agent through the signaling server. The connection request message is used to request the establishment of a communication connection between the first intelligent agent and the second intelligent agent. The connection request message carries the intelligent agent identifier of the second intelligent agent, structured intent information and intelligent agent description information of the first intelligent agent.

[0073] The decision module is used to make decisions based on structured intent information and agent description information, obtain decision results, and send a connection response message to the first agent through the signaling server based on the decision results. The decision results include any one of the following: accept, reject, and transfer.

[0074] The negotiation module is used to negotiate with the first agent when the connection response message is an ICE service address message, and to obtain ICE negotiation information between the second agent and the first agent; the ICE service address message carries the ICE candidate address of the second agent.

[0075] Establish a module to establish a connection between the first and second intelligent agents based on ICE negotiation information.

[0076] One possible implementation is to create a module, specifically for:

[0077] Based on the ICE negotiation information, a hash operation is performed to obtain the QUIC connection identifier, and based on the QUIC connection identifier, a QUIC connection is established between the second agent and the first agent.

[0078] Within a QUIC connection, at least one QUIC stream is created based on a target semantic protocol, which is used to transmit data. The target semantic protocol is a semantic protocol from the list of semantic protocols supported by the first agent. The ICE service address message also carries the target semantic protocol.

[0079] Another possible implementation is that the agent description information includes: the agent identifier of the first agent, the agent identifier of the first agent, the namespace and trust level of the first agent, the description of the communication purpose, the list of expected capabilities, the list of required capabilities, and the list of supported semantic protocols; the structured intent information includes intent type, intent summary, and intent priority.

[0080] Another possible implementation is a decision module, specifically used for:

[0081] Make at least one of the following decisions based on structured intent information and agent description information, and obtain the decision result:

[0082] Determine whether the second agent can provide the capabilities requested by the first agent.

[0083] Determine whether the intent type is a processable type.

[0084] Determine the relevance of the communication purpose indicated by the intent summary to one's own responsibilities.

[0085] The degree to which the expected skills list matches one's own abilities.

[0086] Priorities indicate the degree of urgency.

[0087] Are there any available peer-to-peer proxy resources?

[0088] Is it within the scope permitted by the security policy?

[0089] In a sixth aspect, this application provides an electronic device comprising: a processor and a memory; the memory storing a program or instructions executable on the processor, wherein the program or instructions, when executed by the processor, implement the methods of the first or second aspect described above.

[0090] In a seventh aspect, this application provides a readable storage medium on which a program or instructions are stored, which, when executed by a computer, implement the methods of the first or second aspect described above.

[0091] Eighthly, this application provides a computer program product that is stored in a storage medium and, when executed by a computer, implements the methods of the first or second aspect described above.

[0092] Ninthly, embodiments of this application provide a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the methods of the first or second aspect.

[0093] The beneficial effects of aspects two through eight mentioned above are described in the corresponding way in aspect one, and will not be repeated here. Attached Figure Description

[0094] Figure 1 This is a schematic diagram of the network architecture for an application of an intelligent agent self-decision communication method provided in an embodiment of this application.

[0095] Figure 2 This is a flowchart illustrating an intelligent agent self-decision communication method provided in an embodiment of this application.

[0096] Figure 3 This is a flowchart illustrating an intelligent agent self-decision communication method provided in an embodiment of this application.

[0097] Figure 4 This is a flowchart illustrating an intelligent agent self-decision communication method provided in an embodiment of this application.

[0098] Figure 5 This is an interactive flowchart of an intelligent agent self-decision communication system provided in an embodiment of this application.

[0099] Figure 6 A flowchart illustrating a method for intelligent agent self-decision communication disconnection provided in an embodiment of this application.

[0100] Figure 7 An interactive schematic diagram of an intelligent agent self-decision communication system provided in an embodiment of this application.

[0101] Figure 8 This is a schematic diagram of the architecture of an intelligent agent self-decision communication method provided in an embodiment of this application.

[0102] Figure 9 A schematic diagram of the structure of the agent self-decision communication device applied to the first agent provided in the embodiments of this application.

[0103] Figure 10 This is a schematic diagram of the structure of an agent self-decision communication device applied to a second agent, provided in an embodiment of this application.

[0104] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0105] The following is a detailed description, with reference to the accompanying drawings, of an intelligent agent self-decision communication method, apparatus, system, and related equipment provided in this application.

[0106] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0107] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0108] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."

[0109] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0110] The embodiments of this application provide an intelligent agent self-decision communication method, device, system and related equipment, which can be applied to communication scenarios in which multiple intelligent agents work collaboratively.

[0111] In existing technologies, the mainstream interoperability protocols include Agent-to-Agent Protocol (A2A), Agent Network Protocol (ANP), and Model Context Protocol (MCP). These protocols primarily focus on solving the problem of "what intelligent agents can say," namely, capability description, task negotiation, and context exchange.

[0112] Thus, in the process of implementing the above scheme, due to the general lack of a systematic answer to the connection layer problem of "how agents find and connect to each other", in complex network environments, when agents are behind network address translation or firewalls, the above scheme is difficult to establish end-to-end communication sessions, resulting in a low success rate of end-to-end communication between agents.

[0113] To address the aforementioned technical problems, embodiments of this application provide an agent self-decision communication method, apparatus, system, and related equipment. The agent self-decision communication method provided in this application directly uses the local and remote usernames generated during the ICE negotiation process as trust anchors for derived QUIC connection identifiers, thereby achieving rapid establishment of QUIC connections without additional signaling. This avoids the latency caused by multiple handshakes and parameter exchanges required in traditional solutions, effectively improving the establishment efficiency and success rate of end-to-end communication between agents in complex network environments.

[0114] The following description, in conjunction with the accompanying drawings, details an intelligent agent self-decision communication method, apparatus, system, and related equipment provided in the embodiments of this application.

[0115] Figure 1 This illustration shows a network architecture for an application of an agent self-decision communication method provided in an embodiment of this application. For example... Figure 1 As shown, the network architecture includes a first intelligent agent 101, a second intelligent agent 102, and a signaling server 103. The first intelligent agent 101, the second intelligent agent 102, and the signaling server 103 are interconnected through the signaling server 103.

[0116] In some embodiments, the first intelligent agent 101 or the second intelligent agent 102 may be a server, a computer, or a processor or processing unit within a server or computer. The server may be a single server or a server cluster consisting of multiple servers. It should be noted that the embodiments of this application do not limit the specific device form of the first intelligent agent 101 or the second intelligent agent 102. Figure 1The example is illustrated by taking the first intelligent agent 101 and the second intelligent agent 102 as a single server.

[0117] In some embodiments, the network architecture further includes a signaling server 103, which may be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, personal computer (PC), ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. The embodiments of this application do not specifically limit the scope of the network architecture. Figure 1 The signaling server 103 is used as an example of a mobile phone.

[0118] In some embodiments, when a service request is generated, the first intelligent agent 101 sends a connection request message to the second intelligent agent through a signaling server. The connection request message carries the intelligent agent identifier and structured intent information of the second intelligent agent. After receiving and parsing the connection request message, the second intelligent agent 102 makes an autonomous response decision based on the structured intent information, its current state, and security policy, and returns an acceptance response message to the first intelligent agent 101. After receiving the acceptance response message, the first intelligent agent 101 negotiates with the second intelligent agent 102 based on the ICE candidate address of the second intelligent agent 102 carried therein, and obtains common ICE negotiation information between the two parties. In this embodiment, the ICE negotiation information is the local ICE username and the remote ICE username. In this application embodiment, the local ICE username and the remote ICE username are used to replace the ICE negotiation information. The first intelligent agent 101 establishes a connection with the second intelligent agent 102 based on the local ICE username and the remote ICE username. In this embodiment, the established connection is a QUIC connection. However, the connection method is not limited to a QUIC connection. In the above process, both the connection request message and the response message are forwarded through the signaling server. After the QUIC connection is established, the data transmission is directly performed between the first agent 101 and the second agent 102.

[0119] It should be noted that the network architecture described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As network architectures evolve, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0120] See Figure 2 This is a flowchart illustrating an intelligent agent self-decision communication method provided in an embodiment of this application. Figure 2 As shown in the embodiment of this application, an intelligent agent self-decision communication method can be implemented by the first intelligent agent described above, specifically including the following steps 201 to 205.

[0121] Step 201: The first intelligent agent determines the target intelligent agent identifier, which is the intelligent agent identifier of the second intelligent agent.

[0122] In some embodiments, the target agent identifier is the agent identifier of a second agent that matches the service demand information.

[0123] Step 202: The first intelligent agent sends a connection request message to the second intelligent agent through the signaling server. The connection request message carries the intelligent agent identifier of the second intelligent agent and is used to request the establishment of a communication connection between the first intelligent agent and the second intelligent agent.

[0124] Specifically, the first intelligent agent first sends a connection request message to the signaling server. After receiving the message, the signaling server identifies the second intelligent agent and then forwards the connection request message to the second intelligent agent. Similarly, when the second intelligent agent sends a response connection message to the first intelligent agent, the signaling server receives the message and forwards it to the first intelligent agent.

[0125] Step 203: The first intelligent agent receives the acceptance response message from the second intelligent agent through the signaling server.

[0126] Step 204: If the connection response message is an ICE service address message, the first agent negotiates with the second agent based on the ICE candidate address of the second agent carried in the ICE service address message to obtain the common local ICE username and remote ICE username between the first agent and the second agent.

[0127] Step 205: The first agent establishes a QUIC connection between the first agent and the second agent based on the local ICE username and the remote ICE username.

[0128] In some embodiments, when a first intelligent agent generates a service request, it sends a connection request message to a second intelligent agent through a signaling server. The connection request message carries the intelligent agent identifier of the second intelligent agent, structured intent information, and intelligent agent description information of the first intelligent agent.

[0129] In this embodiment, the first intelligent agent is the one that generates service requests and actively initiates communication, and the second intelligent agent is the one selected by the first intelligent agent as the communication target. Both the first and second intelligent agents are network entities with autonomous decision-making capabilities, capable of autonomously perceiving their own state, understanding intent information, and making communication decisions, rather than simply being protocol executors that execute signaling according to preset protocol rules.

[0130] In some embodiments, the connection request message is a request message sent by the first agent to the second agent through a signaling server when the first agent determines that it needs to establish communication with the second agent. The connection request message carries the agent identifier of the second agent, which is used by the signaling server to route the message to the second agent.

[0131] In this embodiment, the structured intent information is used to describe the communication intent of the first intelligent agent, enabling the second intelligent agent to understand the communication purpose and make autonomous response decisions accordingly. Specifically, the structured intent information may include intent type, intent summary, and intent priority. The intent type identifies the category of the communication intent, such as task delegation, data query, notification, negotiation, or collaboration; the intent summary is a one-sentence natural language description automatically generated by the first intelligent agent based on business logic, used by the second intelligent agent to quickly understand the communication purpose; and the priority indicates the urgency of the communication request. The intelligent agent description information describes the identity and capabilities of the first intelligent agent, and may include the first intelligent agent's namespace and trust level, a description of the communication purpose, a list of expected capabilities, a list of required capabilities, and a list of supported semantic protocols. The connection request message enables the first intelligent agent to convey its communication needs to the second intelligent agent in a semantic manner, thereby initiating an autonomous communication process between the intelligent agents. Unlike existing technologies where intelligent agents only rely on fixed public network addresses for direct connection, the connection request message in this embodiment is forwarded through a signaling server and carries semantic intent information, enabling the second intelligent agent to understand and respond differently based on the intent semantics.

[0132] Subsequently, the first agent receives the connection response message from the second agent through the signaling server and determines the subsequent processing method based on the type of the connection response message.

[0133] In this embodiment, the connection response message is a response message generated and returned by the second agent after making an autonomous decision based on the connection request message. The types of connection response messages can include ICE service address messages, error messages, and redirection messages. Specifically, after receiving the connection request message through the signaling server, the second agent parses the structured intent information and agent description information within it, and makes an autonomous response decision based on its current state, obtaining a decision result. This decision result includes any one of the following: accept, reject, or transfer. The decision dimensions can include: determining whether it can provide the capabilities requested by the first agent, determining whether the intent type is a processable type, determining the relevance of the communication purpose indicated by the intent summary to its own responsibilities, assessing the degree of matching between the expected capabilities and its own capabilities, determining the urgency based on priority, checking whether there are currently available peer proxy resources, and determining whether the first agent is within the scope permitted by the security policy. After making a decision based on the above dimensions, the second agent generates the corresponding connection response message.

[0134] If the second agent's decision is to accept, the connection response message is an ICE service address message. The ICE service address message carries the second agent's ICE candidate addresses, used for ICE negotiation between the two parties to establish a network path. ICE candidate addresses may include the second agent's local host candidate address, a public network candidate address reflected by the STUN server, and a TURN relay candidate address. Optionally, the ICE service address message may also carry a target semantic protocol, which is determined by the second agent through negotiation based on the list of semantic protocols supported by the first agent and its own supported capabilities.

[0135] If the second agent's decision is to reject the connection, the connection response message is an error message. The error message carries an error code and a description of the reason for the error, used to inform the first agent of the specific reason for rejecting communication.

[0136] If the second agent's decision is to transfer the connection, the connection response message is a redirection message. The redirection message carries the identifier of the substitute agent, the namespace identifier of the substitute agent, and a description of the transfer reason, which guides the first agent to initiate communication with the substitute agent.

[0137] Subsequently, if the connection response message is an ICE service address message, the first agent negotiates with the second agent based on the second agent's ICE candidate address carried in the ICE service address message to obtain the common local ICE username and remote ICE username of both parties.

[0138] In this embodiment, ICE negotiation is the process by which the first and second agents exchange their respective ICE candidate information through a signaling channel and perform connectivity checks to determine the optimal transmission path. The ICE candidate information for each agent may include local host candidate addresses, candidate addresses reflected by the STUN server, and TURN relay candidate addresses. The two agents determine the optimal transmission path through connectivity checks, prioritizing direct connections and falling back to TURN relay paths if a direct connection fails. After ICE negotiation is completed, each agent extracts its local ICE username and remote ICE username from the negotiation results.

[0139] Next, the first agent establishes a QUIC connection with the second agent based on the local ICE username and the remote ICE username.

[0140] In this embodiment, establishing a QUIC connection based on the local ICE username and the remote ICE username specifically includes: sorting the local ICE username and the remote ICE username in lexicographical order and concatenating them with colons to form a username string; performing a hash operation on the username string and taking the first eight bytes of the hash value as the QUIC connection identifier; both parties independently calculate a consistent QUIC connection identifier and establish a QUIC connection based on this identifier. Since both parties can independently calculate a consistent QUIC connection identifier, there is no need to exchange QUIC connection parameters through the signaling channel during the entire process, achieving zero-signaling QUIC connection establishment.

[0141] After a QUIC connection is established, the first agent transmits data with the second agent within the QUIC connection based on the target semantic protocol. Optionally, at least one QUIC stream is created based on the target semantic protocol. The QUIC stream carries different types of messages. Specifically, bidirectional long-lived dialogue streams can be automatically created to carry semantic negotiation, parameter confirmation, and task scheduling messages; unidirectional short-lived data streams can be created on demand to transmit model files, knowledge base snapshots, and large amounts of business data; and unidirectional long-lived event streams can be created to asynchronously push progress notifications and state change messages. The different types of QUIC streams are isolated from each other, and the transmission of large files on the data streams will not block the real-time response of the dialogue stream.

[0142] Optionally, during communication, any agent can autonomously decide to terminate the communication. When the agent to which the first agent belongs actively disconnects, the corresponding peer agent marks the connection intent as manual and retains it to support subsequent automatic reconnection. Automatic reconnection adopts an exponential backoff strategy, with an initial delay of a preset value, and the delay time doubles after each failed reconnection until a successful reconnection or the reconnection limit is reached. When the agent to which the agent belongs passively disconnects, the corresponding peer agent cleans up the instance.

[0143] Based on the above method, the first intelligent agent realizes a complete self-decision communication process, including determining the target intelligent agent, sending a semantic connection request through the signaling server, receiving the decision response, conducting ICE negotiation and establishing a zero-signaling QUIC connection, and performing parallel interaction through multiple QUIC streams.

[0144] Based on the method of this application embodiment, the first agent sends a connection request to the second agent through a signaling server and receives a response message. The connection request and response message are forwarded through the signaling server, and subsequent data transmission between the first and second agents is conducted directly via a QUIC connection. Since the connection request carries structured intent information, the second agent can make autonomous response decisions based on intent semantics, rather than simply replying according to a fixed protocol, thus adapting to different types and priorities of communication needs. Simultaneously, after ICE negotiation, both parties independently derive a QUIC connection identifier using the ICE username through hash calculation to establish a QUIC connection, eliminating the need for additional signaling exchange to negotiate QUIC connection parameters. This reduces signaling overhead during connection establishment and improves communication establishment efficiency. Furthermore, since multiple isolated QUIC streams are created semantically within the QUIC connection, control plane messages and data plane messages can be transmitted in parallel without blocking each other, thus improving the real-time performance and throughput of inter-agent interactions.

[0145] In one optional implementation, the first intelligent agent of the first device and the second intelligent agent of the second device each deploy a node (app_node), configured as follows:

[0146] User-side node configuration for the first agent (node.json):

[0147] signaling_url: The WebSocket address of the signaling server

[0148] api_token: The API token of the namespace it belongs to.

[0149] transport_type: quic

[0150] `client_proxies`: Configures a `TcpClientProxy` with `proxy_id` set to "client-001", `target peer proxy_id` set to "srv-001", and `target namespace_id` set to the namespace ID of the service.

[0151] Server-side node configuration for the second intelligent agent:

[0152] signaling_url: The WebSocket address of the signaling server.

[0153] api_token: The API token of the namespace it belongs to.

[0154] transport_type: quic

[0155] `server_proxies`: Configures a `TcpServerProxy` with `proxy_id` as "srv-001", `backend_host` as "127.0.0.1", `backend_port` as 8080, and `shared_to_namespaces` as [the Namespace ID where agent A resides].

[0156] After the service-side node starts, it connects to the signaling server via WebSocket and sends a REGISTER message. Subsequently, it sends a REGISTER_PROXY message to register the "srv-001" service. The signaling server records the proxy and broadcasts the PROXY_ONLINE event.

[0157] After the user-side node starts, it also registers with the signaling server. By fully fetching the list_remote_proxies at startup and the proxy_online event at runtime, it maintains the list of remote proxies in the local RemoteCache and learns that "srv-001" is available.

[0158] The user-side first agent initiates a connection request via TcpClientProxy:

[0159] Send CONNECT_REQUEST, target proxy_id="srv-001"

[0160] The signaling server routes to the service-side TcpServerProxy.

[0161] After the server-side decision is accepted, it returns SERVER_ADDRESS.

[0162] Both parties perform ICE negotiation (collecting Host / STUN / TURN candidates and performing connectivity checks). After ICE is completed, the QUIC CID is derived using username_seed, and a QUIC connection is established. Once the connection is established, the signaling server sends a CONNECTED notification.

[0163] TcpClientProxy starts a local TCP server listening on localhost:9090. When a local user connects to port 9090, ClientForwarder reads data from the TCP connection and sends it to the peer via the QUIC bearer layer. The server-side ServerForwarder receives the data and writes it to the backend TCP service (127.0.0.1:8080).

[0164] Data transmission path:

[0165] Local User → TCP:9090 → ClientForwarder → QUIC Stream →

[0166] ServerForwarder → TCP:8080 → Backend Service

[0167] When multiple local users connect to port 9090, they each form an independent session and achieve multiplexing through different QUICStreams.

[0168] After the user disconnects, the PeerProxy state changes from CONNECTED to RECONNECT, continuously attempting to reconnect with exponential backoff intervals of 1s→2s→4s→...→60s. After the service disconnects, the PeerProxy is removed from the peers dictionary.

[0169] In some embodiments, the SDK is directly loaded by the agent process as an SDK library. The agent calls the SDK initialization interface upon startup, passing in configuration parameters such as the signaling address and API token. The SDK starts nodes and a proxy adapter within the agent process, sharing the process address space.

[0170] Advantages: Simple deployment, no need for additional process management, suitable for single-agent scenarios.

[0171] intelligent agent process

[0172] ├── Intelligent Agent Business Logic

[0173] ├──SDK (This solution)

[0174] │ ├── SignalingClient

[0175] │ ├── Proxy Adapter

[0176] │ ├── ICE Negotiator

[0177] │ └── QUIC Transmitter

[0178] └── Network Interface

[0179] See Figure 3 This is a flowchart illustrating an intelligent agent self-decision communication method provided in an embodiment of this application. Figure 3 As shown, the intelligent agent self-decision communication method provided in this application embodiment can be implemented by the aforementioned second intelligent agent, specifically including the following steps 301 to 304:

[0180] S301, the second intelligent agent receives a connection request message from the first intelligent agent through the signaling server. The connection request message is used to request the establishment of a communication connection between the first intelligent agent and the second intelligent agent. The connection request message carries the intelligent agent identifier of the second intelligent agent, structured intent information and intelligent agent description information of the first intelligent agent.

[0181] S302, the second agent makes a decision based on structured intent information and agent description information, obtains a decision result, and sends a connection response message to the first agent through the signaling server based on the decision result. The decision result includes any one of the following: accept, reject, and transfer.

[0182] S303. When the connection response message is an ICE service address message, the second intelligent agent negotiates with the first intelligent agent to obtain the common local ICE username and remote ICE username between the second intelligent agent and the first intelligent agent; the ICE service address message carries the ICE candidate address of the second intelligent agent.

[0183] S304. The second agent establishes a QUIC connection between the first agent and the second agent based on the local ICE username and the remote ICE username.

[0184] In some embodiments, the second agent receives a connection request message from the first agent through a signaling server. The connection request message carries the agent identifier of the second agent, structured intent information, and agent description information of the first agent.

[0185] In this embodiment, the first intelligent agent is the one that generates service requests and actively initiates communication, and the second intelligent agent is the one selected by the first intelligent agent as the communication target. Both the first and second intelligent agents are network entities with autonomous decision-making capabilities, capable of autonomously perceiving their own state, understanding intent information, and making communication decisions, rather than simply being protocol executors that execute signaling according to preset protocol rules.

[0186] A connection request message is a message sent by the first agent to the second agent via a signaling server when the first agent determines that it needs to establish communication. This connection request message carries the agent identifier of the second agent, and the signaling server routes the message to the node where the second agent resides based on this identifier. Structured intent information describes the first agent's communication intent, specifically including intent type, intent summary, and intent priority. The intent type identifies the category of the communication intent, such as task delegation, data query, notification, negotiation, or collaboration; the intent summary is a one-sentence natural language description automatically generated by the first agent based on business logic, used by the second agent to quickly understand the communication purpose; and the priority indicates the urgency of the communication request. Agent description information describes the first agent's identity and capabilities, including the first agent's namespace and trust level, a description of the communication purpose, a list of expected capabilities, a list of required capabilities, and a list of supported semantic protocols. The connection request message enables the second agent to obtain the first agent's communication intent and identity / capability information, thus providing a basis for subsequent autonomous decision-making. Unlike existing technologies where agents rely solely on fixed public network addresses for direct connections and the responder passively accepts the connection, the second agent in this embodiment can proactively understand and make differentiated decisions based on the semantic intent information carried in the connection request message.

[0187] Subsequently, the second agent makes a decision based on structured intent information and agent description information, obtains the decision result, and sends a connection response message to the first agent through the signaling server based on the decision result.

[0188] In this embodiment, after receiving a connection request message, the second agent parses the structured intent information and agent description information within it, and makes an autonomous response decision based on its current state. Specifically, the dimensions for the second agent's decision-making may include at least one of the following: determining whether the second agent can provide the capabilities requested by the first agent; determining whether the intent type is a processable type; determining the relevance of the communication purpose indicated by the intent summary to its own responsibilities; evaluating the degree of matching between the expected capability list and its own capabilities; determining the urgency of the communication request based on priority; checking whether there are currently available peer proxy resources; and determining whether the first agent is within the scope permitted by the security policy. After making an autonomous decision based on the above dimensions, the second agent obtains a decision result, which includes any one of accepting, rejecting, or forwarding the connection.

[0189] Based on the decision result, the second agent sends the corresponding connection response message to the first agent through the signaling server.

[0190] If the decision is to accept, the connection response message is an ICE service address message. The ICE service address message carries the second agent's ICE candidate address, used for ICE negotiation between the two parties to establish a network path. The ICE candidate address may include the second agent's local host candidate address, the public network candidate address reflected by the STUN server, and the TURN relay candidate address. Optionally, the ICE service address message may also carry a target semantic protocol, which is a semantic protocol negotiated and determined by the second agent based on the list of semantic protocols supported by the first agent and its own supported capabilities.

[0191] If the decision is to reject, the connection response message is an error message. The error message carries an error code and a description of the error reason, used to inform the first agent of the specific reason for rejecting communication.

[0192] If the decision result is to transfer the connection, the connection response message is a redirection message. The redirection message carries the identifier of the substitute agent, the identifier of the namespace where the substitute agent is located, and a description of the transfer reason, which is used to guide the first agent to initiate communication with the substitute agent.

[0193] Subsequently, if the connection response message is an ICE service address message, the second agent negotiates with the first agent to obtain the common local ICE username and remote ICE username between the second agent and the first agent.

[0194] In this embodiment, ICE negotiation is the process by which the second agent and the first agent exchange their respective ICE candidate information through a signaling channel and perform connectivity checks to determine the optimal transmission path. The second agent's ICE candidate information may include local host candidate addresses, candidate addresses reflected by the STUN server, and TURN relay candidate addresses. Both parties determine the optimal transmission path through connectivity checks, prioritizing direct connections and falling back to TURN relay paths if a direct connection fails. After ICE negotiation is completed, both parties extract their local ICE username and remote ICE username from the negotiation results.

[0195] Next, the second agent establishes a QUIC connection between the first and second agents based on the local ICE username and the remote ICE username.

[0196] In this embodiment, establishing a QUIC connection based on the local ICE username and the remote ICE username specifically includes: sorting the local ICE username and the remote ICE username in lexicographical order and concatenating them with colons to form a username string; performing a hash operation on the username string and taking the first eight bytes of the hash value as the QUIC connection identifier; both parties independently calculate a consistent QUIC connection identifier, and the second agent establishes a QUIC connection with the first agent based on this QUIC connection identifier. Since both parties can obtain a consistent QUIC connection identifier independently, there is no need to exchange QUIC connection parameters through the signaling channel during the entire process, achieving zero-signaling QUIC connection establishment.

[0197] After the QUIC connection is established, the second agent transmits data with the first agent within the QUIC connection based on the target semantic protocol. Optionally, at least one QUIC stream is created based on the target semantic protocol. The QUIC stream carries different types of messages. Specifically, bidirectional long-lived dialogue streams can be automatically created to carry semantic negotiation, parameter confirmation, and task scheduling messages; unidirectional short-lived data streams can be created on demand to transmit model files, knowledge base snapshots, and large amounts of business data; and unidirectional long-lived event streams can be created to asynchronously push progress notifications and state change messages. The different types of QUIC streams are isolated from each other, and the transmission of large files on the data streams will not block the real-time response of the dialogue stream.

[0198] Optionally, during communication, the second agent can autonomously decide to terminate the communication. When the agent to which the second agent belongs actively disconnects, the corresponding peer agent marks the connection intent as manual and retains it to support subsequent automatic reconnection; when the agent to which the second agent belongs passively disconnects, the corresponding peer agent cleans up the instance.

[0199] Based on the above method, the second intelligent agent realizes a complete self-decision communication process, including receiving semantic connection requests, making autonomous response decisions based on multi-dimensional information, returning decision responses, conducting ICE negotiation and establishing zero-signaling QUIC connections, and performing parallel interaction through multiple QUIC streams.

[0200] Based on the method of this application embodiment, the second intelligent agent receives a connection request from the first intelligent agent through a signaling server and returns a response message. The connection request and response message are forwarded through the signaling server, and subsequent data transmission between the first and second intelligent agents is conducted directly via a QUIC connection. Since the second intelligent agent makes multi-dimensional autonomous decisions based on the structured intent information and agent description information carried in the connection request, rather than simply responding according to a fixed protocol, it can provide differentiated responses based on its actual state and capabilities, achieving intelligent scheduling of communication requests. Simultaneously, after ICE negotiation, the second intelligent agent independently derives a QUIC connection identifier using the ICE username through hash calculation to establish a QUIC connection, eliminating the need for additional signaling exchange to negotiate QUIC connection parameters. This reduces signaling overhead during connection establishment and improves communication establishment efficiency. Furthermore, since multiple mutually isolated QUIC streams are created semantically within the QUIC connection, control plane messages and data plane messages can be transmitted in parallel without blocking each other, thus improving the real-time performance and throughput of interactions between intelligent agents.

[0201] In one optional embodiment, the establishment of a QUIC connection between the first and second intelligent agents based on the local ICE username and the remote ICE username in the above embodiment will be described in detail.

[0202] See Figure 4 This is a flowchart illustrating an intelligent agent self-decision communication method provided in an embodiment of this application. Figure 4 As shown, the intelligent agent QUIC connection method provided in this application embodiment can be implemented by the first intelligent agent described above, specifically including the following steps 401-402.

[0203] S401. Perform a hash operation based on the local ICE username and the remote ICE username to obtain the QUIC connection identifier.

[0204] S402. Based on the QUIC connection identifier, establish a QUIC connection between the first agent and the second agent.

[0205] In some embodiments, the first agent performs a hash operation based on the local ICE username and the remote ICE username to obtain a QUIC connection identifier, and establishes a QUIC connection between the first agent and the second agent based on the QUIC connection identifier.

[0206] In this embodiment, the local ICE username and the remote ICE username are the usernames extracted from the ICE credentials by the first and second agents respectively after the first agent and the second agent complete ICE negotiation through the signaling channel. After obtaining the local ICE username and the remote ICE username, the first agent sorts the two usernames in lexicographical order and concatenates them with a colon to form a username string. A hash operation is performed on the username string, and the first eight bytes of the hash value are used as the QUIC connection identifier.

[0207] The second agent, also based on its own acquired local and remote ICE usernames, independently calculates its QUIC connection identifier using the same sorting, concatenation, and hashing methods. Since both agents use the same inputs and algorithms, the QUIC connection identifiers calculated independently by each agent are identical. The entire calculation process is completed locally, without the need for additional exchange of QUIC connection parameters through the signaling channel, achieving zero-signaling QUIC connection identifier derivation.

[0208] After obtaining the QUIC connection identifier, both parties initiate a QUIC connection using this identifier. Specifically, the server-side agent sets the QUIC connection identifier as the original target connection identifier, while the client-side agent sets the QUIC connection identifier in both the peer connection identifier and the original target connection identifier fields and initiates the connection. After the QUIC connection is established, subsequent communication is encrypted using TLS 1.3.

[0209] Based on the method of this application embodiment, since the QUIC connection identifier is independently derived by both parties using the ICE negotiation result, no additional signaling exchange is required to negotiate the QUIC connection parameters. Therefore, the signaling process for connection establishment is simplified, the connection establishment latency is reduced, and the efficiency of establishing end-to-end communication between intelligent agents is improved.

[0210] In one optional embodiment, the decision-making process based on structured intent information and agent description information in the above embodiments is described in detail, and the resulting decision is further explained:

[0211] The intelligent agent decision-making method provided in this application embodiment can be implemented by the aforementioned second intelligent agent, specifically including the following steps 501:

[0212] S501. Based on structured intent information and agent description information, make at least one of the following decisions to obtain the decision result:

[0213] Determine whether the second agent can provide the capabilities requested by the first agent.

[0214] Determine whether the intent type is a processable type.

[0215] Determine the relevance of the communication purpose indicated by the intent summary to one's own responsibilities.

[0216] The degree to which the expected skills list matches one's own abilities.

[0217] Are there any available peer-to-peer proxy resources?

[0218] Is it within the scope permitted by the security policy?

[0219] In some embodiments, after receiving a connection request message from the first agent through a signaling server, the second agent makes a multi-dimensional autonomous decision based on the structured intent information and agent description information carried in the connection request message, and obtains a decision result.

[0220] In this embodiment, structured intent information is used to describe the communication intent of the first intelligent agent, specifically including intent type, intent summary, and intent priority. The intent type identifies the category of the communication intent, such as task delegation, data query, notification, negotiation, or collaboration; the intent summary is a one-sentence natural language description automatically generated by the first intelligent agent based on business logic; and the priority indicates the urgency of the communication request. The agent description information describes the identity and capabilities of the first intelligent agent, and may include the first intelligent agent's namespace and trust level, a description of the communication purpose, a list of expected capabilities, a list of required capabilities, and a list of supported semantic protocols.

[0221] After parsing the structured intent information and agent description information, the second agent, in conjunction with its current state, makes a comprehensive decision from multiple dimensions to determine whether to accept, reject, or transfer the communication request.

[0222] The first decision dimension is capability verification, which determines whether the second agent can provide the capabilities requested by the first agent. The second agent compares the list of required capabilities and the list of desired capabilities carried in the connection request message with its own registered capability list to assess whether it possesses the necessary capabilities to undertake the communication request.

[0223] The second decision dimension is intent type matching, which determines whether the intent type is a processable type. Based on the range of business types it supports, the second agent determines whether the communication intent type initiated by the first agent is within its processable range, such as whether task delegation intents can be accepted or data query intents can be responded to.

[0224] The third decision-making dimension is the intent summary relevance assessment, which determines the relevance of the communication purpose indicated by the intent summary to its own responsibilities. The second agent assesses the degree of match between the communication purpose and its current role and responsibilities by understanding the natural language content described in the intent summary.

[0225] The fourth decision-making dimension is the assessment of the matching degree of expected capabilities, which is to evaluate the degree of matching between the list of expected capabilities and one's own capabilities. Unlike the list of required capabilities, which are hard conditions that must be met, the list of expected capabilities consists of the preferred capabilities that the first agent expects the other party to possess. The second agent uses this list to assess the degree of matching between its own capabilities and the other party's expectations.

[0226] The fifth decision dimension is priority judgment, which determines the processing order based on the urgency indicated by the priority. The second agent determines the urgency of the communication request and the processing order based on the priority parameter carried in the connection request message and the priority of other communication requests it is currently processing.

[0227] The sixth decision dimension is the busy / idle judgment, which checks whether there are currently any idle peer proxy resources. The second agent checks whether its currently available peer proxy instances are idle and whether they meet the conditions for establishing a new connection.

[0228] The seventh decision dimension is a security policy check, which determines whether the first agent is within the scope permitted by the security policy. The second agent, based on the first agent's namespace and trust level, and in conjunction with its own maintained whitelist or blacklist security policies, determines whether to allow the establishment of a communication connection with the first agent.

[0229] The second agent integrates the decision results from at least one of the above dimensions to obtain the final decision result, which includes any one of acceptance, rejection, and transfer.

[0230] If the overall decision is to accept, the second agent sends an ICE service address message to the first agent through the signaling server, carrying the second agent's ICE candidate address and the target semantic protocol determined through negotiation, in order to trigger the subsequent ICE negotiation and QUIC connection establishment process.

[0231] If the overall decision result is rejection, the second agent sends an error message to the first agent through the signaling server, carrying the error code and an explanation of the error reason.

[0232] If the overall decision is to transfer the connection, the second agent sends a redirection message to the first agent through the signaling server, carrying the identifier of the substitute agent, the identifier of the namespace where the substitute agent is located, and a description of the reason for the transfer.

[0233] Based on the method of this application embodiment, after receiving a communication request, the second intelligent agent does not passively accept or reject it according to the preset protocol rules, but makes a comprehensive autonomous decision based on structured intent information and intelligent agent description information from multiple dimensions such as capability, intent, relevance, expected matching degree, priority, resource status and security policy. This realizes intelligent scheduling and differentiated response of intelligent agent communication requests, and improves the rationality and accuracy of communication decisions.

[0234] In an optional embodiment, other steps in the agent self-decision communication method described above will be further explained.

[0235] The method for generating QUIC streams by an intelligent agent provided in this application embodiment can be implemented by the aforementioned second intelligent agent, specifically including the following 601:

[0236] S601. Within a QUIC connection, at least one QUIC stream is created based on the target semantic protocol. The QUIC stream is used to transmit data.

[0237] QUIC flow is specifically divided into three types:

[0238] Dialog Stream (SID 0): A bidirectional long-lived stream that carries high-priority messages such as semantic negotiation, parameter confirmation, and task scheduling, using the ANP / A2A JSON protocol.

[0239] Data Transfer Stream (SID 1+): A unidirectional, short-lived stream created on demand for transferring model files, knowledge base snapshots, and large volumes of business data.

[0240] Event Stream (SID special identifier): a unidirectional long-lived stream used for asynchronous progress notifications and status change pushes.

[0241] In some embodiments, after establishing a QUIC connection with the first agent, the second agent creates at least one QUIC stream within the QUIC connection based on the target semantic protocol. The QUIC stream is used to transmit data.

[0242] In this embodiment, the target semantic protocol is the semantic protocol negotiated and determined by the first agent and the second agent during the communication establishment process. For example, it can be an agent-to-agent protocol (A2A) or an agent network protocol (ANP). A QUIC stream is a logically independent data transmission channel within a QUIC connection. Multiple QUIC streams can be transmitted in parallel within the same QUIC connection without blocking each other.

[0243] Based on the target semantic protocol and in accordance with the stream semantic scheme agreed upon by both parties, the second agent creates the following three types of QUIC streams:

[0244] The first type is the dialogue stream. The dialogue stream is a bidirectional, long-lived stream with a stream identifier of zero, automatically created after the QUIC connection is established. The dialogue stream carries high-priority control messages such as semantic negotiation messages, parameter acknowledgment messages, and task scheduling messages. Messages transmitted on the dialogue stream use a negotiated target semantic protocol format, such as the A2A or ANP protocol format. Because the dialogue stream is bidirectional, both the first and second agents can send and receive control messages on this stream.

[0245] The second type is data streams. Data streams are unidirectional, short-lived streams with non-zero stream identifiers, dynamically created and destroyed according to business needs. Data streams are used to transmit model files, knowledge base snapshots, and large volumes of business data. When an agent needs to transmit large files or batches of data, a temporary data stream is created; after data transmission is complete, the stream is closed, and the stream identifier resource is released. Data streams are unidirectional, created by the sender and pushed unidirectionally to the receiver.

[0246] The third type is event streams. Event streams use unidirectional, long-lived streams with a special stream identifier. Event streams are used for asynchronously pushing progress notifications and status change messages. Event streams are unidirectional; they are created by the event generator and push event messages unidirectionally to the other end without requiring a response from the other end.

[0247] The three QUIC streams described above are completely isolated and transmitted independently. When a large file is being transferred on the data stream, control messages on the dialog stream can still be sent and received in real time without being blocked or delayed by the data stream transmission, thus achieving parallel interaction between the control plane and the data plane.

[0248] Based on the method of this application embodiment, the second agent creates different types of QUIC streams according to semantics within the QUIC connection, and distributes control messages, data messages and event messages to different streams for isolated transmission, so that large-capacity data transmission will not block the interaction of real-time control commands, thereby improving the real-time performance and throughput of communication between agents.

[0249] See Figure 5 This is an interactive flowchart of an intelligent agent self-decision communication system provided in an embodiment of this application. Figure 5 As shown, the agent self-decision communication provided in this application embodiment includes a first agent and a second agent, and its interaction process includes the following steps 701-709:

[0250] S701. When the first intelligent agent generates a service request, it determines the intelligent agent identifier of the second intelligent agent that matches the service request information, and sends a connection request message to the second intelligent agent through the signaling server.

[0251] S702, The connection request message carries the agent identifier of the second agent, structured intent information and agent description information of the first agent. The connection request message is used to request the establishment of a communication connection between the first agent and the second agent.

[0252] S703. After receiving the connection request message, the signaling server routes the connection request message to the second intelligent agent according to the intelligent agent identifier of the second intelligent agent.

[0253] S704. After receiving the connection request message through the signaling server, the second agent makes an autonomous decision based on structured intent information and agent description information, and obtains a decision result. The decision result includes any one of accepting, rejecting, or transferring the connection; based on the decision result, the second agent sends a connection response message to the first agent through the signaling server.

[0254] S705. If the decision result is to accept, the connection response message is an ICE service address message, which carries the ICE candidate address and target semantic protocol of the second agent.

[0255] S706. After receiving the ICE service address message, the first intelligent agent negotiates ICE with the second intelligent agent based on the ICE candidate address of the second intelligent agent; the two parties exchange their respective ICE candidate information, complete connectivity checks and path selection, and obtain the common local ICE username and remote ICE username of both parties respectively.

[0256] S707. Subsequently, the first agent and the second agent each perform hash operations based on the local ICE username and the remote ICE username to obtain a consistent QUIC connection identifier, and establish a QUIC connection based on the QUIC connection identifier.

[0257] Specifically, the calculation is: username_seed = min(local_username, remote_username) + ":" + max(local_username, remote_username)

[0258] QUIC CID=SHA1(username_seed)[:8]

[0259] Each entity uses its own CID to establish a QUIC Connection, without requiring additional signaling exchange.

[0260] After the S708 QUIC connection is established, the second agent creates at least one QUIC stream within the QUIC connection based on the target semantic protocol. The QUIC stream is used to carry data transmission between the first agent and the second agent.

[0261] S709. During communication, any intelligent agent may autonomously decide to terminate the communication and disconnect the QUIC connection.

[0262] Reference Figure 6 The diagram shown is a flowchart illustrating a method for intelligent agent self-decision communication disconnection according to an embodiment of this application. Figure 6 As shown in the embodiment of this application, an intelligent agent self-decision disconnection method is provided, which can be implemented by the first intelligent agent or the second intelligent agent described above, and specifically includes the following steps 901 to 903.

[0263] S901. If a connection has been established between the first intelligent agent and the second intelligent agent, disconnect the connection between the first intelligent agent and the second intelligent agent through a client agent or a server agent.

[0264] S902. If the disconnection occurs on the client side, the connection request message is stored.

[0265] S903. If the disconnection occurs on the server side, clear the connection request message.

[0266] In the embodiments of this application, any intelligent agent autonomously decides to terminate communication based on business logic. After the TcpClientProxy side disconnects, the PeerProxy is marked as origin=MANUAL to retain the connection intention and support subsequent automatic reconnection; after the TcpServerProxy side disconnects, the PeerProxy is marked as origin=PASSIVE to clean up the instance.

[0267] See Figure 7 This is an interactive schematic diagram of an intelligent agent self-decision communication system provided in an embodiment of this application. Figure 7 As shown in the embodiments of this application, the intelligent agent self-decision communication includes a first intelligent agent and a second intelligent agent. In some embodiments, when the first intelligent agent generates a service request, it sends a connection request message to the second intelligent agent through a signaling server. After receiving the connection request message through the signaling server, the second intelligent agent makes an autonomous decision and initiates the subsequent ICE negotiation and QUIC connection establishment process according to the decision result.

[0268] In this embodiment, the first intelligent agent is the one that generates service requests and actively initiates communication, while the second intelligent agent is the one selected by the first intelligent agent as the communication target. Both the first and second intelligent agents are network entities with autonomous decision-making capabilities, running on their respective nodes and communicating with the signaling server through the proxy of their respective nodes. The signaling server is used to forward signaling messages between the first and second intelligent agents, undertaking message routing functions during the connection establishment phase. After the connection is established, data transmission between the first and second intelligent agents is conducted directly through the QUIC connection, without passing through the signaling server.

[0269] Specifically, after generating a service request, the first agent determines the agent identifier of the second agent that matches the service request information from the locally maintained remote agent cache according to the required capabilities. After the first agent autonomously decides to initiate communication, it sends a connection request message to the signaling server through its local agent. The connection request message carries the agent identifier of the second agent, which is used by the signaling server to route the message to the node where the second agent resides. The connection request message also carries structured intent information and the agent description information of the first agent. The structured intent information may include intent type, intent summary, and intent priority; the agent description information may include the agent identifier of the first agent, agent identifier, namespace and trust level, description of communication purpose, list of expected capabilities, list of required capabilities, and list of supported semantic protocols. The connection request message enables the second agent to obtain the communication intent and identity capability information of the first agent, thereby providing a basis for subsequent autonomous decision-making.

[0270] After receiving the connection request message, the signaling server routes the message to the agent of the node where the second agent resides, based on the agent identifier carried within it. The agent of the node where the second agent resides then presents the structured intent information and agent description information carried in the connection request message to the business decision layer of the second agent.

[0271] Upon receiving a connection request message, the second agent makes a multi-dimensional autonomous decision based on structured intent information and agent description information. The dimensions of the second agent's decision-making include at least one of the following: determining whether the second agent can provide the capabilities requested by the first agent; determining whether the intent type is a processable type; determining the relevance of the communication purpose indicated by the intent summary to its own responsibilities; assessing the degree of matching between the expected capability list and its own capabilities; determining the urgency of the communication request based on priority; checking whether there are currently available peer proxy resources; and determining whether the first agent is within the scope permitted by the security policy. After making an autonomous decision based on the above dimensions, the second agent obtains a decision result, which includes any one of accepting, rejecting, or forwarding the connection.

[0272] Based on the decision result, the second agent sends a corresponding connection response message to the first agent via the signaling server. If the decision result is acceptance, the connection response message is an ICE service address message, which carries the second agent's ICE candidate address and, optionally, the target semantic protocol. The target semantic protocol is determined by the second agent through negotiation based on the list of semantic protocols supported by the first agent and its own supported capabilities. If the decision result is rejection, the connection response message is an error message, carrying an error code and an explanation of the error reason. If the decision result is transfer, the connection response message is a redirection message, carrying the identifier of the alternative agent, the identifier of the namespace where the alternative agent resides, and an explanation of the transfer reason.

[0273] After receiving a connection response message from the second agent via the signaling server, the first agent determines the type of the connection response message. If the connection response message is an ICE service address message, the first agent negotiates ICE with the second agent based on the second agent's ICE candidate address carried in the ICE service address message.

[0274] During ICE negotiation, the first and second agents exchange their respective ICE candidate information via a signaling channel. This candidate information may include local host candidate addresses, candidate addresses reflected by the STUN server, and TURN relay candidate addresses. Both parties determine the optimal transmission path through connectivity checks, prioritizing direct connections and falling back to the TURN relay path if a direct connection fails. After ICE negotiation is complete, both parties extract their local and remote ICE usernames from the negotiation results.

[0275] Subsequently, the first and second agents each perform hash operations based on their local and remote ICE usernames to obtain the QUIC connection identifier. Specifically, the local and remote ICE usernames are sorted lexicographically, concatenated with colons to form a username string, hashed, and the first eight bytes of the hash value are used as the QUIC connection identifier. Since both agents use the same input and algorithm, the QUIC connection identifiers calculated independently by each agent are identical. The entire calculation process is completed locally, without the need for additional exchange of QUIC connection parameters through the signaling channel, achieving zero-signaling QUIC connection identifier derivation.

[0276] Both parties initiate a QUIC connection using their respective QUIC connection identifiers. Once established, the second agent creates at least one QUIC stream within the connection based on the target semantic protocol. Specifically, a bidirectional long-lived dialogue stream is automatically created to carry semantic negotiation, parameter confirmation, and task scheduling messages; a unidirectional short-lived data stream is created on demand to transmit model files, knowledge base snapshots, and large volumes of business data; and a unidirectional long-lived event stream is created to asynchronously push progress notifications and state change messages. These different types of QUIC streams are isolated from each other, ensuring that the transmission of large files over the data streams does not block the real-time response of the dialogue stream.

[0277] During communication, any agent can autonomously decide to terminate the communication. When the agent's agent actively disconnects, the corresponding peer agent marks the connection intent as manual and retains it to support subsequent automatic reconnection, which adopts an exponential backoff strategy. When the agent's agent passively disconnects, the corresponding peer agent cleans up the instance.

[0278] Based on the method of this application embodiment, a first agent sends a connection request carrying structured intent information to a second agent through a signaling server. The second agent makes a multi-dimensional autonomous response decision based on the intent information. After both parties negotiate and establish a network path through ICE, they independently derive a QUIC connection identifier using the ICE username through hash operation to establish a QUIC connection in a zero-signaling manner. Parallel interaction between the control plane and the data plane is achieved through multiple semantically isolated QUIC streams. The entire communication establishment process is completed autonomously by the agents. The signaling server only undertakes message forwarding functions during the connection establishment phase. Data transmission after the connection is established occurs directly between the peer agents, reducing signaling overhead and improving communication establishment efficiency and real-time interaction.

[0279] Reference Figure 8 As shown, this invention adopts a three-layer decoupled architecture, which consists of the following layers from top to bottom:

[0280] First layer: Stream semantic plane (Proxy adapter layer)

[0281] Name: Intelligent Agent Protocol Adaptation Layer

[0282] Functional positioning: Protocol adaptation and conversion

[0283] Core responsibility: To adapt the business protocols (A2A, ANP, MCP, or custom protocols) of the intelligent agent to the interconnection channel of this invention. A pluggable Proxy abstraction interface connects to the intelligent agent's business protocol interface on one side and to the connection peer of the bearer layer on the other, enabling protocol-independent self-decision communication.

[0284] Second layer: Bearer plane (ICE+QUIC transport layer)

[0285] Name: Reliable Transport and NAT Traversal Layer

[0286] Functional positioning: Connection establishment and data transmission

[0287] Core responsibilities: To achieve NAT traversal in heterogeneous environments using the ICE protocol, to establish a secure and reliable end-to-end transmission channel using the QUIC protocol, and to provide multi-stream multiplexing and connection migration capabilities.

[0288] Layer 3: Control plane (signaling server)

[0289] Name: Signaling Control and Resource Management Layer

[0290] Functional roles: registration, discovery, session management, and routing.

[0291] Core responsibilities: Anchor user namespaces with E.164 phone numbers to support trusted authentication of phone numbers as identities; provide agent registration and online state maintenance, user namespace isolation and resource management, event-driven service discovery mechanism, and communication signaling relay and routing.

[0292] 4. Detailed Explanation of Core Levels

[0293] 4.1 Flow Semantic Plane

[0294] The Stream Semantic Plane is a pluggable adaptation layer for agent protocols, consisting of the Proxy abstract interface and various Proxy subclasses. The Proxy abstract interface defines standardized lifecycle methods and data forwarding interfaces, connecting to the agent's business protocol on one side and the connection peer of the transport layer on the other. Different agent semantic protocols implement corresponding subclasses by inheriting the Proxy abstract interface. The transport layer does not need to be aware of the differences in upper-layer protocols, and no code in the transport layer or control layer needs to be modified when a new protocol is introduced.

[0295] 4.2 Bearing Plane

[0296] The bearer plane consists of an ICE negotiator and a QUIC transporter, which are tightly coupled. ICE is responsible for traversing heterogeneous NAT environments, while QUIC is responsible for establishing an end-to-end encrypted transport channel on the path selected by ICE. Non-blocking communication is achieved between the bearer plane and the stream semantic plane through queue isolation.

[0297] 4.3 Control Plane

[0298] The control plane runs on the public cloud and includes a signaling server, a namespace manager, and a session manager. The namespace manager uses E.164 phone numbers as the user root namespace (analogous to IMS's IMPU public identity identifier), and each agent instance acts as an "extension" under a phone number (analogous to multiple contact addresses in IMS). The signaling server can connect to the operator's authentication gateway to verify number ownership. These three components are responsible for Web Socket signaling processing, multi-tenant namespace isolation, and communication session lifecycle management, respectively.

[0299] II. Core Component Functions

[0300] 2.1 Stream Semantic Plane Components

[0301] 2.1.1 Proxy Abstract Interface

[0302] Function Description: Defines a standardized interface for the Proxy adapter, acting as a bridge between the agent's business protocol and the transport layer. Business data from the agent side is converted into a unified format by the transport layer through the Proxy interface, and data received by the transport layer is restored to the business protocol format through the Proxy interface.

[0303] Key features:

[0304] Lifecycle Management (start / stop): Manages the startup and shutdown of the proxy.

[0305] Data forwarding (send): Sends the adapted data to the other end of the bearer layer.

[0306] Peer Management: Maintains the Peer Proxy instances of currently active connected peers.

[0307] Protocol independence: The upper layer is unaware of the details of the carrier layer, and the carrier layer is unaware of the differences in the upper layer protocols.

[0308] 2.1.2 TcpProxy (TCP protocol adapter, already implemented)

[0309] Function Description: Adapts the agent's TCP service interface to the interconnect channel. The server-side TCP Server Proxy connects to the backend TCP service, while the user-side TCP Client Proxy listens on the local port to receive user connections.

[0310] Input: Server-side – data stream from backend TCP connections; User-side – TCP connections received on the local port.

[0311] Output: Adapted bearer layer data packets.

[0312] Key features: Supports bidirectional transparent forwarding of TCP streams and bearer layer data channels.

[0313] 2.1.3 A2AProxy / ANPProxy (to be expanded)

[0314] Function Description: Dedicated adapters for the Google A2A and ANP protocols respectively. Responsible for converting semantic protocol formats such as A2A TaskCard / ANP messages into a unified data channel for the bearer layer.

[0315] Key features: Implemented by inheriting the Proxy abstract interface, it supports new semantic protocols without modifying the carrier layer code.

[0316] 2.1.4 PeerProxy Connection Manager

[0317] Function Description: Manages the entire connection state and lifecycle of a bidirectional connection peer. Each (initiator_id, responder_id) ordered pair corresponds to a Peer Proxy instance.

[0318] enter:

[0319] pair:(initiator_id,responder_id) An ordered pair that identifies the direction of the connection.

[0320] origin:MANUAL (user-initiated connection, intent retained upon disconnection) / PASSIVE (passive reception, cleaned up upon disconnection).

[0321] Output: Provides an is_active status query and send() data sending interface.

[0322] Key features:

[0323] Contains references to the ICE negotiator and transport layer instances.

[0324] Supports automatic reconnection (exponential backoff, max60s).

[0325] Connection state machine: WAITING → CONNECTING → CONNECTED → RECONNECT / DISABLED.

[0326] MANUAL type configurations retain their intent after disconnection and support automatic reconnection; PASSIVE type configurations are cleaned up after disconnection.

[0327] 2.1.5 Forwarder

[0328] Function Description: The execution layer component responsible for bidirectional data forwarding. The server-side Server Forwarder receives data from the bearer layer and writes it to the backend TCP; the user-side Client Forwarder reads data from the local TCP and sends it to the bearer layer.

[0329] Key features: Non-blocking data forwarding is achieved using asyncio.Queue, supporting efficient transmission of batch data.

[0330] 2.2 Bearing Plane Components

[0331] 2.2.1 Ice Negotiator

[0332] Function Description: Executes the standard ICE protocol (RFC 8445) and manages the entire lifecycle of the ICE connection.

[0333] enter:

[0334] List of remote candidate addresses (remote_candidates).

[0335] ICE credentials (username, password).

[0336] ICE role (controlling / controlled).

[0337] Output:

[0338] Local candidate address list (local_candidates).

[0339] Connection status:

[0340] (IDLE / INITIATING / ACCEPTING / NEGOTIATING / CONNECTED / FAILED / CLOSED).

[0341] Key features:

[0342] The STUN / TURN configuration is automatically requested via a global Signaling Client singleton.

[0343] Supports concurrent connection protection: rejects new connection attempts when not in IDLE / CLOSED / FAILED state.

[0344] Once the connection is successful, Ice Forwarder will be started to forward data.

[0345] 2.2.2 Ice Forwarder

[0346] Function Description: A pure byte repeater for the ICE data channel on the carrier plane. It is only responsible for sending and receiving ICE packets and keeping them heartbeat-alive, and does not participate in any business logic or session management.

[0347] Key features:

[0348] Sending path: Receive data from the upper layer via asyncio.Queue and send it to the ICE UDP channel.

[0349] Receive path: Receive raw bytes from the ICE UDP channel and notify the upper layer via callback.

[0350] Heartbeat keep-alive: Sends ICE layer heartbeat packets every 10 seconds to prevent NAT mapping timeout.

[0351] Inter-layer decoupling: Ice Forwarder is unaware of concepts such as session, KCP, QUIC, and relay encoding.

[0352] 2.2.3 QUIC Transport

[0353] Function Description: A reliable transport layer implementation based on the QUIC protocol (RFC 9000) to establish an end-to-end encrypted transport channel on the path selected by ICE.

[0354] enter:

[0355] session_id+data: The data that the upper layer (Proxy / Forwarder) needs to send.

[0356] Output:

[0357] The received data is distributed to the upper layer by session_id through the callback interface.

[0358] Key features:

[0359] CID Zero-Signaling Derivation: The QUIC Connection ID is derived using the SHA1 algorithm based on the known username combination (min(local,remote):max(local,remote)) between the two ICE parties. Both parties can calculate the same CID without additional signaling exchange, achieving seamless integration from the signaling to the transport layer.

[0360] Multi-stream multiplexing: Each business session is mapped to an independent QUIC Stream, and the mapping relationship is maintained through the _sessions dictionary (session_id→stream_id). The client creates a new stream for each new session, and the server parses the session_id from the received stream.

[0361] Connection migration: Utilize QUIC's Connection ID mechanism to maintain uninterrupted connection when IP address changes (such as switching from Wi-Fi to 5G).

[0362] PING Keep-alive: Sends a QUIC PING frame every 30 seconds to prevent disconnection due to idle timeout (idle_timeout=86400s).

[0363] Automatic reconnection: Automatically resets the status after the connection is lost, waiting for the other end to rebuild.

[0364] 2.3 Control Plane Components

[0365] 2.3.1 Signaling Server.

[0366] Function Description: A signaling center on the public cloud, providing a Web Socket signaling channel to handle the registration, discovery, communication routing, and event broadcasting of all nodes.

[0367] Input: Various signaling messages (register, register_proxy, connect_request, offer, answer, ice_candidate, heartbeat, etc.)

[0368] Output: Corresponding signaling responses and event pushes (register_ack, proxy_online, server_address, connected, error, etc.)

[0369] Key features:

[0370] Token authentication: Identity authentication is achieved through Authorization:Bearer.

[0371] Namespace isolation: Message routing is isolated by namespace_id.

[0372] Event broadcasting: PROXY_ONLINE / PROXY_OFFLINE actively pushes events, replacing polling queries.

[0373] 2.3.2 Namespace Manager.

[0374] Functional Description: The E.164 phone number is used to anchor user identity and namespace, realizing multi-tenant resource isolation and addressing of "Phone-as-Identity". Drawing on the separation design of IMPU (Public User Identity) and IMPI (Private User Identity) in IMS, the user's E.164 number serves as a globally routable public identity (analogous to IMPU), and each agent instance obtains an independent internal identifier and authentication credential (analogous to IMPI). The signaling server can interface with the carrier's authentication gateway to verify number ownership, and utilize the carrier's existing real-name infrastructure to complete trusted identity authentication.

[0375] Identifier Format: did:phone:<E.164 number>#<agent instance identifier>, for example, did:phone:+861391234567#assistant.

[0376] Input: Namespace creation / deletion requests, visibility configuration, Proxy sharing configuration.

[0377] Output: Namespace list, visibility relationships, Proxy sharing scope.

[0378] Key Features:

[0379] Phone Number Anchoring: The Namespace ID is bound to the E.164 number, so users only need to remember the number to find all agents under that user.

[0380] Trusted Authentication: Number ownership verification can reuse the carrier's real-name infrastructure, eliminating the need to build a separate identity system.

[0381] Multi-Instance Support: Multiple agent instances can be registered under one phone number, distinguished by #agentId.

[0382] Hierarchical Visibility: Administrators control visibility between Namespaces, and users control the Proxy sharing scope.

[0383] Maximum Visibility Scope Constraint: The Proxy sharing scope is limited by Namespace visibility.

[0384] Immediate Sharing Synchronization: Changes are immediately synchronized via update_proxy_sharing messages.

[0385] 2.3.3 Session Manager

[0386] Functional Description: Maintains the lifecycle of communication sessions, recording the initiator, responder, and current state of the session.

[0387] Input: Session creation / closure request.

[0388] Output: Session state information.

[0389] Key feature: Sessions are stably identified by an ordered pair of (initiator_id, responder_id) that does not change with network reconnection.

[0390] 2.4 Cloud Infrastructure Components

[0391] STUN service

[0392] Function Description: Provides public address detection functionality to assist the ICE negotiator in discovering public network mapping addresses behind NAT (RFC 5389).

[0393] TURN relay service

[0394] Function Description: Provides a relay fallback function when direct connection and STUN reflection fail to establish a connection, ensuring reachability in highly restricted network environments such as symmetric NAT (RFC 5766). Relay data is end-to-end encrypted, and the TURN node cannot decrypt the content.

[0395] Figure 9 This is a schematic diagram of the structure of an agent self-decision communication device applied to a first agent, provided in an embodiment of this application. Figure 9 As shown, the intelligent agent self-decision communication device 800 may include: a determination module 801, a sending module 802, a receiving module 803, a negotiation module 804, and an establishment module 805.

[0396] The determination module 801 is used to determine the agent identifier of the second agent that matches the service demand information;

[0397] The sending module 802 is used to send a connection request message to the second intelligent agent through a signaling server. The connection request message carries the intelligent agent identifier of the second intelligent agent and is used to request the establishment of a communication connection between the first intelligent agent and the second intelligent agent.

[0398] The receiving module 803 is used to receive a connection response message from the second intelligent agent through the signaling server;

[0399] The negotiation module 804 is used to, when the connection response message is an ICE service address message, negotiate with the second intelligent agent based on the ICE candidate address of the second intelligent agent carried in the ICE service address message, and obtain ICE negotiation information between the first intelligent agent and the second intelligent agent;

[0400] Module 805 is used to establish a connection between the first intelligent agent and the second intelligent agent based on the ICE negotiation information.

[0401] In one possible implementation, the connection request message sent by the sending module 801 also carries structured intent information and agent description information of the first agent;

[0402] The sending module 801 is also specifically used to receive a connection request message from the first intelligent agent through the signaling server. The connection request message is used to request the establishment of a communication connection between the first intelligent agent and the second intelligent agent. The connection request message carries the intelligent agent identifier of the second intelligent agent, structured intent information and intelligent agent description information of the first intelligent agent.

[0403] Decisions are made based on structured intent information and agent description information to obtain decision results. Based on the decision results, a connection response message is sent to the first agent through a signaling server. The decision results include any of the following: accept, reject, and transfer.

[0404] If the connection response message is an ICE service address message, ICE negotiation is performed with the first agent to obtain ICE negotiation information between the second agent and the first agent; the ICE service address message carries the ICE candidate address of the second agent;

[0405] The agent description information includes: the agent identifier of the first agent, the agent identifier of the first agent, the namespace and trust level of the first agent, the description of the communication purpose, the list of expected capabilities, the list of required capabilities, and the list of supported semantic protocols.

[0406] Structured intent information includes intent type, intent summary, and intent priority.

[0407] Another possible implementation is that, if the connection response message received by the receiving module 802 is an error message, the error message carries an error code and an explanation of the error reason;

[0408] Alternatively, if the connection response message is a redirection message, the redirection message carries the identifier of the substitute agent, the identifier of the namespace where the substitute agent is located, and a description of the reason for the transfer.

[0409] Another possible implementation involves module 805 performing a hash operation based on the ICE negotiation information to obtain the QUIC connection identifier, including:

[0410] Concatenate the ICE negotiation information into a username string;

[0411] The username string is hashed, and the first eight bytes of the hash value are used as the QUIC connection identifier. Based on the QUIC connection identifier, a QUIC connection is established between the second agent and the first agent.

[0412] In another possible implementation, the establishment module 805 is also used to create at least one QUIC stream within the QUIC connection based on the target semantic protocol, the QUIC stream being used to transmit data; the target semantic protocol is a semantic protocol in the list of semantic protocols supported by the first agent; the ICE service address message also carries the target semantic protocol.

[0413] Figure 10 This is a schematic diagram of the structure of an agent self-decision communication device applied to a second agent, provided in an embodiment of this application. Figure 10 As shown, the intelligent agent self-decision communication device 1000 may include: a receiving module 1010, a decision-making module 1020, a negotiation module 1030, and an establishment module 1040.

[0414] The receiving module 1010 is used to receive a connection request message from the first intelligent agent through a signaling server. The connection request message is used to request the establishment of a communication connection between the first intelligent agent and the second intelligent agent. The connection request message carries the intelligent agent identifier of the second intelligent agent, structured intent information and intelligent agent description information of the first intelligent agent.

[0415] The decision module 1020 is used to make decisions based on structured intent information and agent description information, obtain decision results, and send a connection response message to the first agent through the signaling server based on the decision results. The decision results include any one of the following: accept, reject, and transfer.

[0416] The negotiation module 1030 is used to negotiate with the first agent when the connection response message is an ICE service address message, and to obtain ICE negotiation information between the second agent and the first agent; the ICE service address message carries the ICE candidate address of the second agent.

[0417] Establishment module 1040 is used to establish a connection between the first and second intelligent agents based on ICE negotiation information.

[0418] One possible implementation is to create module 1040, specifically for:

[0419] Based on the ICE negotiation information, a hash operation is performed to obtain the QUIC connection identifier, and based on the QUIC connection identifier, a QUIC connection is established between the second agent and the first agent.

[0420] Within a QUIC connection, at least one QUIC stream is created based on a target semantic protocol, which is used to transmit data. The target semantic protocol is a semantic protocol from the list of semantic protocols supported by the first agent. The ICE service address message also carries the target semantic protocol.

[0421] Another possible implementation is that the agent description information includes: the agent identifier of the first agent, the agent identifier of the first agent, the namespace and trust level of the first agent, the description of the communication purpose, the list of expected capabilities, the list of required capabilities, and the list of supported semantic protocols; the structured intent information includes intent type, intent summary, and intent priority.

[0422] Another possible implementation is the decision module 1020, which is specifically used for:

[0423] Based on structured intent information and agent description information, make at least one of the following decisions to obtain the decision result:

[0424] Determine whether the second agent can provide the capabilities requested by the first agent.

[0425] Determine whether the intent type is a processable type.

[0426] Determine the relevance of the communication purpose indicated by the intent summary to one's own responsibilities.

[0427] The degree to which the expected skills list matches one's own abilities.

[0428] Priorities indicate the degree of urgency.

[0429] Are there any available peer-to-peer proxy resources?

[0430] Is it within the scope permitted by the security policy?

[0431] It should be noted that for a detailed explanation of the steps performed by each module and their beneficial effects, please refer to the description in the above embodiments, which will not be repeated here.

[0432] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0433] This application embodiment can divide the intelligent agent self-decision communication device into functional modules according to the above method example. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0434] In the case where the functions of the integrated modules described above are implemented in hardware, this application provides a possible structural schematic diagram of the electronic device involved in the above embodiments. For example... Figure 11 As shown, the electronic device 90 includes: a processor 92, a communication interface 93, and a bus 94. Optionally, the electronic device 90 may also include a memory 91.

[0435] Processor 92 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 92 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 92 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0436] Communication interface 93 is used to connect with other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0437] The memory 91 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0438] As one possible implementation, the memory 91 can exist independently of the processor 92. The memory 91 can be connected to the processor 92 via a bus 94 and is used to store instructions or program code. When the processor 92 calls and executes the instructions or program code stored in the memory 91, it can implement the intelligent agent self-decision communication method provided in the embodiments of this application.

[0439] In another possible implementation, the memory 91 can also be integrated with the processor 92.

[0440] Bus 94 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 94 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 11 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0441] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the service calling device can be divided into different functional modules to complete all or part of the functions described above.

[0442] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described intelligent agent self-decision communication method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0443] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0444] This application also provides a readable storage medium storing a program or instructions. When executed by a computer, the program or instructions implement the intelligent agent self-decision communication method provided in the above embodiments. It is understood that all or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware. The readable storage medium can be any of the foregoing embodiments or memory. The readable storage medium can also be an external storage device of the service invocation device, such as a plug-in hard drive, SmartMedia Card (SMC), Secure Digital (SD) card, flash card, etc., equipped on the service invocation device. Further, the readable storage medium can include both internal storage units of the service invocation device and external storage devices. The readable storage medium is used to store the computer program and other programs and data required by the service invocation device. The readable storage medium can also be used to temporarily store data that has been output or will be output.

[0445] This application also provides a computer program product, which is stored in a storage medium and, when executed by a computer, implements the intelligent agent self-decision communication method provided in the above embodiments.

[0446] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0447] 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 this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0448] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A self-decision communication method for an intelligent agent, applied to a first intelligent agent, characterized in that, include: Determine the target intelligent agent identifier, which is the intelligent agent identifier of the second intelligent agent; The first agent sends a connection request message to the second agent through the signaling server. The connection request message carries the agent identifier of the second agent and is used to request the establishment of a communication connection between the first agent and the second agent. The signaling server receives a connection response message from the second intelligent agent. If the connection response message is an ICE service address message, the first agent and the second agent negotiate ICE based on the ICE candidate address of the second agent carried in the ICE service address message, and obtain ICE negotiation information between the first agent and the second agent. Based on the ICE negotiation information, a connection is established between the first intelligent agent and the second intelligent agent.

2. The method according to claim 1, characterized in that, The step of establishing a connection between the first agent and the second agent based on the ICE negotiation information includes: A hash operation is performed based on the ICE negotiation information to obtain the QUIC connection identifier; A QUIC connection is established between the first agent and the second agent based on the QUIC connection identifier.

3. The method according to claim 2, characterized in that, The process of performing a hash operation based on the ICE negotiation information to obtain the QUIC connection identifier includes: Concatenate the ICE negotiation information into a username string; Perform a hash operation on the username string, and take the first eight bytes of the hash value as the QUIC connection identifier.

4. The agent self-decision communication method according to claim 1 or 2, characterized in that, If the connection response message is an error message, the error message carries an error code and a description of the error reason; Alternatively, if the connection response message is a redirection message, the redirection message carries an alternative agent identifier, an identifier of the namespace where the alternative agent resides, and a description of the reason for the transfer.

5. The method according to claim 1, characterized in that, The connection request message also carries the structured intent information and the agent description information of the first agent; The agent description information includes: the agent identifier of the first agent, the agent identifier of the first agent, the namespace and trust level of the first agent, the communication purpose description, the expected capability list, the required capability list, and the supported semantic protocol list. The structured intent information includes intent type, intent summary, and intent priority.

6. The method according to claim 1, characterized in that, The method further includes: If a connection has been established between the first intelligent agent and the second intelligent agent, the connection between the first intelligent agent and the second intelligent agent shall be disconnected through a client agent or a server agent. If the disconnection occurs on the client side, the connection request message is stored; If the disconnection occurs on the server side, then the connection request message is cleared.

7. A self-decision communication method for an intelligent agent, applied to a second intelligent agent, characterized in that, include: The signaling server receives a connection request message from the first intelligent agent, the connection request message being used to request the establishment of a communication connection between the first intelligent agent and the second intelligent agent; The connection request message carries the agent identifier of the second agent, structured intent information, and agent description information of the first agent; A decision is made based on the structured intent information and the agent description information to obtain a decision result. Based on the decision result, a connection response message is sent to the first agent through the signaling server. The decision result includes any one of the following: accept, reject, and transfer. If the connection response message is an ICE service address message, perform ICE negotiation with the first agent to obtain ICE negotiation information between the second agent and the first agent; The ICE service address message carries the ICE candidate address of the second agent; Based on the ICE negotiation information, a connection is established between the first intelligent agent and the second intelligent agent.

8. The method according to claim 7, characterized in that, The establishment of a connection based on the ICE negotiation information includes: A hash operation is performed based on the ICE negotiation information to obtain a QUIC connection identifier, and a QUIC connection is established between the second agent and the first agent based on the QUIC connection identifier. The method further includes: Within the QUIC connection, at least one QUIC stream is created based on a target semantic protocol, and the QUIC stream is used to transmit data; the target semantic protocol is a semantic protocol in the list of semantic protocols supported by the first agent; the ICE service address message also carries the target semantic protocol.

9. The method according to claim 7, characterized in that, The agent description information includes: the agent identifier of the first agent, the agent identifier of the first agent, the namespace and trust level of the first agent, the communication purpose description, the expected capability list, the required capability list, and the supported semantic protocol list; the structured intent information includes intent type, intent summary, and intent priority. The decision-making process based on the structured intent information and the agent description information, to obtain the decision result, includes: Based on the structured intent information and the agent description information, at least one of the following decisions is made to obtain the decision result: Determine whether the second intelligent agent can provide the capabilities requested by the first intelligent agent; Determine whether the intent type belongs to a processable type; Determine the relevance of the communication purpose indicated by the intent summary to one's own responsibilities; The degree to which the expected skills list matches one's own abilities; The level of urgency indicated by the priority; Are there any available peer-to-peer proxy resources? Is it within the scope permitted by the security policy? 10. The method according to claim 7, characterized in that, The method further includes: If a connection has been established between the first intelligent agent and the second intelligent agent, the connection between the first intelligent agent and the second intelligent agent shall be disconnected through a client agent or a server agent. If the disconnection occurs on the client side, the connection request message is stored; If the disconnection occurs on the server side, then the connection request message is cleared.

11. A self-decision communication system for intelligent agents, characterized in that, include: A first device and a second device, wherein the first device includes a first intelligent agent and the second device includes a second intelligent agent; The first agent is used to execute the agent self-decision communication method as described in any one of claims 1-6; The second agent is used to execute the agent self-decision communication method as described in any one of claims 7-10.

12. A self-decision communication device for an intelligent agent, applied to a first intelligent agent, characterized in that... ,,include: The determination module is used to determine the agent identifier of the second agent that matches the service demand information; The sending module is used to send a connection request message to the second intelligent agent through a signaling server. The connection request message carries the intelligent agent identifier of the second intelligent agent and is used to request the establishment of a communication connection between the first intelligent agent and the second intelligent agent. The receiving module is configured to receive a connection response message from the second intelligent agent through the signaling server; The negotiation module is used to, when the connection response message is an ICE service address message, negotiate with the second agent based on the ICE candidate address of the second agent carried in the ICE service address message, and obtain ICE negotiation information between the first agent and the second agent; A connection establishment module is used to establish a connection between the first intelligent agent and the second intelligent agent based on the ICE negotiation information.

13. A self-decision communication device for an intelligent agent, applied to a second intelligent agent, characterized in that, include: The receiving module is configured to receive a connection request message from a first intelligent agent via a signaling server. The connection request message is used to request the establishment of a communication connection between the first intelligent agent and the second intelligent agent. The connection request message carries the agent identifier of the second intelligent agent, structured intent information, and agent description information of the first intelligent agent. The decision module is used to make a decision based on the structured intent information and the agent description information, obtain a decision result, and send a connection response message to the first agent through the signaling server based on the decision result. The decision result includes any one of the following: accept, reject, and transfer. The negotiation module is used to perform ICE negotiation with the first agent when the connection response message is an ICE service address message, and to obtain ICE negotiation information between the second agent and the first agent. The ICE service address message carries the ICE candidate address of the second agent. A connection establishment module is used to establish a connection between the first agent and the second agent based on the ICE negotiation information.

14. An electronic device, characterized in that, It includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the agent self-decision communication method based on ICE and QUIC as described in any one of claims 1-6, or to implement the agent self-decision communication method based on ICE and QUIC as described in any one of claims 7-10.

15. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions, which, when executed by a computer, implement the agent self-decision communication method based on ICE and QUIC as described in any one of claims 1-6, or implement the agent self-decision communication method based on ICE and QUIC as described in any one of claims 7-10.

16. A computer program product, characterized in that, The computer program product is stored in a storage medium, and when executed by a computer, it implements the agent self-decision communication method based on ICE and QUIC as described in any one of claims 1-6, or implements the agent self-decision communication method based on ICE and QUIC as described in any one of claims 7-10.