Intelligent agent-based service execution method, device, terminal, system and medium
Patent Information
- Application Number
- HK42026125889
- Authority / Receiving Office
- HK · HK
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2026-07-08
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2045-12-08
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Abstract The present application discloses an agent-based service execution method and device, a terminal, a system and a medium, and belongs to the technical field of artificial intelligence. The method comprises the following steps: based on received user input information and card configuration information issued by a card management platform, interacting with a background system through an intelligent agent to obtain a target card code package corresponding to a service required by a user from the card management platform; creating a micro-container matched with the code language type of the target card code package through the intelligent agent, wherein the micro- container is isolated from a running container of the intelligent agent; and controlling a microcontainer to load the target card code package through the intelligent agent so as to execute the business logic of the target card code package, rendering and generating a card view, and displaying the card view in a dialogue interface of the intelligent agent. According to the embodiment of the invention, the service execution stability of the agent can be improved.
Claims
1. A service execution method based on intelligent agents, characterized in that, include: Based on the received user input information and the card configuration information issued by the card management platform, the intelligent agent interacts with the back-end system to obtain the target card code package corresponding to the service required by the user from the card management platform; The agent creates a micro-container that matches the code language type of the target card code package, and the micro-container is isolated from the agent's runtime container; The agent controls the micro-container to load the target card code package, execute the business logic of the target card code package, render and generate a card view, and display it in the agent's dialog interface.
2. The method according to claim 1, characterized in that, The process of obtaining the target card code package corresponding to the user's required service from the card management platform by interacting with the backend system through an intelligent agent based on received user input information and card configuration information issued by the card management platform includes: The intelligent agent sends the user input information and the card configuration information to the backend system. The intelligent agent receives target card configuration information fed back by the backend system based on the user input information and the card configuration information. The target card configuration information is the card configuration information corresponding to the user's required service, which is obtained through inference. The intelligent agent obtains the target card code package, which is indicated by the target card configuration information, from the card management platform.
3. The method according to claim 1, characterized in that, The microcontainer includes a logic layer and a rendering layer, wherein the logic layer includes a language engine; The step of loading the target card code package into the micro-container via the intelligent agent, executing the business logic of the target card code package, rendering and generating a card view, and displaying it in the intelligent agent's dialogue interface includes: The intelligent agent controls the micro-container to load the target card code package, and starts the language engine in the logic layer that matches the code language type of the target card code package to parse the target card code package and obtain the executable code. The executed code is processed by the logic layer to execute business logic and obtain rendering data; The rendering data is transmitted from the logic layer to the rendering layer, and the rendering layer renders and generates a card view based on the rendering data and displays it.
4. The method according to claim 3, characterized in that, The process of processing the executed code through the logic layer to execute business logic and obtain rendering data includes: The executed code is processed by the logic layer, and the page to be displayed is determined according to the page route to obtain the rendering data of the page to be displayed.
5. The method according to claim 4, characterized in that, Before the executed code is processed by the logic layer and the page to be displayed is determined based on the page path, the following steps are also included: The rendering layer captures user actions and the view elements affected by those actions, and then notifies the logic layer. The step of processing the executed code through the logic layer and determining the page to be displayed based on the page route includes: The logic layer determines the page to be displayed based on the view elements that have been interacted with by the user and the page route; The rendering data of the page to be displayed, which is transmitted from the logic layer to the rendering layer, is the differential rendering data between the page to be displayed and the original page.
6. The method according to claim 1, characterized in that, Also includes: The micro-container captures exceptions during the execution of the business logic of the target card code package and generates exception information. The abnormal information is transmitted to the intelligent agent through the micro-container, and the intelligent agent performs abnormal handling on the micro-container based on the abnormal information. The exception handling includes: controlling the microcontainer to unload the target card code package, removing the microcontainer loaded with the target card code package, or generating a card view to indicate the exception.
7. The method according to claim 6, characterized in that, The target card code package includes anomaly detection code; Before capturing exceptions during the execution of the business logic of the target card code package via the micro-container and generating exception information, the method further includes: The exception recognition code in the target card code package is executed by a micro-container to identify and handle exceptions during the execution of business logic. Among them, the exceptions captured by the micro-container include exceptions that were not recognized by the exception recognition code.
8. The method according to claim 3, characterized in that, The rendering layer is used to perform one or more of the following functions: Build and render card views; Convert the style information in the rendering data transmitted from the logic layer into style information that conforms to the recognition standard of the rendering layer; Cache rendering data; Invoke the native components of the user terminal where the intelligent agent resides; Invoke the native rendering function of the user terminal; Capture user operations on the user terminal.
9. The method according to claim 3, characterized in that, The logic layer is used to perform one or more of the following functions: New rendering data is generated in real time based on changes in the card view; Execute the loading, display, and unloading of the target card code package; Execute the page route for the card corresponding to the target card code package; Detect exceptions that occur during the execution of the business logic of the target card code package; A voice engine that runs microcontainers.
10. The method according to claim 1, characterized in that, The intelligent agent includes a micro-container management unit, and the intelligent agent creates multiple micro-containers; When different microcontainers need to interact with each other to execute their respective target card code packages' business logic, the different microcontainers transmit data through the microcontainer management unit.
11. The method according to claim 1, characterized in that, The card code package includes a complex function card code package, which includes the business logic code of the framework of the complex function and component identifiers corresponding to multiple sub-functions decomposed from the complex function; The step of loading the target card code package into the micro-container via the intelligent agent, executing the business logic of the target card code package, rendering and generating a card view, and displaying it in the intelligent agent's dialogue interface includes: The intelligent agent controls the micro-container to load the complex function card code package, and during the execution of the business logic code of the composite function framework, requests the component code corresponding to the component identifier from the component management platform. The micro-container loads the component code package obtained from the request, executes the business logic in the component code package, renders and generates a card view, and displays it.
12. A service execution system based on intelligent agents, characterized in that, include: The card management platform stores card code packages uploaded by service providers and the card configuration information corresponding to the card code packages. Each card code package is used to execute a service. The user terminal is communicatively connected to the card management platform and has an application program containing an intelligent agent. The intelligent agent is configured to interact with the backend system based on received user input information and card configuration information issued by the card management platform. It retrieves the target card code package corresponding to the user's required service from the card management platform, creates a micro-container that matches the code language type of the target card code package, isolates the micro-container from the intelligent agent's runtime container, controls the micro-container to load the target card code package, executes the business logic of the target card code package, renders and generates a card view, and displays it in the intelligent agent's dialog interface. The backend system is connected to the user terminal and is configured to interact with the intelligent agent based on the received user input information and the card configuration information issued by the card management platform.
13. The system according to claim 12, characterized in that, Also includes: The service provider platform, which is connected to the user terminal, is configured to interact with the micro-container during the execution of business logic in the target card code package by the micro-container, and provide service data for generating the card view.
14. The system according to claim 12, characterized in that, The card code package includes a complex function card code package, which includes the business logic code of the framework of the complex function and component identifiers corresponding to multiple sub-functions decomposed from the complex function; The system also includes: The component management platform communicates and interacts with the user terminal, and stores component code packages uploaded by the service provider. Each component code package is used to implement a sub-function, and the component code package has a corresponding relationship with the component identifier.
15. A service execution device based on an intelligent agent, characterized in that, include: The communication module is used to interact with the back-end system through an intelligent agent based on the received user input information and the card configuration information issued by the card management platform, so as to obtain the target card code package corresponding to the service required by the user from the card management platform; The micro-container management module is used to create a micro-container that matches the code language type of the target card code package through the intelligent agent, the micro-container being isolated from the running container of the intelligent agent; and to control the micro-container to load the target card code package through the intelligent agent, so as to execute the business logic of the target card code package, render and generate a card view, and display it in the dialog interface of the intelligent agent.
16. A user terminal, characterized in that, include: Processor and memory storing computer program instructions; When the processor executes the computer program instructions, it implements the agent-based service execution method as described in any one of claims 1 to 11.
17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, implement the agent-based service execution method as described in any one of claims 1 to 11.
18. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the agent-based service execution method according to any one of claims 1 to 11.