Search

CN-122018926-A - Method, device, equipment, medium and product for processing agent

CN122018926ACN 122018926 ACN122018926 ACN 122018926ACN-122018926-A

Abstract

The invention discloses an agent processing method, device, equipment, medium and product. The method comprises the steps of responding to an event of issuing an intelligent agent, determining an intelligent agent deployment mode associated with the intelligent agent, obtaining associated data of the intelligent agent, wherein the associated data at least comprises running environment information and tool configuration information of the intelligent agent, obtaining intelligent agent deployment constraint conditions of a target service system, and carrying out encapsulation processing on the associated data based on the intelligent agent deployment mode and the intelligent agent deployment constraint conditions to obtain an application installation package corresponding to the intelligent agent so as to deploy the application installation package to the target service system. The technical scheme provided by the invention realizes the effects of reducing the resource consumption and the cost, improving the adaptability between the intelligent agent and the target service system and ensuring the stability and the safety of the operation of the intelligent agent in the target service system.

Inventors

  • DONG FEIFEI
  • XU XU
  • YANG JIANFEI

Assignees

  • 杭州网易智企科技有限公司

Dates

Publication Date
20260512
Application Date
20251230

Claims (10)

  1. 1. An agent processing method, comprising: responding to an event of issuing an agent, determining an agent deployment mode associated with the agent, and acquiring associated data of the agent, wherein the associated data at least comprises running environment information and tool configuration information of the agent; acquiring an agent deployment constraint condition of a target service system, and carrying out encapsulation processing on the associated data based on the agent deployment mode and the agent deployment constraint condition to obtain an application installation package corresponding to the agent so as to deploy the application installation package to the target service system.
  2. 2. The method of claim 1, wherein the determining an agent deployment style associated with an agent in response to an event of issuing the agent comprises: Responding to an event of an intelligent agent, and displaying an information release page, wherein the information release page comprises a deployment mode editing control; and responding to a first editing operation triggering the deployment mode editing control, and determining an agent deployment mode corresponding to the first editing operation.
  3. 3. The method of claim 2, wherein defining a export edit control is further included in the information release page, and wherein prior to the exposing the information release page, the method further comprises: Determining an agent definition export mode corresponding to a second editing operation in response to triggering the second editing operation of the definition export editing control, wherein the agent definition export mode is used for representing whether to export agent definition information of the agent; Correspondingly, the associated data also comprises definition information of the agent, and the acquiring the associated data of the agent comprises the following steps: when the intelligent agent definition export mode is a common export mode, acquiring intelligent agent definition information, running environment information and tool configuration information of the intelligent agent; and when the intelligent agent defines the export mode as the non-export mode, acquiring the running environment information and the tool configuration information of the intelligent agent.
  4. 4. The method of claim 2, wherein the information release page includes an agent definition derived hint information, and wherein prior to the presenting the information release page, the method further comprises: and comparing the definition information to be exported currently of the intelligent agent with the exported definition information to determine the intelligent agent definition export prompt information.
  5. 5. The method according to claim 1, wherein the encapsulating the associated data of the agent based on the agent deployment method and the agent deployment constraint condition to obtain an application installation package corresponding to the agent includes: based on the agent deployment constraint conditions, tool configuration information in the associated data is adjusted to obtain adjusted associated data; And based on the deployment mode of the intelligent agent, packaging the adjusted associated data to obtain an application installation package corresponding to the intelligent agent.
  6. 6. The method of claim 1, wherein deploying the application installation package to the target business system comprises: And storing the application installation package into a shared library so that the target service system obtains the application installation package from the shared library, and operating the intelligent agent according to the application installation package based on the target service system.
  7. 7. The method of claim 6, wherein the running the agent in accordance with the application installation package based on the target business system comprises: And if the historical version intelligent agent runs in the target service system, task distribution is carried out on the current version intelligent agent and the historical version intelligent agent in the application installation package based on an agent engine, so that when the task processing attribute of the current version intelligent agent reaches a preset condition, the historical version intelligent agent is switched into the current version intelligent agent.
  8. 8. An agent processing device, comprising: The system comprises a data acquisition module, a data distribution module and a data distribution module, wherein the data acquisition module is used for responding to an event of an intelligent agent, determining an intelligent agent deployment mode associated with the intelligent agent and acquiring associated data of the intelligent agent, and the associated data at least comprises running environment information and tool configuration information of the intelligent agent; The data processing module is used for acquiring the intelligent agent deployment constraint condition of the target service system, and carrying out encapsulation processing on the associated data based on the intelligent agent deployment mode and the intelligent agent deployment constraint condition to obtain an application installation package corresponding to the intelligent agent so as to deploy the application installation package to the target service system.
  9. 9. An electronic device, the electronic device comprising: and a memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the agent processing method of any one of claims 1-7.
  10. 10. A computer program product comprising a computer program, which, when executed by a processor, implements the agent processing method according to any one of claims 1-7.

Description

Method, device, equipment, medium and product for processing agent Technical Field The present invention relates to the field of computer processing technologies, and in particular, to a method, an apparatus, a device, a medium, and a product for processing an agent. Background In order to ensure the safety and stability of the application of the intelligent agent, the design and debugging of the intelligent agent are generally completed in a development environment, and then the application is transferred to a production environment for formal online. Before the production environment runs the agent, deployment of the agent is required. At present, the method for deploying the agent is generally that an agent development platform which is the same as the development environment is deployed in the production environment in advance, so that after the agent is designed and debugged on the agent development platform in the development environment, the agent is migrated to another agent development platform in the production environment by exporting a static definition file of the agent. However, this repeated construction of the complete development platform of the agent not only causes resource waste and increases maintenance cost, but also easily causes the model or plug-in module on which the agent depends to be applied, and is not adapted in the production environment, resulting in poor running stability of the agent in the production environment and even the problem of incapability of running. Disclosure of Invention The invention provides an agent processing method, device, equipment, medium and product, which are used for reducing resource consumption and cost, improving the suitability between an agent and a target service system, guaranteeing the stability and safety of the operation of the agent in the target service system, and meeting the safety compliance requirement for isolating development and production environments. According to an aspect of the present invention, there is provided an agent processing method, the method comprising: responding to an event of issuing an agent, determining an agent deployment mode associated with the agent, and acquiring associated data of the agent, wherein the associated data at least comprises running environment information and tool configuration information of the agent; acquiring an agent deployment constraint condition of a target service system, and carrying out encapsulation processing on the associated data based on the agent deployment mode and the agent deployment constraint condition to obtain an application installation package corresponding to the agent so as to deploy the application installation package to the target service system. According to another aspect of the present invention, there is provided an agent processing apparatus including: The system comprises a data acquisition module, a data distribution module and a data distribution module, wherein the data acquisition module is used for responding to an event of an intelligent agent, determining an intelligent agent deployment mode associated with the intelligent agent and acquiring associated data of the intelligent agent, and the associated data at least comprises running environment information and tool configuration information of the intelligent agent; The data processing module is used for acquiring the intelligent agent deployment constraint condition of the target service system, and carrying out encapsulation processing on the associated data based on the intelligent agent deployment mode and the intelligent agent deployment constraint condition to obtain an application installation package corresponding to the intelligent agent so as to deploy the application installation package to the target service system. According to another aspect of the present invention, there is provided an electronic apparatus including: and a memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the agent processing method according to any one of the embodiments of the present invention. According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute the agent processing method according to any one of the embodiments of the present invention. According to another aspect of the invention, there is provided a computer program product comprising a computer program which, when executed by a processor, implements an agent processing method according to any of the embodiments of the invention. According to the technical scheme, the method and the device for deploying the application installation package of the intelligent agent comprise the steps of determining an intelligent agent deployment mode associated with the intelligent agent and obtaining associated