Method, device and equipment for adjusting configuration of intelligent agent, and storage medium

By acquiring the file processing results of the intelligent agent and collecting configuration adjustment information from user feedback, the intelligent agent configuration is dynamically optimized, solving the problem of fixed and unadjustable traditional intelligent agent configurations and achieving more efficient and accurate file processing.

CN122195531APending Publication Date: 2026-06-12BEIJING QIHOOD TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING QIHOOD TECHNOLOGY CO LTD
Filing Date
2026-04-03
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

Traditional intelligent agent configuration methods are fixed and cannot be dynamically adjusted, resulting in poor adaptability in complex and ever-changing file processing scenarios. It is difficult to flexibly adjust according to the characteristics of different types of files and user feedback, which affects the efficiency and accuracy of file processing.

Method used

By acquiring the results of file processing tasks performed by the intelligent agent, sending them to the target device, and collecting configuration adjustment information from user feedback, the current configuration file is dynamically adjusted based on the feedback information. This establishes a closed-loop feedback mechanism between the server and the target device, standardizes the adjustment process, and achieves dynamic optimization of the configuration.

🎯Benefits of technology

It improves the efficiency and accuracy of document processing tasks, enhances the adaptability of intelligent agents to complex scenarios, and reduces manual configuration costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122195531A_ABST
    Figure CN122195531A_ABST
Patent Text Reader

Abstract

The application discloses an agent configuration adjustment method and device, equipment and a storage medium, and relates to the technical field of agent control, and comprises the following steps: obtaining a file processing result, wherein the file processing result is obtained by an agent deployed on a server based on a current configuration file and performing a file processing task; sending the file processing result to a target device and obtaining configuration adjustment information fed back by the target device based on the file processing result; and adjusting the current configuration file based on the configuration adjustment information. Through the establishment of a closed-loop feedback mechanism between the server and the target device, dynamic optimization of the agent configuration is realized, the execution efficiency and accuracy of the file processing task are effectively improved, the adaptability of the agent to complex scenes is enhanced, and the artificial configuration cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent agent control technology, and in particular to intelligent agent configuration adjustment methods, devices, equipment and storage media. Background Technology

[0002] With the widespread application of intelligent agent technology in file processing scenarios, intelligent agents typically perform tasks such as file retrieval and data processing based on preset configuration files. Traditional intelligent agent configuration methods are mostly fixed presets, making it impossible to dynamically adjust configuration parameters based on actual processing results and user feedback during file processing. This results in poor adaptability of intelligent agents when facing complex and ever-changing file processing scenarios, making it difficult to flexibly adjust according to the characteristics of different file types, users' personalized processing habits, and real-time anomalies. This not only reduces the efficiency and accuracy of file processing—for example, when processing documents with complex formats, fixed preset parameters may lead to formatting errors and omissions in key information extraction—but also fails to meet the constantly changing needs of users in actual operation, requiring users to manually intervene and adjust the configuration, increasing operational complexity and time costs. Summary of the Invention

[0003] The main objective of this application is to provide a method, apparatus, device, and storage medium for adjusting the configuration of intelligent agents, aiming to solve the technical problem that the configuration of traditional intelligent agents is fixed and cannot be dynamically adjusted.

[0004] To achieve the above objectives, this application proposes a method for configuring and adjusting an intelligent agent. This method is applied to a server and includes the following steps: Obtain the file processing result, wherein the file processing result is obtained by an agent deployed on the server executing a file processing task based on the current configuration file; The file processing result is sent to the target device, and the configuration adjustment information fed back by the target device based on the file processing result is obtained; The current configuration file is adjusted based on the configuration adjustment information.

[0005] In one embodiment, the step of adjusting the current configuration file based on the configuration adjustment information includes: The configuration adjustment information is parsed to obtain the content to be adjusted and the type of adjustment. The current configuration file is adjusted according to the content to be adjusted and the type to be adjusted.

[0006] In one embodiment, the step of adjusting the current configuration file according to the content to be adjusted and the type to be adjusted includes: The adjustment parameters are determined based on the content to be adjusted. Based on the type to be adjusted, locate the corresponding configuration node in the current configuration file. The configuration node is the specific location in the current configuration file that carries a single or a group of associated configuration parameters. The configuration node is updated according to the adjustment parameters to obtain the target configuration file.

[0007] In one embodiment, the step of updating the configuration node according to the adjustment parameters to obtain the target configuration file includes: The configuration node is updated according to the adjustment parameters to generate a temporary configuration file; The validity of the temporary configuration file is validated, and the validation result is obtained. If the verification result is successful, the temporary configuration file will be determined as the target configuration file.

[0008] In one embodiment, the step of locating the corresponding configuration node in the current configuration file based on the type to be adjusted includes: When the type to be adjusted is parameter modification, locate the position of the parameter to be adjusted in the current configuration file and use the position of the parameter to be adjusted as the corresponding configuration node in the current configuration file; When the type to be adjusted is parameter addition, determine the configuration level to which the new parameter belongs; Based on the configuration hierarchy, a new parameter node is determined in the current configuration file, and the new parameter node is used as the corresponding configuration node in the current configuration file.

[0009] In one embodiment, the step of updating the configuration node according to the adjustment parameters to obtain the target configuration file includes: Retrieve preset configuration rewriting rules, which are used to limit the adjustable range of configuration parameters, rewriting format, and parameter association relationships; The configuration node is updated according to the preset configuration rewrite rules and the adjustment parameters to obtain the target configuration file.

[0010] In one embodiment, the step of adjusting the current configuration file based on the configuration adjustment information includes: During the process of adjusting the current configuration file based on the configuration adjustment information, it is verified whether the configuration adjustment information conflicts with the parameters in the current configuration file; When the configuration adjustment information conflicts with the parameters in the current configuration file, an adjustment suggestion is generated based on the conflict location, and the adjustment suggestion is sent to the target device; Upon receiving confirmation information from the target device based on the adjustment suggestion, the configuration adjustment information is updated according to the adjustment suggestion, and the current configuration file is adjusted using the updated configuration adjustment information.

[0011] In one embodiment, before the step of obtaining the file processing result, the method further includes: Receive initial configuration parameters sent by the target device, classify the initial configuration parameters, and obtain classified initial configuration parameters; Retrieve the preset configuration template of the intelligent agent, fill the preset configuration template with the classified initial configuration parameters, and obtain the filled configuration template; The format of the populated configuration template is validated, and the initial configuration file is generated after the format validation passes. The initial configuration file is sent to the corresponding intelligent agent as the current configuration file, and the intelligent agent is controlled to execute file processing tasks based on the current configuration file.

[0012] In one embodiment, before the step of adjusting the current configuration file based on the configuration adjustment information, the method further includes: Determine the current version of the current configuration file; Based on the current version, the current configuration file is stored in the historical configuration file library, which stores configuration files from different historical periods in order of version number.

[0013] In one embodiment, the method further includes: Obtain the version rollback command sent by the target device; According to the version rollback instruction, the corresponding rollback configuration file is matched and determined from the historical configuration file library; The rollback configuration file is sent to the agent as the new current configuration file, and the agent is controlled to re-execute the file processing task based on the new current configuration file to obtain the file processing result.

[0014] In one embodiment, the step of obtaining configuration adjustment information fed back by the target device based on the file processing result includes: Obtain initial adjustment information from the target device based on the file processing results; The adjustment information is deduplicated and invalid content is removed to obtain valid adjustment information; The effective adjustment information is classified according to the feedback type to obtain multiple categories of effective adjustment information; Retrieve configuration-related adjustment information from multiple valid adjustment information categories to obtain configuration adjustment information.

[0015] In one embodiment, after the step of adjusting the current configuration file based on the configuration adjustment information, the method further includes: The target configuration file is obtained based on the adjustment results; The target configuration file is sent to the agent as the new current configuration file, and the agent is controlled to re-execute the file processing task based on the new current configuration file to obtain the file processing result.

[0016] Furthermore, to achieve the above objectives, this application also proposes a configuration adjustment device for an intelligent agent, the configuration adjustment device comprising: The acquisition module is used to acquire the file processing result, wherein the file processing result is obtained by an agent deployed on the server executing a file processing task based on the current configuration file; The sending module is used to send the file processing result to the target device and obtain the configuration adjustment information fed back by the target device based on the file processing result; The adjustment module is used to adjust the current configuration file based on the configuration adjustment information.

[0017] In one embodiment, the adjustment module is further configured to parse the configuration adjustment information to obtain the content to be adjusted and the type to be adjusted; and to adjust the current configuration file according to the content to be adjusted and the type to be adjusted.

[0018] In one embodiment, the adjustment module is further configured to determine adjustment parameters based on the content to be adjusted; locate the corresponding configuration node in the current configuration file according to the type to be adjusted, wherein the configuration node is a specific location in the current configuration file that carries a single or a group of associated configuration parameters; and update the configuration node according to the adjustment parameters to obtain the target configuration file.

[0019] In one embodiment, the adjustment module is further configured to update the configuration node according to the adjustment parameters to generate a temporary configuration file; perform validity verification on the temporary configuration file to obtain a verification result; and if the verification result is successful, determine the temporary configuration file as the target configuration file.

[0020] In one embodiment, the adjustment module is further configured to: locate the position of the parameter to be adjusted in the current configuration file when the type to be adjusted is parameter modification, and use the position of the parameter to be adjusted as the corresponding configuration node in the current configuration file; determine the configuration level to which the new parameter belongs when the type to be adjusted is parameter addition; determine the new parameter node in the current configuration file based on the configuration level, and use the new parameter node as the corresponding configuration node in the current configuration file.

[0021] Furthermore, to achieve the above objectives, this application also proposes a configuration adjustment device for an intelligent agent, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the configuration adjustment method for the intelligent agent as described above.

[0022] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the configuration adjustment method for the intelligent agent as described above.

[0023] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the configuration adjustment method for the intelligent agent as described above.

[0024] One or more technical solutions proposed in this application have at least the following technical effects: This application achieves closed-loop dynamic optimization of the agent's configuration by acquiring the results of file processing tasks performed by the intelligent agent, sending the results to the target device, and collecting configuration adjustment information from user feedback. Based on this feedback, the current configuration file is dynamically adjusted. By establishing a closed-loop feedback mechanism between the server and the target device, dynamic optimization of the agent's configuration is achieved, effectively improving the execution efficiency and accuracy of file processing tasks, enhancing the agent's adaptability to complex scenarios, and reducing manual configuration costs. Compared to traditional fixed configuration methods, this solution can precisely adjust configuration parameters according to actual processing results and user needs, improving the adaptability of configuration to processing tasks. Attached Figure Description

[0025] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0026] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 A flowchart illustrating the configuration adjustment method for the intelligent agent in this application (Example 1). Figure 2 This is a flowchart illustrating the second embodiment of the method for configuring and adjusting the intelligent agent in this application. Figure 3A flowchart illustrating the configuration adjustment method for the intelligent agent in this application, provided in Embodiment 3; Figure 4 This is a schematic diagram of the module structure of the configuration adjustment device for the intelligent agent in an embodiment of this application; Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the configuration adjustment method of the intelligent agent in the embodiments of this application.

[0028] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0029] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0030] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0031] The main solution of this application embodiment is: to obtain the file processing result, wherein the file processing result is obtained by an agent deployed on the server performing a file processing task based on the current configuration file; to send the file processing result to the target device and obtain the configuration adjustment information fed back by the target device based on the file processing result; and to adjust the current configuration file based on the configuration adjustment information.

[0032] Because the configuration of intelligent agents in existing technologies is based on pre-set configuration files, on the one hand, if the configuration file does not match the actual file processing requirements, it can easily lead to problems such as file call failure, low processing efficiency, and processing results that do not meet expectations; on the other hand, the configuration adjustment process lacks a standardized process, and parameter modification is highly arbitrary, which can easily lead to configuration conflicts, parameter anomalies, and other situations, affecting the stable operation of the intelligent agent.

[0033] This application provides a solution that combines file processing result feedback with user adjustment needs to achieve closed-loop dynamic optimization of configuration, standardize adjustment processes, establish version management, and improve the adaptability and stability of intelligent agents.

[0034] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or server capable of performing the above functions. The following description uses a server as an example to illustrate this embodiment and the subsequent embodiments. All actions involving the acquisition of signals, information, or data in this application are performed in accordance with the relevant data protection regulations of the country where the application is located and with authorization from the owner of the corresponding device.

[0035] Based on this, embodiments of this application provide a method for configuring and adjusting an intelligent agent, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the configuration adjustment method for the intelligent agent in this application.

[0036] In this embodiment, the configuration adjustment method of the intelligent agent includes steps S10 to S30: Step S10: Obtain the file processing result, wherein the file processing result is obtained by an agent deployed on the server executing a file processing task based on the current configuration file.

[0037] It should be noted that the server is pre-deployed with multiple intelligent agents. The intelligent agents load the current configuration file and execute file processing tasks such as file calling, data processing, and format conversion according to the configuration parameters. After the task is completed, the file processing result is generated. The server listens for and obtains the file processing result in real time. The file processing result includes information such as task execution status, processed data, completion time, and the specific processed file.

[0038] It should be noted that the current configuration file can be the initial configuration file, or it can be an adjusted configuration file based on feedback and adjustments made by the user based on the file processing results generated from the initial configuration file. The initial configuration file is a set of basic parameters that the user manually inputs or the system recommends by default through the interactive interface when running the agent for the first time, according to their own business scenarios and specific needs. These parameters cover core configuration items such as data processing rules, model running thresholds, and output format specifications, aiming to provide the agent with an initial operating framework. After the agent completes the first file processing according to the initial configuration file, the user can view the generated results, compare them with the expected goals, and make targeted modifications to the configuration parameters. For example, adjusting data filtering conditions to improve the accuracy of results, or optimizing output templates to adapt to specific display scenarios. The configuration file formed after multiple feedback and adjustments can better fit the user's actual application habits and business details, making the subsequent operation of the agent more personalized and efficient.

[0039] In one feasible implementation, before step S10, the process may include: receiving initial configuration parameters sent by the target device, classifying the initial configuration parameters to obtain classified initial configuration parameters; retrieving a preset configuration template of the intelligent agent, filling the classified initial configuration parameters into the preset configuration template to obtain a filled configuration template; performing format verification on the filled configuration template, and generating an initial configuration file after the format verification passes; and sending the initial configuration file as the current configuration file to the corresponding intelligent agent, controlling the intelligent agent to perform file processing tasks based on the current configuration file.

[0040] It should be noted that the initial configuration parameters can be some parameters that the user sets for the target device. These parameters usually include basic information required for the intelligent agent to run, such as device identifier, network configuration (IP address, port number), task type (document processing, data calculation, etc.), resource limits (memory usage limit, CPU usage threshold), output format requirements (file type, storage path), etc.

[0041] After the user inputs the initial configuration parameters, the server can categorize and organize the initial configuration parameters, dividing them into file processing-related and interaction-related categories to obtain the categorized initial configuration parameters.

[0042] In practice, the server pre-writes standard, fixed-structure configuration templates. The categorized initial configuration parameters are automatically filled into these templates by location, type, and function, forming a complete configuration structure. Depending on the type of agent (e.g., document processing agent, data computation agent), or the task scenario, the corresponding preset configuration template can be retrieved from the template library. The preset configuration template is a structured file framework (usually JSON, XML, or a custom format) containing fixed fields and placeholders for the parameters to be filled. The categorized parameters are filled into the corresponding placeholders according to field matching rules, generating a complete, filled configuration template that ensures consistency between the parameters and the template structure.

[0043] After the configuration template is filled in, it needs to undergo multi-dimensional format validation to ensure the validity and executability of the configuration file. The validation includes: Field completeness: Check for missing required parameters, such as device ID, task type, and other critical fields; Data type validation: Verify whether the data type of the parameter conforms to the template requirements; Logical rationality: Verify the logical relationship between parameters, such as "timeout time" must be greater than 0, and "resource limit" must be less than the maximum supported value of the device hardware; Formatting compliance: Ensure that the configuration file conforms to the parsing format of the target intelligent agent, such as correct JSON syntax and closed XML tags.

[0044] If the verification fails, an error message will be returned and you will be asked to re-enter or correct the parameters; if the verification passes, the filled template will be converted into an initial configuration file (such as a .conf.json file) that the agent can directly read.

[0045] In practical implementation, the initial configuration file can be sent to the corresponding intelligent agent as the current configuration file. The intelligent agent is then controlled to execute file processing tasks based on the current configuration file. After receiving the configuration file, the intelligent agent parses the parameters and initializes the running environment. It loads the corresponding processing module according to the task type, such as calling the OCR engine to process image files or starting the table analysis algorithm. It processes the file according to the path and format specified in the output configuration and returns the result after the task is completed, thus obtaining the file processing result.

[0046] Step S20: Send the file processing result to the target device and obtain the configuration adjustment information fed back by the target device based on the file processing result.

[0047] In practice, the server encapsulates the file processing results and sends them to the corresponding target device, which can then display the processing results to the user.

[0048] After viewing the processing results, users can input adjustment requests based on the displayed results. These adjustments include configuration adjustments, parameter modifications, scope definition, format optimization, content additions and deletions, priority sorting, rule adjustments, mode switching, target correction, result filtering, and layout adjustments. Users can fine-tune various settings according to actual business scenarios and personal preferences. For example, they can modify core algorithm parameters to optimize processing accuracy, redefine the scope of data processing to focus on key information, adjust the format of output results to better meet the requirements of reading or downstream systems, add or delete content as necessary to improve the effectiveness of information, and prioritize multiple tasks or results according to their importance for reasonable resource allocation.

[0049] The configuration adjustment information includes the specific content and type that needs to be adjusted.

[0050] In one feasible implementation, the step of "obtaining configuration adjustment information fed back by the target device based on the file processing result" may include: obtaining initial adjustment information fed back by the target device based on the file processing result; deduplicating and removing invalid content from the adjustment information to obtain valid adjustment information; classifying the valid adjustment information according to the feedback type to obtain multiple types of valid adjustment information; obtaining configuration-type adjustment information from the multiple types of valid adjustment information to obtain configuration adjustment information.

[0051] In this embodiment, the initial adjustment information is provided by the user based on the processing effect, such as low processing efficiency, call failure, or results not meeting expectations, after the target device displays the file processing results. The user inputs various adjustment requirements in the form of structured data (such as JSON format) or semi-structured data (such as form submission content), without requiring the user to perform format standardization processing, thus reducing the user's operation cost.

[0052] After receiving the initial adjustment information, the server first decapsulates and decrypts it to restore the original content of the information and prevent the information from being tampered with or leaked during transmission. Then, the parsed initial adjustment information is preliminarily structured and organized, and core elements such as text content, parameter adjustment suggestions, and feedback descriptions are extracted and temporarily stored in a temporary information cache. Each initial adjustment information is assigned a unique feedback identifier for traceability in subsequent deduplication, removal, and classification operations.

[0053] In practice, the server retrieves preset deduplication rules and performs deduplication verification on the initial adjustment information in the temporary cache based on the core content of the initial adjustment information. For example, if "upload timeout adjusted to 15 seconds" appears twice in the initial adjustment information, the earliest response is retained, and the remaining duplicates are deleted. After deduplication, a list of deduplicated adjustment information is generated, indicating the deduplication status and retention basis for each piece of information. The server then filters the deduplicated adjustment information one by one based on preset invalid information judgment rules, eliminating invalid content. Invalid content specifically includes feedback information unrelated to the agent's configuration, such as "processing results are displayed more clearly," which pertains to display interface adjustments and is unrelated to agent configuration parameters; information with format errors or that cannot be parsed, such as garbled characters, meaningless characters, or parameter missing adjustment suggestions; information exceeding the adjustable range of the agent's configuration, such as requiring the agent to process unauthorized file types or adjusting parameter values ​​exceeding system limits; and vague or unclear information that does not clearly define the adjustment requirements, such as descriptions without specific adjustment directions like "optimize configuration" or "improve efficiency."

[0054] After removing invalid content, the remaining adjustment information is verified a second time to confirm that each piece of information contains a clear adjustment direction and specific adjustment requirements, such as parameter adjustment values ​​and adjustment types, and meets the parsing requirements for subsequent configuration adjustments, thus obtaining valid adjustment information.

[0055] The server pre-configures standardized feedback type classification rules. Based on the agent's file processing scenarios and configuration adjustment needs, effective adjustment information is categorized into the following core feedback types: Configuration adjustment information: Adjustment needs related to agent configuration parameters, configuration nodes, and configuration rules, such as parameter modification, parameter addition, and configuration rule optimization; Functional feedback information: Needs related to agent file processing functions but not involving configuration adjustments, such as adding file processing functions or optimizing processing logic; Anomaly feedback information: Feedback on anomalies encountered during file processing without explicitly stating configuration adjustment needs, such as file processing failures or system lag; Other feedback information: Feedback content that does not belong to the above three categories, such as user suggestions and user experience feedback.

[0056] The server retrieves the categorized list of valid adjustment information, focusing on extracting the configuration adjustment information. It removes feedback information that is irrelevant to configuration adjustments, such as functional, exception, and other types of information, ensuring that all extracted information is valid content that can be used to adjust the configuration file, thus obtaining the configuration adjustment information.

[0057] Step S30: Adjust the current configuration file based on the configuration adjustment information.

[0058] It is understandable that the configuration information can be parsed to obtain the content to be adjusted and the type of adjustment, thereby determining the parameters that need to be adjusted and the location of the adjustment, and based on the above information, the current configuration file can be rewritten and adjusted.

[0059] In one feasible implementation, in order to improve adjustment efficiency and traceability, the configuration file before adjustment can be stored before adjustment. Therefore, before step S30, the method further includes: determining the current version of the current configuration file; and storing the current configuration file in a historical configuration file library based on the current version, wherein the historical configuration file library stores configuration files from different historical periods in order of version number.

[0060] The server can be pre-configured with a unified configuration file version identification rule. The version number adopts a standardized format of "major version number.minor version number.revision number". The major version number is used to identify the core architecture adjustment of the configuration file, the minor version number is used to identify the batch update of configuration parameters, and the revision number is used to identify the modification of a single parameter or a small-scale optimization. When each configuration file is generated, a version identification field is automatically embedded and bound to the core content of the configuration file. Therefore, the current version of the current configuration file can be obtained, and the version number can be verified to be consistent with the currently effective version number recorded in the server, so as to avoid subsequent storage and rollback errors due to abnormal version identification.

[0061] In practical implementation, the system locates the corresponding agent storage directory in the historical configuration file repository based on the agent identifier in the current configuration file. Then, based on the current version number, the current configuration file is stored in that directory in ascending order of version number. During storage, the file names use a standardized format of "agent identifier_version number_generation time," such as Agent_001_V1.0.0_20260401100000, facilitating quick identification and retrieval. Simultaneously, the server updates the version index in the historical configuration file repository, entering the current version number, file storage path, and version auxiliary information into the index table, forming a correspondence of "version number—file path—auxiliary information," improving the efficiency of subsequent version queries and rollbacks.

[0062] In one feasible implementation, if a user needs to restore a previous configuration file, a version rollback instruction sent by the target device can be obtained; the corresponding rollback configuration file can be matched and determined from the historical configuration file library according to the version rollback instruction; the rollback configuration file can be sent to the intelligent agent as the new current configuration file, and the intelligent agent can be controlled to re-execute the file processing task based on the new current configuration file to obtain the file processing result.

[0063] It should be noted that when an agent performs file processing tasks based on the adjusted configuration file, if problems such as configuration conflicts, abnormal parameters, processing failures, or unexpected processing results occur, the target device user can initiate a version rollback request through the configuration management interface. The target device then generates a standardized version rollback command based on this request and sends it to the server. Triggering the rollback command must meet preset permission control requirements; only authorized users can initiate rollback requests to prevent unauthorized rollback operations from causing agent malfunctions. Upon receiving the version rollback command, the server performs structured parsing to extract core command parameters, including: a unique identifier for the target agent (used to locate the agent whose configuration needs to be rolled back), the target rollback version number (used to match historical configuration files), and the rollback trigger reason. Then, it locates the storage directory corresponding to the agent in the historical configuration file library, retrieves the corresponding configuration file in that directory based on the target rollback version number, obtains the rollback configuration file, and uses this rollback configuration file as the new current configuration file, sending it to the corresponding agent via an encrypted communication link. During the distribution process, the distribution progress is monitored in real time. If any abnormalities such as distribution interruption or transmission failure occur, a retry mechanism is automatically triggered to ensure that the configuration file is completely distributed to the agent. After the agent receives the new current configuration file (i.e., the rollback configuration file), it automatically stops the currently executing file processing task, unloads the original abnormal configuration file, loads the newly distributed rollback configuration file, and completes the update of configuration parameters. After the agent restarts and completes configuration loading verification, the server sends a task re-execution command to the agent, controlling the agent to re-execute the previous file processing task based on the new current configuration file (rollback configuration file) to obtain the file processing result.

[0064] In one feasible implementation, if the current configuration file is adjusted according to the configuration adjustment information, the intelligent agent can be controlled to re-execute the file processing task according to the adjusted data. Therefore, after step S30, the method further includes: obtaining the target configuration file according to the adjustment result; sending the target configuration file as the new current configuration file to the intelligent agent; controlling the intelligent agent to re-execute the file processing task based on the new current configuration file to obtain the file processing result.

[0065] In practice, consistency checks can be performed on the adjustment results to confirm that the adjusted configuration parameters fully match the requirements in the configuration adjustment information, with no missing adjustment items or incorrect adjustment content. Simultaneously, the adjusted configuration file is checked for parameter conflicts and format errors, ensuring logical consistency and compliance with the agent's operational rules. If the adjustment result verification passes, the adjusted configuration file is designated as the target configuration file. The target agent is then located, and the target configuration file is sent to it as the new current configuration file. Upon receiving the new current configuration file, the target agent immediately stops its currently executing file processing task, loads the newly sent target configuration file, and completes the configuration update. After receiving the "configuration update successful" message from the agent, the server sends a task re-execution instruction to the agent. The agent then executes the file processing task according to the execution instruction and the new current configuration file to obtain the final file processing result.

[0066] This embodiment provides a method for adjusting the configuration of an intelligent agent. The method involves acquiring file processing results, where the file processing results are obtained by an intelligent agent deployed on a server executing file processing tasks based on a current configuration file; sending the file processing results to a target device and obtaining configuration adjustment information fed back by the target device based on the file processing results; and adjusting the current configuration file based on the configuration adjustment information. By establishing a closed-loop feedback mechanism between the server and the target device, dynamic optimization of the intelligent agent's configuration is achieved, effectively improving the execution efficiency and accuracy of file processing tasks, enhancing the intelligent agent's adaptability to complex scenarios, and reducing manual configuration costs.

[0067] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 Step S30 includes steps S301 to S302: Step S301: Parse the configuration adjustment information to obtain the content to be adjusted and the type to be adjusted.

[0068] In practice, a pre-defined parsing rule base can be used to parse the configuration adjustment information layer by layer, obtaining the adjustment object identifier, the content to be adjusted, and the adjustment type. The adjustment object identifier uniquely identifies the specific parameter or configuration node in the configuration file that needs adjustment. Examples include file processing type, timeout parameter, and file format whitelist. The adjustment type defines the type of operation to be performed on the adjustment object, including the following categories: Parameter modification: Updates the value of an existing parameter. Parameter addition: Adds one or more parameters under a specified node in the configuration file. Parameter deletion: Removes a specified parameter or configuration node from the configuration file. Configuration node replacement: Replaces an existing configuration node with a new configuration structure. The content to be adjusted is the specific value, text, list, or configuration structure corresponding to the adjustment object. Examples include a newly added list of file formats [".pdf", "".docx"], and a modified timeout value of 15.

[0069] Step S302: Adjust the current configuration file according to the content to be adjusted and the type to be adjusted.

[0070] It should be noted that after obtaining the content and type to be adjusted, the physical location of the current configuration file can be accurately located based on the content and type to be adjusted, the corresponding adjustment operation can be performed, and the process can be verified to ensure that the adjusted configuration file has the correct structure and the correct content.

[0071] In one feasible implementation, step S302 may include: determining adjustment parameters based on the content to be adjusted; locating the corresponding configuration node in the current configuration file according to the type to be adjusted, wherein the configuration node is the specific location in the current configuration file that carries a single or a group of associated configuration parameters; and updating the configuration node according to the adjustment parameters to obtain the target configuration file.

[0072] The server retrieves the content to be adjusted obtained from step S301. This content already contains core elements such as the adjustment object identifier and the parameter values / configuration content to be adjusted. The server accurately extracts the parameters directly related to the configuration adjustment, forming an initial set of adjustment parameters. Each adjustment parameter must correspond one-to-one with the adjustment type and the adjustment object. The server first retrieves the currently active configuration file, decapsulates and parses it, restoring the original structure of the configuration file. The current configuration file is organized in a tree-like hierarchical structure, with each configuration node corresponding to one or a group of associated configuration parameters. There is a clear parent-child hierarchy between nodes (e.g., "task_settings" is the parent node, "network" and "file_handling" are its child nodes, and "upload_timeout" is a child node of "network"). Each configuration node has a unique node identifier and hierarchical path for precise location. The server pre-configures node location rules corresponding to the adjustment type. Different adjustment types correspond to different location logics to ensure accurate and efficient location. Based on the adjustment type, the server matches the corresponding location rules, combines the adjustment object identifier and hierarchical path in the adjustment parameters, and searches layer by layer in the parsed current configuration file to accurately locate the corresponding configuration node. Based on the type to be adjusted obtained from step S301, and in conjunction with the adjustment parameters, the corresponding update operation is performed on the located configuration node.

[0073] In one feasible implementation, the step of "locating the corresponding configuration node in the current configuration file according to the type to be adjusted" may include: when the type to be adjusted is parameter modification, locating the position of the parameter to be adjusted in the current configuration file and taking the position of the parameter to be adjusted as the corresponding configuration node in the current configuration file; when the type to be adjusted is parameter addition, determining the configuration level to which the added parameter belongs; determining the added parameter node in the current configuration file based on the configuration level, and taking the added parameter node as the corresponding configuration node in the current configuration file.

[0074] It should be understood that a configuration node is defined as: the specific location in the current configuration file that carries a single or a group of related configuration parameters. It is organized in a tree-like hierarchical structure, with each configuration node having a unique node identifier, hierarchical path, and parameter carrying attributes. There are clear parent-child hierarchical relationships between nodes, ensuring that configuration nodes can be accurately retrieved and located. When the adjustment type is parameter modification, the core is "precise matching and direct location," that is, finding the specific node in the current configuration file where the parameter to be modified exists, ensuring that subsequent modification operations directly affect that node. For example, if the adjustment type is parameter modification, and the parameter to be modified is identified as "upload_timeout" (upload timeout), after the server loads the current configuration file, it extracts the parameter-node mapping table, matches the node path corresponding to this parameter identifier as " / system_config / network_config / upload_timeout," and searches layer by layer along this path to locate the "upload_timeout" configuration node. Confirming that the parameter identifier of this node is consistent and modifiable, the location is complete, and this node is designated as the corresponding configuration node.

[0075] When the adjustment type is adding parameters, the core principle is "hierarchical determination and precise addition." This means first clarifying the hierarchy of the new parameter within the configuration file's tree structure, then determining the specific location of the new node within that hierarchy. This ensures the new node's hierarchy is reasonable and compatible with the existing configuration structure, preventing hierarchical confusion that could render the configuration file invalid. The server retrieves the previously determined adjustment parameters, extracting the core information of the new parameter, including its identifier and type. Combining this with the current configuration file's preset configuration specifications, the server analyzes the new parameter's functional affiliation, providing a basis for determining its configuration hierarchy. For example, if the new parameter is "pdf file processing priority," with a function attribute related to file processing, it can be preliminarily determined to belong to the file processing configuration hierarchy. The server pre-stores the complete hierarchy specifications of the current configuration file, clarifying the functional positioning, parameter type, and scope of each configuration hierarchy. For instance, the root hierarchy might be "system configuration," with sub-levels like "network configuration," "file processing configuration," and "task configuration," each further subdivided into specific sub-levels. Based on the new parameter's functional attributes and parameter type, and referring to the hierarchy specifications, the server determines the new parameter's configuration hierarchy and clarifies its parent node hierarchy within the tree structure. For example, if the type to be adjusted is adding a parameter, and the parameter to be adjusted is adding "pdf file processing priority", the parameter identifier is "pdf_priority", the parameter type is integer, and the function attribute is related to file processing, after server analysis, it is determined that its configuration level is " / system_config / file_process_config / format_process", that is, the format processing level under the file processing configuration. The parent node "format_process" corresponding to this level is located, and a new node "pdf_priority" is pre-created under this parent node. The node identifier is verified to be unique, the level is correct, and it is compatible with the parent node. The location is completed, and the new node is used as the corresponding configuration node.

[0076] In one feasible implementation, the step of "updating the configuration node according to the adjustment parameters to obtain the target configuration file" may include: updating the configuration node according to the adjustment parameters to generate a temporary configuration file; validating the temporary configuration file to obtain a validation result; and if the validation result is successful, determining the temporary configuration file as the target configuration file.

[0077] It should be noted that the temporary configuration file refers to the intermediate configuration file generated after updating the located configuration node according to the adjusted parameters. It contains all the adjusted configuration content and is the core object for subsequent validity verification. Validity verification refers to a comprehensive check of the format, parameters, logic, compatibility, etc. of the temporary configuration file to confirm that it meets the requirements of the agent's operation and configuration specifications, and to avoid invalid configurations from being issued, which may cause abnormal operation of the agent. The target configuration file refers to the final configuration file that has passed the validity verification and can be officially issued to the agent as the new current configuration file. It has completeness, validity, and executability.

[0078] The server first retrieves the located configuration node and the standardized adjustment parameters determined earlier, while simultaneously performing a complete backup of the current configuration file and storing it in a temporary cache. The purpose of this backup is to allow for a quick rollback to the configuration state before the update should subsequent update operations encounter anomalies or verification failures, preventing the loss or corruption of the currently effective configuration and ensuring the continuity of the agent's operation. After all configuration node update operations are completed, the server integrates the updated complete configuration content to generate a temporary configuration file. During the generation process, the original tree-like hierarchical structure of the current configuration file is automatically preserved; only the content of the target configuration node is updated, without modifying other unrelated nodes. Simultaneously, update record information, including update time, adjustment type, adjustment parameters, and adjustment node identifier, is embedded in the header of the temporary configuration file for easy subsequent verification, traceability, and anomaly troubleshooting. The temporary configuration file uses the same format as the current configuration file.

[0079] The server pre-configures standardized temporary configuration file validity verification rules. Verification includes format verification, parameter verification, logical verification, and compatibility verification. Specifically, it verifies whether the overall format of the temporary configuration file conforms to preset specifications, whether the file encoding is correct, and whether there are any issues such as garbled characters or missing characters. It verifies whether the format of each configuration node is standardized, whether the parameter value format is consistent with the node requirements, and verifies the validity of all parameters in the temporary configuration file, including whether the parameter values ​​are within preset reasonable ranges, whether the attributes of newly added parameters are complete, and whether the parameter values ​​are consistent with the adjusted parameters. It verifies the logical consistency of all parameters in the temporary configuration file, checking for logical conflicts between parameters; it verifies the logical compatibility of updated nodes with other related nodes; it verifies the compatibility of the temporary configuration file with the agent's operating environment and existing system architecture, ensuring that the temporary configuration file can be loaded and parsed normally by the agent, and that the parameter settings meet the agent's hardware and software operating requirements; it verifies the compatibility of the temporary configuration file with historical configuration files, ensuring that the updated configuration can be smoothly integrated with the historical configuration, avoiding version conflicts.

[0080] If the verification result is successful, the temporary configuration file can be set as the target configuration file. If the verification result is unsuccessful, the configuration parameters in the temporary configuration file should be readjusted.

[0081] In one feasible implementation, the step of "updating the configuration node according to the adjustment parameters to obtain the target configuration file" may include: retrieving a preset configuration rewriting rule, the rewriting rule being used to limit the adjustable range, rewriting format, and parameter association of the configuration parameters; updating the configuration node according to the preset configuration rewriting rule and the adjustment parameters to obtain the target configuration file.

[0082] In practical implementation, preset configuration rewriting rules can be stored in a configuration rewriting rule library. This includes adjustable ranges, clearly defining the allowed numerical values, formats, and types for each adjustable parameter, and prohibiting adjustments outside these ranges. Rewriting format rules are used to standardize the update format of configuration parameters, node naming format, and parameter value input format, ensuring that the updated configuration file format is consistent and can be correctly parsed by the agent. Parameter association rules are used to clarify the association constraints between different configuration parameters, ensuring that after updating a parameter, related parameters can be synchronously adapted, avoiding logical conflicts.

[0083] Based on the type of adjustment (parameter modification, parameter addition) determined above and the located configuration node, the server searches the configuration rewrite rule library and accurately retrieves the rewrite rule corresponding to the configuration node and the type of adjustment.

[0084] If the type of adjustment to be made is parameter modification, then according to the adjustable range rules, the core value of the parameter to be adjusted is checked to see if it is within the allowed range. If it exceeds the range, the update is immediately stopped, the configuration is rolled back, and an exception is reported. Secondly, according to the rewrite format rules, the adjusted parameter is corrected to a unified format and then filled into the located existing configuration node, overwriting the original parameter value. For example, the corrected integer 15 is filled into the upload_timeout node, replacing the original value 10. Finally, according to the parameter association rules, related parameters are checked and adjusted synchronously. For example, after upload_timeout is updated to 15 seconds, the retry_count parameter is checked to see if it is within the range of 1-3 times. If it exceeds the range, it is automatically adjusted to the default value of 2 times to ensure the coordination of related parameters. If the type of adjustment to be made is parameter addition, then according to the adjustable range rules, the identifier and parameter value of the new parameter are checked to see if they meet the requirements. Secondly, according to the rewrite format rules, the format of the new node is improved, and default attributes are added according to the rules. Finally, the improved new node is added to the located parent node to ensure that the hierarchy, format, and attributes of the new node all conform to the rewrite rules and are compatible with the existing configuration structure.

[0085] Once all configuration node update operations are complete and without any issues, the server will integrate the updated complete configuration content and directly generate the target configuration file.

[0086] The configuration adjustment information is parsed to obtain the content to be adjusted and the type to be adjusted; the current configuration file is then adjusted according to the content to be adjusted and the type to be adjusted. By deeply analyzing the original adjustment information provided by the user, the specific objects and methods of adjustment are identified, and the corresponding positions in the current configuration file are accurately located for updating. This ensures that the configuration adjustment fully meets the user's needs, while avoiding configuration conflicts, parameter anomalies, and other issues, thus guaranteeing the validity and correctness of the adjusted configuration file.

[0087] Based on the first embodiment of this application, in the third embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 Step S30 includes steps S301' to S303': Step S301': During the process of adjusting the current configuration file based on the configuration adjustment information, verify whether the configuration adjustment information conflicts with the parameters in the current configuration file.

[0088] It should be noted that when the server performs a configuration node update operation, that is, updates the located configuration node based on the adjusted parameters, a conflict check is triggered simultaneously. The configuration adjustment information corresponding to the operation is first checked against the relevant parameters in the current configuration file. After the check passes, the subsequent update operation is performed to avoid conflicts occurring in a concentrated manner after batch updates, and to facilitate accurate location of the conflict.

[0089] Step S302': When there is a conflict between the configuration adjustment information and the parameters in the current configuration file, an adjustment suggestion is generated based on the conflict location, and the adjustment suggestion is sent to the target device.

[0090] If the configuration adjustment information conflicts with the parameters in the current configuration file, targeted and actionable adjustment suggestions will be generated based on the configuration specifications and preset rules. The server will conduct in-depth analysis of the conflict information to identify the core cause of the conflict, the scope of the conflict, and the severity of the conflict, and generate adjustment suggestions based on the location of the conflict. If the parameter values ​​are contradictory, it is recommended to adjust one parameter value to make it compatible with the other parameter value. If the parameter values ​​are duplicated, it is recommended to delete the duplicate parameter values ​​or modify the newly added parameter values ​​(e.g., if the newly added ".pdf" format is duplicated with the existing format, it is recommended to "cancel the addition of .pdf format" or "modify the newly added format to .epub").

[0091] In practice, the adjustment suggestions can be sent to the target device, and the target device can be checked to see if it agrees to follow the suggestions.

[0092] Step S303': Upon receiving confirmation information from the target device based on the adjustment suggestion, update the configuration adjustment information according to the adjustment suggestion, and adjust the current configuration file using the updated configuration adjustment information.

[0093] It should be noted that the confirmation information is the standardized instruction returned by the target device user after viewing the adjustment suggestions. The server updates the original configuration adjustment information according to the adjustment suggestion scheme confirmed by the user. After confirming that the updated configuration adjustment information is correct, the server restarts the configuration node update operation. Following the process of "determining adjustment parameters - locating configuration nodes - updating node content" mentioned above, the current configuration file is adjusted based on the updated configuration adjustment information.

[0094] In this embodiment, during the process of adjusting the current configuration file based on the configuration adjustment information, it verifies whether the configuration adjustment information conflicts with the parameters in the current configuration file. When a conflict exists, an adjustment suggestion is generated based on the conflict location, and the suggestion is sent to the target device. Upon receiving confirmation from the target device based on the adjustment suggestion, the configuration adjustment information is updated according to the suggestion, and the current configuration file is adjusted using the updated information. By providing targeted suggestions when parameter conflicts exist and updating after user confirmation, precise conflict control during the configuration adjustment process is achieved. This avoids configuration anomalies caused by conflicts and ensures the rationality of adjustment requests through user confirmation, balancing the standardization and flexibility of configuration adjustments.

[0095] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the configuration adjustment method of the intelligent agent in this application. Any simple transformations based on this technical concept are within the protection scope of this application.

[0096] This application also provides a configuration adjustment device for an intelligent agent; please refer to... Figure 4 The configuration adjustment device for the intelligent agent includes: The acquisition module 10 is used to acquire file processing results, wherein the file processing results are obtained by an agent deployed on the server executing file processing tasks based on the current configuration file.

[0097] The sending module 20 is used to send the file processing result to the target device and obtain the configuration adjustment information fed back by the target device based on the file processing result.

[0098] The adjustment module 30 is used to adjust the current configuration file based on the configuration adjustment information.

[0099] The intelligent agent configuration adjustment device provided in this application, employing the intelligent agent configuration adjustment method in the above embodiments, can solve the technical problem that traditional intelligent agent configurations are fixed and cannot be dynamically adjusted. Compared with the prior art, the beneficial effects of the intelligent agent configuration adjustment device provided in this application are the same as those of the intelligent agent configuration adjustment method provided in the above embodiments, and other technical features in the intelligent agent configuration adjustment device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0100] In one embodiment, the adjustment module 30 is further configured to parse the configuration adjustment information to obtain the content to be adjusted and the type to be adjusted; and to adjust the current configuration file according to the content to be adjusted and the type to be adjusted.

[0101] In one embodiment, the adjustment module 30 is further configured to determine adjustment parameters based on the content to be adjusted; locate the corresponding configuration node in the current configuration file according to the type to be adjusted, wherein the configuration node is a specific location in the current configuration file that carries a single or a group of associated configuration parameters; and update the configuration node according to the adjustment parameters to obtain the target configuration file.

[0102] In one embodiment, the adjustment module 30 is further configured to update the configuration node according to the adjustment parameters to generate a temporary configuration file; perform validity verification on the temporary configuration file to obtain a verification result; and if the verification result is successful, determine the temporary configuration file as the target configuration file.

[0103] In one embodiment, the adjustment module 30 is further configured to: locate the position of the parameter to be adjusted in the current configuration file when the type to be adjusted is parameter modification, and use the position of the parameter to be adjusted as the corresponding configuration node in the current configuration file; determine the configuration level to which the new parameter belongs when the type to be adjusted is parameter addition; determine the new parameter node in the current configuration file based on the configuration level, and use the new parameter node as the corresponding configuration node in the current configuration file.

[0104] In one embodiment, the adjustment module 30 is further configured to retrieve a preset configuration rewriting rule, the rewriting rule being used to limit the adjustable range, rewriting format, and parameter association of the configuration parameters; and to update the configuration node according to the preset configuration rewriting rule and the adjustment parameters to obtain the target configuration file.

[0105] In one embodiment, the adjustment module 30 is further configured to, during the process of adjusting the current configuration file based on the configuration adjustment information, verify whether the configuration adjustment information conflicts with the parameters in the current configuration file; when the configuration adjustment information conflicts with the parameters in the current configuration file, generate an adjustment suggestion based on the conflict location and send the adjustment suggestion to the target device; when receiving confirmation information from the target device based on the adjustment suggestion, update the configuration adjustment information according to the adjustment suggestion and adjust the current configuration file using the updated configuration adjustment information.

[0106] In one embodiment, the acquisition module 10 is further configured to receive initial configuration parameters sent by the target device, classify the initial configuration parameters to obtain classified initial configuration parameters; retrieve a preset configuration template of the intelligent agent, fill the classified initial configuration parameters into the preset configuration template to obtain a filled configuration template; perform format verification on the filled configuration template, and generate an initial configuration file after the format verification passes; and send the initial configuration file as the current configuration file to the corresponding intelligent agent, and control the intelligent agent to perform file processing tasks based on the current configuration file.

[0107] In one embodiment, the apparatus further includes a determining module, which is used to determine the current version of the current configuration file; and to store the current configuration file in a historical configuration file library based on the current version, wherein the historical configuration file library stores configuration files from different historical periods in order of version number.

[0108] In one embodiment, the determining module is further configured to acquire a version rollback instruction sent by the target device; match and determine the corresponding rollback configuration file from the historical configuration file library according to the version rollback instruction; send the rollback configuration file as the new current configuration file to the intelligent agent, and control the intelligent agent to re-execute the file processing task based on the new current configuration file to obtain the file processing result.

[0109] In one embodiment, the acquisition module 10 is further configured to acquire initial adjustment information fed back by the target device based on the file processing result; deduplicate and remove invalid content from the adjustment information to obtain valid adjustment information; classify the valid adjustment information according to the feedback type to obtain multiple types of valid adjustment information; and acquire configuration adjustment information from the multiple types of valid adjustment information to obtain configuration adjustment information.

[0110] In one embodiment, the adjustment module 30 is further configured to obtain a target configuration file based on the adjustment result; send the target configuration file as a new current configuration file to the intelligent agent; and control the intelligent agent to re-execute the file processing task based on the new current configuration file to obtain the file processing result.

[0111] This application provides a configuration adjustment device for an intelligent agent, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the configuration adjustment method for the intelligent agent in the first embodiment described above.

[0112] The following is for reference. Figure 5 The diagram illustrates a structural schematic of a configuration adjustment device suitable for implementing the embodiments of this application. The configuration adjustment device for the intelligent agent in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The configuration adjustment device for the intelligent agent shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0113] like Figure 5As shown, the configuration adjustment device for an intelligent agent may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in ROM (Read Only Memory) 1002 or a program loaded from storage device 1003 into RAM (Random Access Memory) 1004. RAM 1004 also stores various programs and data required for the operation of the configuration adjustment device for the intelligent agent. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via bus 1005. Input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, LCDs (Liquid Crystal Displays), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. The communication device 1009 allows the agent's configuration adjustment device to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows an agent's configuration adjustment device with various systems, it should be understood that implementing or having all of the systems shown is not required. More or fewer systems may be implemented alternatively.

[0114] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0115] The intelligent agent configuration adjustment device provided in this application, employing the intelligent agent configuration adjustment method in the above embodiments, can solve the technical problem that traditional intelligent agent configurations are fixed and cannot be dynamically adjusted. Compared with the prior art, the beneficial effects of the intelligent agent configuration adjustment device provided in this application are the same as those of the intelligent agent configuration adjustment method provided in the above embodiments, and other technical features in this intelligent agent configuration adjustment device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0116] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0117] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0118] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the configuration adjustment method of the intelligent agent in the above embodiments.

[0119] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, RAM (Random Access Memory), ROM (Read Only Memory), EPROM (Erasable Programmable Read Only Memory or Flash Memory), optical fibers, CD-ROM (CD-Read Only Memory), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0120] The aforementioned computer-readable storage medium may be included in the configuration adjustment device of the intelligent agent; or it may exist independently and not assembled into the configuration adjustment device of the intelligent agent.

[0121] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by the configuration adjustment device of the intelligent agent, the configuration adjustment device of the intelligent agent causes the intelligent agent to: obtain a file processing result, wherein the file processing result is obtained by an intelligent agent deployed on a server performing a file processing task based on the current configuration file; send the file processing result to a target device and obtain configuration adjustment information fed back by the target device based on the file processing result; and adjust the current configuration file based on the configuration adjustment information.

[0122] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including LAN (Local Area Network) or WAN (Wide Area Network)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0124] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0125] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described intelligent agent configuration adjustment method, thereby solving the technical problem that traditional intelligent agents have fixed configurations and cannot be dynamically adjusted. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the intelligent agent configuration adjustment method provided in the above embodiments, and will not be repeated here.

[0126] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the intelligent agent configuration adjustment method described above.

[0127] The computer program product provided in this application can solve the technical problem that the configuration of traditional intelligent agents is fixed and cannot be dynamically adjusted. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the intelligent agent configuration adjustment method provided in the above embodiments, and will not be repeated here.

[0128] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

[0129] This application discloses A1. A method for adjusting the configuration of an intelligent agent, wherein the method is applied to a server, and the method includes: Obtain the file processing result, wherein the file processing result is obtained by an agent deployed on the server executing a file processing task based on the current configuration file; The file processing result is sent to the target device, and the configuration adjustment information fed back by the target device based on the file processing result is obtained; The current configuration file is adjusted based on the configuration adjustment information.

[0130] A2. As described in A1, the step of adjusting the current configuration file based on the configuration adjustment information includes: The configuration adjustment information is parsed to obtain the content to be adjusted and the type of adjustment. The current configuration file is adjusted according to the content to be adjusted and the type to be adjusted.

[0131] A3. As described in A2, the step of adjusting the current configuration file according to the content to be adjusted and the type to be adjusted includes: The adjustment parameters are determined based on the content to be adjusted. Based on the type to be adjusted, locate the corresponding configuration node in the current configuration file. The configuration node is the specific location in the current configuration file that carries a single or a group of associated configuration parameters. The configuration node is updated according to the adjustment parameters to obtain the target configuration file.

[0132] A4. As described in A3, the step of updating the configuration node according to the adjustment parameters to obtain the target configuration file includes: The configuration node is updated according to the adjustment parameters to generate a temporary configuration file; The validity of the temporary configuration file is validated, and the validation result is obtained. If the verification result is successful, the temporary configuration file will be determined as the target configuration file.

[0133] A5. As described in A3, the step of locating the corresponding configuration node in the current configuration file based on the type to be adjusted includes: When the type to be adjusted is parameter modification, locate the position of the parameter to be adjusted in the current configuration file and use the position of the parameter to be adjusted as the corresponding configuration node in the current configuration file; When the type to be adjusted is parameter addition, determine the configuration level to which the new parameter belongs; Based on the configuration hierarchy, a new parameter node is determined in the current configuration file, and the new parameter node is used as the corresponding configuration node in the current configuration file.

[0134] A6. As described in A3, the step of updating the configuration node according to the adjustment parameters to obtain the target configuration file includes: Retrieve preset configuration rewriting rules, which are used to limit the adjustable range of configuration parameters, rewriting format, and parameter association relationships; The configuration node is updated according to the preset configuration rewrite rules and the adjustment parameters to obtain the target configuration file.

[0135] A7. As described in A1, the step of adjusting the current configuration file based on the configuration adjustment information includes: During the process of adjusting the current configuration file based on the configuration adjustment information, it is verified whether the configuration adjustment information conflicts with the parameters in the current configuration file; When the configuration adjustment information conflicts with the parameters in the current configuration file, an adjustment suggestion is generated based on the conflict location, and the adjustment suggestion is sent to the target device; Upon receiving confirmation information from the target device based on the adjustment suggestion, the configuration adjustment information is updated according to the adjustment suggestion, and the current configuration file is adjusted using the updated configuration adjustment information.

[0136] A8. As described in A1, before the step of obtaining the file processing result, the method further includes: Receive initial configuration parameters sent by the target device, classify the initial configuration parameters, and obtain classified initial configuration parameters; Retrieve the preset configuration template of the intelligent agent, fill the preset configuration template with the classified initial configuration parameters, and obtain the filled configuration template; The format of the populated configuration template is validated, and the initial configuration file is generated after the format validation passes. The initial configuration file is sent to the corresponding intelligent agent as the current configuration file, and the intelligent agent is controlled to execute file processing tasks based on the current configuration file.

[0137] A9. The method as described in A1, prior to the step of adjusting the current configuration file based on the configuration adjustment information, further includes: Determine the current version of the current configuration file; Based on the current version, the current configuration file is stored in the historical configuration file library, which stores configuration files from different historical periods in order of version number.

[0138] A10. The method as described in A9, further comprising: Obtain the version rollback command sent by the target device; According to the version rollback instruction, the corresponding rollback configuration file is matched and determined from the historical configuration file library; The rollback configuration file is sent to the agent as the new current configuration file, and the agent is controlled to re-execute the file processing task based on the new current configuration file to obtain the file processing result.

[0139] A11. As described in A1, the step of obtaining the configuration adjustment information fed back by the target device based on the file processing result includes: Obtain initial adjustment information from the target device based on the file processing results; The adjustment information is deduplicated and invalid content is removed to obtain valid adjustment information; The effective adjustment information is classified according to the feedback type to obtain multiple categories of effective adjustment information; Retrieve configuration-related adjustment information from multiple valid adjustment information categories to obtain configuration adjustment information.

[0140] A12. The method as described in any one of A1 to A11, further comprising, after the step of adjusting the current configuration file based on the configuration adjustment information: The target configuration file is obtained based on the adjustment results; The target configuration file is sent to the agent as the new current configuration file, and the agent is controlled to re-execute the file processing task based on the new current configuration file to obtain the file processing result.

[0141] This application also discloses B13. A configuration adjustment device for an intelligent agent, the device comprising: The acquisition module is used to acquire the file processing result, wherein the file processing result is obtained by an agent deployed on the server executing a file processing task based on the current configuration file; The sending module is used to send the file processing result to the target device and obtain the configuration adjustment information fed back by the target device based on the file processing result; The adjustment module is used to adjust the current configuration file based on the configuration adjustment information.

[0142] B14. The configuration adjustment device for an intelligent agent as described in B13, wherein the adjustment module is further configured to parse the configuration adjustment information to obtain the content to be adjusted and the type to be adjusted; and to adjust the current configuration file according to the content to be adjusted and the type to be adjusted.

[0143] B15. The configuration adjustment device for an intelligent agent as described in B14, wherein the adjustment module is further configured to determine adjustment parameters based on the content to be adjusted; locate the corresponding configuration node in the current configuration file according to the type to be adjusted, wherein the configuration node is a specific location in the current configuration file that carries a single or a group of associated configuration parameters; and update the configuration node according to the adjustment parameters to obtain a target configuration file.

[0144] B16. The configuration adjustment device for an intelligent agent as described in B15, wherein the adjustment module is further configured to update the configuration node according to the adjustment parameters to generate a temporary configuration file; to perform validity verification on the temporary configuration file to obtain a verification result; and, if the verification result is a successful verification, to determine the temporary configuration file as the target configuration file.

[0145] B17. The configuration adjustment device for an intelligent agent as described in B15, wherein the adjustment module is further configured to, when the type to be adjusted is parameter modification, locate the position of the parameter to be adjusted in the current configuration file and use the position of the parameter to be adjusted as the corresponding configuration node in the current configuration file; when the type to be adjusted is parameter addition, determine the configuration level to which the added parameter belongs; determine the added parameter node in the current configuration file based on the configuration level, and use the added parameter node as the corresponding configuration node in the current configuration file.

[0146] B18. The configuration adjustment device for an intelligent agent as described in B15, wherein the adjustment module is further configured to retrieve a preset configuration rewriting rule, the rewriting rule being used to limit the adjustable range, rewriting format, and parameter association of the configuration parameters; and to update the configuration node according to the preset configuration rewriting rule and the adjustment parameters to obtain a target configuration file.

[0147] This application also discloses C19. A configuration adjustment device for an intelligent agent, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the configuration adjustment method for an intelligent agent as described above.

[0148] This application also discloses D20. A storage medium, which is a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the configuration adjustment method for an intelligent agent as described above.

Claims

1. A method for configuring and adjusting an intelligent agent, characterized in that, The configuration adjustment method for the intelligent agent is applied to a server, and the configuration adjustment method for the intelligent agent includes: Obtain the file processing result, wherein the file processing result is obtained by an agent deployed on the server executing a file processing task based on the current configuration file; The file processing result is sent to the target device, and the configuration adjustment information fed back by the target device based on the file processing result is obtained; The current configuration file is adjusted based on the configuration adjustment information.

2. The method as described in claim 1, characterized in that, The step of adjusting the current configuration file based on the configuration adjustment information includes: The configuration adjustment information is parsed to obtain the content to be adjusted and the type of adjustment. The current configuration file is adjusted according to the content to be adjusted and the type to be adjusted.

3. The method as described in claim 2, characterized in that, The step of adjusting the current configuration file according to the content to be adjusted and the type to be adjusted includes: The adjustment parameters are determined based on the content to be adjusted. Based on the type to be adjusted, locate the corresponding configuration node in the current configuration file. The configuration node is the specific location in the current configuration file that carries a single or a group of associated configuration parameters. The configuration node is updated according to the adjustment parameters to obtain the target configuration file.

4. The method as described in claim 3, characterized in that, The step of updating the configuration node according to the adjustment parameters to obtain the target configuration file includes: The configuration node is updated according to the adjustment parameters to generate a temporary configuration file; The validity of the temporary configuration file is validated, and the validation result is obtained. If the verification result is successful, the temporary configuration file will be determined as the target configuration file.

5. The method as described in claim 3, characterized in that, The step of locating the corresponding configuration node in the current configuration file based on the type to be adjusted includes: When the type to be adjusted is parameter modification, locate the position of the parameter to be adjusted in the current configuration file and use the position of the parameter to be adjusted as the corresponding configuration node in the current configuration file; When the type to be adjusted is parameter addition, determine the configuration level to which the new parameter belongs; Based on the configuration hierarchy, a new parameter node is determined in the current configuration file, and the new parameter node is used as the corresponding configuration node in the current configuration file.

6. The method as described in claim 3, characterized in that, The step of updating the configuration node according to the adjustment parameters to obtain the target configuration file includes: Retrieve preset configuration rewriting rules, which are used to limit the adjustable range of configuration parameters, rewriting format, and parameter association relationships; The configuration node is updated according to the preset configuration rewrite rules and the adjustment parameters to obtain the target configuration file.

7. The method as described in claim 1, characterized in that, The step of adjusting the current configuration file based on the configuration adjustment information includes: During the process of adjusting the current configuration file based on the configuration adjustment information, it is verified whether the configuration adjustment information conflicts with the parameters in the current configuration file; When the configuration adjustment information conflicts with the parameters in the current configuration file, an adjustment suggestion is generated based on the conflict location, and the adjustment suggestion is sent to the target device; Upon receiving confirmation information from the target device based on the adjustment suggestion, the configuration adjustment information is updated according to the adjustment suggestion, and the current configuration file is adjusted using the updated configuration adjustment information.

8. A configuration adjustment device for an intelligent agent, characterized in that, The device includes: The acquisition module is used to acquire the file processing result, wherein the file processing result is obtained by an agent deployed on the server executing a file processing task based on the current configuration file; The sending module is used to send the file processing result to the target device and obtain the configuration adjustment information fed back by the target device based on the file processing result; The adjustment module is used to adjust the current configuration file based on the configuration adjustment information.

9. A configuration adjustment device for an intelligent agent, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the configuration adjustment method for an agent as described in any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the configuration adjustment method for an intelligent agent as described in any one of claims 1 to 7.