Agent-based task processing method and apparatus, electronic device, and storage medium
By analyzing key information in task requests using intelligent agents, configuring scores to calculate task complexity, and matching the processing system, the problem of low accuracy and efficiency in task processing by intelligent agents is solved, achieving high efficiency and accuracy in task processing.
Patent Information
- Application Number
- CN202611031771.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-10
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies struggle to effectively improve the accuracy and efficiency of intelligent agents in task processing, especially when dealing with complex tasks, as they cannot adequately match the task processing system.
By analyzing task requests through intelligent agents, the number of task execution steps, information completeness, resource dependencies, and time sensitivity information are obtained. Corresponding scores are configured, task complexity is calculated, and an appropriate task processing system is matched for processing.
It improves the accuracy and efficiency of task processing, can reasonably match task processing systems, meet users' personalized needs, and enhance the intelligence of intelligent agents.
Smart Images

Figure CN123137809A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, specifically to the fields of human-computer interaction and artificial intelligence, and in particular to a task processing method, apparatus, electronic device and storage medium based on intelligent agents. Background Technology
[0002] With the rapid development of artificial intelligence (AI) technology, machines are now able to simulate human intelligent behaviors, such as perceiving the environment, understanding information, reasoning and making judgments, and making autonomous decisions. This allows machines to be equipped with a "brain," enabling them to learn and solve problems on their own.
[0003] As AI technology matures, its applications are expanding. Intelligent agents, as entities that utilize AI technology, are able to autonomously complete tasks. Therefore, intelligent agents can also be called AI agents. For example, an intelligent agent is an independent intelligent entity capable of perceiving its environment, making autonomous decisions, taking proactive actions, and being goal-oriented. It can empower various industries and improve task processing efficiency. Summary of the Invention
[0004] This disclosure provides a task processing method, apparatus, electronic device, and storage medium based on intelligent agents.
[0005] According to one aspect of this disclosure, an agent-based task processing method is provided, comprising:
[0006] Obtain the user's task request;
[0007] An intelligent agent is used to analyze the task request and obtain at least one of the following: the number of task execution steps, the completeness of task execution information, the resource dependency information during task execution, and the time-sensitive information of the task.
[0008] The task complexity is obtained based on at least one of the number of task execution steps, the integrity information, the resource dependency information, and the time-sensitive information.
[0009] Based on the task complexity, a corresponding target task processing system is matched to process the task request.
[0010] According to another aspect of this disclosure, an agent-based task processing apparatus is provided, comprising:
[0011] The request retrieval module is used to retrieve user task requests;
[0012] The task information acquisition module is used to analyze the task request using an intelligent agent and acquire at least one of the following: the number of task execution steps, the completeness information of task execution information, the resource dependency information during task execution, and the time-sensitive information of the task.
[0013] The complexity acquisition module is used to acquire the task complexity based on at least one of the number of task execution steps, the integrity information, the resource dependency information, and the time-sensitive information.
[0014] The task processing module is used to match the corresponding target task processing system based on the task complexity and process the task request.
[0015] According to another aspect of this disclosure, an electronic device is provided, comprising:
[0016] At least one processor; and
[0017] A memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the methods described above and any possible implementations.
[0019] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing the computer to perform the methods described above and any possible implementation thereof.
[0020] According to another aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the aspects and any possible implementations described above.
[0021] According to the technology disclosed herein, the accuracy and efficiency of task processing can be effectively improved.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0023] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:
[0024] Figure 1 This is a schematic diagram based on the first embodiment of the present disclosure;
[0025] Figure 2This is a schematic diagram according to the second embodiment of the present disclosure;
[0026] Figure 3 This is a schematic diagram according to the third embodiment of the present disclosure;
[0027] Figure 4 This is a schematic diagram according to the fourth embodiment of the present disclosure;
[0028] Figure 5 This is a block diagram of an electronic device used to implement the methods of the embodiments of this disclosure. Detailed Implementation
[0029] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0030] Obviously, the described embodiments are only some, not all, of the embodiments disclosed herein. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0031] It should be noted that the terminal devices involved in the embodiments of this disclosure may include, but are not limited to, smart devices such as mobile phones, personal digital assistants (PDAs), wireless handheld devices, and tablet computers; the display devices may include, but are not limited to, personal computers, televisions, and other devices with display functions.
[0032] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0033] Figure 1 This is a schematic diagram based on the first embodiment of the present disclosure; as shown Figure 1 As shown, this embodiment provides a task processing method based on an intelligent agent, which is applied in an intelligent agent and may specifically include the following steps:
[0034] S101. Obtain the user's task request;
[0035] S102. Using an intelligent agent, analyze the task request and obtain at least one of the following: the number of task execution steps, the completeness of task execution information, the resource dependency information during task execution, and the time-sensitive information of the task.
[0036] S103. Obtain the task complexity based on at least one of the following: the number of task execution steps, integrity information, resource dependency information, and time-sensitive information.
[0037] S104. Based on the task complexity, match the corresponding target task processing system and process the task request.
[0038] The agent-based task processing method in this embodiment can comprehensively analyze task requests when they are received, obtaining at least one of the following: the number of task execution steps, the completeness of task execution information, resource dependency information during task execution, and time-sensitive information of the task. The number of task execution steps refers to the number of steps required to execute the task corresponding to the task request. The completeness of task execution information refers to information such as whether the required information is complete when executing the task corresponding to the task request. The resource dependency information during task execution refers to the information on the dependencies of the task corresponding to the task request on other resources. The time-sensitive information of the task refers to information such as whether the task corresponding to the task request is time-sensitive.
[0039] The agent-based task processing method of this embodiment allows the agent to obtain at least one of the following when it receives a task request: the number of task execution steps, the completeness of task execution information, resource dependency information during task execution, and time-sensitive information of the task. Based on the obtained information, the agent can then obtain the task complexity. Based on the task complexity, the agent can accurately and effectively match the corresponding target task processing system to process the task request. This allows for targeted processing of task requests, effectively improving the accuracy and efficiency of task processing.
[0040] Figure 2 This is a schematic diagram based on the second embodiment of the present disclosure; as shown Figure 2 As shown, the agent-based task processing method of this embodiment, in the above... Figure 1 Based on the technical solutions of the illustrated embodiments, the technical solutions of this disclosure will be described in further detail. For example... Figure 2 As shown, the agent-based task processing method in this embodiment may specifically include the following steps:
[0041] S201. Obtain the user's task request;
[0042] S202. Employ an intelligent agent to plan task execution steps based on task requests;
[0043] Specifically, based on a task request, the intelligent agent can plan the task execution steps corresponding to that task request.
[0044] S203. Use an intelligent agent to obtain the number of task execution steps;
[0045] Through steps S202-S203, an intelligent agent can analyze the task request, accurately and effectively plan the task execution steps, and thus accurately obtain the number of task execution steps.
[0046] S204. Configure the corresponding first score based on the number of task execution steps;
[0047] Specifically, in implementing this step, an intelligent agent can intelligently configure a corresponding first score based on the number of task execution steps, so that the more task execution steps there are, the higher the configured first score. Alternatively, preset rules can be used to configure the corresponding first score. For example, the preset rules can specify that when the number of task execution steps is less than a preset number, the first score is configured as a first value; when the number of task execution steps is greater than or equal to the preset number, the first score is configured as a second value; and the second value is greater than the first value. Alternatively, the first score can be configured to change dynamically with the number of steps. For example, when the number of steps is 1, the first score is configured as 5; when the number of steps is 2, the first score is configured as 15; when the number of steps is 3, the first score is configured as 25; when the number of steps is 4 or more, the first score is configured as 40, and so on, thus enabling the configuration of the first score for various numbers of steps. The preset number, the first value, and the second value can all be set based on experience or actual needs. For example, the preset number can be 3, 4, or other values; the first value can be 5, 10, or other values; and the second value can be 20, 30, or other values, without any limitations.
[0048] In other words, the greater the number of steps in a task, the higher its complexity, and the higher the corresponding initial score. For example, for the task request "turn on the light," if the agent analyzes and determines that it can be accomplished in one step, the initial score for the number of task execution steps can be 5. For the task request "turn on the light and adjust its brightness," if the agent analyzes and determines that it can be accomplished in two steps, the initial score for the number of task execution steps can be 15. For the task request "schedule," if the agent analyzes and determines that it requires more than four complex steps, the initial score can be 40.
[0049] S205. Employ an intelligent agent to detect whether the information required for each step in the task execution process is complete based on the task request.
[0050] Specifically, it can be analyzed whether the information required for execution in each step exists in the task request. If it exists, the information is complete; if it does not exist, the information is incomplete.
[0051] S206. In response to incomplete information required for execution during a task execution step, obtain the amount of information that needs to be supplemented.
[0052] Specifically, based on the processing in steps S205 and S206, the completeness information of the task execution information can be obtained. That is, in this embodiment, the completeness information of the task execution information can include whether the information required for each step in the task execution is complete, such as complete or incomplete. Further optionally, if incomplete, it can also include the amount of information that needs to be supplemented.
[0053] This method allows for the comprehensive, accurate, and effective acquisition of complete task execution information.
[0054] S207. Configure the corresponding second score based on the integrity information of the task execution information;
[0055] The completeness information of the task execution information in this embodiment is the information obtained in steps S205 and S206 above.
[0056] In the specific implementation of this step, an intelligent agent can intelligently configure a corresponding second score based on the completeness information of the task execution information, so that the more incomplete the information identified by the completeness information, the higher the configured second score. Alternatively, a preset rule can be used to configure the corresponding second score. For example, the preset rule can stipulate that the configured second score is 0 when the information is complete, and a second score greater than 0 when the information is incomplete. For example, a fixed value can be uniformly configured for incomplete information. Or, further, the number of pieces of information that need to be supplemented can be considered when configuring the second score. Specifically, the more pieces of information that need to be supplemented, the higher the configured second score. For example, the configured second score can be 0 when the information is complete, 15 when only one piece of information needs to be supplemented, and 30 when more than two pieces of information need to be supplemented. For example, for the task request "play music", the configured second score can be 0 points, and the system can play music randomly. For the task request "play a song by xx singer", the singer's specific name needs to be supplemented, and the corresponding configured second score can be 15 points. For the task request "Help me schedule", the user needs to provide information such as the time, location and preferences of the schedule. It can be determined that more than two pieces of information need to be provided, and the second score can be configured as 30 points.
[0057] In practical applications, the second score can also be configured in other ways. In short, the more incomplete the information that satisfies the integrity information identifier, the higher the configured second score should be.
[0058] S208. Employ an intelligent agent to detect whether each step in the task execution process depends on other resources.
[0059] S209. In response to each step of the task execution process depending on other resources, obtain the number of dependent resources;
[0060] Similarly, based on the processing in steps S208 and S209, resource dependency information during task execution can be obtained. That is, in this embodiment, the resource dependency information during task execution can include whether each step in the task execution depends on other resources, such as whether it depends on or does not. Further optionally, if dependent, it can also include the number of dependent resources.
[0061] This method allows for the comprehensive, accurate, and effective acquisition of resource dependency information for task execution.
[0062] S210. Based on resource dependency information, configure the corresponding third score;
[0063] For example, the resource dependency information in this step is the information obtained in steps 208 and S209 above.
[0064] In the specific implementation of this step, an intelligent agent can intelligently configure the corresponding third score based on resource dependency information, so that the higher the degree of resource dependency identified by the resource dependency information, the higher the configured third score. Alternatively, preset rules can be used to configure the corresponding third score. For example, the preset rules can stipulate that when no resource is dependent, the configured third score is 0. If a resource is dependent, a third score greater than 0 is configured. For example, when dependent on one resource, the corresponding third score can be configured as 10, and when dependent on two or more resources, the corresponding score can be configured as 20. For example, for the task request "Today's weather," which only requires calling a weather application, the configured third score can be 10. For the task request "Plan an itinerary," which requires calling a calendar application and other applications to query information, depending on at least two resources, the configured third score can be 20.
[0065] In practical applications, the third score can also be configured in other ways. In short, the higher the degree of dependence of the task execution steps on other resources, the higher the configured third score should be.
[0066] S211. Use an intelligent agent to analyze the task request and determine the time-sensitive information of the task;
[0067] Specifically, it determines whether the task corresponding to the task request is time-sensitive. In other words, time-sensitive information can include whether it is sensitive or not.
[0068] S212. Configure the corresponding fourth score based on time-sensitive information;
[0069] In specific configurations, the higher the time sensitivity, the lower the fourth score can be. For example, time sensitivity indicates a need for rapid response, without requiring a focus on quality or complex task reasoning; in this case, the fourth score can be lower. Conversely, time insensitivity indicates a lack of need for rapid response, allowing for a focus on quality and complex reasoning; in this case, the fourth score can be higher. Specifically, for time-sensitive task requests, the fourth score can be 0; for time-insensitive task requests, the fourth score can be 10. For example, the fourth score for the task request "turn off the fire" can be 0, while the fourth score for the task request "organize photos" can be 10.
[0070] Based on the above steps, the first, second, third, and fourth scores corresponding to the task request can be configured accurately and reasonably.
[0071] S213. Calculate the task complexity based on at least one of the first score, second score, third score, and fourth score, and the pre-configured weights.
[0072] In this embodiment, the pre-configured weights of each piece of information—the number of task execution steps, integrity information, resource dependency information, and time-sensitive information—can be configured according to the importance of each piece of information. For example, if the importance is the same, the weight can be configured to 1 for each. If the importance is different, more important information can be assigned a higher weight, and vice versa.
[0073] Specifically, the complexity of the task is calculated by using each score and its corresponding weight, and by weighted summation.
[0074] To improve the accuracy of task complexity calculation, it is preferable to obtain the above four pieces of information and use four corresponding scores to calculate the task complexity.
[0075] This method allows for a more objective, reasonable, and accurate assessment of the task's complexity.
[0076] S214. Based on the task complexity and a predetermined complexity threshold, a corresponding target task processing system is matched from the first task processing system and the second task processing system to process the task request; the response speed of the first task processing system is faster than that of the second task processing system, and the second task processing system is executed asynchronously in the background.
[0077] The complexity threshold in this embodiment can be obtained based on experimental testing. For example, through testing on a large number of test sets, it can be found that the false positive rate is lowest when the complexity threshold is 30.
[0078] For example, if the task complexity is greater than or equal to the complexity threshold, the second task processing system can be matched with the first task processing system and the second task processing system as the target task processing system to process the task.
[0079] If the task complexity is less than the complexity threshold, the first task processing system can be matched with the second task processing system to serve as the target task processing system for task processing.
[0080] Based on the above, it can be concluded that the first task processing system can also be called a fast thinking system, used to handle simple tasks with a complexity less than a complexity threshold. For simple tasks, the fast thinking system can subdivide the intent and route it to dedicated modules such as casual conversation, knowledge Q&A, online retrieval, and tool invocation, achieving instant and rapid response. For example, for the task request "turn on the light," the calculated task complexity is 5 points, which is less than the complexity threshold of 30 points, and it can be matched with the fast thinking system for task processing. For the task request "today's weather," the calculated task complexity is 18 points, which is less than the complexity threshold of 30 points, and it can also be matched with the fast thinking system for task processing.
[0081] The second task processing system, also known as the slow-thinking system, is used to handle complex tasks with a complexity level greater than or equal to a complexity threshold. For complex tasks, this embodiment creates an independent task execution environment to asynchronously execute the complete plan-execute process in the background. Upon completion, the results are proactively pushed to the device to trigger a human-like announcement. For example, for the task request "Schedule tomorrow's schedule," based on the steps of the above embodiment, the calculated task complexity is 65 points, which is greater than the complexity threshold of 30 points, and thus it can be matched with the slow-thinking system for task processing. For the task request "Book me a flight," based on the steps of the above embodiment, the calculated task complexity is 58 points, which is greater than the complexity threshold of 30 points, and thus it can be matched with the slow-thinking system for task processing.
[0082] However, to avoid impacting user experience, the slow-thinking system can first return a response indicating that it is in progress, such as "Okay, I'm processing it for you," and then process it asynchronously in the background. Further, optionally, in one embodiment of this disclosure, the complexity threshold can be fixed; for example, in the following scenarios, the complexity threshold can be reasonably adjusted.
[0083] The first scenario may specifically include the following steps:
[0084] (a1) Obtain the user's tags or the user's historical behavior data;
[0085] (b1) Using an intelligent agent, based on the user's tags or the user's historical behavior data, the user's preference strategy is analyzed. The user's preference strategy indicates whether the user is biased towards quality or efficiency during task execution.
[0086] (c1) Adjust the complexity threshold based on the user's preference strategy.
[0087] For example, if a user's preference strategy indicates that the user is biased towards quality during task execution, the corresponding complexity threshold for the user will be lowered, so that more of the user's tasks can be processed by the slow-thinking system, thereby improving the quality of task processing.
[0088] If a user's preference strategy indicates that the user prioritizes efficiency during task execution, the corresponding complexity threshold for that user will be increased, allowing more of the user's tasks to be processed by the Fast Thinking system, thereby improving task processing speed.
[0089] By adopting this method, the complexity threshold used by a user can be reasonably adjusted based on the user's tags or historical behavior data to meet the user's personalized needs in task processing.
[0090] The second scenario may specifically include the following steps:
[0091] (a2) Obtain the real-time load count of the agent;
[0092] (b2) Detect whether the number of real-time loads is greater than or equal to the preset load threshold. If yes, proceed to step (c2); otherwise, if the number of real-time loads is less than the preset load threshold, proceed to step (d2).
[0093] (c2) Increase the complexity threshold so that more task requests can be responded to quickly without going through complex task reasoning, thereby further speeding up task processing.
[0094] (d2) Lower the complexity threshold so that more task requests can go through task inference, thereby improving the quality of task processing.
[0095] By adopting this method, the complexity threshold of the agent can be reasonably adjusted based on the real-time load of the agent, so as to effectively balance the processing speed and quality of the agent and enhance the intelligence of the agent.
[0096] The agent-based task processing method in this embodiment, by employing the above-described approach, can accurately and reasonably allocate corresponding scores based on the number of task execution steps, the completeness of task execution information, resource dependencies during task execution, and time-sensitive information of the task, thereby accurately and effectively calculating the task complexity. Furthermore, it can accurately and reasonably match the task to a target processing system based on the task complexity and a task complexity threshold, effectively improving the accuracy and efficiency of task processing.
[0097] Furthermore, in this embodiment, the task complexity threshold can be reasonably adjusted based on specific needs to balance the efficiency and quality of task processing, meet the personalized needs of users, and enhance the intelligence of task processing.
[0098] Figure 3 This is a schematic diagram based on the third embodiment of the present disclosure; as shown Figure 3 As shown, this embodiment provides a task processing device 300 based on an intelligent agent, including:
[0099] The request acquisition module 301 is used to acquire the user's task request;
[0100] The task information acquisition module 302 is used to analyze the task request using an intelligent agent and acquire at least one of the following: the number of task execution steps, the completeness information of task execution information, the resource dependency information during task execution, and the time-sensitive information of the task.
[0101] The complexity acquisition module 303 is used to acquire the task complexity based on at least one of the number of task execution steps, the integrity information, the resource dependency information, and the time-sensitive information.
[0102] The task processing module 304 is used to match the corresponding target task processing system based on the task complexity and process the task request.
[0103] The agent-based task processing device 300 in this embodiment achieves the same implementation principle and technical effect as the above-mentioned related method embodiments by using the above-mentioned modules. For details, please refer to the description of the above-mentioned related method embodiments, which will not be repeated here.
[0104] Figure 4 This is a schematic diagram according to the fourth embodiment of the present disclosure; the agent-based task processing device 400 of this embodiment, in the above... Figure 3 Based on the technical solutions of the illustrated embodiments, the technical solutions of this disclosure will be described in further detail. For example... Figure 4 As shown, the agent-based task processing device 400 of this embodiment includes the above-described... Figure 3The modules with the same name and function shown are: request acquisition module 401, task information acquisition module 402, complexity acquisition module 403, and task processing module 404.
[0105] In this embodiment, the task information acquisition module 402 is used for:
[0106] Using the aforementioned intelligent agent, based on the task request, the task execution steps are planned;
[0107] The intelligent agent is used to obtain the number of task execution steps.
[0108] Further optionally, in one embodiment of this disclosure, the task information acquisition module 402 is used for:
[0109] Using the aforementioned intelligent agent, based on the task request, it detects whether the information required for each step in the task execution process is complete.
[0110] Further optionally, in one embodiment of this disclosure, the task information acquisition module 402 is used for:
[0111] In response to incomplete information required for execution during the task execution steps, the amount of information that needs to be supplemented is obtained.
[0112] Further optionally, in one embodiment of this disclosure, the task information acquisition module 402 is used for:
[0113] The intelligent agent is used to detect whether each step in the task execution process depends on other resources.
[0114] Further optionally, in one embodiment of this disclosure, the task information acquisition module 402 is used for:
[0115] In response to each step of the task execution process relying on other resources, the number of dependent resources is obtained.
[0116] Further optional, such as Figure 4 As shown, in one embodiment of this disclosure, the complexity acquisition module 403 includes:
[0117] Configuration unit 4031 is used to configure a corresponding first score based on the number of task execution steps;
[0118] Configuration unit 4031 is used to configure a corresponding second score based on the integrity information;
[0119] Configuration unit 4031 is used to configure a corresponding third score based on the resource dependency information;
[0120] Configuration unit 4031 is used to configure a corresponding fourth score based on the time-sensitive information;
[0121] The calculation unit 4032 is used to calculate the task complexity based on at least one of the first score, the second score, the third score and the fourth score, and a pre-configured weight.
[0122] Further optionally, in one embodiment of this disclosure, the task processing module 404 is configured to:
[0123] Based on the task complexity and a predetermined complexity threshold, a corresponding target task processing system is matched from the first task processing system and the second task processing system to process the task request; the response speed of the first task processing system is faster than that of the second task processing system, and the second task processing system is executed asynchronously in the background.
[0124] Further optional, such as Figure 4 As shown, in one embodiment of this disclosure, the agent-based task processing device 400 further includes:
[0125] Reference information acquisition module 405 is used to acquire the user's tags or the user's historical behavior data;
[0126] Analysis module 406 is used to use the intelligent agent to analyze the user's preference strategy based on the user's tags or the user's historical behavior data. The user's preference strategy indicates whether the user is biased towards quality or efficiency during task execution.
[0127] The adjustment module 407 is used to adjust the complexity threshold based on the user's preference strategy.
[0128] Further optionally, in one embodiment of this disclosure, the adjustment module 407 is configured to:
[0129] If the user's preference strategy indicates that the user is biased towards quality during task execution, the complexity threshold corresponding to the user will be lowered.
[0130] If the user's preference strategy indicates that the user is biased towards efficiency during task execution, the complexity threshold corresponding to the user will be increased.
[0131] Further optionally, in one embodiment of this disclosure, the reference information acquisition module 405 is also used to acquire the real-time load quantity of the intelligent agent;
[0132] Adjustment module 407 is also used for:
[0133] If the number of real-time loads is greater than or equal to a preset load threshold, increase the complexity threshold;
[0134] If the number of real-time loads is less than the preset load threshold, the complexity threshold is lowered.
[0135] The agent-based task processing device 400 in this embodiment achieves the same implementation principle and technical effect as the above-mentioned related method embodiments by using the above-mentioned modules. For details, please refer to the description of the above-mentioned related method embodiments, which will not be repeated here.
[0136] The collection, acquisition, storage, use, processing, transmission, application, provision, and disclosure of any type of information, such as user personal information, in this technical solution comply with relevant laws and regulations and do not violate public order and good morals.
[0137] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0138] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0139] like Figure 5 As shown, device 500 includes a computing unit 501, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 502 or a computer program loaded from storage unit 508 into random access memory (RAM) 503. RAM 503 may also store various programs and data required for the operation of device 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. Input / output (I / O) interface 505 is also connected to bus 504.
[0140] Multiple components in device 500 are connected to I / O interface 505, including: input unit 506, such as keyboard, mouse, etc.; output unit 507, such as various types of monitors, speakers, etc.; storage unit 508, such as disk, optical disk, etc.; and communication unit 509, such as network card, modem, wireless transceiver, etc. Communication unit 509 allows device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0141] The computing unit 501 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the methods of this disclosure. For example, in some embodiments, the methods of this disclosure may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the methods of this disclosure described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the methods of this disclosure by any other suitable means (e.g., by means of firmware).
[0142] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0143] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0144] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0145] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0146] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0147] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0148] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0149] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A task processing method based on intelligent agents, comprising: Obtain the user's task request; An intelligent agent is used to analyze the task request and obtain at least one of the following: the number of task execution steps, the completeness of task execution information, the resource dependency information during task execution, and the time-sensitive information of the task. The task complexity is obtained based on at least one of the number of task execution steps, the integrity information, the resource dependency information, and the time-sensitive information. Based on the task complexity, a corresponding target task processing system is matched to process the task request.
2. The method according to claim 1, wherein, An intelligent agent is used to analyze the task request and obtain the number of task execution steps, including: Using the aforementioned intelligent agent, based on the task request, the task execution steps are planned; The intelligent agent is used to obtain the number of task execution steps.
3. The method according to claim 2, wherein, An intelligent agent is used to analyze the task request and obtain complete information about the task execution, including: Using the aforementioned intelligent agent, based on the task request, it detects whether the information required for each step in the task execution process is complete.
4. The method according to claim 3, wherein, The process of using an intelligent agent to analyze the task request and determine whether the task execution information is complete also includes: In response to incomplete information required for execution during the task execution steps, the amount of information that needs to be supplemented is obtained.
5. The method according to claim 2, wherein, An intelligent agent is used to analyze the task request and obtain resource dependency information for task execution, including: The intelligent agent is used to detect whether each step in the task execution process depends on other resources.
6. The method according to claim 2, wherein, The task request is analyzed using an intelligent agent, and the resource dependency information during task execution also includes: In response to each step of the task execution process relying on other resources, the number of dependent resources is obtained.
7. The method according to any one of claims 1-6, wherein, The task complexity is obtained based on at least one of the following: the number of task execution steps, the integrity information, the resource dependency information, and the time-sensitive information: Based on the number of task execution steps, a corresponding first score is configured; Based on the integrity information, configure the corresponding second score; Based on the resource dependency information, configure the corresponding third score; Based on the time-sensitive information, configure the corresponding fourth score; The task complexity is calculated based on at least one of the first score, the second score, the third score, and the fourth score, as well as pre-configured weights.
8. The method according to any one of claims 1-6, wherein, Based on the task complexity, a corresponding target task processing system is matched to process the task request, including: Based on the task complexity and a predetermined complexity threshold, a corresponding target task processing system is matched from the first task processing system and the second task processing system to process the task request; the response speed of the first task processing system is faster than that of the second task processing system, and the second task processing system is executed asynchronously in the background.
9. The method according to claim 8, wherein, Based on the task complexity, a matching target task processing system is obtained. Before processing the task request, the method further includes: Obtain the user's tags or the user's historical behavior data; Using the aforementioned intelligent agent, based on the user's tags or the user's historical behavior data, the user's preference strategy is analyzed, and the user's preference strategy identifies whether the user is biased towards quality or efficiency during task execution; The complexity threshold is adjusted based on the user's preference strategy.
10. The method according to claim 9, wherein, Based on the user's preference strategy, the complexity threshold is adjusted, including: If the user's preference strategy indicates that the user is biased towards quality during task execution, the complexity threshold corresponding to the user will be lowered. If the user's preference strategy indicates that the user is biased towards efficiency during task execution, the complexity threshold corresponding to the user will be increased.
11. The method according to claim 8, wherein, Based on the task complexity, a matching target task processing system is obtained. Before processing the task request, the method further includes: Obtain the real-time load count of the intelligent agent; If the number of real-time loads is greater than or equal to a preset load threshold, increase the complexity threshold; If the number of real-time loads is less than the preset load threshold, the complexity threshold is lowered.
12. A task processing device based on intelligent agents, comprising: The request retrieval module is used to retrieve user task requests; The task information acquisition module is used to analyze the task request using an intelligent agent and acquire at least one of the following: the number of task execution steps, the completeness information of task execution information, the resource dependency information during task execution, and the time-sensitive information of the task. The complexity acquisition module is used to acquire the task complexity based on at least one of the number of task execution steps, the integrity information, the resource dependency information, and the time-sensitive information. The task processing module is used to match the corresponding target task processing system based on the task complexity and process the task request.
13. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1-11.
14. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-11.
15. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method according to any one of claims 1-11.
