File processing method, apparatus, device, medium, and program product
By automatically acquiring file information and establishing network connections through intelligent agents, the file processing process of the NAS system is simplified, the problem of high operational complexity is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202611215308.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-11
- Publication Date
- 2026-11-20
AI Technical Summary
The existing NAS system's file processing is complex and requires users to understand the NAS host's file system structure, making it difficult for ordinary consumers to use.
By obtaining file information and network connection parameters of the target file through an intelligent agent, a network connection is automatically established for file transfer and processing, simplifying file processing operations.
This reduces the complexity of file processing operations in NAS systems, making them suitable for ordinary consumers.
Smart Images

Figure CN123145294A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a document processing method, apparatus, device, medium, and program product. Background Technology
[0002] Currently, a typical Network Attached Storage (NAS) system consists of a NAS host, personal computer (PC) client software, and mobile client software. Its core function is to store various types of files and provide users with various file processing operations such as file uploading, downloading, synchronization, deletion, querying, viewing, and photo backup. Generally, the implementation of these file processing functions relies on the cooperation between the NAS host, the PC, and the mobile client software. The client establishes a network connection with the NAS host, and the user operates the client to specify the file and its corresponding storage path to complete various file processing operations.
[0003] However, when using a NAS system for file processing, users usually need to understand the file system structure of the NAS host and know the corresponding storage relationship between the file on the terminal device and the NAS. In other words, users need to know which folder on the NAS a certain file is stored in order to process the file. The entire processing process is quite complex. Summary of the Invention
[0004] This application provides a document processing method, apparatus, device, medium, and program product to reduce the operational complexity of the entire processing process.
[0005] In a first aspect, embodiments of this application provide a file processing method applied to a first intelligent agent. The method includes: receiving a processing request to process a target file; obtaining file information for processing the target file and network connection parameters for establishing a network connection; sending the file information and the network connection parameters; and processing the target file according to the file information in response to the established network connection; wherein the network connection is established based on the network connection parameters.
[0006] The technical solution provided in this application brings at least the following beneficial effects: receiving a processing request for processing a target file, obtaining file information for processing the target file, and network connection parameters for establishing a network connection; sending the aforementioned file information and network connection parameters; responding to the established network connection, processing the target file according to the aforementioned file information; wherein the aforementioned network connection is established based on the aforementioned network connection parameters. In this solution, upon receiving a processing request for a target file, the intelligent agent more conveniently obtains the file information of the target file based on the processing request, thereby obtaining the network connection parameters, and performs file transfer and processing through the network connection established by the intelligent agent based on the network connection parameters. This simplifies the processing operation of the target file in the NAS, directly identifying the file to be processed and completing the processing operation of the file to be processed through the intelligent agent. It can be seen that this solution combines artificial intelligence with the file processing process through the intelligent agent, thereby reducing the complexity of using the NAS and reducing the operational complexity for users processing files in the network attached storage system.
[0007] One possible implementation is that the aforementioned file information includes at least one of the following: location information for storing or reading the aforementioned target file, a first folder corresponding to the aforementioned target file, and a file list corresponding to the aforementioned target file.
[0008] In another possible implementation, the location information for storing or reading the target file is determined by the first intelligent agent based on at least one of the following: the file content of the target file, the file system structure on the first device storing the target file or used to store the target file; and / or, the first folder corresponding to the target file is determined by the first intelligent agent based on at least one of the following: the file content of the target file, information about the folder created on the first device, and the second folder corresponding to the target file carried in the processing request; and / or, the file list corresponding to the target file is determined by the first intelligent agent based on at least one of the following: descriptive information describing the target file, and information retrieved on the first device based on the content or descriptive information of the target file.
[0009] Another possible implementation involves processing the target file according to the file information in response to the established network connection, including: if the processing request is to upload the target file to a first device, then in response to the established network connection, receiving the target file and storing the target file according to the storage location in the file information; wherein the first device is a device that stores the target file or is used to store the target file; if the processing request is to synchronize the target file, then in response to the established network connection, synchronizing the first folder and the second folder in the file information; wherein the first folder is in the first device and the second folder is in the second device; the first folder or the second folder stores the target file, or a portion of the target file is stored in either the first folder or the second folder and another portion is stored in the other folder; if the processing request is to query the target file, then in response to the established network connection, sending the target file according to the file list in the file information.
[0010] Another possible implementation method includes: adjusting the storage location of the target file according to the file system structure on the first device.
[0011] Secondly, embodiments of this application provide a file processing method applied to a second intelligent agent, comprising: sending a processing request to process a target file; receiving file information for processing the target file and network connection parameters for establishing a network connection; wherein the file information and the network connection parameters are feedback information generated based on the processing request; establishing a network connection based on the network connection parameters, and processing the target file according to the file information.
[0012] One possible implementation is that the above processing request includes at least one of the following information: the file content of the target file, the second folder corresponding to the target file, and descriptive information describing the target file.
[0013] Another possible implementation includes, before sending the processing request to process the target file, generating the processing request in response to an input instruction; wherein the input instruction is an instruction to process the target file input through the second device.
[0014] Another possible implementation involves processing the target file based on the aforementioned file information, including: if the processing request is to upload the target file to the first device, then sending the target file based on the network connection; if the processing request is to synchronize the target file, then synchronizing the first folder and the second folder in the file information based on the network connection; wherein the first folder is in the first device, and the second folder is in the second device; the first folder or the second folder stores the target file, or a portion of the target file is stored in either the first folder or the second folder, and another portion is stored in the other folder; if the processing request is to query the target file, then receiving a file list generated from description information describing the target file based on the network connection, and / or receiving the target file.
[0015] Another possible implementation is that, after receiving the file information for processing the target file and the network connection parameters for establishing a network connection, the method further includes: based on the network connection parameters, invoking a file transfer agent on the first device to establish a network connection with the second device; wherein the second device is the device that receives the processing request.
[0016] Thirdly, embodiments of this application provide a file processing method applied to a first device, the first device including a first intelligent agent, the first intelligent agent being used to execute the method described in the first aspect.
[0017] Fourthly, embodiments of this application provide a file processing method applied to a second device, the second device including a second intelligent agent, the second intelligent agent being used to execute the method described in the second aspect.
[0018] Fifthly, embodiments of this application provide a document processing system, including a first device and a second device. The first device includes the first intelligent agent described in the first aspect, and the second device includes the second intelligent agent described in the second aspect.
[0019] Sixthly, embodiments of this application provide a file processing apparatus on which a first intelligent agent runs. The apparatus includes: a receiving module, an acquiring module, a sending module, and a file processing module. The receiving module is configured to receive a processing request for processing a target file. The acquiring module is configured to acquire file information for processing the target file and network connection parameters for establishing a network connection. The sending module is configured to send the file information and the network connection parameters. The file processing module is configured to process the target file according to the file information in response to the established network connection. The network connection is established based on the network connection parameters.
[0020] One possible implementation is that the aforementioned file information includes at least one of the following: location information for storing or reading the aforementioned target file, a first folder corresponding to the aforementioned target file, and a file list corresponding to the aforementioned target file.
[0021] In another possible implementation, the location information for storing or reading the target file is determined by the first intelligent agent based on at least one of the following: the file content of the target file, the file system structure on the first device storing the target file or used to store the target file; and / or, the first folder corresponding to the target file is determined by the first intelligent agent based on at least one of the following: the file content of the target file, information about the folder created on the first device, and the second folder corresponding to the target file carried in the processing request; and / or, the file list corresponding to the target file is determined by the first intelligent agent based on at least one of the following: descriptive information describing the target file, and information retrieved on the first device based on the content or descriptive information of the target file.
[0022] Another possible implementation is that the file processing module described above is specifically used for: if the processing request is to upload the target file to the first device, then in response to the established network connection, receiving the target file and storing the target file according to the storage location in the file information; wherein the first device is a device that stores the target file or is used to store the target file; if the processing request is to synchronize the target file, then in response to the established network connection, synchronizing the first folder and the second folder in the file information; wherein the first folder is in the first device and the second folder is in the second device; the first folder or the second folder stores the target file, or a portion of the target file is stored in either the first folder or the second folder and another portion is stored in the other folder; if the processing request is to query the target file, then in response to the established network connection, sending the target file according to the file list in the file information.
[0023] In another possible implementation, the above-mentioned device further includes: an adjustment module; the adjustment module is used to adjust the storage location of the target file according to the file system structure on the first device.
[0024] In a seventh aspect, embodiments of this application provide a file processing apparatus on which a second intelligent agent runs. The apparatus includes: a sending module, a receiving module, a connection module, and a file processing module. The sending module is used to send a processing request to process a target file. The receiving module is used to receive file information for processing the target file and network connection parameters for establishing a network connection. The file information and the network connection parameters are feedback information generated based on the processing request. The connection module is used to establish a network connection based on the network connection parameters. The file processing module is used to process the target file according to the file information.
[0025] One possible implementation is that the above processing request includes at least one of the following information: the file content of the target file, the second folder corresponding to the target file, and descriptive information describing the target file.
[0026] In another possible implementation, the apparatus further includes a generation module; the generation module is configured to generate the processing request in response to an input instruction before the sending module sends the processing request for processing the target file; wherein the input instruction is an instruction to process the target file input through the second device.
[0027] Another possible implementation is that the file processing module described above is specifically used for: if the processing request is to upload the target file to the first device, then sending the target file based on the network connection; if the processing request is to synchronize the target file, then synchronizing the first folder and the second folder in the file information based on the network connection; wherein the first folder is in the first device and the second folder is in the second device; the first folder or the second folder stores the target file, or a part of the target file is stored in either the first folder or the second folder and another part is stored in the other folder; if the processing request is to query the target file, then receiving a file list generated from the description information describing the target file based on the network connection, and / or receiving the target file.
[0028] In another possible implementation, the connection module is further configured to, after the receiving module receives file information for processing the target file and network connection parameters for establishing a network connection, invoke the file transfer agent on the first device based on the network connection parameters to establish a network connection with the second device; wherein the second device is the device that receives the processing request.
[0029] Eighthly, this application provides an electronic device comprising: a processor and a memory; the memory storing a program or instructions executable on the processor, wherein the program or instructions, when executed by the processor, implement the methods of the first aspect or the second aspect described above.
[0030] Ninthly, this application provides a readable storage medium on which a program or instructions are stored, which, when executed by a computer, implement the methods of the first aspect or the second aspect described above.
[0031] In a tenth aspect, this application provides a computer program product stored in a storage medium, which, when executed by a computer, implements the methods of the first aspect or the second aspect described above.
[0032] Eleventhly, embodiments of this application provide a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the methods described in the first aspect or the second aspect above.
[0033] The beneficial effects of the third to eleventh aspects mentioned above are described in the corresponding descriptions of the first or second aspects, and will not be repeated here. Attached Figure Description
[0034] Figure 1 A schematic diagram of the network architecture for a file processing method application provided in this application embodiment;
[0035] Figure 2 A schematic diagram of the network architecture for another file processing method provided in this application embodiment;
[0036] Figure 3 A flowchart illustrating a document processing method provided in an embodiment of this application;
[0037] Figure 4 A flowchart illustrating a document processing method provided in an embodiment of this application;
[0038] Figure 5 A flowchart illustrating a document processing method provided in an embodiment of this application;
[0039] Figure 6 A flowchart illustrating a document processing method provided in an embodiment of this application;
[0040] Figure 7 A flowchart illustrating a document processing method provided in an embodiment of this application;
[0041] Figure 8 A flowchart illustrating another document processing method provided in this application embodiment;
[0042] Figure 9 A flowchart illustrating another document processing method provided in this application embodiment;
[0043] Figure 10 A flowchart illustrating another document processing method provided in this application embodiment;
[0044] Figure 11 A schematic diagram of a network architecture for an application of a processing method provided in this application embodiment;
[0045] Figure 12 A flowchart illustrating another document processing method provided in this application embodiment;
[0046] Figure 13 A schematic diagram of the file upload process of a file processing method provided in this application embodiment;
[0047] Figure 14 A schematic diagram of the file synchronization process of a file processing method provided in this application embodiment;
[0048] Figure 15 A schematic diagram of a file viewing process provided in an embodiment of this application;
[0049] Figure 16 A flowchart illustrating yet another document processing method provided in this application embodiment;
[0050] Figure 17 A flowchart illustrating yet another document processing method provided in this application embodiment;
[0051] Figure 18 A flowchart illustrating yet another document processing method provided in this application embodiment;
[0052] Figure 19 A flowchart illustrating yet another document processing method provided in this application embodiment;
[0053] Figure 20 This is a schematic diagram of the structure of a document processing device provided in an embodiment of this application;
[0054] Figure 21 This is a schematic diagram of the structure of a document processing device provided in an embodiment of this application;
[0055] Figure 22 This is a schematic diagram of the structure of a document processing device provided in an embodiment of this application;
[0056] Figure 23 This is a schematic diagram of the structure of a document processing device provided in an embodiment of this application;
[0057] Figure 24 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0058] The document processing methods, apparatus, equipment, media, and program products provided in this application will now be described in detail with reference to the accompanying drawings.
[0059] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0060] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0061] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."
[0062] In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0063] The document processing method, apparatus, device, medium, and program product provided in this application embodiment can be applied to scenarios where document processing is performed through a NAS system.
[0064] In related technologies, the implementation of file processing functions usually relies on the cooperation between the NAS host and PC / mobile client software. The client establishes a network connection with the NAS host, and the user operates the client to specify the file and its corresponding storage path to complete various file processing operations.
[0065] With the surge in personal data and users' increasing demands for immediacy and security in data access, Network Attached Storage (NAS) devices are experiencing rapid growth. Currently, a typical NAS system consists of a NAS host, PC client software, and mobile client software.
[0066] like Figure 1 The diagram shows a typical NAS system architecture. Users can generate operation actions and access files in the PC file system through client software on a PC. They can then send the operation actions and file information from the PC file system to the service software in the NAS host via the network, and use the service software to read or modify files in the NAS file system.
[0067] The core function of a NAS is to store files (including images, videos, audio, text, and various data files), while also providing users with various file processing operations, including uploading, downloading, syncing, deleting, querying, and viewing. The realization of these functions relies on the cooperation between the NAS host, PC client software, and mobile client software.
[0068] For example, files can be uploaded from a PC client or a mobile client to the NAS host via the NAS system, specifically including the following steps:
[0069] 1) Establish a network connection between the PC client or mobile client and the NAS host;
[0070] 2) Users create folders in the NAS host's file system through the client software interface in the PC client or mobile client;
[0071] 3) The user selects the file A to be uploaded in the file system of the PC client or mobile client, submits file A to the PC client or mobile client, and specifies the folder on the NAS host to be stored; the PC client or mobile client sends file A to the NAS host; the NAS host receives file A and saves file A to the specified folder.
[0072] For example, folders can be synchronized between a PC client or mobile client and the NAS host via a NAS system, specifically including the following steps:
[0073] 1) Establish a network connection between the PC client or mobile client and the NAS host;
[0074] 2) Users create folder A in the NAS host's file system through the PC client or mobile client interface;
[0075] 3) The user selects a folder B on the PC client or mobile client, submits it to the client software in the PC client or mobile client, and specifies that it needs to be synchronized with folder A on the NAS host;
[0076] 4) The PC or mobile client runs in the background, communicating with the NAS host to compare the files in folder A with those in folder B. If there are differences, the two folders are synchronized according to certain rules to make them consistent. The synchronization rules are generally based on the time when the user adds, deletes, or modifies files on the PC or mobile client or on the NAS host, which will not be elaborated here.
[0077] For example, photos can be backed up between a PC client or mobile client and the NAS host via a NAS system, specifically including the following steps:
[0078] 1. Establish a network connection between the PC client or mobile client and the NAS host;
[0079] 2. Users select the photo backup function on the PC client or mobile client. This photo backup function is usually a standalone function, specifying the backup folder A on the NAS host;
[0080] 3. The PC client or mobile client periodically scans the photo library on the mobile phone. If new photos are found, they are sent to the NAS host.
[0081] 4. The NAS host receives the photos and stores them in folder A according to a certain strategy.
[0082] However, when using a NAS system for file processing, users usually need to understand the file system structure of the NAS host and know the corresponding storage relationship between the file on the terminal device and the NAS. In other words, users need to know which folder on the NAS a certain file is stored in order to process the file. The entire processing process is quite complex.
[0083] The file processing methods of related NAS systems have the following problems:
[0084] Users need to understand and process the file system structure on the NAS host, including adding, modifying, and deleting folders at various levels.
[0085] Users need to understand the correspondence between files on the PC and the NAS, that is, they need to know which folder on the NAS a certain file is stored in.
[0086] While operations on some files can be simplified, file categorization is still necessary. For example, providing dedicated functionality for photo storage could reduce the need for users to manually manage the NAS file system. However, this requires users to distinguish file types, which increases operational complexity from another perspective.
[0087] File system management significantly increases operational complexity and requires a certain level of expertise, making it unsuitable for the average consumer. This limits the potential of NAS as a mass-market consumer product.
[0088] This solution provides a method for combining artificial intelligence (AI) technology with NAS, which can greatly reduce the complexity of using NAS and make it suitable for ordinary consumers.
[0089] To address the aforementioned technical problems, embodiments of this application provide a file processing method, apparatus, device, medium, and program product. Upon receiving a processing request for a target file, an intelligent agent more conveniently obtains the file information of the target file based on the processing request, thereby acquiring network connection parameters. File transfer and processing are then performed through a network connection established by the intelligent agent based on these network connection parameters. This simplifies the processing of target files in the NAS, directly identifying and processing the file by the intelligent agent. Therefore, this solution combines artificial intelligence with the file processing process through an intelligent agent, thereby reducing the complexity of using the NAS and the operational complexity for users processing files in the network attached storage system.
[0090] The document processing methods, apparatus, devices, media, and program products provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0091] Figure 2 This illustration shows the network architecture of a file processing method application provided in an embodiment of this application. For example... Figure 2 As shown, the network architecture includes a file processing device 101 and a terminal device 102. The file processing device 101 and the terminal device 102 are interconnected.
[0092] In some embodiments of this application, the file processing device 101 may be a server, a computer, or a processor or processing unit within a server or computer. The server may be a single server or a server cluster consisting of multiple servers. It should be noted that the embodiments of this application do not limit the specific device form of the file processing device 101. Figure 2 The example shown is a file processing device 101 as a single server.
[0093] In some embodiments of this application, the terminal device may be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, personal computer (PC), ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., and the embodiments of this application do not specifically limit it. Figure 2 The example shown is a mobile phone, with terminal device 102 as an example.
[0094] It should be noted that the network architecture described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As network architectures evolve, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0095] See Figure 3 This is a flowchart illustrating a file processing method provided in an embodiment of this application. Figure 3 As shown, the file processing method provided in this application embodiment can be implemented by a first intelligent agent, specifically including the following steps 2001 to 2003.
[0096] Step 2001: The first intelligent agent receives a processing request to process the target file, obtains file information for processing the target file, and network connection parameters for establishing a network connection.
[0097] In some embodiments of this application, the above processing request is generated based on the user's operation on the target file.
[0098] In some embodiments of this application, the above-described operation is used to instruct the user to perform file processing operations on the target file.
[0099] In some embodiments of this application, the network connection parameters described above are related to the file transfer protocol used during transmission.
[0100] In some embodiments of this application, the above-mentioned file information includes at least one of the following: location information for storing or reading the target file, a first folder corresponding to the target file, and a file list corresponding to the target file.
[0101] For example, when processing a request to upload a target file, the first intelligent agent proactively obtains the storage location for the uploaded target file. This allows the agent to proactively store the target file according to its designated location upon receiving it. This storage process requires no human intervention, reducing the complexity of file management. Of course, the aforementioned file information may also include at least one of the following: file name, file type, file time, file size, and file storage path.
[0102] For example, when processing a request to synchronize a file, the first agent plans based on the NAS file system structure to obtain the storage location for storing the target file to be synchronized, so that after receiving the target file to be synchronized, it actively stores the target file according to the storage location.
[0103] For example, when processing a request to view a file, the first agent actively searches the NAS file system, identifies the target file, and generates a list of files to be viewed based on the target file.
[0104] In this way, the first intelligent agent can proactively obtain the location where the file needs to be stored or the location of the target file that needs to be read, thereby reducing the need to search for file locations during file processing and reducing the complexity of using the NAS system.
[0105] In some embodiments of this application, the location information for storing or reading the target file is determined by the first intelligent agent based on at least one of the following: the file content of the target file, and the file system structure on the first device storing the target file or for storing the target file.
[0106] And / or, the first folder corresponding to the target file is determined by the first intelligent agent based on at least one of the following information: the file content of the target file, the information of the folder created on the first device, and the second folder corresponding to the target file carried in the processing request;
[0107] And / or, the list of files corresponding to the aforementioned target file is determined by the aforementioned first intelligent agent based on at least one of the following information: descriptive information describing the aforementioned target file, and information retrieved on the aforementioned first device based on the content or descriptive information of the aforementioned target file.
[0108] In some embodiments of this application, the first intelligent agent can find a folder used to store similar content based on the file content, and determine the storage location of the target folder based on the storage location of that folder.
[0109] For example, the content of the target file may include at least one of the following: file name, file summary, full text of the file, etc.
[0110] In some embodiments of this application, the file system structure described above can be a pre-determined file system structure plan on the first device. For example, the file system structure can be a dedicated storage area allocated specifically for the target file.
[0111] In some embodiments of this application, the first intelligent agent can determine the storage location of the file based on the first or second summary information of the file. For example, the first intelligent agent can store a photo in a dedicated storage area based on the creation time of the photo file.
[0112] In some embodiments of this application, the first device may create a first folder corresponding to the file in the processing request and obtain the storage path for creating the first folder.
[0113] In some embodiments of this application, the above processing request may carry the storage path of the second folder corresponding to the target file.
[0114] In some embodiments of this application, the first intelligent agent can determine the storage path of the target file in the first device based on the descriptive information describing the target file.
[0115] In some embodiments of this application, the first intelligent agent can retrieve similar files in the first device based on the content or description information of the target file, and determine the storage path of the similar files as the storage path of the target file.
[0116] In this way, the first intelligent agent can determine the storage path of the target file in the first device based on the file content, file system structure and other information of the target file, so that the target file can be classified and stored in the first device, which facilitates the search and processing of files in the first device.
[0117] Step 2002: The first intelligent agent sends file information and network connection parameters.
[0118] In some embodiments of this application, the first intelligent agent may send the aforementioned file information and network connection parameters to other pre-selected intelligent agents.
[0119] In some embodiments of this application, the network connection parameters described above are related to a file transfer protocol. For example, when the file transfer protocol used is Hypertext Transfer Protocol (HTTP), the network connection parameters include a Uniform Resource Locator (URL), a method, an authentication token, etc.
[0120] In some embodiments of this application, the first intelligent agent may send the storage path of the target file on the first device to a file transfer agent in order to obtain the aforementioned network connection parameters from the file transfer agent.
[0121] Step 2003: The first intelligent agent responds to the established network connection and processes the target file according to the file information.
[0122] In some embodiments of this application, the network connection is established based on the network connection parameters.
[0123] In some embodiments of this application, the first intelligent agent can process the file corresponding to the above-mentioned file information based on the network connection.
[0124] In some embodiments, step 2003 can be implemented by steps 2003a, 2003b, or 2003c.
[0125] Step 2003a: If the processing request is to upload the target file to the first device, the first intelligent agent responds to the established network connection, receives the target file, and stores the target file according to the storage location in the file information.
[0126] In some embodiments of this application, the first device described above is a device that stores the target file or is used to store the target file.
[0127] In some embodiments of this application, after receiving a processing request to upload a target file to a first device, the first intelligent agent can receive the target file and store the target file according to the storage location in the file information of the target file.
[0128] In some embodiments of this application, the first intelligent agent can determine the storage location of the target file in the first device based on the file content of the target file.
[0129] Step 2003b: If the processing request is to synchronize the target file, the first agent responds to the established network connection and synchronizes the first folder and the second folder in the file information.
[0130] In some embodiments of this application, the first folder is in the first device and the second folder is in the second device; the first folder or the second folder stores the target file, or a portion of the target file is stored in either the first folder or the second folder and another portion is stored in another folder.
[0131] Step 2003c: If the processing request is to query the target file, the first agent responds to the established network connection and sends the target file according to the file list in the file information.
[0132] In some embodiments of this application, if the above processing request is to query a target file, the first intelligent agent can obtain the corresponding target file according to the file list in the file information and send the target file to the corresponding intelligent agent device.
[0133] In some embodiments of this application, the first intelligent agent may obtain file information of the target file from the first device based on a processing request, and generate the above-mentioned file list based on the file information.
[0134] For example, when the processing request contains a file whose target file type is a photo, the first intelligent agent can retrieve the file from the storage path corresponding to the photo type file based on the file system architecture of the first device.
[0135] In this way, the first intelligent agent can receive the target file and actively obtain the storage path according to different processing requests, so as to store the target file in the first device, or obtain the storage location of the target file based on the processing request, obtain and send the target file. The acquisition of the file storage location is completed by the first intelligent agent, which simplifies the operation process of files in NAS.
[0136] In some embodiments, the document processing method provided in this application may further include the following step 2004.
[0137] Step 2004: The first intelligent agent adjusts the storage location of the target file according to the file system structure on the first device.
[0138] In some embodiments of this application, the first intelligent agent may adjust the file storage location according to the file system structure on the first device.
[0139] In some embodiments of this application, the first intelligent agent can adjust the storage location of a file in the first device if the storage location of the file in the first device does not match the file system structure of the first device.
[0140] In this way, the first intelligent agent can actively adjust the storage location of the file in the first device, so that the storage location of the file in the first device matches the file system structure, thereby improving the processing efficiency of the first intelligent agent for the file in the first device.
[0141] It should be noted that steps 2001 to 2003 and related steps can be referred to in the following description.
[0142] See Figure 4 This is a flowchart illustrating a file processing method provided in an embodiment of this application. Figure 4As shown, the file processing method provided in this application embodiment can be implemented by a second intelligent agent, specifically including the following steps 3001 to 3003.
[0143] Step 3001: The second agent sends a processing request to process the target file.
[0144] In some embodiments of this application, the above processing request includes at least one of the following information: the file content of the target file, the second folder corresponding to the target file, and descriptive information describing the target file.
[0145] In some embodiments of this application, the above processing request is used to instruct processing operations on the target file.
[0146] In some embodiments of this application, the above-mentioned processing request may be to upload the target file to the first device, synchronize the target file, or query the target file.
[0147] In some embodiments of this application, the second intelligent agent can generate a processing request for the target file based on the user's operation.
[0148] In some embodiments of this application, after receiving an operation action, the second intelligent agent can identify the operation intent for the target file based on the operation action and generate the above-mentioned processing request based on the operation intent.
[0149] In some embodiments of this application, the second intelligent agent may send the aforementioned processing request to process the target file.
[0150] Step 3002: The second agent receives file information for processing the target file and network connection parameters for establishing a network connection.
[0151] In some embodiments of this application, the above-mentioned file information and network connection parameters are feedback information generated based on the above-mentioned processing request.
[0152] Step 3003: The second intelligent agent establishes a network connection based on the network connection parameters and processes the target file according to the file information.
[0153] In some embodiments of this application, the second intelligent agent can establish a network connection based on the above-mentioned network connection parameters. This network connection can be used for file transfer to complete file processing.
[0154] In this way, the second intelligent agent can directly generate a processing request for the target file based on the operation action received, thereby reducing the operation steps of the user in the file processing process and thus reducing the complexity of processing the target file through the second intelligent agent.
[0155] In some embodiments, the "processing the target file according to the file information" in step 3003 above can be implemented through steps 3003a, 3003b or 3003c.
[0156] Step 3003a: If the processing request is to upload the target file to the first device, the second intelligent agent sends the target file based on the network connection.
[0157] In some embodiments of this application, if the processing request is to upload a target file to a first device, the second intelligent agent can send the target file to the first device through the network connection.
[0158] In some embodiments of this application, the second intelligent agent may send the path of the target file on the second device to a file transfer agent so that the target file can be read and sent through the file transfer agent.
[0159] Step 3003b: If the processing request is to synchronize the target file, the second agent synchronizes the first folder and the second folder in the file information based on the above network connection.
[0160] In some embodiments of this application, the first folder is in the first device, and the second folder is in the second device; the first folder or the second folder stores the target file, or a portion of the target file is stored in either the first folder or the second folder, and another portion is stored in another folder.
[0161] In some embodiments of this application, the second intelligent agent can send all folder information of the target file to the file transfer agent to complete file synchronization through the file transfer agent.
[0162] Step 3003c: If the processing request is to query the target file, the second intelligent agent receives a file list generated by the description information describing the target file based on the network connection, and / or receives the target file.
[0163] In some embodiments of this application, if the processing request is to query a target file, the second intelligent agent can receive the target file to be viewed from the target intelligent agent.
[0164] In this way, the second intelligent agent can perform corresponding file processing operations according to the specific content of the processing request, reducing the steps that users need to take for different processing requests, thereby reducing the complexity of file processing.
[0165] In some embodiments, prior to step 3001 above, the document processing method provided in this application may further include step 3004.
[0166] Step 3004: The second intelligent agent responds to the input command and generates a processing request.
[0167] In some embodiments of this application, the above-mentioned input instruction is an instruction to process the target file by means of a request input through a second device.
[0168] In some embodiments of this application, the second intelligent agent may respond to a user's input instruction and generate a processing request based on the input instruction.
[0169] For example, if the second intelligent agent receives an instruction from the user to upload a photo file from the second device to the NAS system, the second intelligent agent can obtain the file information of the photo file and recognize that the user's processing request is to upload the photo file. Then, the second intelligent agent can generate a processing request based on the file information and the operation of uploading the photo file.
[0170] In this way, the second intelligent agent can identify the operations that need to be performed on the target file based on the input instructions, thereby reducing the number of steps required from the user and lowering the complexity of file processing. For example, the input instructions could be a piece of text entered by the user, or instructions indicated by dragging an icon.
[0171] In some embodiments, after step 3002 above, the document processing method provided in this application embodiment may further include the following step 3005.
[0172] Step 3005: Based on the above network connection parameters, the second intelligent agent calls the file transfer agent on the second device to establish a network connection with the first device.
[0173] In some embodiments of this application, the first device described above is a device that receives the processing request described above.
[0174] In this way, the second intelligent agent can directly connect to the first device via the file transfer agent on the second device based on the acquired network connection parameters, thereby improving the efficiency of file transfer.
[0175] It should be noted that steps 3001 to 3003 and related steps can be referred to the description below.
[0176] See Figure 5 This is a flowchart illustrating a file processing method provided in an embodiment of this application. Figure 5 As shown, the file processing method provided in this application embodiment can be implemented by a second device, which runs a second intelligent agent and a second transmission agent, specifically including the following steps 201 to 204.
[0177] Step 201: The second intelligent agent responds to the user's second processing request for the file, identifies the operation behavior of the second processing request, and generates a first processing request based on the operation behavior.
[0178] In some embodiments of this application, the above-described operational behavior is used to instruct the user on file processing operations that the user expects to perform on the file.
[0179] In some embodiments of this application, the first processing request includes the operation described above and the file information of the document described above.
[0180] In some embodiments of this application, the second intelligent agent can obtain a second processing request message from the user, identify the user's intent, and obtain file information.
[0181] In some embodiments of this application, the second intelligent agent may generate a first processing request and send the first processing request to the first intelligent agent via a network. The first processing request message includes file information.
[0182] In some embodiments of this application, the second intelligent agent can obtain file information by analyzing the content of the aforementioned file.
[0183] For example, the second agent can obtain file information by analyzing all or part of the text data in the file using a large language model.
[0184] In some embodiments of this application, the second intelligent agent can retrieve file information through network retrieval.
[0185] For example, if the file is a music file, the second intelligent agent can retrieve information such as the singer and album name from the network as the file information of the music file.
[0186] In some embodiments of this application, the first request message described above may be in natural language format.
[0187] In some embodiments of this application, the first processing request described above may be in natural language format, semi-structured format, or structured format.
[0188] For example, the semi-structured format mentioned above can be Markdown format.
[0189] For example, the above structured format can be JSON format.
[0190] In some embodiments of this application, when the second intelligent agent identifies the above-mentioned operation behavior as viewing a file from the second processing request message, it can obtain the file information that the user needs to view, generate a first processing request message and send it to the first intelligent agent.
[0191] In some embodiments of this application, when the second intelligent agent recognizes from the second processing request message that the above-mentioned operation behavior is viewing a file, it can identify whether the user's viewing content is a single file, multiple files, a single folder, or multiple folders according to the second processing request, and generate a corresponding description.
[0192] Step 202: The second intelligent agent sends the first processing request to the first intelligent agent.
[0193] In some embodiments of this application, the first intelligent agent described above runs on a first intelligent agent and a first transmission agent.
[0194] In some embodiments of this application, the second intelligent agent generates a first processing request and sends the first processing request to the first intelligent agent via a network. The first processing request includes file information of the aforementioned file.
[0195] Step 203: The second agent receives the response message from the first agent.
[0196] In some embodiments of this application, the response message includes network connection parameters.
[0197] In some embodiments of this application, the network connection parameters are obtained by the first intelligent agent from the first transmission agent based on the above-mentioned operational behavior and the above-mentioned file information.
[0198] In some embodiments of this application, the network connection parameters described above are related to the file transfer protocol used by the first transfer agent.
[0199] For example, the file transfer protocol mentioned above may be the Hypertext Transfer Protocol (HTTP), and the network connection parameters mentioned above may include a Uniform Resource Locator (URL), a method, a token, etc.
[0200] Step 204: The second intelligent agent controls the second transmission agent to connect with the first transmission agent according to the network connection parameters, and executes the transmission of the file.
[0201] In some embodiments of this application, after receiving the response message, the second intelligent agent may send the response message to the first file transfer agent and connect to the first transfer agent through the response message.
[0202] In some embodiments of this application, the second intelligent agent can send the path of the file on the PC to the first file transfer agent.
[0203] In some embodiments of this application, the second intelligent agent can access the PC's file system and read file data through the first file transfer agent based on the file path.
[0204] In some embodiments of this application, the first file transfer agent and the second file transfer agent can communicate using a traditional file transfer protocol.
[0205] For example, the aforementioned conventional file transfer protocols may include at least one of the following: HTTP, File Transfer Protocol (FTP), Secure Shell File Transfer Protocol (SFTP), etc.
[0206] In some embodiments of this application, the file processing operation includes at least one of uploading and synchronizing files, and the file information includes at least one of the following: file name, file type, file time, file size, and the storage path of the file in the second device where the second intelligent agent is located. For example, in conjunction with... Figure 5 ,like Figure 6 As shown, step 204 above can be implemented through step 204a as follows.
[0207] Step 204a: The second intelligent agent controls the second transmission agent to connect with the first transmission agent according to the network connection parameters, and through the second intelligent agent, controls the second transmission agent to send the file to the second file transmission agent.
[0208] In some embodiments of this application, the second intelligent agent may send the file information to a second file transfer agent.
[0209] In some embodiments of this application, the second intelligent agent can connect to the second file transfer agent using the network connection parameters of the file to transfer files.
[0210] In some embodiments of this application, the file processing operation includes viewing a file, the file information being the file information the user expects to view, and the response message including one or more network connection parameters, each corresponding to at least one file list, which is determined by the first agent based on the file information. For example, the execution of file transfer in step 204 can be specifically implemented through step 204b.
[0211] Step 204b: The second intelligent agent controls the second transmission agent to connect to the first transmission agent according to the network connection parameters, and receives the files from at least one set of file lists from the first transmission agent through the second transmission agent.
[0212] In some embodiments of this application, the second intelligent agent can send the network connection parameters of the aforementioned files to the first file transfer agent. If the feedback message includes a file list, it also needs to be sent to the first file transfer agent.
[0213] In some embodiments of this application, the first file transfer agent in the second intelligent agent connects to the second file transfer agent via network connection parameters. If a file list needs to be viewed, it needs to be sent to the second file transfer agent after the connection is established.
[0214] In the file processing method provided in this application, the second intelligent agent recognizes the user's operation behavior, generates a first processing request and sends it to the first intelligent agent. It can obtain the file information to be processed based on the user's operation behavior and receive a response message from the first intelligent agent. Based on the network connection parameters in the response message, it controls the second transmission agent to connect with the first transmission agent and performs file transfer through the connection. Then, it completes the file processing operation according to the operation behavior and file information in the first processing request. It directly determines the file to be processed based on the operation behavior and completes the processing operation of the file through file transfer, which reduces the complexity of the user's operation in processing files in the network attached storage system.
[0215] In some embodiments of this application, the second processing request includes a second storage path of the file in the second intelligent agent. For example, in conjunction with... Figure 5 ,like Figure 7 As shown, prior to step 201 above, the document processing method provided in this application embodiment may further include the following steps 301 and 302.
[0216] Step 301: Based on the detected user dragging the file to the interaction window of the second intelligent agent through the graphical interface of the second device corresponding to the second intelligent agent, the second intelligent agent generates the second processing request and obtains the second storage path of the file in the second intelligent agent.
[0217] In some embodiments of this application, the second processing request message may include a second storage path of the file on the PC.
[0218] For example, a user can drag the file to the interaction window of the second agent through a graphical interface, so that the second agent can obtain the second storage path of the file.
[0219] Step 302: The second agent accesses the file library of the second agent based on the second storage path of the file in the second agent and obtains the file information of the file.
[0220] In some embodiments of this application, the second intelligent agent can access the file through the second storage path to obtain file information.
[0221] In some embodiments of this application, the second processing request does not include the second storage path of the file in the second intelligent agent, but includes the natural language description information of the file. Before step 201, the file processing method provided in this application may also include the following steps 303 to 304.
[0222] Step 303: The second intelligent agent determines the second storage path of the file in the second device corresponding to the second intelligent agent based on the above natural language description information.
[0223] In some embodiments of this application, if the second processing request of the second agent does not include the second storage path of the file in the second device, but includes the natural language description information of the file, the second agent determines the path of the file on the PC based on the natural language description information, and then obtains the file information.
[0224] For example, the request message could be "Upload the report I wrote yesterday", and the second agent could locate the specific file path of the "report I wrote yesterday" based on its memory.
[0225] Step 304: The second agent accesses the file library of the second agent based on the second storage path of the file in the second agent and obtains the file information of the file.
[0226] In some embodiments of this application, the above-mentioned natural language description information can be obtained through a second processing request from the user.
[0227] In this way, by extracting the second storage path of the file from the user's file operations or natural language description, the process of the user passing on the second storage path can be saved, simplifying the amount of operations the user performs in the file processing process.
[0228] See Figure 8 This is a flowchart illustrating a file processing method provided in an embodiment of this application. Figure 8 As shown, the file processing method provided in this application embodiment can be implemented by a first intelligent agent, specifically including the following steps 401 to 404.
[0229] Step 401: The first intelligent agent receives a first processing request from the second intelligent agent.
[0230] In some embodiments of this application, the first processing request is generated by the second intelligent agent based on the user's operation behavior regarding the processing request for the file.
[0231] In some embodiments of this application, the above-described operational behavior is used to instruct the user on file processing operations that the user expects to perform on the above-described file.
[0232] In some embodiments of this application, the first processing request includes the operation described above and the file information of the document described above.
[0233] In some embodiments of this application, the second request message described above may be in natural language format, semi-structured format, or structured format.
[0234] For example, the semi-structured format mentioned above can be Markdown format, and the structured format mentioned above can be JSON format.
[0235] Step 402: Based on the above-mentioned operation behavior and the above-mentioned file information, the first intelligent agent obtains network connection parameters from the above-mentioned first transmission agent.
[0236] In some embodiments of this application, the network connection parameters described above are related to the file transfer protocol used by the first transfer agent.
[0237] In some embodiments of this application, the first intelligent agent described above can generate a list of files to be viewed and obtain the network connection parameters of each file in the list of files to be viewed.
[0238] In some embodiments of this application, the file processing operation includes uploading a file, and the file information includes at least one of the following: file name, file type, file time, file size, and file storage path in the second intelligent agent. For example, in combination with... Figure 8 ,like Figure 9 As shown, step 402 above can be implemented through steps 402a to 402c.
[0239] Step 402a: The first intelligent agent generates a first storage path based on the above file information. The first storage path is the storage path of the above file in the above first device.
[0240] In some embodiments of this application, the first intelligent agent can send a file to a first storage path on a first device to the second file transfer agent, and the second file transfer agent can generate network connection parameters for the file.
[0241] Step 402b: The first intelligent agent sends the first storage path and the above-mentioned operation behavior to the first transmission agent.
[0242] Step 402c: The first intelligent agent obtains the network connection parameters through the first transmission proxy, based on the first storage path and the operation behavior.
[0243] In some embodiments of this application, the first intelligent agent can generate network connection parameters corresponding to each file through the first storage path and the above-mentioned operation behavior.
[0244] In this way, by reading file information and the file's storage path, the file upload process is completed, reducing the amount of manual operation required during the file upload process through a fully automated workflow.
[0245] In some embodiments of this application, the above file processing operation includes file synchronization, and step 402 can be specifically implemented through steps 402d to 402f.
[0246] Step 402d: Based on the above-mentioned operation behavior and file information, the first intelligent agent creates and stores a synchronization folder in the first device.
[0247] In some embodiments of this application, the first device may include a storage area dedicated to synchronizing files.
[0248] In some embodiments of this application, the first intelligent agent may create a synchronization folder in the aforementioned storage area.
[0249] In some embodiments of this application, the first intelligent agent can obtain the network connection parameters of the synchronized folder from the aforementioned second file transfer agent.
[0250] In some embodiments of this application, the first intelligent agent may create a set of network connection parameters for each synchronized folder through a first file transfer agent, or all synchronized folders may share the same set of parameters.
[0251] Step 402e: The first intelligent agent sends the storage path of the aforementioned synchronized folder and the aforementioned operation behavior to the aforementioned first transmission agent.
[0252] In some embodiments of this application, the first intelligent agent needs to send the storage path and operation behavior of the above-mentioned synchronized folder to the first transmission agent for processing the synchronized files.
[0253] Step 402f: The first intelligent agent obtains network connection parameters through the first transmission agent, based on the storage path of the synchronization folder and the operation behavior.
[0254] In this way, by reading file information and the storage path corresponding to the file's synchronization folder, the file synchronization process is completed. Through a fully automated process, the amount of operation required during file synchronization is reduced.
[0255] In some embodiments of this application, the above-mentioned file processing operation includes viewing a file, and the above-mentioned file information is the file information that the user expects to view. The above-mentioned step 402 can be specifically implemented through the following steps 402g to 402i.
[0256] Step 402g: The first intelligent agent generates at least one file list based on the above-mentioned operation behavior and the above-mentioned file information.
[0257] In some embodiments of this application, when the above-mentioned file processing operation includes viewing files, the first intelligent agent can retrieve the first device, obtain the files and folders that the user needs to view, and generate a list of files to be viewed.
[0258] Step 402h: The first intelligent agent sends at least one set of the above-mentioned file list to the above-mentioned first transmission agent.
[0259] Step 402i: The first intelligent agent obtains the network connection parameters based on the above-mentioned at least one set of file lists through the first transmission agent.
[0260] In some embodiments of this application, the first intelligent agent can send the above-mentioned at least one set of file lists to the above-mentioned second file transfer agent, and obtain network connection parameters from the second file transfer agent.
[0261] In some embodiments of this application, the first intelligent agent may create network connection parameters for each file list through a first file transfer agent, or all file viewing requests may share the same set of network connection parameters.
[0262] In this way, for different file processing operations, the first agent can determine the network connection parameters based on the file information, thereby connecting with the second agent and completing various file processing operations.
[0263] Step 403: The first agent sends the network connection parameters to the second agent and performs file transfer based on the network connection parameters.
[0264] In some embodiments of this application, the first intelligent agent may send a response message to the second intelligent agent, the response message including the network connection parameters.
[0265] In some embodiments of this application, if the above file processing operation includes viewing files, and if all the above file viewing requests share the same set of network connection parameters, then the first intelligent agent also needs to include at least one set of file lists in the response message.
[0266] In some embodiments of this application, combined with Figure 8 ,like Figure 10As shown, step 403 above can be implemented through steps 403a and 403b.
[0267] Step 403a: The first intelligent agent sends the network connection parameters to the first intelligent agent through the first transmission proxy.
[0268] In some embodiments of this application, the first intelligent agent can send network connection parameters to itself, and then send the network connection parameters to the second intelligent agent through the first intelligent agent.
[0269] Step 403b: The first agent can generate the above response message and send it to the second agent.
[0270] In some embodiments of this application, a first intelligent agent can send a response message to a second intelligent agent, the response message including network connection parameters.
[0271] In some embodiments of this application, when the above-mentioned file processing operation includes viewing files, the first intelligent agent can return all file information that needs to be synchronized to the second intelligent agent. The folder includes the second storage path of the above-mentioned files and the network connection parameters of the synchronization folder.
[0272] In some embodiments of this application, when the above file processing operation includes viewing files, if all folders share the same set of network connection parameters, the file information may also include a first storage path.
[0273] In this way, the first intelligent agent can generate network connection parameters based on the first processing request and send the network connection parameters to the second intelligent agent in the form of a response message, so as to directly process the file to be processed. The second intelligent agent connects with the first intelligent agent and completes the file transfer. By determining and processing the file through fully automatic network connection parameters, the amount of file processing operations is reduced.
[0274] Step 404: The first intelligent agent controls the first transmission agent to connect with the second transmission agent according to the network connection parameters, and executes the transmission of the file.
[0275] like Figure 11 The diagram illustrates the system architecture used in the file processing method of this application embodiment. This system architecture may include a PC (also referred to as a PC device) and a NAS host, which can communicate via a network. The PC may include a PC agent, a second transport agent, and a PC file system, while the NAS host may include a NAS agent, a first transport agent, and a NAS file system.
[0276] Specifically, the implementation process of the file processing method according to the embodiments of this application is described here in conjunction with the system architecture. The user sends a second processing request to the PC agent. The PC agent generates a first processing request based on the user's second processing request and sends the first processing request to the NAS agent. After receiving the first processing request, the NAS agent generates network connection parameters and adds the network connection parameters to the response message and sends it to the PC agent, so that the first file transfer agent and the second file transfer agent can connect through the above-mentioned network connection parameters. Then, according to the file information and operation behavior in the first processing request, the PC agent controls the first file transfer agent to transfer the file from the PC file system to the second file transfer system and store it in the NAS file system, or the NAS agent controls the second file transfer agent to transfer the file from the NAS file system to the first file transfer system and store it in the PC file system.
[0277] In some embodiments of this application, the PC in the above architecture can be replaced with a user device with a file system, such as a mobile phone or tablet computer.
[0278] In some embodiments of this application, the NAS host in the above architecture can be replaced with other devices that perform similar functions.
[0279] In some embodiments of this application, the file processing operation includes at least one of uploading files and synchronizing files, and the file information includes at least one of the following: file name, file type, file time, file size, and the storage path of the file in the second device. For example, in combination with... Figure 8 ,like Figure 12 As shown, step 404 above can be implemented through step 404a as follows.
[0280] Step 404a: The first intelligent agent receives the file transmitted by the second transmission agent through the first transmission agent.
[0281] like Figure 13The diagram illustrates a flowchart of a file processing operation involving uploading a file. The user sends a second processing request message (upload file) to a PC agent (also known as the second agent). The PC agent recognizes the intent and obtains a first summary of the file. This first summary includes the operation in the second processing request message, namely uploading a file, and the file information of the file to be uploaded. The PC agent then generates a first processing request message (containing the first summary information) based on the first summary and sends it to a NAS agent (also known as the first agent). The NAS agent obtains a second storage path and network connection parameters based on the first processing request message. This second storage path indicates the storage path of the file on the NAS device. The NAS agent generates a feedback message (containing network connection parameters) and sends this feedback message to the PC agent. Based on the feedback message, the PC agent sends the network connection parameters to a first file transfer agent and controls the first file transfer agent to establish a connection with the second file transfer agent. The PC agent then sends the file data to the second file transfer agent, which stores the received file data in the second storage path.
[0282] like Figure 14 The diagram illustrates the process of file synchronization. The user sends a second processing request message (file synchronization) to the PC agent (also known as the second agent). The PC agent recognizes the intent, obtains the PC folder path, and then generates a first processing request message (containing the PC folder path). This first processing request message is sent to the NAS agent (also known as the first agent). The NAS agent confirms the corresponding folder path on the NAS based on the first processing request message, obtains the network connection parameters, saves the correspondence between the three in its memory, and returns confirmation / synchronization task parameters (optional) to the PC agent. Then, the PC agent sets a scheduled synchronization task. When the scheduled task is triggered, the first file transfer agent establishes a connection with the second file transfer agent to synchronize the contents of the PC folder and the NAS folder.
[0283] In some embodiments of this application, the above-mentioned file processing operation includes viewing a file, the above-mentioned file information is the file information that the user expects to view, and the above-mentioned response message includes one or more network connection parameters, the above-mentioned one or more network connection parameters correspond to at least one set of file lists, the above-mentioned at least one set of file lists is determined by the above-mentioned first intelligent agent based on the above-mentioned file information, and the above-mentioned step 404 can be specifically implemented by the following step 404b.
[0284] Step 404b: The first intelligent agent controls the first transmission agent to send the files in the at least one set of file lists to the second transmission agent.
[0285] like Figure 15The diagram illustrates a flowchart of a file processing operation for viewing a file. The user sends a second processing request message (view file) to the PC agent (also known as the second agent). The PC agent recognizes the intent, obtains the file information to be viewed, and then generates a first processing request message (containing file information) and sends it to the NAS agent (also known as the first agent). The NAS agent generates a list of files to be viewed based on the first processing request message, obtains network connection parameters, and sends a feedback message (containing network connection parameters) to the PC agent. Based on the feedback message, the PC agent sends the network connection parameters to the first file transfer agent and controls the first file transfer agent to establish a connection with the second file transfer agent to obtain file information. After obtaining the file information from the second file transfer agent, the first file transfer agent displays the file information to the user.
[0286] In this way, under different processing requests, the first intelligent agent can determine the file to be processed based on the operation behavior corresponding to the processing request, and transmit the file, saving the user the processing operations of file information and file transmission, and reducing the operational complexity in the file processing process.
[0287] In the file processing method provided in this application embodiment, the first intelligent agent generates corresponding network connection parameters based on the first processing request from the second intelligent agent, adds them to the response message, and sends them to the second intelligent agent. The network connection parameters are directly identified and obtained, reducing the amount of operation required by the user on the network connection parameters of the specified file. Based on the network connection parameters, the first transmission agent is controlled to connect with the second transmission agent, and the file is transferred through the connection. Then, the file processing operation is completed according to the operation action and file information in the first processing request. The file to be processed can be identified and the processing operation of the file can be completed with only one processing request, reducing the complexity of the user's operation in processing files in the network attached storage system.
[0288] See Figure 16 This is a flowchart illustrating a file processing method provided in an embodiment of this application. Figure 16 As shown, the file processing method provided in this application embodiment can be implemented through interaction between a first intelligent agent and a second intelligent agent. Specifically, the above file processing method may include the following steps 501 to 506.
[0289] Step 501: The second agent sends a processing request to process the target file.
[0290] Step 502: The first intelligent agent receives a processing request to process the target file, obtains file information for processing the target file, and network connection parameters for establishing a network connection.
[0291] Step 503: The first intelligent agent sends file information and network connection parameters.
[0292] Step 504: The second agent receives file information for processing the target file and network connection parameters for establishing a network connection.
[0293] Step 505: The second intelligent agent establishes a network connection based on the network connection parameters and processes the target file according to the file information.
[0294] Step 506: The first intelligent agent responds to the established network connection and processes the target file according to the file information.
[0295] It should be noted that for specific explanations of steps 501 to 506 and their related solutions, please refer to the descriptions in the above embodiments, which will not be repeated here.
[0296] The file processing method provided in this application embodiment can be implemented through the interaction of a second intelligent agent and a first intelligent agent. The second intelligent agent runs on a second intelligent agent and a second transmission agent, and the first intelligent agent runs on a first intelligent agent and a first transmission agent. Specifically, the above file processing method may include the following steps 501 to 508.
[0297] Step 601: In response to the user's second processing request for the file, the second intelligent agent identifies the operation action of the processing request and generates a first processing request based on the operation action; wherein the operation action is used to indicate the file processing operation that the user expects to perform on the file; the first processing request includes the operation action and the file information of the file.
[0298] Step 602: The second intelligent agent sends the first processing request to the first intelligent agent.
[0299] Step 603: The first intelligent agent receives a first processing request from the second intelligent agent, on which a second intelligent agent and a second transmission agent are running; the first processing request is generated by the second intelligent agent based on the user's operation action for the processing request of the file; the operation action is used to indicate the file processing operation that the user expects to perform on the file; the first processing request includes the operation action and the file information of the file.
[0300] Step 604: Based on the above operation and the above file information, the first intelligent agent obtains network connection parameters from the first transmission agent; the network connection parameters are related to the file transfer protocol used by the first transmission agent.
[0301] Step 605: The first intelligent agent sends a response message to the second intelligent agent, the response message including the network connection parameters.
[0302] Step 606: The second intelligent agent receives a response message from the first intelligent agent, the response message including network connection parameters; wherein the network connection parameters are obtained by the first intelligent agent from the first transmission agent based on the operation and the file information, and the network connection parameters are related to the file transfer protocol used by the first transmission agent.
[0303] Step 607: The second intelligent agent controls the second transmission agent to connect with the first transmission agent according to the network connection parameters, and executes the transmission of the file.
[0304] Step 608: The first intelligent agent controls the first transmission agent to connect with the second transmission agent according to the network connection parameters, and executes the transmission of the file.
[0305] It should be noted that the execution order of steps 607 and 608 described above is not limited in this embodiment. For example, step 607 can be executed first, followed by step 608; or step 608 can be executed first, followed by step 607; or steps 607 and 608 can be executed simultaneously.
[0306] Thus, in the file processing method provided in this application, the second intelligent agent recognizes the user's operation actions, generates a first processing request and sends it to the first intelligent agent. It can obtain the file information to be processed based on the user's operation actions and receive a response message from the first intelligent agent. Based on the network connection parameters in the response message, it controls the second transmission agent to connect with the first transmission agent and performs file transfer through this connection. Then, based on the operation actions and file information in the first processing request, it completes the file processing operation. It directly determines the file to be processed based on the operation actions and completes the processing operation for that file through file transfer, reducing the operational complexity for users processing files in the network attached storage system. The first intelligent agent, based on the first processing request from the second intelligent agent, generates corresponding network connection parameters, adds them to the response message, and sends it to the second intelligent agent. It directly recognizes and obtains the network connection parameters, reducing the amount of operation required by the user on the network connection parameters of a specified file. Based on these network connection parameters, it controls the first transmission agent to connect with the second transmission agent and performs file transfer through this connection. Then, based on the operation actions and file information in the first processing request, it completes the file processing operation. Only one processing request is needed to identify the file to be processed and complete the processing operation for that file, further reducing the operational complexity for users processing files in the network attached storage system.
[0307] It should be noted that for specific explanations of steps 601 to 608 and their related solutions, please refer to the descriptions in the above embodiments, which will not be repeated here.
[0308] The document processing method of this application will be described below through specific embodiments.
[0309] In some embodiments of this application, the AI Agent is a software based on a Large Language Model (LLM) that can accept requests from users in natural language, understand intent, plan and execute tasks, and provide feedback. The AI Agent also has long-term memory capabilities.
[0310] In some embodiments of this application, the intelligent agent can replace human intervention in processing the file system on the NAS and intelligently classify files, making the file system on the NAS invisible to the user and simplifying the operation of the NAS.
[0311] In some embodiments of this application, the intelligent agent can implement a method for remote file processing.
[0312] In some embodiments of this application, the intelligent agent can obtain the user's intent and generate and execute operations.
[0313] In some embodiments of this application, the intelligent agent can control the first file transfer agent to communicate with the second file transfer agent to realize file data transfer.
[0314] like Figure 17 As shown, the implementation process of the document processing method provided in this application embodiment includes the following S1 to S6:
[0315] S1. The PC agent obtains the second processing request message from the user, identifies the user's operation as uploading a file, and obtains the first summary information of the file.
[0316] In some embodiments of this application, the first summary information of the above-mentioned file includes, but is not limited to: file name, file type, file time, file size, and file path on the PC.
[0317] In some embodiments of this application, the PC agent described above can obtain the first summary information of the document described above.
[0318] In some embodiments of this application, the second processing request message may include the path of the file on the PC.
[0319] For example, a user can drag and drop a file into the interactive window of the PC agent through the graphical interface of the PC operating system. The PC agent then obtains the file path and accesses the PC file system based on the path to obtain the first summary information of the file.
[0320] In some embodiments of this application, the second processing request message may not contain the path of the file on the PC, but it may contain a natural language description of the file. The PC agent can determine the path of the file on the PC based on the description, and then access the PC file system to obtain the first summary information of the file.
[0321] For example, the natural language description in the second processing request message is "upload the report materials written yesterday", and the PC agent locates the specific file path of "the report materials written yesterday" based on its memory.
[0322] In some embodiments of this application, the first request message described above is in natural language format.
[0323] S2 and PC agents generate the first processing request message and send it to the NAS agent via the network.
[0324] In some embodiments of this application, the first processing request message includes a first summary of the file.
[0325] In some embodiments of this application, the second request message described above may be in natural language format, semi-structured format, or structured format.
[0326] For example, a semi-structured format could be Markdown; a structured format could be JSON.
[0327] S3, the NAS agent obtains the second storage path of the file on the NAS and the network connection parameters for uploading the file.
[0328] In some embodiments of this application, the NAS agent can obtain the network connection parameters for uploading files.
[0329] In some embodiments of this application, the NAS agent can send the second storage path of the file on the NAS to the second file transfer agent, and the second file transfer agent returns the network connection parameters for uploading the file.
[0330] In some embodiments of this application, the network connection parameters described above are related to the file transfer protocol used.
[0331] For example, if the HTTP protocol is used, network connection parameters may include URL, Method, authentication token, etc.
[0332] The S4 and NAS agents generate feedback messages and send them back to the PC agent.
[0333] In some embodiments of this application, the feedback message includes network connection parameters for uploading files.
[0334] S5 and PC intelligent agents send the network connection parameters of the uploaded file to the first file transfer agent. The first file transfer agent connects to the second file transfer agent, reads the file data, and sends it to the second file transfer agent.
[0335] In some embodiments of this application, the first file transfer agent can read file data.
[0336] In some embodiments of this application, the PC agent sends the network connection parameters of the uploaded file to the first file transfer agent, and also sends the path of the file on the PC to the first file transfer agent.
[0337] In some embodiments of this application, the first file transfer agent can access the PC's file system and read file data based on the file path.
[0338] In some embodiments of this application, the communication between the first file transfer agent and the second file transfer agent adopts a traditional file transfer protocol.
[0339] For example, the aforementioned traditional file transfer protocols may include HTTP, FTP, SFTP, etc.
[0340] S6. The second file agent receives the file data and stores the file in the second storage path on the NAS.
[0341] In some embodiments of this application, the NAS agent can obtain second digest information of a file, determine the first storage path of the file on the NAS, and move the file to the first storage path.
[0342] In some embodiments of this application, the second summary information of the file may include basic information such as file name, file type, file time, file size, and file storage path.
[0343] In some embodiments of this application, the second summary information of the document may include, but is not limited to, information obtained through content analysis and file metadata obtained through network retrieval.
[0344] For example, the information obtained through content analysis can be a summary formed by the NAS agent using a large language model to analyze all or part of the text data in the file.
[0345] For example, for music files, the file metadata obtained through the network search can be used to retrieve information such as the singer and album name from the network.
[0346] In some embodiments of this application, the NAS agent can obtain the second storage path and the first storage path of the file on the NAS.
[0347] In some embodiments of this application, the NAS agent generates a second storage path based on the first summary information of the file.
[0348] In some embodiments of this application, the second storage path may be a formal storage path or a temporary storage path.
[0349] In some embodiments of this application, if the final storage path of the file is sufficiently determined based on the first digest information, then the formal path is generated.
[0350] In some embodiments of this application, if the first digest information is insufficient to determine the final storage path of the file, a temporary path is generated, and the second digest information is obtained to determine the final path after the file is uploaded to the NAS.
[0351] In some embodiments of this application, the NAS agent can generate a first storage path based on the second digest information of the file.
[0352] In some embodiments of this application, the NAS agent can determine where a file should be stored based on a pre-determined file system structure plan, according to the first or second summary information of the file.
[0353] For example, photo files can be categorized and stored in a dedicated photo storage area based on their creation time.
[0354] In some embodiments of this application, the communication between the first file transfer agent and the second file transfer agent adopts a traditional file transfer protocol.
[0355] For example, the aforementioned traditional file transfer protocols may include HTTP, FTP, SFTP, etc.
[0356] It should be noted that the descriptions of each step S1 to S6 in this embodiment can be found in the descriptions in the above embodiments, and will not be repeated here.
[0357] like Figure 18 As shown, the implementation process of the document processing method provided in this application embodiment includes the following S7 to S10:
[0358] S7, the PC agent identifies the user's action as synchronizing files from the second processing request message and obtains the PC folder path.
[0359] In some embodiments of this application, the PC agent can obtain the PC folder path.
[0360] In some embodiments of this application, the second processing request message may include the PC folder path.
[0361] For example, a user drags a folder to the interactive window of the PC agent through the graphical interface of the PC operating system, and the PC agent obtains the folder path.
[0362] In some embodiments of this application, the second processing request message does not contain the PC folder path, but contains a natural language description of the folder, and the PC agent determines the PC folder path based on the description.
[0363] For example, the request message is "Synchronize the directory of project A". The PC agent locates the specific path of the folder of project A based on its memory.
[0364] S8, the PC agent generates the first processing request message and sends it to the NAS agent.
[0365] In some embodiments of this application, the first processing request message mentioned above includes the PC folder path.
[0366] S9, the NAS agent determines the path of the synchronized folder in the NAS, obtains the network connection parameters of the synchronized folder, and saves the correspondence between the PC folder, the NAS folder, and the network connection parameters into memory as parameters for the folder synchronization task.
[0367] In some embodiments of this application, the NAS agent can determine the path of the synchronization folder in the NAS.
[0368] In some embodiments of this application, the NAS agent can reserve a dedicated storage area for folder synchronization in the NAS file system structure.
[0369] In some embodiments of this application, the NAS agent can create a folder in the aforementioned storage area as the synchronization folder.
[0370] In some embodiments of this application, the NAS agent can obtain the network connection parameters of the synchronized folder.
[0371] In some embodiments of this application, the NAS agent can obtain the network connection parameters of the synchronized folder from a second file transfer agent.
[0372] In some embodiments of this application, the second file transfer agent may create a dedicated set of network connection parameters for each folder, or all folders may share the same set of network connection parameters.
[0373] S10, PC intelligent agent is set to perform synchronous tasks on a scheduled basis.
[0374] In some embodiments of this application, when the above-mentioned synchronization task is executed, the first file transfer agent and the second file transfer agent are connected to synchronize the contents of the PC folder and the NAS folder.
[0375] In some embodiments of this application, the PC agent can send a message to the NAS agent requesting information about all folders that need to be synchronized.
[0376] In some embodiments of this application, the NAS agent can return information about all folders that need to be synchronized to the PC agent.
[0377] In some embodiments of this application, the folder information to be synchronized may include the PC folder path and the network connection parameters of the folder to be synchronized.
[0378] In some embodiments of this application, if all folders share the same set of network connection parameters, the folder information also includes the NAS folder path.
[0379] In some embodiments of this application, the PC agent sends information about all folders to a first file transfer agent.
[0380] In some embodiments of this application, the first file transfer agent sequentially connects to the second file transfer agent using the network connection parameters of each folder to perform folder synchronization operations.
[0381] It should be noted that the descriptions of each step S7 to S10 in this embodiment can be found in the descriptions in the above embodiments, and will not be repeated here.
[0382] like Figure 19 As shown, the implementation process of the document processing method provided in this application embodiment includes the following S11 to S13:
[0383] S11, the PC agent identifies the user's intent from the second processing request message, obtains information about the file the user needs to view, and generates a first processing request message which is then sent to the NAS agent.
[0384] In some embodiments of this application, the PC agent can obtain information about the file that the user needs to view.
[0385] In some embodiments of this application, the PC agent identifies whether the user is viewing a single file, multiple files, a single folder, or multiple folders based on the second processing request, and generates a corresponding description.
[0386] S12, the NAS agent generates a list of files to be viewed, obtains the network connection parameters of the files to be viewed, and sends a feedback message to the PC agent.
[0387] In some embodiments of this application, the feedback message includes network connection parameters for viewing the file.
[0388] In some embodiments of this application, the NAS agent can generate a list of files to be viewed.
[0389] In some embodiments of this application, the NAS agent can query memory data, combine it with searching the NAS file system, determine the files and folders that the user needs to view, and generate a list of files to be viewed.
[0390] In some embodiments of this application, the NAS agent can obtain network connection parameters for viewing files.
[0391] In some embodiments of this application, the NAS agent can send a list of files to be viewed to a second file transfer agent and obtain network connection parameters from the second file transfer agent.
[0392] In some embodiments of this application, the second file transfer agent may create a dedicated set of network connection parameters for each file viewing list, or all file viewing requests may share the same set of network connection parameters.
[0393] In some embodiments of this application, if all file viewing requests share the same set of parameters, the NAS agent also needs to include a list of files to be viewed in the feedback message.
[0394] S13. The first file transfer agent connects to the second file transfer agent to obtain file information and display it to the user.
[0395] In some embodiments of this application, the first file transfer agent may connect to the second file transfer agent.
[0396] In some embodiments of this application, the PC agent can send the network connection parameters for viewing the file to the first file transfer agent.
[0397] In some embodiments of this application, if the feedback message includes viewing a file list, it also needs to be sent to the first file transfer agent.
[0398] In some embodiments of this application, the first file transfer agent can connect to the second file transfer agent via network connection parameters.
[0399] In some embodiments of this application, if there is a need to view a file list, it needs to be sent to the second file transfer agent after the connection is established.
[0400] In some embodiments of this application, the first file transfer agent can obtain file information and display it to the user.
[0401] In some embodiments of this application, the second file transfer agent sends information about the files and folders in the file list to the first file transfer agent, and the first file transfer agent generates an interactive interface to display the contents of the file list to the user and interact with the user.
[0402] In some embodiments of this application, if a user chooses to view the specific content of a single file, the first file transfer agent obtains the file data from the second file transfer agent, opens the file according to the file type and file format, and displays it to the user.
[0403] It should be noted that the descriptions of each step S11 to S13 in this embodiment can be found in the descriptions in the above embodiments, and will not be repeated here.
[0404] It should be noted that the above-described method embodiments, or the various possible implementations of the method embodiments, can be executed individually, or, provided there is no conflict, they can be combined with each other. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.
[0405] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0406] This application embodiment can divide the file processing device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0407] In some embodiments of this application, a file processing system is also provided. This file processing system includes a first device and a second device.
[0408] The first device includes the first intelligent agent described above, and is applied to the relevant schemes in steps 2001 to 2003 described above.
[0409] The second device includes the aforementioned second intelligent agent and is applied to the relevant schemes in steps 3001 to 3003.
[0410] For example, Figure 20This is a schematic diagram of a document processing device provided in an embodiment of this application. Figure 20 As shown, the file processing apparatus 1600 includes: a receiving module 1601, an acquiring module 1602, a sending module 1603, and a file processing module 1604; the receiving module 1601 is used to receive a processing request for processing a target file; the acquiring module 1602 is used to acquire file information for processing the target file and network connection parameters for establishing a network connection; the sending module 1603 is used to send the file information and the network connection parameters; the file processing module 1604 is used to process the target file according to the file information in response to the established network connection; wherein the network connection is established based on the network connection parameters.
[0411] In some embodiments, the file information includes at least one of the following: location information for storing or reading the target file, a first folder corresponding to the target file, and a file list corresponding to the target file.
[0412] In other embodiments, the location information for storing or reading the target file is determined by the first intelligent agent based on at least one of the following: the file content of the target file, the file system structure on the first device storing the target file or for storing the target file; and / or, the first folder corresponding to the target file is determined by the first intelligent agent based on at least one of the following: the file content of the target file, information about the folder created on the first device, and the second folder corresponding to the target file carried in the processing request; and / or, the file list corresponding to the target file is determined by the first intelligent agent based on at least one of the following: descriptive information describing the target file, and information retrieved on the first device based on the content or descriptive information of the target file.
[0413] In some other embodiments, the file processing module 1604 is specifically configured to: if the processing request is to upload the target file to a first device, then in response to the established network connection, receive the target file and store the target file according to the storage location in the file information; wherein the first device is a device that stores the target file or is used to store the target file; if the processing request is to synchronize the target file, then in response to the established network connection, synchronize the first folder and the second folder in the file information; wherein the first folder is in the first device and the second folder is in the second device; the first folder or the second folder stores the target file, or a portion of the target file is stored in either the first folder or the second folder and another portion is stored in the other folder; if the processing request is to query the target file, then in response to the established network connection, send the target file according to the file list in the file information.
[0414] In some other embodiments, the apparatus further includes an adjustment module, which is configured to adjust the storage location of the target file according to the file system structure on the first device.
[0415] In some embodiments of this application, a file processing apparatus is also provided. This file processing apparatus may include one or more functional modules for implementing the file processing methods of the above method embodiments.
[0416] For example, Figure 21 This is a schematic diagram of a document processing device provided in an embodiment of this application. Figure 21 As shown, the file processing device 1700 includes: a sending module 1701, a receiving module 1702, a connection module 1703, and a file processing module 1704.
[0417] The aforementioned document processing device 1700 is equipped with a second intelligent agent.
[0418] The sending module 1701 is used to send a processing request to process the target file; the receiving module 1702 is used to receive file information for processing the target file and network connection parameters for establishing a network connection; wherein the file information and the network connection parameters are feedback information generated based on the processing request; the connection module 1703 is used to establish a network connection based on the network connection parameters; and the file processing module 1704 is used to process the target file according to the file information.
[0419] One possible implementation is that the above processing request includes at least one of the following information: the file content of the target file, the second folder corresponding to the target file, and descriptive information describing the target file.
[0420] In another possible implementation, the above apparatus further includes: a generation module; the generation module is configured to generate the processing request in response to an input instruction before the sending module 1701 sends the processing request for processing the target file; wherein the input instruction is an instruction for processing the target file input through the second device.
[0421] Another possible implementation is that the file processing module 1704 is specifically used for: if the processing request is to upload the target file to the first device, then sending the target file based on the network connection; if the processing request is to synchronize the target file, then synchronizing the first folder and the second folder in the file information based on the network connection; wherein the first folder is in the first device and the second folder is in the second device; the first folder or the second folder stores the target file, or a part of the target file is stored in either the first folder or the second folder and another part is stored in the other folder; if the processing request is to query the target file, then receiving a file list generated from the description information describing the target file based on the network connection, and / or receiving the target file.
[0422] In another possible implementation, the connection module 1703 is further configured to, after the receiving module 1702 receives file information for processing the target file and network connection parameters for establishing a network connection, invoke a file transfer agent on the second device based on the network connection parameters to establish a network connection with the first device; wherein the first device is the device that receives the processing request.
[0423] In some embodiments of this application, a file processing apparatus is also provided. This file processing apparatus may include one or more functional modules for implementing the file processing methods of the above method embodiments.
[0424] For example, Figure 22 This is a schematic diagram of a document processing device provided in an embodiment of this application. Figure 22As shown, the file processing device 1800 includes: a generation module 1801, a sending module 1802, a receiving module 1803, and a transmission module 1804. The generation module 1801 is configured to, in response to a user's second processing request for a file, identify the operation action of the second processing request through a second intelligent agent, and generate a first processing request based on the operation action. The operation action is used to indicate the file processing operation that the user expects to perform on the file. The first processing request includes the operation action and the file information of the file. The sending module 1802 is configured to send the first processing request to a first device. The first device is equipped with a first intelligent agent and a first transmission agent; the receiving module 1803 is used to receive a response message from the first device, the response message including network connection parameters; wherein the network connection parameters are obtained by the first intelligent agent from the first transmission agent based on the operation action and the file information, and the network connection parameters are related to the file transfer protocol used by the first transmission agent; the transmission module 1804 is used to control the second transmission agent to connect with the first transmission agent according to the network connection parameters through the second intelligent agent, and to perform the transfer of the file.
[0425] One possible implementation is that the file processing operation includes at least one of uploading a file and synchronizing a file; the file information includes at least one of the following: file name, file type, file time, file size, and the storage path of the file in the second device; the execution of the file transfer includes: controlling the second transfer agent to send the file to the second file transfer agent through the second intelligent agent.
[0426] Another possible implementation is that the above file processing operation includes viewing a file; the above file information is the file information that the user expects to view; the above response message includes one or more network connection parameters, the above one or more network connection parameters correspond to at least one set of file lists, the above at least one set of file lists is determined by the above first intelligent agent based on the above file information; the above execution of the above file transmission includes: receiving the above files from at least one set of file lists from the above first transmission agent through the above second transmission agent.
[0427] In another possible implementation, the above apparatus further includes: an acquisition module; the second processing request includes a second storage path of the file in the second device; the generation module 1801 is further configured to: generate the second processing request based on the detected user dragging the file to the interaction window of the second agent through the graphical interface of the second device, and acquire the second storage path of the file in the second device through the second agent; the acquisition module is configured to access the file library of the second device through the second agent based on the second storage path of the file in the second device, and acquire the file information of the file.
[0428] In another possible implementation, the second processing request does not include the second storage path of the file in the second device, but includes natural language description information of the file; the apparatus further includes: a determining module and an accessing module; the determining module is used to determine the second storage path of the file in the second device based on the natural language description information through the second intelligent agent; the accessing module is used to access the file library of the second device based on the second storage path of the file in the second device through the second intelligent agent, and obtain the file information of the file.
[0429] The document processing apparatus provided in this application embodiment can implement the various processes implemented in the method embodiment of the second device described above, and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0430] In some embodiments of this application, a file processing apparatus is also provided. This file processing apparatus may include one or more functional modules for implementing the file processing methods of the above method embodiments.
[0431] For example, Figure 23 This is a schematic diagram of a document processing device provided in an embodiment of this application. Figure 23As shown, the file processing device 1900 includes: a receiving module 1901, an acquiring module 1902, a sending module 1903, and a transmission module 1904. The receiving module 1901 receives a first processing request from a second device, on which a second intelligent agent and a second transmission agent are running. The first processing request is generated by the second intelligent agent based on a user's operation action regarding a file processing request. The operation action indicates the file processing operation the user expects to perform on the file. The first processing request includes the operation action and file information of the file. The acquiring module 1902, through the first intelligent agent, acquires network connection parameters from the first transmission agent based on the operation action and the file information. The network connection parameters are related to the file transfer protocol used by the first transmission agent. The sending module 1903, through the first intelligent agent, sends a response message to the second device, the response message including the network connection parameters. The transmission module 1904, through the first intelligent agent, controls the first transmission agent to connect with the second transmission agent according to the network connection parameters and executes the file transmission.
[0432] One possible implementation is that the file processing operation includes uploading a file; the file information includes at least one of the following: file name, file type, file time, file size, and file storage path in the second device; the acquisition module 1902 is specifically used to: generate a first storage path based on the file information through the first intelligent agent, wherein the first storage path is the storage path of the file in the first device; send the first storage path and the operation action to the first transmission agent through the first intelligent agent; and acquire the network connection parameters based on the first storage path and the operation action through the first transmission agent.
[0433] Another possible implementation is that the above file processing operation includes file synchronization; the above acquisition module 1902 is specifically used to: create and store a synchronized folder in the first device based on the above operation action and the above file information through the first intelligent agent; send the storage path of the synchronized folder and the above operation action to the first transmission agent through the first intelligent agent; and obtain network connection parameters based on the storage path of the synchronized folder and the above operation action through the first transmission agent.
[0434] Another possible implementation is that the above file processing operation includes viewing files; the above file information is the file information that the user expects to view; the above acquisition module 1902 is specifically used to: generate at least one file list based on the above operation and the above file information through the above first intelligent agent; send the above at least one file list to the above first transmission agent through the above first intelligent agent; and obtain the above network connection parameters based on the above at least one file list through the above first transmission agent.
[0435] Another possible implementation is that the sending module 1903 is specifically used to: send the network connection parameters to the first intelligent agent through the first transmission proxy; and generate the response message through the first intelligent agent and send it to the second device.
[0436] Another possible implementation is that the above file processing operation includes at least one of uploading a file and synchronizing a file; the above file information includes at least one of the following: file name, file type, file time, file size, and the storage path of the above file in the above second device; the above execution of the above file transmission includes: receiving the above file transmitted by the above second transmission proxy through the above first transmission proxy.
[0437] Another possible implementation is that the above file processing operation includes viewing a file; the above file information is the file information that the user expects to view; the above response message includes one or more network connection parameters, the above one or more network connection parameters correspond to at least one set of file lists, the above at least one set of file lists is determined by the above first intelligent agent based on the above file information; the above execution of the above file transmission includes: through the above first intelligent agent, controlling the above first transmission agent to send the above files in the above at least one set of file lists to the above second transmission agent.
[0438] The document processing apparatus provided in this application embodiment can implement the various processes implemented in the method embodiment of the first device described above, and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0439] In the case where the functions of the integrated modules described above are implemented in hardware, this application provides a possible structural schematic diagram of the electronic device involved in the above embodiments. For example... Figure 24 As shown, the electronic device 90 includes: a processor 92, a communication interface 93, and a bus 94. Optionally, the electronic device 90 may also include a memory 91.
[0440] Processor 92 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 92 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 92 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0441] Communication interface 93 is used to connect with other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0442] The memory 91 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0443] As one possible implementation, the memory 91 can exist independently of the processor 92. The memory 91 can be connected to the processor 92 via a bus 94 and is used to store instructions or program code. When the processor 92 calls and executes the instructions or program code stored in the memory 91, it can implement the file processing method provided in the embodiments of this application.
[0444] In another possible implementation, the memory 91 can also be integrated with the processor 92.
[0445] Bus 94 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 94 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 24 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0446] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the service calling device can be divided into different functional modules to complete all or part of the functions described above.
[0447] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described file processing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0448] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0449] This application also provides a readable storage medium storing a program or instructions that, when executed by a computer, implement the file processing method provided in the above embodiments. It is understood that all or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware; the readable storage medium can be any of the foregoing embodiments or memory; the readable storage medium can also be an external storage device of the service invocation device, such as a plug-in hard drive, Smart MediaCard (SMC), Secure Digital (SD) card, flash card, etc., equipped on the service invocation device. Further, the readable storage medium can include both internal storage units of the service invocation device and external storage devices. The readable storage medium is used to store the computer program and other programs and data required by the service invocation device. The readable storage medium can also be used to temporarily store data that has been output or will be output.
[0450] This application also provides a computer program product, which is stored in a storage medium and implements the file processing method provided in the above embodiments when the computer program product is executed by a computer.
[0451] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0452] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0453] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A file processing method, characterized in that, Applied to a first intelligent agent, the method includes: Receive a processing request to process a target file, obtain file information for processing the target file, and network connection parameters for establishing a network connection; Send the file information and the network connection parameters; In response to the established network connection, the target file is processed according to the file information; wherein the network connection is established based on the network connection parameters.
2. The file processing method according to claim 1, characterized in that, The file information includes at least one of the following: location information for storing or reading the target file, a first folder corresponding to the target file, and a file list corresponding to the target file.
3. The file processing method according to claim 2, characterized in that, The location information used to store or read the target file is determined by the first intelligent agent based on at least one of the following: the file content of the target file, and the file system structure on the first device storing the target file or used to store the target file; And / or, the first folder corresponding to the target file is determined by the first intelligent agent based on at least one of the following information: the file content of the target file, the information of the folder created on the first device, and the second folder corresponding to the target file carried in the processing request; And / or, the file list corresponding to the target file is determined by the first intelligent agent based on at least one of the following information: descriptive information describing the target file, and information retrieved on the first device based on the content or descriptive information of the target file.
4. The file processing method according to claim 1, characterized in that, The process of processing the target file according to the file information in response to the established network connection includes: If the processing request is to upload the target file to the first device, then in response to the established network connection, the target file is received and the target file is stored according to the storage location in the file information; wherein, the first device is a device that stores the target file or is used to store the target file; If the processing request is to synchronize the target file, then in response to the established network connection, the first folder and the second folder in the file information are synchronized; wherein, the first folder is in the first device and the second folder is in the second device; the first folder or the second folder stores the target file, or a part of the target file is stored in either the first folder or the second folder and another part is stored in the other folder; If the processing request is to query the target file, then in response to the established network connection, the target file is sent according to the file list in the file information.
5. The file processing method according to claim 1, characterized in that, Also includes: The storage location of the target file is adjusted according to the file system structure on the first device.
6. A file processing method, characterized in that, Applied to second intelligent agents, including: Send a processing request to process the target file; The system receives file information for processing the target file and network connection parameters for establishing a network connection; wherein the file information and the network connection parameters are feedback information generated based on the processing request. A network connection is established based on the network connection parameters, and the target file is processed according to the file information.
7. The document processing method according to claim 6, characterized in that, The processing request includes at least one of the following: the file content of the target file, the second folder corresponding to the target file, and descriptive information describing the target file.
8. The document processing method according to claim 6, characterized in that, Before sending the processing request to process the target file, the method further includes: In response to an input instruction, the processing request is generated; wherein the input instruction is an instruction to process the target file input via a second device.
9. The document processing method according to claim 7, characterized in that, The step of processing the target file based on the file information includes: If the processing request is to upload the target file to the first device, then the target file is sent based on the network connection; If the processing request is to synchronize the target file, then based on the network connection, the first folder and the second folder in the file information are synchronized; wherein, the first folder is in the first device and the second folder is in the second device; the first folder or the second folder stores the target file, or a part of the target file is stored in either the first folder or the second folder and another part is stored in the other folder; If the processing request is to query the target file, then based on the network connection, a file list generated from the description information describing the target file is received, and / or the target file is received.
10. The document processing method according to claim 6, characterized in that, After receiving file information for processing the target file and network connection parameters for establishing a network connection, the method further includes: Based on the network connection parameters, a file transfer agent on the second device is invoked to establish a network connection with the first device; wherein, the first device is the device that receives the processing request.
11. A file processing method, characterized in that, The method is applied to a first device, the first device including a first intelligent agent, the first intelligent agent being used to perform the method according to any one of claims 1-5.
12. A file processing method, characterized in that, The method is applied to a second device, the second device including a second intelligent agent, the second intelligent agent being used to perform the method according to any one of claims 6-10.
13. A document processing system, characterized in that, It includes a first device and a second device, wherein the first device includes a first intelligent agent as described in any one of claims 1-5, and the second device includes a second intelligent agent as described in any one of claims 6-10.
14. A document processing device, characterized in that, The file processing device is equipped with a first intelligent agent, and the device includes: a receiving module, an acquisition module, a sending module, and a file processing module; The receiving module is used to receive processing requests for processing the target file; The acquisition module is used to acquire file information for processing the target file, and network connection parameters for establishing a network connection. The sending module is used to send the file information and the network connection parameters; The file processing module is used to process the target file according to the file information in response to the established network connection; wherein the network connection is established based on the network connection parameters.
15. The document processing apparatus according to claim 14, characterized in that, The file information includes at least one of the following: location information for storing or reading the target file, a first folder corresponding to the target file, and a file list corresponding to the target file.
16. The document processing apparatus according to claim 15, characterized in that, The location information used to store or read the target file is determined by the first intelligent agent based on at least one of the following: the file content of the target file, and the file system structure on the first device storing the target file or used to store the target file; And / or, the first folder corresponding to the target file is determined by the first intelligent agent based on at least one of the following information: the file content of the target file, the information of the folder created on the first device, and the second folder corresponding to the target file carried in the processing request; And / or, the file list corresponding to the target file is determined by the first intelligent agent based on at least one of the following information: descriptive information describing the target file, and information retrieved on the first device based on the content or descriptive information of the target file.
17. The document processing apparatus according to claim 14, characterized in that, The file processing module is specifically used for: If the processing request is to upload the target file to the first device, then in response to the established network connection, the target file is received and the target file is stored according to the storage location in the file information; wherein, the first device is a device that stores the target file or is used to store the target file; If the processing request is to synchronize the target file, then in response to the established network connection, the first folder and the second folder in the file information are synchronized; wherein, the first folder is in the first device and the second folder is in the second device; the first folder or the second folder stores the target file, or a part of the target file is stored in either the first folder or the second folder and another part is stored in the other folder; If the processing request is to query the target file, then in response to the established network connection, the target file is sent according to the file list in the file information.
18. The document processing apparatus according to claim 14, characterized in that, The device further includes: an adjustment module; The adjustment module is used to adjust the storage location of the target file according to the file system structure on the first device.
19. A document processing device, characterized in that, The file processing device is equipped with a second intelligent agent, and the device includes: a sending module, a receiving module, a connection module, and a file processing module; The sending module is used to send a processing request to process the target file; The receiving module is configured to receive file information for processing the target file, and network connection parameters for establishing a network connection; wherein the file information and the network connection parameters are feedback information generated based on the processing request; The connection module is used to establish a network connection based on the network connection parameters; The file processing module is used to process the target file according to the file information.
20. The document processing apparatus according to claim 19, characterized in that, The processing request includes at least one of the following: the file content of the target file, the second folder corresponding to the target file, and descriptive information describing the target file.
21. The document processing apparatus according to claim 19, characterized in that, The device further includes: a generation module; The generation module is configured to generate the processing request in response to an input instruction before the sending module sends the processing request for processing the target file; wherein the input instruction is an instruction to process the target file input through a second device.
22. The document processing apparatus according to claim 20, characterized in that, The file processing module is specifically used for: If the processing request is to upload the target file to the first device, then the target file is sent based on the network connection; If the processing request is to synchronize the target file, then based on the network connection, the first folder and the second folder in the file information are synchronized; wherein, the first folder is in the first device and the second folder is in the second device; the first folder or the second folder stores the target file, or a part of the target file is stored in either the first folder or the second folder and another part is stored in the other folder; If the processing request is to query the target file, then based on the network connection, a file list generated from the description information describing the target file is received, and / or the target file is received.
23. The document processing apparatus according to claim 19, characterized in that, The connection module is further configured to, after the receiving module receives file information for processing the target file and network connection parameters for establishing a network connection, invoke a file transfer agent on the second device based on the network connection parameters to establish a network connection with the first device; wherein the first device is the device that receives the processing request.
24. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the file processing method as described in any one of claims 1-5, or to implement the file processing method as described in any one of claims 6-10.
25. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions, which, when executed by a computer, implement the file processing method as described in any one of claims 1-5, or the file processing method as described in any one of claims 6-10.
26. A computer program product, characterized in that, The computer program product is stored in a storage medium, and when executed by a computer, the computer program product implements the file processing method as described in any one of claims 1-5, or implements the file processing method as described in any one of claims 6-10.
