Search

CN-121996327-A - Method, apparatus, device, storage medium and program product for task processing

CN121996327ACN 121996327 ACN121996327 ACN 121996327ACN-121996327-A

Abstract

According to embodiments of the present disclosure, a task processing method, apparatus, device, storage medium, and program product are provided. At the client, the method includes receiving a task execution instruction corresponding to the task request from the server device for execution in response to sending the task request to the server device, receiving prediction information for the task request from the server device, the prediction information indicating at least one predicted execution result of the task execution instruction and a predicted response corresponding to the at least one predicted execution result, respectively, and providing a response for the task request based on a match between a target execution result of the task execution instruction and the at least one predicted execution result after execution of the task execution instruction is completed. This helps to improve the stability and efficiency with which the client device provides a response.

Inventors

  • MI XIAOCHUAN
  • LIN QIAN
  • AI DI
  • LIU QIANG
  • LI QINGXU

Assignees

  • 北京字跳网络技术有限公司

Dates

Publication Date
20260508
Application Date
20241108

Claims (20)

  1. 1. A method for task processing, implemented at a client device, comprising: In response to sending a task request to a server device, receiving a task execution instruction corresponding to the task request from the server device for execution; Receiving prediction information for the task request from the server device, the prediction information indicating at least one predicted execution result of the task execution instruction and a prediction response corresponding to the at least one predicted execution result, respectively, and After execution of the task execution instruction is completed, providing a response to the task request based on a match between a target execution result of the task execution instruction and the at least one predicted execution result.
  2. 2. The method of claim 1, wherein receiving, from the server device, prediction information for the task request comprises: receiving the prediction information from the server device before the execution of the task execution instruction is completed, or And before the expiration of a preset time period after the completion of the execution of the task execution instruction, receiving the prediction information from the server device.
  3. 3. The method of claim 1, wherein receiving, from the server device, prediction information for the task request comprises: receiving a predictive indication of the provision of the predictive information from the server device, and And receiving the prediction information from the server device.
  4. 4. The method of claim 1, wherein providing a response to the task request based on a match between a target execution result of the task execution instruction and the at least one predicted execution result comprises: Comparing the target execution result with the at least one predicted execution result, and In response to determining a target predicted execution result that matches the target execution result from the at least one predicted execution result, providing a target predicted response corresponding to the target predicted execution result.
  5. 5. The method of claim 4, wherein the prediction information further indicates at least one prediction result identification corresponding to the at least one prediction execution result, and comparing the target execution result with the at least one prediction execution result comprises: Comparing the result identifier corresponding to the target execution result with the at least one predicted result identifier, and In response to determining a target prediction result identifier matching the result identifier from the at least one prediction result identifier, determining that the target prediction execution result corresponding to the target prediction result identifier matches the execution result.
  6. 6. The method of claim 1, further comprising: transmitting the target execution result to the server device in response to determining that none of the target execution result and the at least one predicted execution result match, or in response to not receiving the predicted information; Receiving a target response to the target execution result from the server device, and The target response to the target execution result is provided.
  7. 7. The method of claim 1, further comprising: Receiving feedback for the provided response, and And sending the feedback to the server-side equipment.
  8. 8. A method for task processing, implemented at a server device, comprising: In response to receiving a task request sent by a client device, determining a task execution instruction corresponding to the task request based on the task request; Determining prediction information for the task request based on the task execution instruction, and And sending the prediction information to the client device.
  9. 9. The method of claim 8, wherein determining prediction information for the task request based on the task execution instructions comprises: and determining the prediction information in the case that the execution result of the task execution instruction is not received.
  10. 10. The method of claim 8, wherein determining prediction information for the task request based on the task execution instructions comprises: the prediction information is determined based on the task execution instruction in response to the task execution instruction being a predetermined type of instruction.
  11. 11. The method of claim 8, wherein determining prediction information for the task request based on the task execution instructions comprises: Determining at least one predicted execution result corresponding to the task execution instruction based at least on the task execution instruction; determining respective predicted responses of the at least one predicted execution result using the trained language model, and The prediction information is determined based at least on the at least one prediction execution result and a prediction response corresponding to the at least one prediction execution result, respectively.
  12. 12. The method of claim 11, wherein determining the prediction information based at least on the at least one prediction execution result and a prediction response corresponding to the at least one prediction execution result, respectively, comprises: determining at least one predicted outcome identifier corresponding to the at least one predicted execution outcome, and The prediction information is determined based on the at least one prediction execution result, the at least one prediction result identification, and a prediction response respectively corresponding to the at least one prediction execution result.
  13. 13. The method of claim 11, wherein the task request corresponds to a target user, and determining at least one predicted execution result corresponding to the task execution instruction comprises: and determining the at least one predicted execution result based on the task execution instruction and historical interaction information related to the target user.
  14. 14. The method of claim 8, wherein sending the prediction information to the client device comprises: transmitting a predictive indication of the provision of the predictive information to the client device in response to the determination of the predictive information, and And sending the prediction information to the client device.
  15. 15. The method of claim 8, further comprising: in response to receiving an execution result sent by the client device, determining a target response to the execution result based on the execution result, and And sending the target response to the client device.
  16. 16. The method of claim 8, further comprising: in response to receiving feedback for the predictive information sent by the client device, a determination of predictive information for a subsequent task request is adjusted based on the feedback.
  17. 17. An apparatus for task processing, implemented at a client device, comprising: A task request sending module configured to receive a task execution instruction corresponding to a task request from a server device for execution in response to sending the task request to the server device; A prediction information receiving module configured to receive, from the server device, prediction information for the task request, the prediction information indicating at least one predicted execution result of the task execution instruction and a prediction response corresponding to the at least one predicted execution result, respectively, and And a response providing module configured to provide a response to the task request based on a match between a target execution result of the task execution instruction and the at least one predicted execution result after execution of the task execution instruction is completed.
  18. 18. An apparatus for task processing, implemented at a server device, comprising: The task request receiving module is configured to respond to the task request sent by the client device, and determine a task execution instruction corresponding to the task request based on the task request; A prediction information determination module configured to determine prediction information for the task request based on the task execution instruction, and And the prediction information sending module is configured to send the prediction information to the client device.
  19. 19. An electronic device, comprising: At least one processing unit, and At least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, which when executed by the at least one processing unit, cause the electronic device to perform the method of any one of claims 1 to 7 and/or the method of any one of claims 8 to 16.
  20. 20. A computer readable storage medium having stored thereon a computer program executable by a processor to implement the method of any one of claims 1 to 7 and/or the method of any one of claims 8 to 16.

Description

Method, apparatus, device, storage medium and program product for task processing Technical Field Example embodiments of the present disclosure relate generally to the field of computers and, more particularly, relate to a method, apparatus, electronic device, computer-readable storage medium and computer program product for task processing. Background With the development of information technology, various terminal devices can provide various services to people in terms of work and life, etc. For example, an application providing a service may be deployed in the terminal device. The terminal device or application may provide task processing functionality to the user to assist the user in using the terminal device or application. The terminal equipment can receive the task request from the user, execute the task corresponding to the task request and provide corresponding response for the user based on the execution result of the task. Disclosure of Invention In a first aspect of the present disclosure, a method for task processing is provided. The method is implemented at a client device and includes, in response to sending a task request to a server device, receiving a task execution instruction corresponding to the task request from the server device for execution, receiving prediction information for the task request from the server device, the prediction information indicating at least one predicted execution result of the task execution instruction and a predicted response corresponding to the at least one predicted execution result, respectively, and providing a response for the task request based on a match between a target execution result of the task execution instruction and the at least one predicted execution result after execution of the task execution instruction is completed. In a second aspect of the present disclosure, a method for task processing is provided. The method is implemented at a server device and includes determining a task execution instruction corresponding to a task request based on the task request in response to receiving the task request sent by a client device, determining prediction information for the task request based on the task execution instruction, and sending the prediction information to the client device. In a third aspect of the present disclosure, an apparatus for task processing is provided. The apparatus is implemented at a client device, the apparatus including a task request transmitting module configured to receive a task execution instruction corresponding to a task request from the server device for execution in response to transmitting the task request to the server device, a prediction information receiving module configured to receive prediction information for the task request from the server device, the prediction information indicating at least one predicted execution result of the task execution instruction and a predicted response corresponding to the at least one predicted execution result, respectively, and a response providing module configured to provide a response for the task request based on a match between a target execution result of the task execution instruction and the at least one predicted execution result after execution of the task execution instruction is completed. In a fourth aspect of the present disclosure, an apparatus for task processing is provided. The apparatus is implemented at a server device and includes a task request receiving module configured to determine a task execution instruction corresponding to a task request based on the task request in response to receiving the task request transmitted by the client device, a prediction information determining module configured to determine prediction information for the task request based on the task execution instruction, and a prediction information transmitting module configured to transmit the prediction information to the client device. In a fifth aspect of the present disclosure, an electronic device is provided. The apparatus includes at least one processing unit, and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. The instructions, when executed by at least one processing unit, cause the electronic device to perform the method of the first and/or second aspect. In a sixth aspect of the present disclosure, a computer readable storage medium is provided. The medium having stored thereon a computer program which, when executed by a processor, implements the method of the first and/or second aspect. In a seventh aspect of the present disclosure, a computer program product is provided. The article of manufacture comprises a computer program, wherein the computer program when executed by a processor implements the method according to the first and/or second aspects of the present disclosure. It should be understood that what is described in this section of the disclosure is not