Multi-version management method and device, storage medium and electronic equipment
By querying the node sequence of the preset node mapping table and behavior tree, the task to be answered is executed, which solves the problem in the existing technology that multi-version data cannot be isolated according to the response effective range, realizes multi-version data isolation for the same capability, and improves Improves the flexibility and accuracy of data management.
Patent Information
- Application Number
- CN202410718803.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-30
AI Technical Summary
The existing technology cannot isolate multiple versions of data according to the response effective range, and cannot meet the need for the same capability to distinguish different effective ranges.
By querying the preset node mapping table after obtaining the task to be answered, and executing the task to be answered according to the node order of the behavior tree and the version data of the enabled status, multi-version data isolation of the same capability is achieved.
It realizes multi-version data isolation with different effective ranges for the same capability, meets the isolation requirements of different effective ranges, and improves the flexibility and accuracy of data management.
Smart Images

Figure CN118568074A
Abstract
Description
Background Art
[0002] The intelligent conversational robot provides a release management function, which supports release to the formal environment to provide formal services to users after verification in the grayscale environment. The data in the grayscale environment and the formal environment need to be isolated to avoid data contamination.
[0003] In the prior art, data of the same capability is directly marked with a version to distinguish the versions and isolated by version number. However, marking the data of the same capability with a version to distinguish the versions cannot meet the requirement of differentiating different effective ranges for the same capability and isolating multiple versions of data according to the effective range of the response.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The present disclosure provides a multi-version management method and device, a storage medium and an electronic device, which at least to a certain extent overcome the problem that the related art cannot perform multi-version data isolation according to the response effectiveness range.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] According to one aspect of the present disclosure, a multi-version management method is provided, comprising: after obtaining a task to be answered, querying a preset node mapping table, wherein the preset node mapping table includes mutually mapped behavior tree node information, enabled state information, and version names; according to the preset node mapping table, determining the version data that is currently enabled; and executing the task to be answered according to the node sequence of the behavior tree and the enabled state version data.
[0008] In some embodiments, according to a preset node mapping table, determining the version data that is currently in an enabled state includes: querying the node mapping table to obtain the nodes whose enabling state information is enabled in the node mapping table; and determining the version data corresponding to the nodes whose enabling state information is enabled according to the node mapping table.
[0009] In some embodiments, executing the pending task according to the node sequence of the behavior tree and the version data of the enabled state includes: traversing and executing the version data corresponding to the enabled state nodes according to the node sequence in the behavior tree to complete the execution of the pending task.
[0010] In some embodiments, the method also includes: when releasing the first target version, adding multiple corresponding records in the preset node mapping table; setting the enabled status information of the first target version to an enabled state, and setting the enabled status information of the non-first target version to a non-enabled state.
[0011] In some embodiments, the preset node mapping table further includes: internal behavior tree node information, where the internal behavior tree node information is configured with location information of each node storing version data.
[0012] In some embodiments, the method also includes: when deleting the second target version, determining the internal behavior tree node information of the second target version based on the preset node mapping table and the version name of the second target version; determining the location information of the version data stored in each node of the second target version based on the internal behavior tree node information of the second target version; and deleting the version data stored in each node of the second target version based on the location information of the version data stored in each node of the second target version.
[0013] In some embodiments, the behavior tree node information also includes common data, so that the common data can be isolated.
[0014] According to another aspect of the present disclosure, a multi-version management device is also provided, including: a preset node mapping table query module, which is used to query the preset node mapping table after obtaining the pending task, wherein the preset node mapping table includes mutually mapped behavior tree node information, activation status information and version name; a version activation status determination module, which is used to determine the version data that is currently in the activation status according to the preset node mapping table; and a pending task execution module, which is used to execute the pending task according to the node sequence of the behavior tree and the version data of the activation status.
[0015] In some embodiments, the version enablement status determination module is specifically used to: query the node mapping table to obtain nodes whose enablement status information is enablement status in the node mapping table; and determine the version data corresponding to the nodes whose enablement status information is enablement status according to the node mapping table.
[0016] In an example of the present disclosure, the above-mentioned pending task execution module is specifically used to: traverse and execute the version data corresponding to the enabled nodes according to the node sequence in the behavior tree to complete the execution of the pending task.
[0017] In some embodiments, the above-mentioned multi-version management device also includes a version-added version module, which is used to add multiple corresponding records in the preset node mapping table when releasing the first target version; set the enabled status information of the first target version to the enabled state, and set the enabled status information of the non-first target version to the non-enabled state.
[0018] In some embodiments, the preset node mapping table in the multi-version management device further includes: internal behavior tree node information, and the internal behavior tree node information is configured with location information of each node storing version data.
[0019] In some embodiments, the multi-version management device further includes a version deletion module, which is used to determine the internal behavior tree node information of the second target version according to a preset node mapping table and the version name of the second target version when deleting the second target version; determine the location information of the version data stored in each node of the second target version according to the internal behavior tree node information of the second target version; and delete the version data stored in each node of the second target version according to the location information of the version data stored in each node of the second target version.
[0020] In some embodiments, the behavior tree node information in the multi-version management device also includes public data, so that the public data can be isolated.
[0021] According to another aspect of the present disclosure, an electronic device is also provided, which includes: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the multi-version management methods described above by executing the executable instructions.
[0022] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the multi-version management method described in any one of the above is implemented.
[0023] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, any one of the multi-version management methods described above is implemented.
[0024] The multi-version management method provided in the embodiment of the present disclosure obtains the pending task, queries the preset node mapping table; determines the version data currently in the enabled state according to the preset node mapping table; and executes the pending task according to the node sequence of the behavior tree and the version data in the enabled state. The present disclosure can distinguish different effective ranges for the same capability and perform multi-version data isolation according to the effective range by combining the preset node mapping table with the node sequence of the behavior tree.
[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0027] Figure 1 A schematic diagram showing a multi-version management system structure in an embodiment of the present disclosure;
[0028] Figure 2 A flow chart of a multi-version management method in an embodiment of the present disclosure is shown;
[0029] Figure 3 A schematic diagram showing the structure of a behavior tree in an embodiment of the present disclosure is shown;
[0030] Figure 4 A flowchart showing a specific example of a multi-version management method in an embodiment of the present disclosure;
[0031] Figure 5 A flowchart showing another specific example of a multi-version management method in an embodiment of the present disclosure;
[0032] Figure 6 A flowchart showing another specific example of a multi-version management method in an embodiment of the present disclosure;
[0033] Figure 7 A schematic diagram showing data corresponding to a behavior tree node in an embodiment of the present disclosure;
[0034] Figure 8 A schematic diagram of a multi-version management device in an embodiment of the present disclosure is shown;
[0035] Fig. 9 A structural block diagram of a computer device according to an embodiment of the present disclosure is shown;
[0036] Fig.10 A schematic diagram showing a computer-readable storage medium in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0038] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0039] For ease of understanding, before introducing the embodiments of the present disclosure, several terms involved in the embodiments of the present disclosure are first explained as follows:
[0040] FAQ: Frequently-asked questions, frequently asked questions;
[0041] ID: Identity document, an abbreviation for various proprietary terms such as identity card identification number, account number, unique code, exclusive number, industrial design, country abbreviation, legal term, universal account, decoder, software company, etc.
[0042] Robot: refers to a complete set of dialogue capabilities for a dialogue scenario, with a unique ID. After the robot is integrated with other peripheral systems (such as telephone systems, work order systems, operation platforms, etc.), it constitutes a unit deliverable to customers.
[0043] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0044] Figure 1 FIG. 1 shows an exemplary application system architecture diagram to which the multi-version management method in the embodiment of the present disclosure can be applied. Figure 1 As shown, the system architecture may include a terminal device 101 , a network 102 and a server 103 .
[0045] The network 102 is a medium for providing a communication link between the terminal device 101 and the server 103, and can be a wired network or a wireless network.
[0046] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, the data exchanged through the network is represented by technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPSec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0047] The terminal device 101 can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, smart speakers, smart watches, wearable devices, augmented reality devices, virtual reality devices, etc.
[0048] Optionally, the client of the application installed in different terminal devices 101 is the same, or the client of the same type of application based on different operating systems. Based on the different terminal platforms, the specific form of the client of the application can also be different, for example, the application client can be a mobile client, a PC client, etc.
[0049] In a specific example, the terminal device 101 is a robot. After obtaining the task to be answered, the robot queries the preset node mapping table; determines the version data of the current enabled state according to the preset node mapping table; and executes the task to be answered according to the node sequence of the behavior tree and the version data of the enabled state.
[0050] The server 103 may be a server that provides various services, such as a background management server that provides support for the device operated by the user using the terminal device 101. The background management server may analyze and process the received request and other data, and feed back the processing results to the terminal device.
[0051] Optionally, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0052] Those skilled in the art will know that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration, and any number of terminal devices, networks and servers may be provided according to actual needs, and the embodiments of the present disclosure do not limit this.
[0053] Figure 2 A flow chart of a multi-version management method in an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the multi-version management method provided in the embodiment of the present disclosure includes the following steps:
[0054] S202, after obtaining the task to be responded, query the preset node mapping table, wherein the preset node mapping table includes mutually mapped behavior tree node information, activation status information and version name.
[0055] It should be noted that the above-mentioned response task can be a dialogue response. For example, the robot organizes multiple dialogue capabilities to enable it to have a comprehensive dialogue (response) capability, wherein the dialogue capability includes but is not limited to search-based dialogue, task-based dialogue, graph question and answer, heuristic dialogue, etc. The above-mentioned node mapping table can include one-to-one mapping of behavior tree node information, activation status information and version name, for example, one behavior tree node information corresponds to one activation status information and one version name.
[0056] In a specific example, the preset node mapping table (as shown in Table 1 below) includes: behavior tree node information (behavior tree node ID in Table 1), internal behavior tree node information (internal behavior tree node ID in Table 1), enabled state information (enabled state in Table 1) and version name (version in Table 1, for example, V1 is the first version, V2 is the second version), and the behavior tree node information, internal behavior tree node information, enabled state information and version name are mutually mapped, wherein the behavior tree node information includes multiple node information (for example, execution node in Table 1). Point 1), the internal behavior tree node information is configured with the location information of each node storage version data (such as "C753490D-3261-4A8B-AA26-17A3926DD302", "292854A0-1DEF-43F8-B098-B95A51F24A66", etc. in Table 1). The storage version data at any location can be indexed through the internal behavior tree node information. The enabled state information includes the enabled state and the disabled state ("1" in Table 1 represents the enabled state and "0" represents the disabled state).
[0057] Table 1: Node mapping table
[0058]
[0059]
[0060] S204: Determine the version data that is currently enabled according to the preset node mapping table.
[0061] It should be noted that the above-mentioned enabled state can be the currently executed version, for example, "1" in the node mapping table. The above-mentioned version data can be a snapshot that records each optional state of the data. Through the version data, the change history of the data can be traced, and the corresponding data snapshots can be obtained according to the different versions of the data. It helps to record and maintain the historical evolution process of the object, and is an important part of data management and database management. For example, data version control can be implemented through the book number (equivalent to the above-mentioned version name). For example, a field used to identify the data version, such as "Version", each time the data is updated, the version number is incremented to record the modification history of the data. In this way, the change history of the data can be traced through the version number field, and the corresponding data snapshots can be obtained according to the data with different version numbers.
[0062] For example, different execution nodes may be the same type of dialogue capabilities, but the corresponding configuration data is different. For example, you need to first use the retrieval knowledge base response of domain A (first step), then use graph question and answer (second step), and then use the retrieval knowledge base of domain B (third step). The first and third steps here are the same dialogue capability, but the configuration data is different. The logic here is that when the dialogue robot executes the response, it runs to the corresponding execution node according to the control node on the behavior tree. The behavior tree node ID is used to record the ownership (also called space) of the configuration data used for the response of this (execution) node.
[0063] S206, executing the pending task according to the node sequence of the behavior tree and the version data of the enabled state.
[0064] It should be noted that the above behavior tree can be a tree structure that organizes the dialogue capabilities (such as Figure 3 ). For example, a behavior tree is represented graphically as a directed tree, which consists of control nodes and execution nodes. The control node is used to control which dialogue capabilities should be used to process the user's speech, and the order in which these dialogue capabilities are used. The execution nodes correspond to specific dialogue capabilities, and they will use the configuration of the robot's specific resources (such as knowledge, entities, etc.). Different execution nodes here may be the same type of dialogue capabilities, but the corresponding configuration data is different. The control node may have a parent and at least one child, while the execution node has a parent and no children. When a node in the behavior tree is allowed to execute, if its execution has not yet ended, it will return the running status to the parent node; if it has reached the goal, it will return success; otherwise, it will return failure.
[0065] The present disclosure combines the node order of the behavior tree with the preset node mapping table to meet the requirements of distinguishing different effective scopes for the same capability (such as the same execution node 1, the same search-based dialogue) and isolating multiple versions of data according to the effective scope.
[0066] In one embodiment of the present disclosure, Figure 4 As shown, the multi-version management method provided in the embodiment of the present disclosure can determine the version data that is currently enabled through the following steps, and can accurately distinguish multiple version data:
[0067] S402, querying a node mapping table to obtain nodes in the node mapping table whose enabling status information is an enabling status;
[0068] S404: Determine, according to the node mapping table, version data corresponding to the node whose enabling status information is enabled.
[0069] In one embodiment of the present disclosure, executing the pending task according to the node sequence of the behavior tree and the version data of the enabled state includes: traversing and executing the version data corresponding to the enabled state nodes according to the node sequence in the behavior tree to complete the execution of the pending task.
[0070] For example, when the conversational robot executes a response, it first queries the mapping table of the behavior tree nodes (equivalent to the above-mentioned preset node mapping table) to obtain the list of internal space IDs (internal behavior tree node IDs) that are actually enabled (enabled state = 1). Then it executes the response according to the organization order of the behavior tree nodes. For example, when executing node 1, it obtains the configuration data of the currently enabled internal space ID (C753490D-3261-4A8B-AA26-17A3926DD302), and does not cross to other versions of the behavior tree (such as 292854A0-1DEF-43F8-B098-B95A51F24A66 in the preset node mapping table), thereby achieving version isolation.
[0071] In one embodiment of the present disclosure, Figure 5 As shown, the multi-version management method provided in the embodiment of the present disclosure can publish new version data through the following steps, and can accurately iterate the updated version information in the node mapping table:
[0072] S502, when the first target version is released, multiple corresponding records are added to the preset node mapping table;
[0073] S504: Set the activation status information of the first target version to an activated state, and set the activation status information of the non-first target version to a non-activated state.
[0074] For example, when a new version (equivalent to the first target version) is released, several corresponding records are added to the mapping table (Table 2), and the test version data is copied, which is attributed to the internal behavior tree node id. For example, when a new version V2 is released, two new records C753490D-3261-4A8B-AA26-17A3926DD302 and 02CC0B5D-4C25-4C80-8DB6-41AADB7D9CF1 are added, and the enabled state of V1 is set to 0. Among them, copying data adopts the method of restoring to the same data source.
[0075] In one embodiment of the present disclosure, the preset node mapping table further includes: internal behavior tree node information, where the internal behavior tree node information is configured with location information of each node storing version data.
[0076] In one embodiment of the present disclosure, Figure 6As shown, the multi-version management method provided in the embodiment of the present disclosure can delete the execution version through the following steps, and can delete the corresponding version data in the node mapping table and the database to save storage space:
[0077] S602, when deleting the second target version, determining the internal behavior tree node information of the second target version according to the preset node mapping table and the version name of the second target version;
[0078] S604, determining location information of version data stored in each node of the second target version according to the internal behavior tree node information of the second target version;
[0079] S606: Delete the version data stored in each node of the second target version according to the location information of the version data stored in each node of the second target version.
[0080] For example, when publishing the data of the execution version (equivalent to the second target version mentioned above) that needs to be deleted, the configuration data of the corresponding version is cleaned up according to the internal space ID of the mapping table. The data corresponding to the node can come from a relational database, a search database, a document data source, etc. (such as Figure 7 Schematic diagram of data corresponding to a behavior tree node shown in FIG. 1 ). The tables in the relational database and the tables in the retrieval database have a node ID column. The document-type data source has a node ID on the corresponding directory interface, and the data belonging to the node can be filtered out according to the node ID. For example, to delete the old version V1, it is necessary to delete the dialog resource configuration data belonging to the nodes 292854A0-1DEF-43F8-B098-B95A51F24A66 and 02CC0B5D-4C25-4C80-8DB6-41AADB7D9CF2 on each database and the two rows of routing data in the mapping relationship table.
[0081] In a specific example, the behavior tree node information also includes common data, so that the common data can be isolated.
[0082] For example, for some public configuration data, such as global entity data (universal knowledge such as whether Apple represents a mobile phone or fruit), the corresponding data is not obtained only when the behavior tree node is executed, and it can be isolated through the internal space ID. The execution node of the behavior tree is less than or equal to the granularity of the single conversation capability of the conversation robot. This mapping isolation technology supports version switching and data isolation of configuration data of different modules and different behavior tree nodes, which is more flexible. Moreover, the architecture changes for the current response are relatively small. Only the mapping table of the currently enabled behavior tree node is queried at the beginning of the response. When parsing the behavior tree, the behavior tree node ID can be replaced, which is low in cost.
[0083] The present disclosure also supports multi-version data isolation of intelligent question-answering robots in non-behavior tree form, and the execution nodes correspond to different dialogue capability modules.
[0084] The present invention discloses a method for isolating multiple versions of data of multiple response modules of an intelligent conversational robot constructed with a behavior tree of complex response capabilities. For example, the version isolation of an intelligent conversational robot that flexibly organizes multiple response capabilities and the flexible switching between multiple versions: first use FAQ responses normally, then after multiple rounds of responses to tasks, use another type of FAQ response as a backup, where the response data of the two FAQs can use different versions. The changes to the existing system are relatively minor, and the configuration data of different versions of conversational robots can be flexibly switched, thereby improving the service quality of the robot.
[0085] Based on the same inventive concept, the embodiment of the present disclosure also provides a multi-version management device, as described in the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0086] Figure 8 A schematic diagram of a multi-version management device in an embodiment of the present disclosure is shown. Figure 8 As shown, the device includes: a preset node mapping table query module 81, a version activation status determination module 82, a pending task execution module 83, a version adding module 84 and a version deleting module 85.
[0087] The preset node mapping table query module 81 is used to query the preset node mapping table after obtaining the task to be answered, wherein the preset node mapping table includes the behavior tree node information, activation status information and version name mapped to each other;
[0088] A version activation state determination module 82 is used to determine the version data currently in the activation state according to a preset node mapping table;
[0089] The pending task execution module 83 is used to execute the pending task according to the node sequence of the behavior tree and the version data of the enabled state.
[0090] In an example of the present disclosure, the version enablement status determination module 82 is specifically used to: query the node mapping table to obtain the nodes whose enablement status information is enabled in the node mapping table; and determine the version data corresponding to the nodes whose enablement status information is enabled according to the node mapping table.
[0091] In an example of the present disclosure, the above-mentioned pending task execution module 83 is specifically used to: traverse and execute the version data corresponding to the enabled nodes according to the node sequence in the behavior tree to complete the execution of the pending task.
[0092] In one example of the present disclosure, the multi-version management device also includes a version adding module 84, which is used to add multiple corresponding records in the preset node mapping table when releasing the first target version; set the enabled status information of the first target version to the enabled state, and set the enabled status information of the non-first target version to the non-enabled state.
[0093] In an example of the present disclosure, the preset node mapping table in the multi-version management device further includes: internal behavior tree node information, and the internal behavior tree node information is configured with location information of each node storing version data.
[0094] In an example of the present disclosure, the multi-version management device further includes a version deletion module 85, which is used to determine the internal behavior tree node information of the second target version according to the preset node mapping table and the version name of the second target version when deleting the second target version;
[0095] Determine location information of version data stored in each node of the second target version according to the internal behavior tree node information of the second target version;
[0096] According to the location information of the version data stored in each node of the second target version, the version data stored in each node of the second target version is deleted.
[0097] In an example of the present disclosure, the behavior tree node information in the multi-version management device also includes public data, so that the public data can be isolated.
[0098] It should be noted that the above-mentioned preset node mapping table query module 81, version activation status determination module 82 and pending task execution module 83 correspond to S202 to S206 in the method embodiment, and the examples and application scenarios implemented by the above-mentioned modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned method embodiment. It should be noted that the above-mentioned modules as part of the device can be executed in a computer system such as a set of computer executable instructions.
[0099] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0100] Refer to the following Fig. 9 The electronic device 900 according to this embodiment of the present disclosure is described. Fig. 9The electronic device 900 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0101] like Fig. 9 As shown, the electronic device 900 is in the form of a general computing device. The components of the electronic device 900 may include but are not limited to: at least one processing unit 910, at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).
[0102] The storage unit stores program codes, which can be executed by the processing unit 910, so that the processing unit 910 executes the steps described in the above “Exemplary Method” section of this specification according to various exemplary embodiments of the present disclosure.
[0103] For example, the processing unit 910 may execute the following steps of the above method embodiment: after obtaining the task to be responded to, query the preset node mapping table, wherein the preset node mapping table includes mutually mapped behavior tree node information, enabled status information, and version names; according to the preset node mapping table, determine the version data that is currently enabled; according to the node sequence of the preset behavior tree and the enabled status version data, execute the task to be responded to.
[0104] For example, the processing unit 910 can execute the following steps of the above method embodiment: query the node mapping table to obtain the nodes whose enabling status information is enabled in the node mapping table; and determine the version data corresponding to the nodes whose enabling status information is enabled according to the node mapping table.
[0105] For example, the processing unit 910 may execute the following steps of the above method embodiment: according to the node sequence in the preset behavior tree, traverse and execute the version data corresponding to the enabled nodes to complete the execution of the pending task.
[0106] For example, the processing unit 910 can execute the following steps of the above method embodiment: when releasing the first target version, adding multiple corresponding records in the preset node mapping table; setting the enabled status information of the first target version to an enabled state, and setting the enabled status information of the non-first target version to a non-enabled state.
[0107] For example, the processing unit 910 can execute the following steps of the above method embodiment: when deleting the second target version, determine the internal behavior tree node information of the second target version according to the preset node mapping table and the version name of the second target version; determine the location information of the version data stored in each node of the second target version according to the internal behavior tree node information of the second target version; and delete the version data stored in each node of the second target version according to the location information of the version data stored in each node of the second target version.
[0108] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and / or a cache storage unit 9202 , and may further include a read-only storage unit (ROM) 9203 .
[0109] The storage unit 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0110] Bus 930 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0111] The electronic device 900 may also communicate with one or more external devices 940 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 900, and / or may communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 950. Furthermore, the electronic device 900 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 via a bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0112] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0113] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer program product, which includes: a computer program, which implements the above-mentioned multi-version management method when executed by a processor.
[0114] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, which may be a readable signal medium or a readable storage medium. Fig.10 A schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure is shown. Fig.10 As shown, a program product capable of implementing the above method of the present disclosure is stored on the computer-readable storage medium 1000. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0115] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the method implements the following steps: after obtaining the task to be responded to, query the preset node mapping table, wherein the preset node mapping table includes mutually mapped behavior tree node information, enabled state information and version name; according to the preset node mapping table, determine the version data that is currently enabled; according to the node sequence of the preset behavior tree and the enabled state version data, execute the task to be responded to.
[0116] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the method implements the following steps: query the node mapping table to obtain the nodes whose enabling status information is enabled in the node mapping table; determine the version data corresponding to the nodes whose enabling status information is enabled according to the node mapping table.
[0117] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the following steps are implemented: according to the node sequence in the preset behavior tree, the version data corresponding to the enabled nodes are traversed and executed to complete the execution of the pending task.
[0118] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the method implements the following steps: when releasing the first target version, adding multiple corresponding records to the preset node mapping table; setting the enabled status information of the first target version to an enabled state, and setting the enabled status information of the non-first target version to a non-enabled state.
[0119] For example, the program product in the embodiment of the present disclosure implements the following method when executed by a processor: when deleting the second target version, determining the internal behavior tree node information of the second target version according to the preset node mapping table and the version name of the second target version; determining the location information of the version data stored in each node of the second target version according to the internal behavior tree node information of the second target version; and deleting the version data stored in each node of the second target version according to the location information of the version data stored in each node of the second target version.
[0120] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0121] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0122] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0123] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0124] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0125] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0126] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0127] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A multi-version management method, characterized in that: include: After obtaining the task to be answered, query the preset node mapping table, wherein the preset node mapping table includes the mutually mapped behavior tree node information, activation status information and version name; According to the preset node mapping table, determine the version data that is currently enabled; The pending task is executed according to the node sequence of the behavior tree and the version data of the enabled state.
2. The multi-version management method according to claim 1, characterized in that: The determining, according to the preset node mapping table, the version data currently in the enabled state comprises: Query the node mapping table to obtain nodes in the node mapping table whose enabling status information is an enabling status; According to the node mapping table, version data corresponding to the node whose enabling status information is enabled is determined.
3. The multi-version management method according to claim 1, characterized in that: The executing the pending task according to the node sequence of the behavior tree and the version data of the enabled state includes: According to the order of nodes in the behavior tree, the version data corresponding to the enabled nodes are traversed and executed to complete the execution of the pending task.
4. The multi-version management method according to claim 1, characterized in that: The method further comprises: When the first target version is released, a plurality of corresponding records are added to the preset node mapping table; The activation state information of the first target version is set to an activated state, and the activation state information of the non-first target version is set to a non-activated state.
5. The multi-version management method according to claim 1, characterized in that: The preset node mapping table also includes: internal behavior tree node information, and the internal behavior tree node information is configured with location information of each node storing version data.
6. The multi-version management method according to claim 2, characterized in that: The method further comprises: When deleting the second target version, determining the internal behavior tree node information of the second target version according to the preset node mapping table and the version name of the second target version; Determining location information of version data stored in each node of the second target version according to the internal behavior tree node information of the second target version; According to the location information of the version data stored in each node of the second target version, the version data stored in each node of the second target version is deleted.
7. The multi-version management method according to any one of claims 1 to 6, characterized in that: The behavior tree node information also includes common data, so that the common data can be isolated.
8. A multi-version management device, characterized in that: include: A preset node mapping table query module is used to query a preset node mapping table after obtaining the task to be answered, wherein the preset node mapping table includes mutually mapped behavior tree node information, activation status information and version name; A version activation state determination module, used to determine the version data that is currently in an activation state according to the preset node mapping table; The waiting-for-response task execution module is used to execute the waiting-for-response task according to the node sequence of the behavior tree and the version data of the enabled state.
9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the multi-version management method according to any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the multi-version management method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the multi-version management method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Dialogue method and device based on behavior tree, electronic equipment, and storage medium
CN113987107A
Verification method and device of intelligent response tree, equipment and storage medium
CN114880210A
Node publishing method and device and storage medium
CN116450199A
Switching versions of software in a system background
EP1160666A2
