Method and apparatus for application processing, and device and storage medium
By determining and encapsulating the atomic components and description information used to achieve target functions in the application creation platform, the target function block is formed, which solves the flexibility problem of traditional platforms in building applications without specific function blocks, and improves application processing efficiency and diversified needs.
Patent Information
- Application Number
- PCT/CN2024/094481
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-24
- Filing Date
- 2024-05-21
- Publication Date
- 2024-11-28
AI Technical Summary
The pre-encoded functional blocks provided by traditional application creation platforms in the database limit the flexibility of applications. They cannot easily build new applications without functional blocks associated with specific functions, resulting in the application scenario being restricted by the database and being unable to Flexible implementation of application processing.
By determining multiple atomic components used to implement target functions and description information for target function blocks, encapsulate them into target function blocks to provide platform calls for creation, automatic encapsulation and overall calls for specific functions, expand application creation, The platform's task processing capabilities.
It realizes that the atomic components that can realize specific functions can be automatically encapsulated as target function blocks in the application creation platform, improves processing efficiency, meets users' diversified needs, and expands the task processing capabilities of the application creation platform.
Smart Images

Figure CN2024094481_28112024_PF_FP_ABST
Abstract
Description
Method, apparatus, device, and storage medium for application processing
[0001] This application claims priority to the Chinese invention patent application entitled “Methods, devices, equipment and storage media for application processing” and application number 202310594249.9, filed on May 24, 2023. The entire contents of that application are incorporated herein by reference. Technical Field
[0002] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, apparatuses, devices, and computer-readable storage media for application processing. Background Art
[0003] With the rapid development of internet technology, a wide variety of applications have become essential tools in our daily lives. Different applications have different functions, allowing users to access specific services through specialized applications. Application creation platforms, particularly low-code platforms, support efficient application development, enabling operations such as application creation and functional adjustments.
[0004] Summary of the Invention
[0005] In a first aspect of the present disclosure, an application processing method is provided. The method includes: determining multiple atomic components for implementing a target function, the multiple atomic components being provided by an application creation platform; determining descriptive information for a target function block, the descriptive information including at least a semantic description of the target function; and encapsulating the multiple atomic components and the descriptive information into a target function block, for invocation by the application creation platform to execute the target function.
[0006] In a second aspect of the present disclosure, a device for application processing is provided. The device includes: a composition determination module configured to determine multiple atomic components for implementing a target function block, wherein the multiple atomic components are provided by an application creation platform; a description determination module configured to determine descriptive information for the target function block, wherein the descriptive information includes at least a semantic description of the target function; and an encapsulation module configured to encapsulate the multiple atomic components and the descriptive information into a target function block for invocation by the application creation platform to execute the target function.
[0007] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the electronic device to perform the method of the first aspect.
[0008] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the medium, and when the computer program is executed by a processor, the method of the first aspect is implemented.
[0009] It should be understood that the content described in this section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0011] FIG1 shows a schematic diagram of an example environment in which embodiments of the present disclosure can be implemented;
[0012] FIG2 shows a flowchart of an application processing process according to some embodiments of the present disclosure;
[0013] FIG3 is a schematic diagram showing a process of encapsulating functional blocks according to some embodiments of the present disclosure;
[0014] FIG4 shows a schematic diagram of packaging of functional blocks according to some embodiments of the present disclosure;
[0015] FIG5 shows a schematic structural block diagram of an apparatus for application processing according to some embodiments of the present disclosure; and
[0016] FIG6 illustrates a block diagram of an electronic device in which one or more embodiments of the present disclosure may be implemented. DETAILED DESCRIPTION
[0017] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, i.e., "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below.
[0019] Herein, unless explicitly stated otherwise, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
[0020] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0021] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the type, scope of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and authorization should be obtained from relevant users in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.
[0022] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to the software or hardware such as the electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.
[0023] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message may be sent to the relevant user in the form of a pop-up window, in which the prompt message may be presented in text form. Furthermore, the pop-up window may also include a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.
[0024] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0025] The application creation platform can call function blocks to perform tasks such as development, creation, and adjustment of applications. Traditionally, the application creation platform provides pre-coded function blocks in the database. During the application development process, developers rely on the function blocks currently available on the platform or encode function blocks in a customized way to build the desired application. For example, if you want to create a travel ticket purchase application, the application creation platform in the traditional solution can only call these function blocks from the database to create the travel ticket purchase application if the database contains function blocks associated with travel ticket purchase. If the database does not contain function blocks associated with travel ticket purchase, the application creation platform in the traditional solution cannot easily build such function blocks from existing function blocks in other applications or through other means. This will cause the application scenarios of the traditional solution to be restricted by the database, and it is impossible to flexibly implement application processing.
[0026] According to an embodiment of the present disclosure, an improved solution for application processing is provided. According to this solution, multiple atomic components for implementing a target function are determined, and descriptive information for the target function block is determined. The multiple atomic components and descriptive information are encapsulated into a target function block, which is then called by the application creation platform to execute the target function. In this way, during the use of the application creation platform, some atomic components that can implement specific functions can be automatically encapsulated into a target function block that can be called as a whole. This can expand the task processing capabilities of the application creation platform, improve subsequent processing efficiency, and meet the diverse needs of users.
[0027] Figure 1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. As shown in Figure 1, an application creation platform 110 can provide an application development and deployment environment. In some embodiments, the application creation platform 110 can be a low-code platform that provides a collection of tools for application development. The application creation platform 110 can support visual development of applications, allowing developers to skip the manual coding process and speed up the application development cycle and cost. The application creation platform 110 can support any appropriate platform for users to develop applications, for example, it can include a platform based on Application Platform as a Service (aPaaS).
[0028] The application creation platform 110 can run on appropriate electronic devices. The electronic devices here can be any type of device with computing capabilities, including terminal devices or server devices. The terminal device can be any type of mobile terminal, fixed terminal or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, gaming devices or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The server device can, for example, include a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. In some embodiments, the application creation platform 110 can be implemented based on cloud services.
[0029] The application creation platform 110 may be deployed locally on the user's terminal device and / or may be supported by a remote server. In some embodiments, the terminal device may run a client for the application creation platform 110, which may support user interaction with the application creation platform 110. When the application creation platform 110 runs locally on the user's terminal device, the user may directly interact with the local application creation platform 110 using the client. When the application creation platform 110 runs on a server device, the server device may, based on a communication connection with the terminal device, provide services to the client running on the terminal device.
[0030] The application creation platform 110 may be deployed with a digital assistant 120. A user 140 may interact with the digital assistant 120 via the application creation platform 110. The digital assistant 120 is used to engage in a conversation with the user 140. The client of the application creation platform 110 may present an interaction window, such as a conversation window, between the user 140 and the digital assistant 120 in the client interface. As an intelligent assistant, the digital assistant 120 has intelligent conversation and information processing capabilities. The user 140 may enter conversation messages in the conversation window, and the digital assistant 120 may provide reply messages in response to the user's conversation messages.
[0031] In the application creation platform 110, the digital assistant 120 can be called or awakened by an appropriate means (e.g., a shortcut key, a button, or voice) to present a conversation window with the user. In some embodiments, the digital assistant 120 can be included as a contact of the user in the contact list of the current user in the application creation platform 110, or included in the information flow of the chat component. By selecting the digital assistant 120, a conversation window with the digital assistant 120 can be opened. In some embodiments, the digital assistant 120 can also be started in one or more components supported by the application creation platform 110, thereby presenting a conversation window with the digital assistant 120.
[0032] The application creation platform 110 can obtain the interaction information between the user 140 and the digital assistant 120 in the conversation window (including conversation messages from the user and reply messages from the digital assistant 120). In some embodiments, the application creation platform 110 can use the model 125 to understand the user's conversation messages and determine the next operation to be performed. The application creation platform 110 can interact with the model 125 to provide model input to the model 125 and obtain corresponding model output from the model 125. The model 125 can run locally on the application creation platform 110 or on a remote server. In some embodiments, the model 125 can be a machine learning model, a deep learning model, a learning model, a neural network, etc. In some embodiments, the model 125 can be based on a language model (LM). The language model can have question-and-answer capabilities by learning from a large amount of corpus. The model 125 can also be based on other appropriate models.
[0033] Database 130 is used to store data or information required for application processing operations performed by application creation platform 110. For example, database 130 may store the various functional blocks that make up an application. Application creation platform 110 may also perform operations such as calling, adding, deleting, and updating the functional blocks in database 130. Database 130 may also store executable operations for different functional blocks. For example, when creating application 150, application creation platform 110 may call the corresponding functional blocks from database 130 to build application 150.
[0034] It should be understood that the structure and functionality of environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.
[0035] Some example embodiments of the present disclosure will be described in detail below with reference to examples in the accompanying drawings.
[0036] 2 shows a flow chart of a process 200 for application processing according to some embodiments of the present disclosure. The process 200 may be implemented at the application creation platform 110. For ease of discussion, the process 200 will be described with reference to the environment 100 of FIG.
[0037] In block 210 , the application creation platform 110 determines a plurality of atomic components for implementing a target function. The determined plurality of atomic components are provided by the application creation platform 110 .
[0038] Atomic components can also be called atomic modules, and functional blocks can also be called function points or applets. The functional block as a whole can be used to perform specific functions, and thus can be used to combine applications (APPs) to provide specific services or complete specific tasks. For example, the ticket inquiry function can be used to inquire about tickets from the departure point to the destination, the book borrowing function can be used to implement book borrowing in the library, the book search functional block can be used to implement book search in the library, and so on. Atomic components can be more granular components in the functional block. Atomic components can, for example, include pages of functional blocks, components of various operation controls in the pages, data forms, data flows, role permission configurations, application interfaces (APIs), and so on. Generally speaking, the application creation platform 110 can provide a variety of atomic components and support users (such as application developers) to operate and define various atomic components so that they can be combined to implement a function in a specific application or task.
[0039] As will be described in detail later, since multiple atomic components can be used to perform target functions as a whole, it is desirable to encapsulate these atomic components into target function blocks for application creation platform 110 to call. The triggering of the encapsulation of the target function block, or the determination of the atomic components included therein, can be implemented at various operating stages of the application creation platform 110. In some embodiments, the application creation platform 110 can disassemble the application that has been created and is accessible to the platform to encapsulate multiple atomic components that can implement specific functions defined in the application into function blocks. In some embodiments, the application creation platform 110 can also interact with the user 140 with the help of the digital assistant 120 (and also with the help of the model 125) to utilize the platform capabilities to complete the task that the user needs to perform. In such a process, the application creation platform 110 can determine multiple atomic components for performing a certain function of the task. It is understandable that in this process, the application for task execution may be created, or may not be created but temporarily used. In any case, during the interaction process, the application creation platform 110 can obtain knowledge about which atomic components can implement which function, so that it can be determined to encapsulate these atomic components into a single function block. The following describes in detail the specific implementation methods of disassembling existing applications and determining functions based on interaction.
[0040] In some embodiments, the application creation platform 110 can select one or more created target applications from the database 130. The application creation platform 110 can identify the target function block for executing the target function from the target application. Specifically, the application creation platform 110 can obtain the logical architecture information of the target application, and based on the logical architecture information, identify the target function block from the target application. The logical architecture information here can indicate the processing logic and call relationship in the target application. The application creation platform 110 can determine one or more function blocks included in the target application based on the logical architecture information. The application creation platform 110 can determine to encapsulate one, some or all of the function blocks. The function block to be encapsulated can be considered as a "target function block."
[0041] In some embodiments, the application creation platform 110 may use pre-set identification rules to identify the logical architecture information and, based on the identification results, determine the target functional block in the target application for executing the target function. In some embodiments, the application creation platform 110 may use the model 125 to identify the logical architecture information and obtain the target functional block directly from the model 125.
[0042] Regarding the method of obtaining logical architecture information, in some embodiments, the application creation platform 110 can use the model 125 to extract logical architecture information from the target application. Specifically, the application creation platform 110 can obtain the code of the target application and / or other descriptive information about the target application, and provide the code of the target application and / or other descriptive information to the model 125. In some embodiments, the application creation platform 110 can generate prompt word input for the model 125 based on the code and / or other descriptive information of the target application. The application creation platform 110 can achieve the generation of prompt word input through prompt word engineering. The generated prompt word input is provided to the model 125, so that the model 125 can determine the logical architecture information of the target application from the code and / or other descriptive information of the target application, and feed it back to the application creation platform 110.
[0043] In some embodiments, the application creation platform 110 may further extract logical architecture information from annotation information associated with the target application. The annotation information may at least describe the functionality of one or more functional blocks in the target application. In some embodiments, the annotation information may be associated with the code of the target application, for example, the annotation information may be included in the code of the target application.
[0044] Regarding annotation information, in some embodiments, if the target application is an application previously generated by application creation platform 110, and if each functional block of the target application already contains annotation information, application creation platform 110 can directly obtain the annotation information associated with the target application. If each functional block of the target application does not contain annotation information, application creation platform 110 can also use model 125 to determine the function of each functional block and then perform an annotation operation on each functional block of the target application to obtain the annotation information.
[0045] In some embodiments, part or all of the annotation information may be predefined by the developer of the target application. For example, the developer may add annotation information to one or more functional blocks of the target application during the development process, and the application creation platform 110 may obtain the annotation information of the target application when obtaining the target application.
[0046] In some embodiments, if the annotation information clearly indicates the division of each functional block in the target application and the functions it implements, the application creation platform 110 can understand the logical architecture of the target application based on the annotation information and identify which part of the target application corresponds to the functional block of the target function.
[0047] In some embodiments, if the annotation information is less understandable, the application creation platform 110 may provide the annotation information to the model 125 and instruct the model 125 to help extract the logical architecture information of the target application and / or identify the functional blocks in the target application. In some embodiments, the application creation platform 110 may generate prompt word input for the model 125 based on the annotation information and other auxiliary information, and provide the prompt word input to the model 125. The model 125 may extract the logical architecture information of the target application from the annotation information and send it to the application creation platform 110. The model 125 may also directly provide the application creation platform 110 with the results of the division of the functional blocks in the target application. Alternatively or additionally, the application creation platform 110 may also extract the logical architecture information from the annotation information through other means.
[0048] Furthermore, after identifying the target functional block from the target application, the application creation platform 110 can extract the multiple atomic components defined for the target functional block from the target application. For example, if the target application is a library application and the target function is book management, the application creation platform 110 can identify a book management functional block from the library application that can execute the book management function. The application creation platform 110 can then extract the book management pages, book management-related data forms, APIs, and the like defined for the book management functional block in the library application.
[0049] In some embodiments, as described above, the application creation platform 110 can obtain interaction information between the user 140 and the digital assistant 120 during the interaction process for the task, and determine the multiple atomic components required to perform the target function in the task based on the interaction information. The digital assistant 120 here is associated with the application creation platform 110, and the interaction information includes at least description information of each of the multiple atomic components. The description information of each of the multiple atomic components may include a semantic description of the function of the atomic component. For example, the application creation platform 110 can receive a user request to request the execution of a specific task (regardless of whether the application that performs the task already exists). The application creation platform 110 can allow the user to interact with the digital assistant 120 to clarify the various functions in the task and the atomic components described by each function during the interaction process. The description information of the atomic components can be provided in part or in whole by the user 140, and in part or in whole by the application creation platform 110 (for example, after determination with the help of the model 125) and confirmed by the user 140.
[0050] In some embodiments, the application creation platform 110 may determine multiple atomic components based on at least a portion of the interaction information (e.g., conversation information from the user 140). Exemplarily, the application creation platform 110 may receive a conversation message from the user 140 in the conversation window between the user 140 and the digital assistant 120, and determine multiple atomic components required by the user 140 based on the conversation message. For example, the application creation platform 110 may determine that a ticket booking task is to be performed in response to receiving the conversation message "Help me book a ticket from city A to city B", and that the ticket booking task at least involves a ticket query function. The application creation platform 110 may present information in the conversation window to guide the user 140 to further clarify specific tasks, functions in the tasks, and other user needs. The application creation platform 110 may determine the multiple atomic components required to implement each function through such human-computer interaction.
[0051] In some embodiments, the application creation platform 110 may also utilize the model 125 to determine multiple atomic components based on the interaction information. Specifically, the application creation platform 110 may generate prompt word input for the model based on at least a portion of the interaction information and a set of atomic components provided by the application creation platform 110. For example, the prompt word input may describe the user needs indicated by the conversation message and the set of atomic components provided by the platform. The set of atomic components provided by the application creation platform 110 may depend on the specific capabilities of the platform and may change as the platform is developed and updated. In some embodiments, the prompt word input may indicate all atomic components that the application creation platform 110 can provide, or it may be a plurality of candidate atomic components that can be used to implement the target function, selected from all atomic components by the application creation platform 110 based on the interaction information. The application creation platform 110 may generate prompt word input for the model 125 based on at least a portion of the interaction information and a set of atomic components provided by the application creation platform 110 through prompt word engineering.
[0052] Furthermore, the application creation platform 110 may provide the prompt word input to the model 125 and obtain a plurality of atomic components from the model 125. The application creation platform 110 may then determine a plurality of atomic components for implementing the target function based on the plurality of atomic components.
[0053] At block 220, the application creation platform 110 determines descriptive information for the target function block. This descriptive information includes at least a semantic description of the target function. This semantic description can be in a format understandable by the machine learning model, facilitating convenient and efficient subsequent invocation of the target function block via a natural language interface. For example, in scenarios where the application creation platform 110 utilizes a model to select function blocks, process tasks, create applications, and modify them, the semantic description of the target function enables the model to accurately understand the functionality of the module and determine whether to invoke the function block.
[0054] In some embodiments, in addition to the semantic description of the target function, the descriptive information of the target function block may also include, but is not limited to, the function identifier of the target function block (e.g., the overall name of the function block), the input parameters of the target function block, the output parameters of the target function block, and the descriptive information of each of the multiple atomic components of the target function block. This supplementary information helps to more clearly describe the target function block and facilitates accurate understanding of the target function block in subsequent calls to the natural language interface.
[0055] In some embodiments, if the annotation information of the target application includes a semantic description of the target function that can be executed by the target function block, the application creation platform 110 can directly determine the annotation information as the description information for the target function block. In some embodiments, if the annotation information of the target application does not include a semantic description of the target function that can be executed by the target function block, the application creation platform 110 can also generate the description information for the target function block based on the description information of each of the multiple atomic components of the target function block.
[0056] In some embodiments, the application creation platform 110 can generate description information for the target functional block based on the description information of each of the multiple atomic components of the target functional block using the model 125. In some embodiments, the application creation platform 110 can directly provide the description information of each of the multiple atomic components to the model 125 and obtain the description information for the target functional block output by the model 125.
[0057] In some embodiments, the application creation platform 110 can generate prompt word input for the model based on the description information of each of the multiple atomic components of the target functional block. Similarly, the application creation platform 110 can use prompt word engineering to populate the description information of each of the multiple atomic components into the input template of the model 125, thereby obtaining prompt word input that conforms to the input format of the model 125. The application creation platform 110 then provides the prompt word input to the model 125 and obtains the description information for the target functional block from the model 125.
[0058] In some embodiments, during the output of the descriptive information, the user can determine whether the generated descriptive information is accurate and meets expectations through human-computer interaction. Specifically, the application creation platform 110 can generate candidate descriptive information for the target functional block (e.g., automatically or with the aid of the model 125). The application creation platform 110 can provide the candidate descriptive information to the user 140. Based on the modifications or confirmations received from the user 140 regarding the candidate descriptive information, the application creation platform 110 can determine that the candidate descriptive information or the modified descriptive information is the descriptive information of the target functional block. Specifically, the application creation platform 110 can provide the candidate descriptive information to the user 140 by presenting the candidate descriptive information in a conversation window between the user 140 and the digital assistant 120. The application creation platform 110 can determine that the user 140 has modified the candidate descriptive information in response to receiving a conversation message from the user 140 in the conversation window indicating that the candidate descriptive information has been modified. For example, the application creation platform 110 can determine that the user has modified the candidate descriptive information in response to receiving a conversation message "Modify the description of functional block A to XX."
[0059] In some embodiments, the application creation platform 110 may further provide the session message to the model 125 and obtain a modification method for the candidate description information from the model 125. The application creation platform 110 may modify the candidate description information based on the modification method. In some embodiments, the application creation platform 110 may also directly provide the candidate description information and the session message to the model 125 and obtain the modified description information from the model 125. Alternatively or additionally, the application creation platform 110 may also directly determine the modification method corresponding to the session message based on pre-set identification rules, and then modify the candidate description information based on the modification method to determine the description information of the target functional block.
[0060] In some embodiments, the application creation platform 110 may also determine that a user modification to the candidate description information has been received in response to receiving an instruction to modify the candidate description information. For example, the application creation platform 110 may determine that a user modification to the candidate description information has been received in response to receiving a voice instruction from user 140, "Modify the description information of function block A to XX." In some embodiments, the application creation platform 110 may also determine that a user modification to the candidate description information has been received in response to receiving a selection operation from user 140 on the candidate description information in the conversation window. Selection operations include, but are not limited to, clicking, long-pressing, and sliding operations on the candidate description information.
[0061] In this way, after determining the candidate description information, the application creation platform 110 can adjust the candidate description information based on the user's modification to determine the description information of the target functional block.
[0062] As shown in FIG3 , the application creation platform 110 may determine multiple atomic components 310 for implementing a target function, including atomic components 310 - 1, 310 - 2, ..., 310 -M, where M is a positive integer greater than 1. The application creation platform 110 may determine the atomic components for implementing the target function through blocks 210 and 220 of process 200 in FIG2 , and determine description information 332 accordingly.
[0063] Referring back to FIG. 2 , in block 230 , the application creation platform 110 encapsulates the multiple atomic components and description information into a target function block for the application creation platform 110 to call to execute the target function.
[0064] In some embodiments, after the application creation platform 110 determines the descriptive information for the target function block, it may encapsulate the descriptive information and multiple atomic components in association with each other, and the encapsulated result is the target function block. The application creation platform 110 may store the target function block in a database for subsequent invocation to execute the target function. As shown in FIG3 , the application creation platform 110 may encapsulate the descriptive information 332 and multiple atomic components 310 (including atomic components 310-1, 310-2, ..., 310-M) into a target function block 330. The application creation platform 110 may store the target function block 330 in the database 130 for subsequent invocation.
[0065] FIG4 shows a schematic diagram of a target functional block 400 according to some embodiments of the present disclosure. The target functional block 400 in FIG4 may correspond to the target functional block 330 in FIG3 . The package of the target functional block 400 includes description information of the target functional block and multiple atomic components. In some embodiments, the package of the target functional block 400 may also include the code of the functional block.
[0066] The target function block 400 may be, for example, a book borrowing function block. The description information of the target function block 400 includes the function identifier 411 of the target function block, "book borrowing function", the semantic description 412 of the target function block, "helping users borrow books", the input parameter 413 of the target function block, "input is ISBN number", and the description information 414 of each of the multiple atomic components of the target function block, including description information 414-1, "description: contains information about the book", 414-2, "description: contains information about the book borrowed by the user", and 414-3, "description: performs a book borrowing operation". In some embodiments, the description information of the target function block 400 may also include the output parameters of the target function block, which may be, for example, "the borrowing status identifier of the book corresponding to the ISBN number output by the borrowing function" or "a reminder that the book cannot be borrowed".
[0067] The multiple atomic components encapsulated in the target functional block 400 may include, for example, the atomic components shown in FIG. 4 , including an API 415 - 1 , data tables 415 - 2 and 415 - 3 , and a data flow 415 - 4 .
[0068] In some embodiments, the application creation platform 110 can call a target function block stored in a database to perform a target function. Specifically, the application creation platform 110 can receive user input, which can indicate a target task to be performed. The application creation platform 110 can receive user input from a conversation window between the user and the digital assistant. The application creation platform 110 can also receive user input in other appropriate ways. In some embodiments, the user input can include multimodal input, such as text input (e.g., input in the form of natural language), voice input, image input, video input, and the like.
[0069] The application creation platform 110 can determine whether the target task includes at least the target function, and if so, trigger at least a call to the target function block to execute the target task. Regarding how the target function is determined, in some embodiments, the application creation platform 110 can use the model 125 to determine whether the target task includes at least the target function. Specifically, the application creation platform 110 can generate a prompt word input for the model 125 based at least on the description information of the target function block and user input. The application creation platform 110 can use a prompt word engineering process to populate the description information of the target function block and user input into an input template of the model 125 to generate a prompt word input for the model. The application creation platform 110 can provide the prompt word input to the model 125 to obtain an indication of whether the target task includes the target function. Alternatively or additionally, in some embodiments, the application creation platform 110 can also determine whether the target task includes at least the target function based on pre-defined identification rules.
[0070] In some embodiments, application creation platform 110 can call at least a target function block from database 130 to perform a target task. For example, if application creation platform 110 receives user input "Help me build a library management system," application creation platform 110 can determine that the target task indicated by the user input is a task for creating a library management system. Application creation platform 110 then calls at least a target function block from database 130 that can perform the target function matching the task for creating a library management system to perform the task.
[0071] According to this solution, multiple atomic components are identified for implementing a target function. These components are then used together to execute the target function within a task. Descriptive information for the target function block is then determined, and the multiple atomic components and description information are packaged into a target function block, which the application creation platform can then call to execute the target function. In this way, multiple atomic components capable of implementing a specific function can be automatically packaged into a callable target function block within the application creation platform. This expands the application creation platform's task processing capabilities, improves subsequent processing efficiency, and meets the diverse needs of users.
[0072] Figure 5 shows a schematic structural block diagram of an application processing apparatus 500 according to some embodiments of the present disclosure. Apparatus 500 may be implemented in or included in application creation platform 110. Each module / component in apparatus 500 may be implemented by hardware, software, firmware, or any combination thereof.
[0073] As shown, apparatus 500 includes a composition determination module 510 configured to determine multiple atomic components for implementing a target function, where the multiple atomic components are provided by an application creation platform. Apparatus 500 also includes a description determination module 520 configured to determine descriptive information for a target function block, where the descriptive information includes at least a semantic description of the target function. Apparatus 500 also includes an encapsulation module 530 configured to encapsulate the multiple atomic components and the descriptive information into a target function block for invocation by the application creation platform to execute the target function.
[0074] In some embodiments, the description information of the target function block further includes at least one of the following: a function identifier of the target function block, input parameters of the target function block, output parameters of the target function block, and description information of each of the multiple atomic components.
[0075] In some embodiments, the composition determination module 510 includes: an identification module configured to identify a target functional block for executing a target function from a target application; and an extraction module configured to extract multiple atomic components defined for the target functional block in the target application.
[0076] In some embodiments, the identification module is further configured to identify a target functional block from the target application based on the logical architecture information of the target application.
[0077] In some embodiments, the logical architecture information is at least partially extracted by the model from the code of the target application.
[0078] In some embodiments, the logical architecture information is extracted at least in part from annotation information associated with the target application.
[0079] In some embodiments, the composition determination module 510 includes: an interaction information acquisition module, configured to obtain interaction information between the user and the digital assistant during the interaction process for the target function, the digital assistant is associated with the application creation platform, and the interaction information includes at least descriptive information of each of the multiple atomic components; and a first determination module, configured to determine the multiple atomic components required to perform the target function based on the interaction information.
[0080] In some embodiments, the first determination module includes: a first input generation module, configured to generate a prompt word input for the model based on at least a portion of the interaction information and a set of atomic components provided by the application creation platform; a first input module, configured to provide the prompt word input to the model; and an indication acquisition module, configured to obtain indications of multiple atomic components from the model.
[0081] In some embodiments, the description determination module 520 includes: a second input generation module, configured to generate a prompt word input for the model based on the description information of each of the multiple atomic components of the target functional block; a second input module, configured to provide the prompt word input to the model; and an information acquisition module, configured to obtain description information for the target functional block from the model.
[0082] In some embodiments, the description determination module 520 includes: a candidate description information generation module, configured to generate candidate description information for the target functional block; a candidate description information providing module, configured to provide candidate description information to the user; and a description information determination module, configured to determine the description information of the target functional block based on the received user modification or confirmation of the candidate description information.
[0083] In some embodiments, the device 500 also includes: a user input receiving module, configured to receive user input, the user input indicating a target task to be performed; a target function determination module, configured to determine whether the target task includes at least a target function; and a task execution module, configured to at least trigger a call to a target function block to execute the target task if it is determined that the target task includes at least the target function.
[0084] In some embodiments, the target function determination module includes: a third input generation module, configured to generate a prompt word input for the model based on at least the descriptive information of the target function block and user input; and a third input module, configured to provide the prompt word input to the model to obtain an indication of whether the target task includes the target function.
[0085] The modules included in the device 500 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more modules can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the modules in the device 500 can be implemented at least in part by one or more hardware logic components. By way of example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0086] FIG6 shows a block diagram of an electronic device 600 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the electronic device 600 shown in FIG6 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 600 shown in FIG6 can be used to implement or partially implement the application creation platform 110 of FIG1 .
[0087] As shown in FIG6 , electronic device 600 is a general-purpose electronic device. Components of electronic device 600 may include, but are not limited to, one or more processors or processing units 610, memory 620, storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. Processing unit 610 may be a real or virtual processor and is capable of performing various processes according to programs stored in memory 620. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to enhance the parallel processing capabilities of electronic device 600.
[0088] The electronic device 600 typically includes a plurality of computer storage media. Such media can be any accessible media that can be obtained by the electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 620 can be a volatile memory (e.g., registers, cache, random access memory (RAM)), a non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 630 can be a removable or non-removable medium and can include a machine-readable medium, such as a flash drive, a disk, or any other medium that can be used to store information and / or data and can be accessed within the electronic device 600.
[0089] The electronic device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG6 , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a “floppy disk”) and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. The memory 620 may include a computer program product 625 having one or more program modules configured to perform various methods or actions of various embodiments of the present disclosure.
[0090] The communication unit 640 enables communication with other electronic devices via a communication medium. Additionally, the functions of the components of the electronic device 600 can be implemented in a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the electronic device 600 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0091] The input device 650 may be one or more input devices, such as a mouse, keyboard, or trackball. The output device 660 may be one or more output devices, such as a display, a speaker, or a printer. The electronic device 600 may also communicate with one or more external devices (not shown) through the communication unit 640 as needed, such as a storage device, a display device, or the like, with one or more devices that allow a user to interact with the electronic device 600, or with any device that allows the electronic device 600 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0092] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0093] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0094] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0095] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0096] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple implementations of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part for a module, program segment or instruction, and a part for a module, program segment or instruction comprises one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0097] While various implementations of the present disclosure have been described above, the foregoing description is intended to be illustrative, not exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is selected to best explain the principles of the implementations, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. An application processing method, comprising: Determine a plurality of atomic components for realizing a target function, wherein the plurality of atomic components are provided by an application creation platform; Determining description information for a target function block, the description information at least including a semantic description of the target function; as well as The multiple atomic components and the description information are encapsulated into the target function block, so that the application creation platform can call it to execute the target function.
2. The method according to claim 1, wherein the description information of the target functional block further includes at least one of the following: The function identifier of the target function block, The input parameters of the target function block, the output parameters of the target function block, and The description information of each of the multiple atomic components.
3. The method of claim 1 , wherein determining the plurality of atomic components comprises: identifying the target function block for performing the target function from a target application; as well as A plurality of atomic components defined for the target functional block in the target application are extracted.
4. The method of claim 3, wherein identifying the target functional block from the target application comprises: The target functional block is identified from the target application based on the logical architecture information of the target application. 5 . The method of claim 4 , wherein the logical architecture information is at least partially extracted by a model from code of the target application. 6 . The method of claim 4 , wherein the logical architecture information is extracted at least in part from annotation information associated with the target application.
7. The method of claim 1 , wherein determining the plurality of atomic components comprises: Obtaining interaction information between a user and a digital assistant during an interaction process for the target function, wherein the digital assistant is associated with the application creation platform, and the interaction information at least includes description information of each of the multiple atomic components; as well as A plurality of atomic components required for executing the target function is determined based on the interaction information.
8. The method of claim 7, wherein determining the plurality of atomic components based on the interaction information comprises: Generate a prompt word input for a model based on at least a portion of the interactive information and a set of atomic components provided by the application creation platform; providing the cue word input to the model; and An indication of the plurality of atomic components is obtained from the model.
9. The method according to claim 1, wherein determining the description information of the target functional block comprises: Generating prompt word input for a model based on the description information of each of the plurality of atomic components of the target functional block; providing the cue word input to the model; and The description information for the target functional block is obtained from the model.
10. The method according to claim 1, wherein determining the description information of the target functional block comprises: Generating candidate description information for the target functional block; Providing the candidate description information to the user; as well as Based on the modification or confirmation of the candidate description information received from the user, the description information of the target functional block is determined.
11. The method according to claim 1, further comprising: receiving user input, the user input indicating a target task to be performed; determining whether the target task at least includes the target function; as well as If it is determined that the target task at least includes the target function, at least triggering the The target function block is called to execute the target task.
12. The method according to claim 11, wherein determining whether the target task includes at least the target function comprises: generating a prompt word input for a model based at least on the description information of the target functional block and the user input; as well as The cue word input is provided to the model to obtain an indication of whether the target task includes the target function.
13. An apparatus for application processing, comprising: A composition determination module, configured to determine a plurality of atomic components for realizing a target function, wherein the plurality of atomic components are provided by an application creation platform; A description determination module, configured to determine description information for a target functional block, wherein the description information at least includes a semantic description of the target function; as well as The encapsulation module is configured to encapsulate the multiple atomic components and the description information into the target function block, so that the application creation platform can call it to execute the target function.
14. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 12 when executed by the at least one processing unit.
15. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Soft PLC configuration development method based on XML technology
CN108681444A
Cross-platform application creation method and device, server and storage medium
CN108984174A
A method and system for encapsulating industrial control industry library based on free logic definition
CN109086070A
Interactive interface generation method and device, computer equipment and storage medium
CN113691595A
System construction method and device, electronic equipment and storage medium
CN115981632A
