Intelligent agent release method and device, equipment, storage medium and program product
Through the synchronization of information of blockchain nodes in the blockchain network, unified management of the agent is realized, solving the problem of inconsistent management of the agent caused by the independence of each platform and different resources in the existing technology, and simplifying the user operation process.
Patent Information
- Application Number
- CN202411508871.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, each platform is independent and the agent resources are different, resulting in users needing to log in to different platforms to obtain the agent API of corresponding functions, and lacking integrated agent management methods.
Through the synchronization of blockchain node information in the blockchain network, unified management of the agent is realized. The specific method includes receiving an agent's release request, updating the block record information in the region, and synchronizing the update to the blockchain network to ensure that the block record information stored by each blockchain node is the same.
The unified management of the agent is realized, and users can quickly retrieve and call the required agents at any blockchain node, simplifying the user's operation process and avoiding the trouble of cross-platform switching.
Smart Images

Figure CN119441239A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of artificial intelligence technology, and in particular, relates to a method, device, equipment, storage medium and program product for intelligent agent publishing. Background Art
[0002] An intelligent agent is a system that can perceive the environment and make decisions based on the perceived information to achieve specific goals. The intelligent agent can be a rule-based system or an artificial intelligence model with learning capabilities.
[0003] At present, after a manufacturer develops an intelligent agent, it can integrate the application programming interface (API) of the intelligent agent into the platform to complete the release of the intelligent agent. After that, users can log in to the platform that hosts the intelligent agent, obtain the corresponding API of the intelligent agent, and use the functions of the intelligent agent.
[0004] However, there are currently many platforms that carry intelligent agents on the market. Each platform is independent of each other, and the intelligent agent resources on each platform are different. Due to the different functions required by users, users need to log in to different platforms to obtain the API of the intelligent agent with the corresponding function. Therefore, an integrated intelligent agent management method is urgently needed. Summary of the invention
[0005] The embodiments of the present application provide a method, device, equipment, storage medium and program product for intelligent agent publishing. By synchronizing the information of blockchain nodes in the blockchain network, it is possible to ensure that the block record information stored in each blockchain node in the blockchain network is the same, thereby achieving unified management of intelligent agents.
[0006] In a first aspect, an embodiment of the present application provides a method for publishing by an intelligent agent, which is applied to a blockchain node, and the method includes:
[0007] Receiving a publishing request corresponding to an intelligent agent, wherein the publishing request includes preset indicator information of the intelligent agent;
[0008] Adding the record information of the intelligent agent to the local block record information according to the preset indicator information to obtain updated block record information;
[0009] The updated block record information is synchronized to the blockchain nodes in the blockchain network, so that the blockchain nodes in the blockchain network can update the locally stored block record information according to the updated block record information.
[0010] In a possible implementation, after synchronizing the updated block record information to a blockchain node in the blockchain network, the method further includes:
[0011] Receiving search information sent by the terminal device;
[0012] Searching the locally stored block record information for the network address and application API of the target intelligent entity that meets the retrieval information;
[0013] The network address and application program API interface of the target agent are returned to the terminal device, so that the terminal device can call the target agent through the network address and the API interface.
[0014] In a possible implementation, the search information is an agent identifier; and searching the block record information for a target agent that satisfies the search information includes:
[0015] In response to the agent identifier input by the user, the target agent corresponding to the agent identifier is searched in the block record information.
[0016] In a possible implementation, the search information is type information, version information and function information, the block record information includes preset indicator information corresponding to the agent; and searching the block record information for a target agent that meets the search information includes:
[0017] Searching for a candidate intelligent entity that meets the type information, the version information, and the function information according to the preset indicator information in the block record information;
[0018] Returning candidate preset indicator information corresponding to the candidate agent to the terminal device, so that the user can select a target agent according to the candidate preset indicator information, and the terminal device determines a target agent identifier corresponding to the target agent;
[0019] Receiving the target intelligent entity identifier sent by the terminal device;
[0020] The target intelligent entity corresponding to the target intelligent entity identifier is searched in the block record information.
[0021] In a possible implementation, before synchronizing the updated block record information to the blockchain node in the blockchain network, the method further includes:
[0022] When the intelligent agent accesses the blockchain node, a preset authentication algorithm is used to authenticate the blockchain node and the blockchain network;
[0023] When the blockchain node is authenticated, the blockchain node is connected to the blockchain network.
[0024] In a possible implementation, after synchronizing the updated block record information to a blockchain node in the blockchain network, the method further includes:
[0025] When the agent is deregistered from the blockchain node, a deletion request is sent to the blockchain node in the blockchain network, wherein the deletion request carries the agent identifier corresponding to the agent, and the deletion request is used to instruct the blockchain node in the blockchain network to delete the record information corresponding to the agent identifier in the locally stored block record information;
[0026] Disconnect the blockchain node from the blockchain network.
[0027] In a second aspect, an embodiment of the present application provides a device for publishing by an intelligent agent, which is applied to a blockchain node, and the device includes:
[0028] A receiving module, used to receive a publishing request corresponding to an intelligent agent, wherein the publishing request includes preset indicator information of the intelligent agent;
[0029] An updating module, used to add the record information of the intelligent agent to the local block record information according to the preset indicator information, so as to obtain updated block record information;
[0030] A synchronization module is used to synchronize the updated block record information to the blockchain nodes in the blockchain network, so that the blockchain nodes in the blockchain network can update the locally stored block record information according to the updated block record information.
[0031] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;
[0032] When the processor executes the computer program instructions, it implements the method for agent retrieval as described in any one of the first aspects.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the method for agent retrieval as described in any one of the first aspects is implemented.
[0034] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method for intelligent agent retrieval as described in any one of the first aspects.
[0035] A method, device, equipment, storage medium and program product for publishing an intelligent entity according to an embodiment of the present application, after a blockchain node receives a publishing request corresponding to the intelligent entity, it uses the preset indicator information of the intelligent entity carried in the publishing request to update the local block record information, and then the record information of the intelligent entity is added to the local block record information to obtain the updated block record information. In this way, the intelligent entity accesses the blockchain node. Then, the updated block record information is synchronized to the blockchain network. In this way, through the information synchronization of the blockchain nodes in the blockchain network, it can be ensured that the block record information stored in each blockchain node in the blockchain network is the same, that is, each blockchain node stores the preset indicator information of the intelligent entity released above, so that the unified management of the intelligent entity can be achieved using the blockchain network. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0037] Figure 1 This is a schematic diagram of the system architecture of a blockchain network provided in an embodiment of the present application;
[0038] Figure 2 It is a flowchart of a method for publishing an intelligent agent provided in an embodiment of the present application;
[0039] Figure 3 is an exemplary schematic diagram of block recording information provided by an embodiment of the present application;
[0040] Figure 4 It is a flowchart of an intelligent agent retrieval method provided in an embodiment of the present application; Figure 5 is an exemplary schematic diagram of a method for agent publishing provided by an embodiment of the present application;
[0041] Figure 6 is an exemplary schematic diagram of an intelligent agent network autonomous device provided in an embodiment of the present application;
[0042] Figure 7 is an exemplary schematic diagram of another method for agent publishing provided in an embodiment of the present application;
[0043] Figure 8 This is a schematic diagram of the structure of a device for publishing an intelligent agent provided in an embodiment of the present application.
[0044] Fig. 9 It is a structural schematic diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0045] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0046] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0047] With the development of artificial intelligence, after manufacturers develop intelligent agents, they can integrate the agent's application programming interface (API) into the platform. Users can log in to the platform that hosts the intelligent agent, obtain the corresponding intelligent agent's API, and then use the agent's functions.
[0048] However, there are currently many platforms that carry intelligent agents on the market. Each platform is independent of each other, and the intelligent agent resources on each platform are different. Due to the different functions required by users, users need to log in to different platforms to obtain the API of the intelligent agent with the corresponding function. Therefore, an integrated intelligent agent management method is urgently needed.
[0049] Since blockchain technology has the characteristic of sharing data, each blockchain node can synchronize the locally stored data, thus ensuring that each blockchain node stores the full amount of data in the blockchain network. In addition, since blockchain nodes can flexibly join or exit the blockchain network, it provides the possibility for the rapid deployment of intelligent agents and the rapid retrieval and screening of corresponding intelligent agents by users.
[0050] The present application provides a method, apparatus, device, storage medium and program product for publishing an intelligent agent. Figure 1Introduce a system architecture for agent publishing provided by an embodiment of the present application, such as Figure 1 As shown, the blockchain network includes multiple blockchain nodes, which can be servers, and each blockchain node is connected to an intelligent entity. The blockchain node stores the block record information of the blockchain node. After a new blockchain node is connected to the blockchain network, the blockchain nodes can synchronize the local block record information to other blockchain nodes in the blockchain network. In this way, the block record information in each blockchain node includes the information of all intelligent entities connected to the blockchain network. In this way, by utilizing the characteristic of regular data synchronization between blockchain nodes, unified management of intelligent entities carried by blockchain nodes can be achieved, that is, intelligent entity access and deregistration can be achieved, and user retrieval needs for intelligent entities can be met.
[0051] The following combination Figure 2 The method for publishing an intelligent agent provided in an embodiment of the present application is introduced, and the method is applied to a blockchain node, such as Figure 2 As shown, the method includes:
[0052] S201, receiving a publishing request corresponding to the intelligent agent.
[0053] The publishing request includes preset indicator information of the agent. The preset indicator information is preset based on experience. For example, the preset indicator information may include agent identification, capability type information, capability version information, capability description information, network address information, and API interface information. It should be noted that the embodiments of the present application do not specifically limit the type and quantity of the preset indicator information.
[0054] Specifically, the intelligent agent can be an open source platform with large model capabilities developed by the manufacturer, or a terminal with small model capabilities and model training and model reasoning capabilities. The intelligent agent can provide applications with related functions such as classification, reasoning, and prediction.
[0055] S202. Add the record information of the intelligent body to the local block record information according to the preset indicator information to obtain the updated block record information.
[0056] Among them, each record information in the block record information is used to store the preset indicator information of an intelligent entity. After receiving the on-chain request, the blockchain node adds the record information of the intelligent entity to the block record information according to the preset indicator information in the on-chain request, and generates a timestamp for the record information according to the moment when the record information of the intelligent entity is written.
[0057] Specifically, the block record information includes: Figure 3 The multiple preset indicator information shown, among which, Figure 3The example shows that the preset indicator information includes agent identification, capability type information, capability version information, capability description information, interface address information, timestamp, API link information and API declaration information.
[0058] S203. Synchronize the updated block record information to the blockchain nodes in the blockchain network, so that the blockchain nodes in the blockchain network can update the locally stored block record information according to the updated block record information.
[0059] Specifically, blockchain nodes synchronize local block record information in real time through an asynchronous network to ensure that each blockchain node has the same block record information.
[0060] By adopting the above method, after the blockchain node receives the publishing request corresponding to the intelligent agent, it updates the local block record information using the preset indicator information of the intelligent agent carried in the publishing request, and then the record information of the intelligent agent is added to the local block record information to obtain the updated block record information. In this way, the intelligent agent is connected to the blockchain node. Then, the updated block record information is synchronized to the blockchain network. In this way, through the information synchronization of the blockchain nodes in the blockchain network, it can be ensured that the block record information stored in each blockchain node in the blockchain network is the same, that is, each blockchain node stores the preset indicator information of the intelligent agent released above, so that the unified management of the intelligent agent can be achieved by using the blockchain network.
[0061] It is understandable that after the above-mentioned intelligent agent is connected to the blockchain node, the user can retrieve the corresponding intelligent agent at any blockchain node. Figure 4 Introduce agent retrieval methods, such as Figure 4 As shown, after the above S203, synchronizing the updated block record information to the blockchain node in the blockchain network, the method further includes:
[0062] S401: Receive search information sent by a terminal device.
[0063] It is understandable that in a blockchain network, data can be synchronized between blockchain nodes in the blockchain network, so that the block record information stored locally by any blockchain node in the blockchain network includes the full information of the blockchain network. Therefore, a user can access any blockchain node in the blockchain network through a terminal device, access the block record information, and obtain the full information of the blockchain network.
[0064] S402, searching the block record information for a target intelligent entity that satisfies the retrieval information.
[0065] The search information is input by the user based on the actual application scenario. For example, the search information may be information on the type of intelligent agent capabilities, that is, the search information may be image recognition. After receiving the search information, the blockchain node searches the local block record information for the intelligent agent used for image recognition.
[0066] It should be noted that the embodiments of the present application do not impose any specific restrictions on the type of search information.
[0067] S403. Return the network address and application program API interface corresponding to the target agent to the terminal device, so that the terminal device can call the target agent through the network address and API interface.
[0068] Among them, the block record information includes the network address and API interface corresponding to each intelligent agent. After the blockchain node determines the target intelligent agent, the network address and API interface of the target intelligent agent can be obtained from the block record information, thereby realizing the call to the target intelligent agent.
[0069] With the above method, after receiving the access request, the blockchain node searches for the target intelligent entity that meets the search information in the local block record information according to the search information in the access request, and returns the network address and application API interface corresponding to the target intelligent entity to the terminal device, so as to facilitate the subsequent call of the target intelligent entity. Since any blockchain node in the blockchain network stores the information of all intelligent entities connected to the blockchain network, users can quickly and effectively find the target intelligent entity that meets the search information in any blockchain node, avoiding users switching to different platforms to search for intelligent entities and simplifying the user operation process.
[0070] The following combination Figure 5 Introduce the process of intelligent agents accessing the blockchain network, such as Figure 5 As shown, the method includes:
[0071] S501, the intelligent agent accesses the blockchain node.
[0072] Among them, after the manufacturer develops and designs the intelligent body, it sends a chain request to the blockchain node and sends the preset indicator information of the intelligent body to the blockchain node. After the blockchain node stores the preset indicator information in the local block record information, the intelligent body can be connected to the blockchain node.
[0073] S502: The blockchain node is connected to the blockchain network.
[0074] S503, recording the agent information in the local block record information.
[0075] S504. The blockchain node synchronizes the block record information across the entire network.
[0076] S505. The blockchain nodes in the blockchain network complete the synchronization of block record information.
[0077] Specifically, after receiving the block record information sent by other blockchain nodes, the blockchain node in the blockchain network adds the received block record information to the local block record information, thereby realizing the synchronization of the block record information.
[0078] Using the method provided in the embodiment of the present application, the agent first accesses the blockchain node, and after the blockchain node passes the authentication, the blockchain node accesses the blockchain network. Then, because the blockchain network has the characteristic of sharing data, the block record information between the blockchain nodes can be synchronized. This ensures that each blockchain node includes the information of all agents connected to the blockchain network, which facilitates the subsequent user to centrally manage the agents at any blockchain node.
[0079] Regarding the above S402, searching the block record information for a target intelligent entity that meets the retrieval information specifically includes the following two implementation methods:
[0080] In the first implementation, the terminal device can display the full amount of agent information in the block record of the blockchain node in the form of a list on the display interface, and the agent information includes agent identification, type information, version information, and function information, etc. The embodiment of the present application does not limit the type and quantity of information included in the agent information. The user can determine the required agent according to business needs and agent information, and then the terminal device sends retrieval information to the blockchain node, and the retrieval information includes the agent identification. The blockchain node responds to the agent identification input by the user and searches for the target agent corresponding to the agent identification in the block record information.
[0081] By adopting the first implementation method mentioned above, the terminal device can display a list of the full amount of intelligent agent information, so that the user can easily select the corresponding intelligent agent. After receiving the intelligent agent identifier, the blockchain node can accurately find the target intelligent agent corresponding to the intelligent agent identifier, thereby ensuring the search efficiency.
[0082] In the second implementation, the user can input search information on the terminal device, and the search information can be type information, version information, and function information. After receiving the search information, the blockchain node searches for the target intelligent agent according to the following steps:
[0083] Step 1: Search for candidate agents that meet the type information, version information, and function information based on the preset indicator information in the block record information.
[0084] Step 2: Return the candidate preset indicator information corresponding to the candidate agent to the terminal device so that the user can select the target agent according to the candidate preset indicator information, and the terminal device determines the target agent identifier corresponding to the target agent.
[0085] It should be noted that the above blockchain nodes can perform hierarchical retrieval when searching according to the search information. The user inputs the search information multiple times to continuously narrow down the number of searched intelligent entities and finally determine the target intelligent entity.
[0086] Specifically, the user first inputs the first search information in the terminal device, and then the blockchain node searches for the first set of agents that meet the first search information in the local block record information according to the type information, and feeds back the first set of agents to the terminal. For example, the first search information can be type information. Then the user can input the second search information according to the first set of agents displayed by the terminal device, and the blockchain node continues to search for the second set of agents that meet both the first search information and the second search information according to the second search information, and repeats the above steps until the terminal device detects that the user selects the target agent.
[0087] Step 3: Receive the target agent identifier sent by the terminal device.
[0088] Step 4: Search the block record information for the target agent corresponding to the target agent identifier.
[0089] In the second implementation method described above, after receiving the search information, the blockchain node can initially retrieve the candidate intelligent agent according to the type information, version information and function information in the search information, and send the candidate preset indicator information corresponding to the candidate intelligent agent to the terminal. The user can determine the required target intelligent agent according to the candidate preset indicator information according to actual needs on the display interface of the terminal. In this way, through the above-mentioned hierarchical search method, the scope of the intelligent agent selected by the user can be narrowed down according to the search information, thereby improving the search efficiency.
[0090] It should be noted that in order to ensure the security of blockchain nodes and blockchain networks, before connecting blockchain nodes to the blockchain network, when the intelligent body connects to the blockchain node, a preset authentication algorithm is used to authenticate the blockchain node and the blockchain network. When the blockchain node authentication is passed, the blockchain node is connected to the blockchain network, thereby ensuring the security of the blockchain node and the blockchain network.
[0091] In one example, the preset authentication algorithm may be an asymmetric encryption algorithm. It should be noted that the embodiment of the present application does not impose any specific restrictions on the authentication algorithm.
[0092] In addition, the blockchain network has the characteristics of elastic scalability, that is, the blockchain node can flexibly exit the blockchain network. Based on this, after the intelligent agent is deregistered, the blockchain node corresponding to the intelligent agent exits the blockchain network. In the case that the intelligent agent is deregistered from the blockchain node, the blockchain node sends a deletion request to the blockchain node in the blockchain network. The deletion request carries the intelligent agent identifier corresponding to the intelligent agent. The deletion request is used to instruct the blockchain node in the blockchain network to delete the record information corresponding to the intelligent agent identifier in the locally stored block record information; disconnect the blockchain node and the blockchain network.
[0093] After the agent is deregistered, the blockchain node can search for the agent ID corresponding to the agent in the local block record information, and then encapsulate the agent ID in the deletion request and send it to the blockchain network. In this way, other blockchain nodes in the blockchain network can delete the information corresponding to the agent stored in the local block record according to the agent ID in the deletion request. The accuracy of the information stored in the block record information is guaranteed.
[0094] Based on the above-mentioned agent access method and agent retrieval method, the embodiment of the present application provides an agent network autonomous device, such as Figure 6 As shown, the device includes an external application module, a blockchain node management module, a blockchain node entity module, a network interface module, an intelligent entity interface module and an intelligent entity module.
[0095] Among them, the intelligent agent interface module, blockchain node management module, blockchain node entity module, network interface module and intelligent agent interface module are deployed in the blockchain node server.
[0096] Specifically, the blockchain node management module is connected to the agent interface module, the network interface module, the blockchain node entity module and the external application module. The blockchain node management module is used to manage the blockchain node access to the blockchain network, communicate with the agent interface module, and respond to the agent retrieval request initiated by the user through the external application module.
[0097] The intelligent agent interface module is connected to the intelligent agent entity module and the blockchain node management module, and is used to receive the chain request corresponding to the intelligent agent and send the chain request to the blockchain node management module.
[0098] The blockchain node entity module is connected to the blockchain node management module, and is used to carry the blockchain node, store block record information, and respond to access requests forwarded by the blockchain node management module.
[0099] The intelligent agent entity module is connected to the intelligent agent interface module and accesses the blockchain node through the intelligent agent interface module. It is used to carry the intelligent agent, where the intelligent agent can be an open source open platform or a self-trained neural network model. After the intelligent agent accesses the blockchain node, the intelligent agent entity module sends the information corresponding to the intelligent agent to the blockchain node management module in the form of an uplink request, and the blockchain management module forwards the information corresponding to the intelligent agent to the blockchain node module, and the blockchain node module stores the information corresponding to the intelligent agent in the blockchain node module.
[0100] The network interface module is connected to the blockchain node management module. The network interface module is used to complete the authentication of the blockchain node and access the blockchain network under the scheduling of the blockchain node management module.
[0101] The external application module is connected to the blockchain node management module. The external application module is used to receive access requests and query information initiated by users, and provide users with an information list of all intelligent entities in the blockchain network.
[0102] In the above Figure 6 Based on the agent network autonomous device shown in FIG. 1 , the agent publishing method can be specifically implemented as follows: Figure 7 The process shown is as follows Figure 7 As shown, the above agent publishing method can be specifically implemented as follows:
[0103] S701. External application modules are connected to blockchain nodes.
[0104] S702. Access block record information through the blockchain node management module.
[0105] Among them, after the external application module is connected to the blockchain node, the user can enter a corresponding access request in the external application module, and the access request includes retrieval information. In an embodiment of the present application, the retrieval information is the above-mentioned type of information.
[0106] S703. Filter the required intelligent agents through type information.
[0107] Specifically, the blockchain node can search for an intelligent entity that meets the type information in the local block record information according to the received type information, and obtain the network address and API link of the intelligent entity.
[0108] S704, obtain the agent network address and API link.
[0109] S705, call the intelligent agent API.
[0110] Using the method provided in the embodiment of the present application, after receiving the access request sent by the external application module, the blockchain node searches for the intelligent entity that meets the search information in the local block record information according to the search information in the access request, and returns the network address and API link corresponding to the found intelligent entity to the terminal device, so as to facilitate the subsequent call of the intelligent entity. Since any blockchain node in the blockchain network stores the information of all intelligent entities connected to the blockchain network. Therefore, the user can quickly and effectively find the target intelligent entity that meets the search information in any blockchain node, avoiding the user switching different platforms to find the intelligent entity, and simplifying the user operation process.
[0111] Based on the same concept, the embodiment of the present application provides a device for intelligent release, which is applied to a blockchain node, such as Figure 8 As shown, the device comprises:
[0112] A receiving module 801 is used to receive a publishing request corresponding to an agent, wherein the publishing request includes preset indicator information of the agent;
[0113] An updating module 802, configured to add the record information of the agent to the local block record information according to the preset indicator information, so as to obtain updated block record information;
[0114] The synchronization module 803 is used to synchronize the updated block record information to the blockchain nodes in the blockchain network, so that the blockchain nodes in the blockchain network can update the locally stored block record information according to the updated block record information.
[0115] In a possible implementation, the device further includes:
[0116] The receiving module 801 is also used to receive the search information sent by the terminal device;
[0117] A search module, used to search for a target intelligent entity that meets the search information in the locally stored block record information;
[0118] The sending module is used to return the network address and application program API interface corresponding to the target agent to the terminal device, so that the terminal device can call the target agent through the network address and the API interface.
[0119] In a possible implementation, the retrieval information is an agent identifier; the search module 802 is specifically configured to:
[0120] In response to the agent identifier input by the user, the target agent corresponding to the agent identifier is searched in the block record information.
[0121] In a possible implementation, the retrieval information is type information, version information, and function information, and the search module 802 is specifically used to:
[0122] Searching for a candidate intelligent entity that meets the type information, the version information, and the function information according to the preset indicator information in the block record information;
[0123] Returning candidate preset indicator information corresponding to the candidate agent to the terminal device, so that the user can select a target agent according to the candidate preset indicator information, and the terminal device determines a target agent identifier corresponding to the target agent;
[0124] Receiving the target intelligent entity identifier sent by the terminal device;
[0125] The target intelligent entity corresponding to the target intelligent entity identifier is searched in the block record information.
[0126] In a possible implementation, the device further includes:
[0127] An authentication module, used to authenticate the blockchain node and the blockchain network using a preset authentication algorithm when the intelligent agent accesses the blockchain node;
[0128] The access module is used to connect the blockchain node to the blockchain network when the blockchain node is authenticated.
[0129] In a possible implementation, the device further includes:
[0130] A sending module, configured to send a deletion request to a blockchain node in the blockchain network when the agent is deregistered from the blockchain node, wherein the deletion request carries an agent identifier corresponding to the agent, and the deletion request is used to instruct the blockchain node in the blockchain network to delete the record information corresponding to the agent identifier in the locally stored block record information;
[0131] The disconnection module is used to disconnect the blockchain node from the blockchain network.
[0132] It should be noted that the device for accessing the file is a device corresponding to the method published by the above-mentioned intelligent agent, and all implementation methods in the above-mentioned method embodiment are applicable to the embodiment of the device and can achieve the same technical effect.
[0133] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0134] The electronic device may include a processor 901 and a memory 902 storing computer program instructions.
[0135] Specifically, the processor 901 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0136] The memory 902 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 902 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 902 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 902 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 902 is a non-volatile solid-state memory.
[0137] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0138] The processor 901 implements any one of the agent retrieval methods in the above embodiments by reading and executing computer program instructions stored in the memory 902 .
[0139] In one example, the electronic device may further include a communication interface 903 and a bus 904. Fig. 9 As shown, the processor 901, the memory 902, and the communication interface 903 are connected via a bus 904 and communicate with each other.
[0140] The communication interface 903 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0141] Bus 904 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In suitable cases, bus 904 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0142] In addition, in combination with the agent publishing method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any agent publishing method in the above embodiment is implemented.
[0143] In combination with the agent publishing method in the above-mentioned embodiments, an embodiment of the present application may provide a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes any agent publishing method as in the above-mentioned embodiments.
[0144] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0145] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0146] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0147] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0148] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for agent publishing, characterized in that: Applied to a blockchain node, the method comprises: Receiving a publishing request corresponding to an intelligent agent, wherein the publishing request includes preset indicator information of the intelligent agent; Adding the record information of the intelligent agent to the local block record information according to the preset indicator information to obtain updated block record information; The updated block record information is synchronized to the blockchain nodes in the blockchain network, so that the blockchain nodes in the blockchain network can update the locally stored block record information according to the updated block record information.
2. The method according to claim 1, characterized in that After synchronizing the updated block record information to the blockchain node in the blockchain network, the method further includes: Receiving search information sent by the terminal device; Searching the block record information for a target intelligent entity that meets the search information; The network address and application program API interface corresponding to the target agent are returned to the terminal device, so that the terminal device can call the target agent through the network address and the API interface.
3. The method according to claim 2, characterized in that The search information is an agent identifier; searching the block record information for a target agent that satisfies the search information includes: In response to the agent identifier input by the user, the target agent corresponding to the agent identifier is searched in the block record information.
4. The method according to claim 2, characterized in that: The search information includes type information, version information and function information, and the block record information includes preset indicator information corresponding to the agent; searching the block record information for a target agent that meets the search information includes: Searching for a candidate intelligent entity that meets the type information, the version information, and the function information according to the preset indicator information in the block record information; Returning candidate preset indicator information corresponding to the candidate agent to the terminal device, so that the user can select a target agent according to the candidate preset indicator information, and the terminal device determines a target agent identifier corresponding to the target agent; Receiving the target intelligent entity identifier sent by the terminal device; The target intelligent entity corresponding to the target intelligent entity identifier is searched in the block record information.
5. The method according to claim 1, characterized in that Before synchronizing the updated block record information to the blockchain node in the blockchain network, the method further includes: When the intelligent agent accesses the blockchain node, a preset authentication algorithm is used to authenticate the blockchain node and the blockchain network; When the blockchain node is authenticated, the blockchain node is connected to the blockchain network.
6. The method according to claim 1, characterized in that After synchronizing the updated block record information to the blockchain node in the blockchain network, the method further includes: When the agent is deregistered from the blockchain node, a deletion request is sent to the blockchain node in the blockchain network, wherein the deletion request carries the agent identifier corresponding to the agent, and the deletion request is used to instruct the blockchain node in the blockchain network to delete the record information corresponding to the agent identifier in the locally stored block record information; Disconnect the blockchain node from the blockchain network.
7. A device for publishing an intelligent agent, characterized in that: Applied to a blockchain node, the device comprises: A receiving module, used to receive a publishing request corresponding to an intelligent agent, wherein the publishing request includes preset indicator information of the intelligent agent; An updating module, used to add the record information of the intelligent agent to the local block record information according to the preset indicator information, so as to obtain updated block record information; A synchronization module is used to synchronize the updated block record information to the blockchain nodes in the blockchain network, so that the blockchain nodes in the blockchain network can update the locally stored block record information according to the updated block record information.
8. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the method for agent publishing as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the method for agent publishing as described in any one of claims 1-6.
10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method for agent publishing as described in any one of claims 1-6.
Citation Information
Cited By
Intelligent agent deployment method, development method, medium, electronic equipment and program product
CN120447917A