Task execution playback method and device, computer equipment, storage medium and computer program product
By obtaining the query task replay instruction from the intelligent agent, determining the virtual time point and replay range, and calculating and displaying the execution progress of the query task, the problem that the intelligent agent cannot display the query task planning and execution process is solved, and accurate replay display of the query task is achieved.
Patent Information
- Application Number
- CN202511733545.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-02-17
AI Technical Summary
When a user views a completed query task in an agent, the agent usually displays the execution result of the query task directly, without showing the planned execution process of the query task, which reduces the accuracy of the displayed query task.
By obtaining the task replay instruction, the current virtual time point and the replay virtual time range in the task execution data are determined, the execution progress of the replay node is calculated, and the replay nodes and the current execution results are displayed synchronously on the replay page, thereby realizing the replay display of the task execution process.
This improves the accuracy of query task display, allowing users to view the planning and execution process of query tasks, thereby enhancing the completeness and accuracy of task display.
Smart Images

Figure CN121541960A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of artificial intelligence, in particular to a task execution playback method and device, computer equipment, a storage medium and a computer program product. BACKGROUND
[0002] With the development of artificial intelligence technology, artificial intelligence large model technology has emerged. Generally, a user can interact with an agent established by a large model, for example, the user can query various contents through the agent, the large model in the agent plans and executes the query task to obtain an execution result, and the user can view the real-time planning and execution process and obtain the execution result.
[0003] However, when the user views the completed query task through the agent, the agent usually directly displays the execution result of the query task, which cannot display the planning and execution process of the query task, resulting in reduced accuracy of query task display. SUMMARY
[0004] Therefore, it is necessary to provide a task execution playback method, device, computer equipment, computer readable storage medium and computer program product capable of improving the accuracy of query task display to solve the above technical problems.
[0005] In one aspect, the present application provides a task execution playback method. The method comprises:
[0006] obtaining a query task playback instruction, obtaining a current virtual time point based on the query task playback instruction, and the query task playback instruction corresponds to task execution data of a query task in playback page data;
[0007] determining a current playback node and a played-back node corresponding to the current virtual time point based on the current virtual time point and playback virtual time ranges of each task node corresponding to the query task in the task execution data, wherein the playback virtual time ranges are determined according to a task execution time range of the task node;
[0008] performing execution result playback progress calculation based on the current virtual time point and the playback virtual time range of the current playback node, to obtain a node execution result playback progress corresponding to the current playback node;
[0009] displaying the played-back node and the current playback node corresponding to the current virtual time point in a playback page corresponding to the playback page data, and synchronously displaying playback content in a current execution result, wherein the playback content in the current execution result is determined based on the node execution result playback progress and a current execution result corresponding to the current playback node in the task execution data.
[0010] In another aspect, the present application further provides a task execution playback device. The device comprises:
[0011] The instruction obtaining module is configured to obtain a query task playback instruction, obtain a current virtual time point based on the query task playback instruction, and the query task playback instruction corresponds to task execution data corresponding to a query task in playback page data;
[0012] The node determining module is configured to determine a current playback node and a played-back node corresponding to the current virtual time point based on the current virtual time point and playback virtual time ranges of each task node corresponding to the query task in the task execution data, the playback virtual time ranges being determined according to task execution time ranges of the task nodes;
[0013] The progress determining module is configured to perform execution result playback progress calculation based on the current virtual time point and the playback virtual time range of the current playback node, and obtain a node execution result playback progress corresponding to the current playback node;
[0014] The playback display module is configured to display the played-back node and the current playback node corresponding to the current virtual time point in a playback page corresponding to the playback page data, and synchronously display playback content in a current execution result, the playback content in the current execution result being determined based on the node execution result playback progress and a current execution result corresponding to the current playback node in the task execution data.
[0015] In another aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0016] The instruction obtaining module is configured to obtain a query task playback instruction, obtain a current virtual time point based on the query task playback instruction, and the query task playback instruction corresponds to task execution data corresponding to a query task in playback page data;
[0017] The node determining module is configured to determine a current playback node and a played-back node corresponding to the current virtual time point based on the current virtual time point and playback virtual time ranges of each task node corresponding to the query task in the task execution data, the playback virtual time ranges being determined according to task execution time ranges of the task nodes;
[0018] The progress determining module is configured to perform execution result playback progress calculation based on the current virtual time point and the playback virtual time range of the current playback node, and obtain a node execution result playback progress corresponding to the current playback node;
[0019] The playback display module is configured to display the played-back node and the current playback node corresponding to the current virtual time point in a playback page corresponding to the playback page data, and synchronously display playback content in a current execution result, the playback content in the current execution result being determined based on the node execution result playback progress and a current execution result corresponding to the current playback node in the task execution data.
[0020] In another aspect, the present application also provides a computer readable storage medium. The computer readable storage medium has a computer program stored thereon, and the computer program, when executed by a processor, implements the following steps:
[0021] obtaining a query task playback instruction, obtaining a current virtual time point based on the query task playback instruction, and the query task playback instruction corresponding to task execution data including a query task in playback page data;
[0022] determining a current playback node and a played-back node corresponding to the current virtual time point based on the current virtual time point and playback virtual time ranges of each task node corresponding to the query task in the task execution data, the playback virtual time ranges being determined according to task execution time ranges of the task nodes;
[0023] performing execution result playback progress calculation based on the current virtual time point and the playback virtual time range of the current playback node, to obtain a node execution result playback progress corresponding to the current playback node;
[0024] displaying the played-back node and the current playback node corresponding to the current virtual time point in a playback page corresponding to the playback page data, and synchronously displaying playback content in a current execution result, the playback content in the current execution result being determined based on the node execution result playback progress and a current execution result corresponding to the current playback node in the task execution data.
[0025] In another aspect, the present application also provides a computer program product. The computer program product includes a computer program, and the computer program, when executed by a processor, implements the following steps:
[0026] obtaining a query task playback instruction, obtaining a current virtual time point based on the query task playback instruction, and the query task playback instruction corresponding to task execution data including a query task in playback page data;
[0027] determining a current playback node and a played-back node corresponding to the current virtual time point based on the current virtual time point and playback virtual time ranges of each task node corresponding to the query task in the task execution data, the playback virtual time ranges being determined according to task execution time ranges of the task nodes;
[0028] performing execution result playback progress calculation based on the current virtual time point and the playback virtual time range of the current playback node, to obtain a node execution result playback progress corresponding to the current playback node;
[0029] The currently played node and the already played node corresponding to the current virtual time point are displayed in a playback page corresponding to the playback page data, and the playback content in the current execution result is synchronously displayed, the playback content in the current execution result being determined based on the node execution result playback progress and the current execution result corresponding to the current played node in the task execution data.
[0030] The task execution playback method, device, computer device, storage medium and computer program product determine the current played node and the already played node corresponding to the current virtual time point by using the current virtual time point and the playback virtual time range corresponding to each task node in the task execution data. Then, the node execution result playback progress corresponding to the current played node is calculated by using the current virtual time point and the playback virtual time range of the current played node. Finally, the current played node and the already played node corresponding to the current virtual time point are displayed in a playback page corresponding to the playback page data, and the playback content in the current execution result is synchronously displayed, the playback content in the current execution result being determined based on the node execution result playback progress and the current execution result corresponding to the current played node in the task execution data. That is, the already played node, the current played node and the playback content in the current execution result displayed in the playback page are determined from the task execution data by using the current virtual time point. Since the current virtual time point is in the playback virtual time range, and the playback virtual time range is determined according to the task execution time range of the task node, the node and the execution result content generated at the task execution time point corresponding to the current virtual time point can be displayed, so that the playback display of the query task execution process is realized, and the accuracy of the query task display is improved.
[0031] In one aspect, the present application provides a task execution playback method. The method comprises:
[0032] displaying a playback entry of a query task;
[0033] displaying a playback page in response to a trigger event for the playback entry;
[0034] displaying, in the playback page, an already played node and a current played node of the query task corresponding to a current virtual time point, and synchronously displaying playback content corresponding to the current played node, the playback content being determined from a current execution result corresponding to the current played node according to the current virtual time point.
[0035] In another aspect, the present application further provides a task execution playback device. The device comprises:
[0036] an entry display module configured to display a playback entry of a query task;
[0037] a trigger module configured to display a playback page in response to a trigger event for the playback entry;
[0038] playback display module, configured to playback display, in a playback page, a played node and a current playback node corresponding to a current virtual time point of the query task, and synchronously display playback content corresponding to the current playback node, the playback content being determined from a current execution result corresponding to the current playback node according to the current virtual time point.
[0039] In another aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0040] display a playback entry of the query task;
[0041] in response to a trigger event for the playback entry, display a playback page;
[0042] playback display, in the playback page, a played node and a current playback node corresponding to a current virtual time point of the query task, and synchronously display playback content corresponding to the current playback node, the playback content being determined from a current execution result corresponding to the current playback node according to the current virtual time point.
[0043] In another aspect, the present application also provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program implements the following steps when executed by a processor:
[0044] display a playback entry of the query task;
[0045] in response to a trigger event for the playback entry, display a playback page;
[0046] playback display, in the playback page, a played node and a current playback node corresponding to a current virtual time point of the query task, and synchronously display playback content corresponding to the current playback node, the playback content being determined from a current execution result corresponding to the current playback node according to the current virtual time point.
[0047] In another aspect, the present application also provides a computer program product. The computer program product comprises a computer program, and the computer program implements the following steps when executed by a processor:
[0048] display a playback entry of the query task;
[0049] in response to a trigger event for the playback entry, display a playback page;
[0050] The played display query task corresponds to the current virtual time point, and the current playback node is displayed, and the playback content corresponding to the current playback node is synchronously displayed. The playback content is determined from the current execution result corresponding to the current playback node according to the current virtual time point.
[0051] The task execution playback method, device, computer equipment, storage medium and computer program product, display the playback entrance of the query task. In response to the trigger event of the playback entrance, the playback page is displayed. The played display query task corresponds to the current virtual time point, and the current playback node is displayed, and the playback content corresponding to the current playback node is synchronously displayed. The playback content is determined from the current execution result corresponding to the current playback node according to the current virtual time point. That is, through the playback entrance of the query task, the task node and the execution result content generated in the execution process of the query task can be triggered to be played and displayed, so that the playback display of the execution process of the query task is realized, and the accuracy of the display of the query task is improved. BRIEF DESCRIPTION OF DRAWINGS
[0052] Figure 1 The application environment diagram of the task execution playback method in one embodiment is shown;
[0053] Figure 2 The flowchart of the task execution playback method in one embodiment is shown;
[0054] Figure 3 The framework diagram of determining the current playback node in one specific embodiment is shown;
[0055] Figure 4 The time comparison diagram of determining the current playback node in one specific embodiment is shown;
[0056] Figure 5 The diagram of displaying the target execution result playback content in one specific embodiment is shown;
[0057] Figure 6 The playback content diagram of the graph result type in one specific embodiment is shown;
[0058] Figure 7 The playback content diagram of the task planning result type in one specific embodiment is shown;
[0059] Figure 8 The diagram of displaying the playback virtual time axis in one specific embodiment is shown;
[0060] Figure 9 The flowchart of the task execution playback method in another embodiment is shown;
[0061] Figure 10 The diagram of the playback page in one specific embodiment is shown;
[0062] Figure 11 a schematic diagram of a sharing page in an embodiment;
[0063] Figure 12 a schematic diagram of a sharing page in an embodiment;
[0064] Figure 13 a schematic diagram of a playback page at an end virtual time point in an embodiment;
[0065] Figure 14 a schematic diagram of controlling a time control control in an embodiment;
[0066] Figure 15 a schematic diagram of a task execution playback method in an embodiment;
[0067] Figure 16 a schematic diagram of a deep search platform in an embodiment;
[0068] Figure 17 a schematic diagram of a task execution playback in an embodiment;
[0069] Figure 18 a structural block diagram of a task execution playback device in an embodiment;
[0070] Figure 19 a structural block diagram of a task execution playback device in another embodiment;
[0071] Figure 20 an internal structure diagram of a computer device in an embodiment;
[0072] Figure 21 an internal structure diagram of a computer device in another embodiment. DETAILED DESCRIPTION
[0073] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application.
[0074] The task execution playback method provided by the embodiments of the present application can be applied to, for example, Figure 1The application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data required by the server 104 to process. The data storage system can be integrated on the server 104, or placed on the cloud or other servers. The terminal 102 can interact with the server 104 to realize the task execution of the query task, and the server 104 stores the task execution data of the query task in the data storage system. Then the terminal 102 obtains the query task playback instruction, sends the query task playback request to the server 104 based on the query task playback instruction, the server 104 obtains the query task playback request, generates the playback page data corresponding to the query task based on the task execution data, and returns the playback page data to the terminal 102. The terminal 102 obtains the playback page data returned by the server 104, and obtains the current virtual time point. The playback page data includes the task execution data corresponding to the query task. Then the terminal 102 determines the current playback node and the already played node corresponding to the current virtual time point based on the current virtual time point and the playback virtual time range corresponding to each task node of the query task in the task execution data. The playback virtual time range is determined according to the task execution time range of the task node. The terminal 102 performs execution result playback progress calculation based on the current virtual time point and the playback virtual time range of the current playback node, and obtains the node execution result playback progress corresponding to the current playback node; The terminal 102 displays the already played node and the current playback node corresponding to the current virtual time point in the playback page corresponding to the playback page data, and synchronously displays the playback content in the current execution result. The playback content in the current execution result is determined based on the node execution result playback progress and the current execution result corresponding to the current playback node in the task execution data. Among them, the terminal 102 can be, but is not limited to, various desktop computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things device can be a smart speaker, a smart TV, a smart air conditioner, a smart vehicle device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 can be a standalone physical server, a server cluster composed of multiple physical servers or a distributed system, or a cloud server providing cloud computing services. The terminal and the server can be connected directly or indirectly through wired or wireless communication, which is not limited in the present application.
[0075] In one embodiment, as shown in Figure 2 , a task execution playback method is provided. Taking the terminal in Figure 1 as an example, it can be understood that the method can also be applied to the server, and can also be applied to the system including the terminal and the server, and is realized through the interaction of the terminal and the server. In this embodiment, the method includes the following steps:
[0076] S202, acquire a query task playback instruction, acquire a current virtual time point based on the query task playback instruction, and the query task playback instruction corresponds to task execution data of the query task in the playback page data.
[0077] The query task refers to a task that a user uses an agent to query content, which can be determined according to the query content input by the user, for example, the user inputs the query content as “compare A and B” when interacting with the agent, and the agent has output the comparison result, and the query content is taken as the query task. The query task can be a task of querying information in different fields, such as a game field, a financial field, an industrial field, an agricultural field, an educational field, a medical field, etc. The query task can also be a task of querying information in a vertical field, for example, the agent belongs to a vertical agent, at this time, the query task is usually a query task in a vertical field. At present, when the agent performs a task, it usually decomposes the query task input by the user into multiple sub-tasks for execution, for example, multiple sub-tasks are generated through LLM Planning (Large Language Model Planning), and then each sub-task is executed in turn to finally obtain a task execution result.
[0078] The query task playback instruction refers to an instruction for playing back the execution process of the query task, for example, an instruction for playing back the process from the start of the query task to the end of the query task. The query task playback instruction can be triggered through a query task playback page address, for example, the user clicks the query task playback page address to trigger the query task playback instruction. The query task playback instruction can also be triggered through a trigger control for playing back the query task, and the trigger control is associated with the query task playback page address.
[0079] The playback page refers to a page for playing back the execution process of a query task, the playback page data refers to page data corresponding to the playback page, the page data can include page style data and page resource data, the page resource data includes task execution data corresponding to the query task and playback related data. The current virtual time point refers to a virtual time point in the playback of the execution process of the query task, the current virtual time point can be an initial virtual time point, the initial virtual time point refers to a virtual time point at the start of playback, for example, the initial virtual time point is 0:00. The current virtual time point changes with the advancement of the playback. The current virtual time point has a corresponding relationship with a task execution time point in the task execution data. The task execution time point refers to a real time point in the execution process of the query task, for example, the task execution time point can be 12:03:04. The task execution data refers to all data generated in the execution process of the query task, the task execution data can include execution data of each task node corresponding to the query task, the execution data can include execution state data and execution result data of the task node, the execution state data can include execution time data of the task node, such as a start time point, an end time point, and the like, and an execution duration.
[0080] In this embodiment, the terminal obtains the query task playback instruction, responds to the query task playback instruction, interacts with the server to obtain the playback page data, and obtains the current virtual time point from the playback virtual time range corresponding to the query task in the playback page data pre-set by the terminal, for example, the playback can start from the initial virtual time point, that is, the initial virtual time point is taken as the current virtual time point.
[0081] It can be understood that the terminal can obtain the query task playback instruction through the query task playback page address. The terminal can also obtain the query task playback instruction through the playback control of the query task.
[0082] In some embodiments, the user can also enter the playback page first and then play back the query task. That is, the terminal responds to the entering event of the playback page, interacts with the server to obtain the playback page data, and then displays the playback page which has not started playback according to the playback page data. Then the terminal can obtain the query task playback instruction in the playback page, respond to the query task playback instruction to obtain the current virtual time point, which can be a virtual time point obtained by controlling the time point control control in the time axis, or the initial virtual time point can be taken as the current virtual time point to start playback.
[0083] S204, determine the current playback node and the played node corresponding to the current virtual time point based on the current virtual time point and the playback virtual time range of each task node corresponding to the query task in the task execution data, wherein the playback virtual time range is determined according to the task execution time range of the task node.
[0084] The task node is used to represent a specific and executable task generated by planning the query task through the large model. For example, planning the query task of "compare A and B", the obtained task nodes include "search A", "search B", "data preprocessing", "data comparison", and "generate comparison result". Each task node has a corresponding task node title and task node description.
[0085] The playback virtual time range corresponding to the task node refers to the virtual time range in which the task node is in the execution process playback. The playback virtual time range corresponding to different task nodes can be different, for example, the playback virtual time range corresponding to the task nodes with different task execution time ranges is different. The playback virtual time range corresponding to different task nodes can also be the same, for example, the playback virtual time range corresponding to the task nodes with the same task execution time range is the same. The playback virtual time range corresponding to different task nodes can also be partially the same, for example, the playback virtual time range corresponding to the task nodes with overlapping task execution time ranges is partially the same.
[0086] The task execution time range of the task node refers to the time range from creation to execution completion in the query task execution process, which is a real time range, for example, which can be determined according to the time of the operating system in the task execution terminal. The played node refers to the task node that has been played in the query task playback process. The current playback node refers to the task node that is currently being played and displayed in the query playback process.
[0087] In this embodiment, the terminal can determine the playback virtual time range corresponding to the task node according to the task execution time range of the task node. For example, the task execution time range of the first task node is 3 minutes and 4 seconds to 3 minutes and 24 seconds. If the duration of the task execution time range of the task node is consistent with the duration of the corresponding playback virtual time range, both are 20 seconds, then the playback virtual time range corresponding to the first task node is 0 seconds to 20 seconds. The terminal can determine the playback virtual time range corresponding to each task node according to the task execution time range of each task node in the task execution data. The correspondence between the task execution time range and the playback virtual time range can be pre-set, for example, the task execution time range is mapped to the playback virtual time range starting from 0. Then the terminal detects the playback virtual time range in which the current virtual time point is located, that is, compares the current virtual time point with the start virtual time point and the end virtual time point of the playback virtual time range. If the current virtual time point is not less than the start virtual time point and not greater than the end virtual time point, the playback virtual time range is taken as the playback virtual time range in which the current virtual time point is located. Then the task node corresponding to the playback virtual time range in which the current virtual point is located is taken as the current playback node, and the previous task node corresponding to the current playback node is obtained according to the planning execution order of each task node in the task execution data, to obtain the already played node.
[0088] It can be understood that when the query task playback starts, the current virtual time point is the initial virtual time point, and the current playback node can be the first task node of the query task. At this time, there is no already played node.
[0089] It can be understood that the current playback node can include at least two, for example, the current playback node can be parallel task nodes. The already played node corresponding to the current playback node can also include at least two, wherein the plurality of already played nodes can include parallel task nodes, or can include task nodes in sequence.
[0090] S206, based on the current virtual time point and the playback virtual time range of the current playback node, the execution result playback progress is calculated to obtain the node execution result playback progress corresponding to the current playback node.
[0091] The execution result playback progress is used to represent the display proportion of the execution result when playing back. The execution result playback progress is between 0 and 1, including 0 and 1. The node execution result playback progress is used to represent the display proportion of the current execution result corresponding to the current playback node when playing back. For example, the node execution result playback progress is 20%, and the first 20% of the content of the current execution result needs to be displayed.
[0092] In the embodiment, the terminal can determine the total virtual duration of the current playback node according to the playback virtual time range of the current playback node, and determine the current playback duration of the current playback node according to the current virtual time point and the start playback virtual time point in the playback virtual time range of the current playback node, and then calculate the proportion of the current playback duration in the total virtual duration as the execution result playback progress.
[0093] In some embodiments, if the current playback node includes at least two, the current playback node in the execution state can be determined from at least two current playback nodes, and then the execution result playback progress of the current playback node in the execution state is calculated.
[0094] S208, display the played node and the current playback node corresponding to the current virtual time point in the playback page corresponding to the playback page data, and synchronously display the playback content in the current execution result, which is determined based on the node execution result playback progress and the current execution result corresponding to the current playback node in the task execution data.
[0095] The current execution result refers to the execution result obtained by the current playback node when the task execution is completed, which can be a generated document result, a generated report result, a generated chart result, a searched item result, etc. The playback content in the current execution result refers to the content generated by the current playback node when the execution reaches the task execution time point corresponding to the current virtual time point, which is the execution result content that needs to be displayed when the current virtual time point is played back. The playback content in the current execution result can be calculated by the node execution result playback progress from the execution result that needs to be played back and displayed in the current execution result.
[0096] In the embodiment, the terminal determines the playback content in the current execution result corresponding to the current playback node from the current execution result corresponding to the current playback node in the task execution data according to the node execution result playback progress, such as determining the content of the corresponding generation progress from the current execution result according to the node execution result playback progress to obtain the playback content in the current execution result. Then display the played node and the current playback node corresponding to the current virtual time point in the playback page corresponding to the playback page data, and synchronously display the playback content in the current execution result corresponding to the current playback node.
[0097] It can be understood that the page style of the playback page can be the same as the interactive page of the query task performed by the intelligent agent, and in some embodiments, the page style of the playback page can be different from the interactive page of the query task performed by the intelligent agent, and a self-defined page style can be used to play back and display the execution process of the query task.
[0098] In a specific embodiment, the virtual time range corresponding to the execution time of the query task is from 0 minutes to 5 minutes, the virtual time range corresponding to the execution time of the current playback node is from 2 minutes to 4 minutes, if the current virtual time point is 3 minutes, the playback progress of the current playback node is 50%, that is, 1 minute of the total 2 minutes of execution time has passed, and 50% of the content of the execution result of the current playback node needs to be displayed, for example, the execution result of the current playback node is to generate 100 characters, at this time, the playback progress of the execution result of the current playback node is 50%, and the playback content in the execution result is the first 50 characters generated. The overall playback progress of the query task is 3 / 5, that is, 60%.
[0099] The task execution playback method described above determines the current playback node and the already played node corresponding to the current virtual time point by using the current virtual time point and the playback virtual time range corresponding to each task node in the task execution data. Then, the node execution result playback progress corresponding to the current playback node is calculated by using the current virtual time point and the playback virtual time range of the current playback node. Finally, the already played node and the current playback node corresponding to the current virtual time point are displayed in the playback page corresponding to the playback page data, and the playback content in the current execution result is synchronously displayed. The playback content in the current execution result is determined based on the node execution result playback progress and the current execution result corresponding to the current playback node in the task execution data. That is, the already played node, the current playback node and the playback content in the current execution result displayed in the playback page are determined from the task execution data by using the current virtual time point. Since the current virtual time point is in the playback virtual time range, and the playback virtual time range is determined according to the task execution time range of the task node, the generated nodes and the execution result content of the query task at the task execution time point corresponding to the current virtual time point can be displayed, thereby realizing the playback display of the query task execution process, and further improving the accuracy of the query task display.
[0100] In some embodiments, S202, that is, obtaining a query task playback instruction, obtains a current virtual time point based on a query task playback instruction. The playback page data corresponding to the query task playback instruction includes the task execution data corresponding to the query task, including the steps of:
[0101] The query task playback instruction is obtained, and the query task playback instruction carries a query task playback page address. The corresponding playback page data is obtained based on the query task playback page address, and the playback start virtual time point and the playback end virtual time point are obtained. The playback start virtual time point is taken as the current virtual time point.
[0102] The query task playback page address is used to represent a link address of a page for playing back the query task, and the query task playback page address can be used to jump to the page for playing back the query task. The playback start virtual time point is a start time point of playing back the query task. The playback end virtual time point is an end time point of playing back the query task. The playback start virtual time point and the playback end virtual time point are both virtual time points.
[0103] In this embodiment, the terminal can also obtain the corresponding playback page data from the corresponding server according to the query task playback page address. Then the terminal can obtain the pre-set playback virtual time axis from the playback page data, and determine the playback start virtual time point and the playback end virtual time point from the playback virtual time axis. The playback start virtual time point and the playback end virtual time point can be determined according to the task start execution time point and the task end execution time point corresponding to the query task, and the time length between the task start execution time point and the task end execution time point can be the same as or different from the time length between the playback start virtual time point and the playback end virtual time point. For example, the virtual time length can be half of the execution time length, and in this case, the playback speed is one time of the execution speed. Then the terminal takes the playback start virtual time point as the current virtual time point and starts playing back, that is, performs the step of determining the current playback node and the played-back node corresponding to the current virtual time point based on the current virtual time point and the playback virtual time range of each task node in the task execution data.
[0104] After S208, that is, in the playback page corresponding to the playback page data, the played-back node and the current playback node corresponding to the current virtual time point are displayed, and the playback content in the current execution result is synchronously displayed. The playback content in the current execution result is determined based on the node execution result playback progress and the current execution result corresponding to the current playback node in the task execution data. After that, the step of determining the current playback node and the played-back node corresponding to the current virtual time point based on the current virtual time point and the playback virtual time range of each task node in the task execution data corresponding to the query task is iteratively performed.
[0105] If the current virtual time point is not consistent with the playback end virtual time point, a playback advancing time length is obtained, an advancing virtual time point is determined based on the current virtual time point and the playback advancing time length, the advancing virtual time point is taken as the current virtual time point, and the step of determining the current playback node and the played-back node corresponding to the current virtual time point based on the current virtual time point and the playback virtual time range of each task node in the task execution data corresponding to the query task is iteratively performed. If the current virtual time point is consistent with the playback end virtual time point, a prompt information that the playback has ended is displayed.
[0106] The playback advancing duration refers to the advancing duration of the virtual time point in the query task playback process. The playback advancing duration is usually pre-set. For example, the playback advancing duration can be set as 500 milliseconds. That is, the playback is advanced by 500 milliseconds in the query task playback process. The advancing virtual time point refers to the virtual time point obtained by advancing the playback by the playback advancing duration. The advancing virtual time point can be the virtual time point displayed next to the current virtual advancing point. The playback end prompt information is used to prompt that the query task is in the playback end state.
[0107] In this embodiment, the terminal advances the playback after displaying the playback page content corresponding to the current virtual time. The playback advancing can be timed advancing, that is, the playback is advanced by the pre-set playback advancing duration. At this time, if the current virtual time point is not consistent with the playback end virtual time point, it is determined that the current virtual time point is not the playback end virtual time point. At this time, the terminal obtains the pre-set playback advancing duration in the playback page data, and increases the playback advancing duration on the basis of the current virtual time point to obtain the advancing virtual time point. Then, the terminal takes the advancing virtual time point as the current virtual time point, and iteratively executes the step of determining the current playback node and the already played node corresponding to the current virtual time point based on the current virtual time point and the playback virtual time range of each task node in the task execution data. Until the current virtual time point is consistent with the playback end virtual time point, the playback end prompt information is displayed in the playback page.
[0108] It can be understood that if the current virtual time point is consistent with the playback end virtual time point, the page content corresponding to the execution end time point of the playback end virtual time point can be displayed in the playback page. The page content can include all task nodes corresponding to the query task and the execution result of the query task, and the playback end prompt information is displayed at the same time.
[0109] It can be understood that if the current virtual time point is in the time range of the playback advancing duration, the terminal can display the playback page content corresponding to the previous virtual time point in the playback page until the current virtual time point is determined according to the previous virtual time point and the playback advancing duration. The page content corresponding to the current virtual time point is displayed in the playback page.
[0110] In the above embodiment, by taking the playback start virtual time point as the current virtual time point, and performing playback advancing based on the current virtual time point and the playback advancing time length until the current virtual time point coincides with the playback end virtual time point, the execution of the query task from the beginning to the end is realized, that is, the complete playback of the entire execution process of the query task is realized, the displayed playback process is consistent with the execution process of the query task, and thus the accuracy of the display of the query task is improved. Moreover, the playback content in the already played node, the current playback node, and the current execution result corresponding to the current playback node of each virtual time point does not need to be obtained from the server, that is, only the complete task execution data needs to be obtained and the playback display content needs to be calculated, and thus the data storage pressure and the data transmission pressure of the server can be reduced, and resources are saved.
[0111] In some embodiments, the task execution playback method further includes the steps of:
[0112] obtaining a query task playback speed adjustment instruction, the query task playback speed adjustment instruction carrying playback speed adjustment information; adjusting the playback advancing time length based on the playback speed adjustment information to obtain an adjusted advancing time length, and taking the adjusted advancing time length as the playback advancing time length.
[0113] The query task playback speed adjustment instruction is an instruction for adjusting the playback advancing time length of the query task, the playback advancing time length represents the playback speed of the query task, the smaller the playback advancing time length, the slower the playback speed, and the larger the playback advancing time length, the faster the playback speed. The playback speed adjustment information is specific information for adjusting the playback advancing time length, which can be increasing the playback advancing time length or decreasing the playback advancing time length. For example, the playback speed adjustment information can be a time length value for increasing the playback advancing time length, or a multiple value for increasing the playback advancing time length. The adjusted advancing time length is the advancing time length obtained by adjusting the playback advancing time length according to the playback speed adjustment information.
[0114] In this embodiment, the playback page can also display a control for adjusting the playback speed. The user can adjust the playback speed of the query task through the control for adjusting the playback speed during the playback of the query task, for example, the playback speed is adjusted to 2 times, at this time, the playback advancing time length is multiplied by 2 to obtain the adjusted advancing time length, and the playback advancing is performed according to the adjusted advancing time length. At this time, the playback speed is 2 times the previous playback speed. The user can also reduce the playback speed to half of the previous playback speed, at this time, half of the playback advancing time length is calculated to obtain the adjusted advancing time length.
[0115] It can be understood that the playback page displays a multiple option for amplifying the playback speed, and the user can select any multiple option, such as 1x, 2x, 6x, 10x, and the like, to indicate that the playback speed is amplified by 1 times, 2 times, 6 times, and 10 times, and the current playback speed is adjusted to the corresponding multiple speed.
[0116] In the above embodiment, the playback speed of the query task can be adjusted by querying the task playback speed adjustment instruction, and the playback is promoted according to the adjusted promotion time length, that is, the playback speed of the query task can be adjusted, so that the flexibility of the query task playback can be improved.
[0117] In some embodiments, the task execution playback method further includes the steps of:
[0118] The query task playback pause instruction is obtained, and the query task playback pause instruction carries a pause time point; the pause playback node corresponding to the pause time point displayed in the playback page, the pause playback node, and the pause execution result playback content corresponding to the pause playback node are kept unchanged.
[0119] The query task playback pause instruction is an instruction for pausing the playback of the query task. The pause time point is a virtual time point corresponding to the playback of the query task when the query task playback pause instruction is obtained.
[0120] In this embodiment, the playback page can also include a query task playback pause control. During the process of playing back the query task in the playback page, the playback is paused through the query task playback pause control. At this time, the terminal detects a query task playback pause event, obtains a query task playback pause instruction in response to the query task playback pause event, and pauses according to the pause time point in the query task playback pause instruction. That is, the terminal pauses the calculation of the promotion virtual time point using the current pause virtual time point, and keeps the displayed page content unchanged in the playback page.
[0121] The promotion virtual time point is determined based on the current virtual time point and the playback promotion time length, including the steps of:
[0122] The query task playback pause end instruction is obtained, and the query task playback pause instruction carries a pause time point; the promotion virtual time point is determined based on the pause time point and the playback promotion time length.
[0123] The query task playback pause end instruction is an instruction for continuing the playback of the query task from the pause time point.
[0124] In the embodiment, when the playback page is in the playback pause, the user can trigger the query task playback pause control again to continue the playback. At this time, the terminal calculates the advancing virtual time point according to the current paused time point, obtains the advancing virtual time point, takes the advancing virtual time point as the current virtual time point, and iteratively executes the step of determining the current playback node and the already played node corresponding to the current virtual time point based on the current virtual time point and the playback virtual time range of each task node in the task execution data.
[0125] In the above embodiment, the query task playback pause instruction can pause the playback of the query task, and the query task playback pause end instruction can continue the playback of the query task, that is, the playback of the query task can be paused during the playback of the query task, thereby improving the flexibility of the query task playback.
[0126] In some embodiments, the task execution playback method further includes the steps of:
[0127] Based on the current virtual time point, obtaining the current playback state, the current playback speed and the current time control information corresponding to the query task, and saving the current virtual time point, the current playback state, the current playback speed and the current time control information into a playback state warehouse.
[0128] The current playback state is used to represent the state of the query task at the current virtual time point during the playback of the query task, and can include a playback state, a pause state and a playback completion state. The current playback speed is used to represent the playback speed of the query task at the current virtual time point. The current time control information is used to represent whether the query task is addressing at the current virtual time point, and can include addressing and non-addressing. Addressing means that the user is dragging the playback time axis and looking for a new playback position. The playback state warehouse is a warehouse for storing the state of the query task during the playback. For example, the playback state warehouse can be a playback state warehouse based on zustand (zustand is a lightweight, flexible and easy-to-use state management library designed for React applications), and the state of the query task during the playback can be managed through the playback state warehouse.
[0129] In the embodiment, the terminal can manage the playback life cycle through the playback state machine, including the playback state, the pause state and the playback completion state. Then, the playback state machine, the current playback speed, the current time control information and the playback advancing time length control the logical state machine of the playback virtual time advancing. That is, the playback virtual time axis is managed through the playback state warehouse, including the playback start virtual time point, the playback end virtual time point and the current virtual time point, and the playback state machine and the timing advancing of the playback are realized.
[0130] In the above embodiment, the current virtual time point, the current playback state, the current playback speed and the current time control information are saved in the playback state warehouse, so that the management of the query task playback can be facilitated and the efficiency of the query task answering can be improved.
[0131] In some embodiments, S202, i.e., obtaining the query task playback instruction, obtains the current virtual time point based on the query task playback instruction, the query task playback instruction corresponds to the task execution data corresponding to the query task in the playback page data, including the steps of:
[0132] Obtaining the query task playback instruction, sending a query task playback request to the corresponding server based on the query task playback instruction, the query task playback request carrying a query task identifier, the server being used to find the corresponding task execution data based on the query task identifier and return. Obtaining the task execution data returned by the server, the task execution data including key information, field information and value information corresponding to each field information, the key information including the query task identifier, the field information being used to include the task node identifier corresponding to the query task identifier, and the value information including the node attribute corresponding to the task node identifier. Splitting the task execution data based on the node attribute corresponding to the task node identifier to obtain the node flow data corresponding to the query task and the node execution result data corresponding to the query task; storing the node execution flow data corresponding to the query task in a preset execution flow data source, and storing the node execution result data corresponding to the query task in a preset execution result data source.
[0133] Among them, the query task identifier is used to identify the corresponding query task. The preset execution flow data source refers to a data source that stores the node flow data corresponding to the task node in advance, and the preset execution result data source refers to a data source that stores the execution result data corresponding to the task node in advance. The node flow data refers to the tree structure data of the task node corresponding to the query task. The node execution result data refers to the data generated when the task node corresponding to the query task is executed.
[0134] In this embodiment, the task nodes for querying a task are a distributed tree structure. Each tree node is a task node, and each task node records corresponding node attributes, such as task node identifier, parent node identifier, parent node name, start time, end time, node status, and corresponding node resources, including node execution result data. The server uses a Redis HSet structure to store the entire tree structure. In Redis, HSet is used to associate fields and values in a hash table. The key information of HSet is the query task identifier RootTaskId, the field information is the task node identifier TaskId, and the value is all the attributes of the entire task node. For example, the following is an example of using Go language to operate a Redis hash table to store task data:
[0135] func (t *Task) Save() error {
[0136] return redisclient.GetClient().HSet(context.Background(),fmt.Sprintf
[0137] ("deepsearch_task_%s", t.RootTaskId), t.TaskId, utils.ToJson(t)).Err()
[0138] / / After serializing the task object into a JSON string, store it in a Redis hash structure.
[0139] Then, when the server queries, it only needs to retrieve all node data from the Redis hash structure according to the query task identifier and return it to the requesting end. The request segment can then reconstruct the tree structure of the query task in memory according to the relationship of RootTaskId. An example query is as follows:
[0140] `redisclient.GetClient().HGetAll(context.Background(),fmt.Sprintf("deepsearch_task_%s", taskId)).Result()` / / Retrieves all node data corresponding to the query task identifier in the Redis hash structure.
[0141] It can be understood that the query task playback page identifier can also be carried in the query task reply request, and the corresponding query task playback page data is found according to the query task playback page identifier. The resource of the query task playback page data includes the task execution data corresponding to the query task.
[0142] In the above embodiment, by obtaining the task execution data returned by the server including the key information, the field information, and the value information corresponding to each field information, that is, the server maintains the task execution data according to the structure of the key information, the field information, and the value information corresponding to each field information, it can be ensured that different task nodes generated in parallel will not conflict with each other, thereby ensuring the atomicity and consistency of the task node mind map corresponding to the query task, and further ensuring the accuracy of the task execution data obtained by the query. Then, since the data structure of the node flow data is different from the data structure of the node execution result data, the task execution data is then split and saved to different data sources for playback, which can improve the efficiency of the playback.
[0143] In some embodiments, S206, based on the current virtual time point and the playback virtual time range of each task node corresponding to the query task in the task execution data, the current playback node and the already played node corresponding to the current virtual time point are determined, including:
[0144] Obtain the execution flow data corresponding to the query task from the preset execution flow data source; obtain the task execution time range corresponding to each task node from the execution flow data, and perform playback virtual time mapping on the task execution time range corresponding to each task node to obtain the playback virtual time range corresponding to each task node. Find the current virtual time point in the playback virtual time range corresponding to each task node, and if the current virtual time point is found, the task node corresponding to the playback virtual time range in which the current virtual time point is found is taken as the current playback node. Obtain the predecessor task node corresponding to the current playback node based on the planning order of each task node, and take the predecessor task node as the already played node.
[0145] The planning order refers to the execution order of each task node generated by task planning of the query task. The predecessor task node refers to a task execution node executed before the current playback node, which can be, for example, a parent task node before the current playback node.
[0146] In the embodiment, the terminal can obtain the execution flow data of all task nodes corresponding to the query task from the execution flow data source, and the execution flow data includes the task execution time range corresponding to the task node and the basic attribute of the task node. The basic attribute can include the task node name, the planned order between the task nodes, such as the parent-child relationship, and the like. At this time, the task execution time range corresponding to each task node is mapped to the playback virtual time range by playback virtual time mapping. The task execution time range can be mapped according to the pre-set mapping relationship. For example, if the time length is consistent, each time point from the start to the end in the task execution time range can be corresponded to each time point from the start to the end in the playback virtual time range. Then, the terminal compares the current virtual time point with each playback virtual time range, judges the playback virtual time range in which the current virtual time point is located, takes the task node corresponding to the playback virtual time range in which the current virtual time point is located as the current playback node, and obtains the predecessor task node corresponding to the current playback node according to the parent-child relationship of the task node to obtain the played node.
[0147] In one specific embodiment, as shown in FIG. 8, a frame diagram for determining the current playback node is shown, wherein the terminal obtains the execution flow data corresponding to the query task from the execution flow data source, and then obtains the task execution time range of each task node from the execution flow data and maps to obtain the playback virtual time range. At this time, the current task execution time range is found in each playback virtual time range by using the current virtual time point, and then the current playback node and the played node corresponding to the current task execution time range are determined. Figure 3
[0148] In the above embodiment, the current playback node is determined by finding the current virtual time point in the playback virtual time range obtained by mapping the task execution time range, and the played node corresponding to the current playback node is determined according to the planned order, which can ensure the accuracy of the obtained current playback node and played node.
[0149] In some embodiments, the current virtual time point is found in the playback virtual time range corresponding to each task node, and if the current virtual time point is found, the task node corresponding to the playback virtual time range in which the current virtual time point is found is taken as the current playback node, including the steps of:
[0150] The terminal determines a to-be-detected playback virtual time range corresponding to the to-be-detected task node from the playback virtual time range corresponding to each task node, and the to-be-detected playback virtual time range includes a to-be-detected task creation virtual time point, a to-be-detected task start execution virtual time point, and a to-be-detected task completion virtual time point. If the current virtual time point is less than the to-be-detected task creation virtual time point, the to-be-detected task node is determined as an unplayed node. If the current virtual time point is greater than or equal to the to-be-detected task creation virtual time point and less than the to-be-detected task start execution virtual time point, the to-be-detected task node is determined as a current playback node in a waiting state. If the current virtual time point is greater than or equal to the to-be-detected task start execution virtual time point and less than the to-be-detected task completion virtual time point, the to-be-detected task node is determined as a current playback node in an execution state. If the current virtual time point is equal to the to-be-detected task completion virtual time point, the to-be-detected task node is determined as a current playback node in a completed state.
[0151] In this embodiment, if the current playback node includes at least two, the state in which the current playback node is further detected, at this time, the terminal compares the current virtual time point with the to-be-detected task creation virtual time point, the to-be-detected task start execution virtual time point, and the to-be-detected task completion virtual time point, and determines the current playback node corresponding to the state according to the comparison result. If the current virtual time point is less than the to-be-detected task creation virtual time point, it indicates that the to-be-detected task node has not been created when playing back to the current virtual time point, and the to-be-detected task node is a task node that has not been played back, that is, an unplayed node. If the current virtual time point is not less than the to-be-detected task creation virtual time point and the current virtual time point is less than the to-be-detected task start execution virtual time point, it indicates that the to-be-detected task node is a current playback node, and it indicates that the current playback node has been created and has not started execution, and is a current playback node in a waiting state. If the current virtual time point is not less than the to-be-detected task start execution virtual time point and the current virtual time point is less than the to-be-detected task completion virtual time point, it indicates that the current playback node is a task node in execution. If the current virtual time point is equal to the to-be-detected task completion virtual time point, the to-be-detected task node is determined as a current playback node in a completed state. Then the terminal only performs playback progress calculation on the current playback node in an execution state at the current virtual time point, and displays the execution result content of the current playback node in the execution state, and the current playback nodes in other states can not be processed.
[0152] It can be understood that if the current virtual time point is greater than the to-be-detected task completion virtual time point, it indicates that the to-be-detected task node is not a current playback node, and the to-be-detected task node is a played node. The server can sequentially traverse each task node to determine the current playback node, the played node, and the unplayed node.
[0153] In a specific embodiment, such as Figure 4 The diagram illustrates the time comparison for determining the current replay node. If the current virtual time is less than the virtual time of the task's creation, the task node is considered an unreplayable node. If the current virtual time is not less than the virtual time of the task's creation but less than the virtual time of the task's start execution, the task node is considered a waiting replay node. If the current virtual time is not less than the virtual time of the task's start execution but less than the virtual time of the task's completion, the task node is considered an executing replay node. If the current virtual time is equal to the virtual time of the task's completion, the task node is considered a completed replay node.
[0154] In one specific embodiment, the data definition for task execution replay is provided as follows:
[0155] type PlayStatus = "playing" | "paused" | "finished"; / / Playback status types: playing, paused, and finished. interface ShareState { / / Interface shared state startTime: number; endTime: number; currentTime: number; / / Timeline: start time, end time, and current time playStatus: PlayStatus; playSpeed: number; isSeeking: boolean; / / Playback control: playback status, playback speed, and addressing rootTaskId?: string; selectedResourceId?: string; taskMap: Map<string, Task> resourceMap: Map<string, Resource> resourceIdToTaskIdMap:Map<string, string> ;messages: AgentMessage[]; / / Task / Resource / Message Identifier}
[0156] In the above embodiments, by comparing the current virtual time point with the virtual time point of the task to be detected being created, the virtual time point of the task to be detected starting execution, and the virtual time point of the task to be detected being completed, the current playback node in different states can be determined. That is, not only can the current playback node at the current virtual time point be determined, but also the state of the current playback node can be determined, thereby ensuring the accuracy of the obtained current playback node.
[0157] In some embodiments, the task execution replay method further includes the step of:
[0158] Obtain the viewing command for the target task node on the replay page. Based on the viewing command, if the target task node is in the execution state, obtain the target execution result replay content corresponding to the target task node and display the target execution result replay content through a floating layer on the replay page; if the target task node is in the completed state, obtain the target node execution result corresponding to the target task node and display the target node execution result through a floating layer on the replay page.
[0159] In this context, the target task node refers to the task node that needs to be viewed on the replay page. The target execution result replay content refers to the execution result replay content corresponding to the task node that triggered the view command, and the target node execution result refers to the execution result corresponding to the task node that triggered the view command. An overlay is a temporary layer that overlays the replay page, mainly used for displaying temporary information. Based on interaction characteristics, overlays can be divided into modal overlays and non-modal overlays.
[0160] In this embodiment, users can interact with the task nodes displayed during playback to view the execution results corresponding to those task nodes. Specifically, if a task node is in an executing state, the user will view the playback content of the target execution result corresponding to the current virtual time point. If a task node is in a completed state, the user will view the result obtained after the task node has been executed.
[0161] In a specific embodiment, such as Figure 5 The diagram illustrates the display of the target execution result playback content via a floating layer. When the query task playback reaches 50%, and the user clicks on the task node 501 which is in the execution state, the terminal determines that the playback progress of task node 501 is 20%. Then, it displays 20% of the preview details corresponding to task node 501 via a floating layer. These preview details include the target execution result playback content corresponding to the current virtual time point.
[0162] In one specific embodiment, the definition of the preview details resource is as follows:
[0163] / / Agent messages (preview resource source preferred for completed state)
[0164] interface AgentMessage {id: string; created_at?:number; action?: {preview_id?: string};}
[0165] In the above embodiment, the content corresponding to the task node can be viewed during the playback process by viewing the instruction, and different execution result contents can be displayed when the viewed task node is in different states, thereby improving the flexibility of the query task playback.
[0166] In one embodiment, S206, i.e., performing the execution result playback progress calculation based on the current virtual time point and the playback virtual time range of the current playback node, obtaining the node execution result playback progress corresponding to the current playback node, includes the steps of:
[0167] If the current playback node is in the execution state, the time length between the current virtual time point and the task start execution virtual time point corresponding to the current playback node is calculated to obtain the current playback time length corresponding to the current playback node. The time length between the task start execution virtual time point and the task completion virtual time point corresponding to the current playback node is calculated to obtain the execution virtual time length corresponding to the current playback node. Based on the proportion information of the current playback time length to the execution virtual time length, the node execution result playback progress corresponding to the current playback node is obtained.
[0168] Among them, the current playback time length refers to the time length between the task start execution virtual time point and the current virtual time point corresponding to the current playback node. The execution virtual time length refers to the time length of the playback virtual time range corresponding to the current playback node, which is the time length between the task start execution virtual time point and the task completion virtual time point. The task start execution virtual time point refers to the virtual time point corresponding to the task start execution time point of the current playback node. The task completion virtual time point refers to the virtual time point corresponding to the task completion execution time point of the current playback node.
[0169] In this embodiment, when the terminal detects that the current playback node is in the waiting state, it means that the execution has not started at this time, so there is no need to calculate the playback progress. If it is detected that the current playback node is in the completion state, it means that the execution has been completed at this time, so the complete node execution result can be directly displayed. If it is detected that the current playback node is in the execution state, it means that it is in the execution at this time, so the proportion information of the current playback time length to the execution virtual time length can be calculated, and the proportion information is taken as the node execution result playback progress. For example, if the proportion information is 20%, it means that the node execution result displayed by the playback at this time is 20%.
[0170] In one specific embodiment, the data definition of the task node execution state is as follows:
[0171] interface Task { id: string; rootTaskId: string; createdAt?: number; data: {status?: {status?: "waiting" | "running" | "suc" | "fail"; progress?: string; / / e.g., "3 / 10" or time difference string begin_at?: number; finished_at?: number;}; action?: {preview_id?: string; / / Bind resource preview}; answer?: string; / / Only displayed when suc};} / / Task (projected onto the timeline as a process state: waiting / running / suc)
[0172] Here, waiting indicates a waiting state, running indicates an execution state, and suc indicates a completion state.
[0173] In the above embodiments, the playback progress of the node execution result corresponding to the current playback node is obtained by calculating the proportion of the current playback duration to the virtual execution duration, thus ensuring the accuracy of the obtained playback progress.
[0174] In some embodiments, S208, namely, synchronously displaying the replay content in the current execution result, the replay content in the current execution result is determined based on the node execution result replay progress and the current execution result corresponding to the current replay node in the task execution data, includes the following steps:
[0175] Retrieve the execution result data corresponding to the query task from the preset execution result data source; retrieve the current execution result corresponding to the current replay node from the execution result data; determine the replay content in the current execution result based on the result type of the current execution result and the replay progress of the node execution result; and synchronously display the replay content in the current execution result on the replay page.
[0176] The result type is used to characterize the type of execution result data, including at least one of the following: text result type, graph result type, search result type, task planning result type, etc.
[0177] In the embodiment, the terminal projects the obtained execution result data by time axis as process snapshots of different types, so that the terminal displays the execution result data corresponding to the playback progress at the current virtual time point on the playback page. That is, given different types of execution result data and the current virtual time point, the form of the execution result data that should be seen at this time is generated, and the task progress associated with the execution result data is kept consistent. Among them, the different types of execution result data can include text result type, graph result type, search result type and task planning result type, etc. Then, when the terminal displays the execution result data on the playback, if the execution result data does not have corresponding task node or the task information is missing, it is displayed as it is. If the current virtual time point is less than the task creation time virtual time point of the associated task node, the execution result of the task node does not appear, that is, it is equivalent to querying the task execution process that the task node has not produced results at that time. If it is in the execution process, the execution result data gradually appears according to the "generation progress", simulating the real "producing" process. That is, the generation progress is consistent with the playback progress. If the task node execution is completed, the complete execution result is displayed.
[0178] In one specific embodiment, the result type of the execution result data is defined as follows:
[0179] / / Resource, that is, execution result data (projected by time axis as process snapshots of different types)
[0180] enum ResourceType {Markdown = "Markdown", Html = "Html", Image = "Image", Chart = "Chart", Search = "Search", Plan = "Plan"}; / / document, webpage, image, character, search and plan
[0181] interface Resource<T = unknown> {id: string;type: ResourceType; data:T}; / / Resource general interface, used to standardize the structure of data resources
[0182] In the above embodiment, since different types of execution results have different effects when displayed, determining the playback content in the current execution result according to the result type and the playback progress can ensure the accuracy of the obtained playback content, and further ensure the accuracy of the display content on the playback page.
[0183] In some embodiments, the result type includes a text result type;
[0184] The playback content in the current execution result is determined from the current execution result based on the result type of the current execution result and the node execution result playback progress, including:
[0185] The character quantity of each text character in the current execution result is obtained based on the text result type, and the playback quantity is calculated based on the node execution result playback progress and the character quantity to obtain a playback character quantity; the playback content in the current execution result is determined from each text character according to the generation order of each text character according to the playback character quantity.
[0186] The text result type is used to represent the type of content of the execution result, such as text, document, webpage, etc. The character quantity refers to the number of text characters in the current execution result. The playback character quantity refers to the number of text characters that need to be displayed in the playback page at the current virtual time point. The generation order of each text character refers to the order in which the text characters in the current execution result are generated.
[0187] In this embodiment, the terminal can mark that the current playback node is in a generating state, at this time, the current execution result of the current reply node is obtained according to the playback progress to obtain the playback character quantity and is played back and displayed. The terminal can also extract the corresponding character length from the current execution result according to the playback progress to obtain the playback content in the current execution result to be played back and displayed. Finally, when the playback is completed, that is, when the playback progress is 100%, the complete current execution result is displayed.
[0188] In a specific embodiment, the definition of the text result type is as follows:
[0189] interface MarkdownResourceData { content?: string;generating?:boolean;} / / Document / Webpage (truncate content by progress and generating mark)
[0190] In the above embodiment, when the execution result is a text result type, the playback character quantity corresponding to the playback progress is calculated in units of characters, thereby ensuring the accuracy of the obtained playback content.
[0191] In some embodiments, the result type includes a graph result type;
[0192] The playback content in the current execution result is determined from the current execution result based on the result type of the current execution result and the node execution result playback progress, including:
[0193] The generation stage information corresponding to each current graph in the current execution result is obtained based on the graph result type, and the current generation stage information corresponding to each current graph is determined based on the generation stage information and the node execution result playback progress. The playback content in the current execution result is determined based on the current generation stage information corresponding to each current graph and each current graph.
[0194] The graph result type is used to represent the type of the execution result, such as a picture or a chart. The generation stage information is used to represent the stage of the graph in the execution result during generation, including a waiting generation stage, a generating stage, a generation completion stage, and a graph display stage. The graph display stage is used to represent the stage of the graph display in the generation page. The generation completion stage is used to represent the stage of the graph during generation completion, at which time, a generation completion prompt information can be displayed. The generating stage is used to represent the stage of the graph during generation, at which time, a generation prompt information can be displayed. The waiting generation stage is used to represent the stage of the graph during waiting generation, at which time, a waiting generation prompt information can be displayed. The current generation stage information refers to the information of the generation stage of the graph in the current execution result at the current virtual time point, which can be any one of the waiting generation stage, the generating stage, the generation completion stage, and the graph display stage, at which time, the playback page can display the content corresponding to the stage.
[0195] In this embodiment, the graph result type is usually generated from nothing to something during generation, that is, the “waiting generation” is displayed first during the generation process, then the “generating…” is displayed, and finally the “generation completion” is displayed and the generated picture is displayed. In order to ensure the consistency of the generation process and the playback display process, the playback display can also be performed according to the generation process of the graph result type during the playback process. At this time, the different graphs in the execution result can be determined according to the playback progress to determine the corresponding generation stage information, such as, at the current virtual time point, Figure 1 is the stage of displaying the picture, Figure 2 is the stage of generation completion, Figure 3 is the stage of generating, and the subsequent graphs are in the stage of waiting generation. Similarly, the generation stage of the chart can include a “data extraction” stage, then a “code generation” stage, then a “chart drawing” stage, and finally a tailing stage to display the complete chart information. The execution result data saves the time range corresponding to each stage and the corresponding display content. The current stage of each current graph in the current execution result can be determined according to the playback progress, and then the corresponding display content is obtained and played back.
[0196] In a specific embodiment, as Figure 6As shown, it is a playback content schematic diagram of the picture result type, wherein the current playback node is the task 601 of generating pictures, the node execution result playback progress is 10%, at this time, it is in the stage of generating picture 1, and other pictures are in the stage of waiting for generation, and therefore, the stage information of generating picture 1 and the stage information of other pictures waiting for generation are displayed.
[0197] In a specific embodiment, the definition of the picture result type is as shown below:
[0198] / / Generate pictures (in multiple tasks, and advance item by item)
[0199] interface GenImageTask { progress: {loading: boolean; tips: string;images?: string[];};}interface ImageResourceData extends Array <genimagetask>{}
[0200] / / Chart generation (periodic tips)
[0201] interface GenChartTask{progress: {loading: boolean; tips: string; / / Extract data / generate code / draw chart / generate completion chart_info?: unknown;};}interfaceChartResourceData extends Array <gencharttask>{}
[0202] In the above embodiment, by calculating the current generation stage of each current graph corresponding to the playback progress in the generation stage unit when the execution result is a graph result type, the accuracy of the obtained playback content is ensured.
[0203] In some embodiments, the result type includes a search result type;
[0204] Based on the result type of the current execution result and the node execution result playback progress, the playback content in the current execution result is determined from the current execution result, including:
[0205] Based on the search result type, the total number of search entries in the current execution result is obtained, and the playback number is calculated based on the node execution result playback progress and the total number to obtain the number of searched entries; based on the number of searched entries and each search entry, the playback content in the current execution result is determined.
[0206] Wherein, the search result type refers to the type of the execution result being a search result. The search entry refers to an entry obtained by searching, which can be an information unit obtained by searching, which can be a web link, a document, etc. The number of searched entries refers to the data of the entries obtained by searching at the current virtual time point.
[0207] In this embodiment, the terminal can calculate the product of the node execution result playback progress and the total number to obtain the number of searched entries, and then take the number of searched entries and each searched entry determined in the order of searching from each search entry according to the number of searched entries as the playback content in the current execution result. At the same time, the search prompt can also be taken as the playback content in the current execution result. For example, the number of completed entries and the list of searched documents can be displayed in the playback page. And with the growth of time, the number of completed entries and the list of searched documents grow accordingly until all are displayed. And when all are displayed, the prompt in the playback page can change from "searching…" to "search complete".
[0208] In a specific embodiment, the definition of the search result type is as follows:
[0209] / / Search (progress statistics + document slicing)
[0210] interface SearchResourceData { documents?: Array<{ id: string; title:string; url?: string}>; progress?: { total: number; finish: number; tips:string};
[0211] In the above embodiments, by calculating the number of searched entries corresponding to the playback progress in units of search entries when the execution result is a search result type, the accuracy of the obtained playback content is guaranteed.
[0212] In some embodiments, the result type includes a task planning result type;
[0213] Based on the result type of the current execution result and the replay progress of the node execution result, determine the replay content in the current execution result, including:
[0214] Based on the task planning result type, obtain the number of planned characters for each task planning character in the current execution result, and calculate the number of replay characters based on the node execution result replay progress and the number of planned characters. Then, determine the replay content in the current execution result from each task planning character according to the generation order of each task planning character based on the number of replay planned characters.
[0215] The task planning result type refers to the type of task planning result obtained during execution. Task planning characters refer to the characters generated during task planning for the query task. The number of planning characters refers to the total number of planning characters in the current execution result. The number of replay planning characters refers to the number of planning characters that need to be replayed and displayed at the current virtual time point. The generation order of each task planning character refers to the order in which the characters were obtained when generating the task plan.
[0216] In this embodiment, the task node can be the node that performs the query task planning. At this time, the current execution result is the task planning result. Then, when replaying the node that performs the query task planning, the product of the node execution result replay progress and the number of planning characters can be calculated to obtain the number of replay planning characters. Finally, based on the number of replay planning characters, the task planning characters to be replayed and displayed are determined from the task planning characters according to the generation order of each task planning character, thus obtaining the replay content in the current execution result.
[0217] In a specific embodiment, such as Figure 7 The diagram shows a playback representation of a task planning result. The current playback node is task node 701, which is part of the planned task, and the current virtual time point is the task execution completion time. At this point, the node execution result playback progress is 100%, and the complete task planning content, i.e., the task plan tree, is displayed as a mind map. If the node execution result playback progress is 50%, half of the task planning content is displayed.
[0218] In a specific embodiment, the definition of the planning result type is as follows:
[0219] interface PlanResourceData { answer?: string;} / / Plan / Answer (progressing word by word according to schedule)
[0220] In the above embodiments, when the execution result is a task planning result type, the number of playback planning characters corresponding to the playback progress is calculated in units of planning characters, and the playback content is determined according to the generation order of the task planning characters, thereby ensuring the accuracy of the obtained playback content.
[0221] In some embodiments, S208, namely, displaying the replayed node and the current replay node corresponding to the current virtual time point in the replay page corresponding to the replay page data, and synchronously displaying the replay content in the current execution result, includes the following steps:
[0222] The system retrieves the virtual duration of the query task, which is determined based on the task's execution duration. It calculates the duration between the current virtual time point and the starting virtual time point of the query task to obtain the replay duration. It then calculates the ratio of the replay duration to the task's virtual duration to obtain the query task's replay progress. The replay page displays the replay virtual timeline at the current virtual time point, along with the query task's replay progress, the replay nodes corresponding to the current virtual time point, the current replay node, and the replay content from the current execution result corresponding to the current replay node.
[0223] The virtual task duration refers to the time from the start virtual time point to the end virtual time point. The start virtual time point is the time point at the beginning of the replay virtual timeline, and the end virtual time point is the time point at the end of the replay virtual timeline. The task execution duration refers to the time from the start execution time point to the end execution time point. The virtual task duration and the task execution duration can be the same; for example, if the task execution duration is 383 seconds, then the virtual task duration is also 383 seconds. Each time point in the task execution duration corresponds sequentially to each time point in the virtual task duration. The virtual task duration and the task execution duration can also be different; for example, the virtual task duration can be half of the task execution duration. The replay duration refers to the total replay time of the task at the current virtual time point.
[0224] In the embodiment, the terminal can obtain the ratio information of the played duration and the task virtual duration, and obtain the query task playback progress. The query task playback progress can be a value between 0 and 1, which represents the playback progress of the query task at the current virtual time point. Then, the terminal displays the playback content of the played node, the current playback node and the current execution result at the current virtual time point in the playback page, and displays the playback virtual timeline at the current virtual time point and the query task playback progress.
[0225] In a specific embodiment, as shown in FIG. 8, a schematic diagram for displaying the playback virtual timeline is shown, where the current virtual time point is 192 seconds, the task virtual duration is 384 seconds, and the query task playback progress is 50%. At this time, the terminal displays the playback virtual timeline 801 at the current virtual time point at the half position, displays the query task playback progress 802 of 50%, and displays the task virtual duration 804 of 384 seconds, and displays the playback content of the played node, the current playback node and the current execution result corresponding to the current playback point in the playback page. Figure 8 In the above embodiment, by calculating the ratio information of the played duration and the task virtual duration, the query task playback progress is obtained, and then the playback virtual timeline at the query task playback progress position is displayed, which can make the user clear the current playback position and improve the playback accuracy.
[0226] In some embodiments, after S208, that is, after displaying the played node and the current playback node corresponding to the current virtual time point in the playback page corresponding to the playback page data, and synchronously displaying the playback content in the current execution result, the method further comprises the steps of:
[0227] associating and storing the played node, the current playback node corresponding to the current virtual time point and the playback content in the current execution result corresponding to the current playback node into the cache;
[0228] In the embodiment, when the terminal calculates the played node, the current playback node corresponding to each virtual time point and the playback content in the current execution result corresponding to the current playback node, the terminal can directly associate and store them into the cache. When it is necessary to replay and display them later, the terminal can directly obtain the content for playback and display from the cache without re-computing, thereby saving the terminal resources and ensuring the smoothness and stability of the playback process. For example, the task node and the execution result data can be cached by time slice.
[0229] The task execution method further comprises the steps of:
[0230]
[0231] The terminal obtains a query task playback control instruction, the query task playback control instruction carries a control completed virtual time point, searches for the control virtual time point in the cache, if the control virtual time point is found, obtains the control already played node, the control current playback node and the playback content of the control execution result corresponding to the control completed virtual time point from the cache, and displays the control already played node and the control current playback node in the playback page and synchronously displays the playback content in the control execution result.
[0232] The query task playback control instruction is an instruction for controlling the playback process of the query task, and can control the virtual time point currently reached by the query task through the playback virtual time axis. The query task playback control instruction can be triggered by a control operation, which includes but is not limited to a click operation, a sliding operation, a dragging operation, a pressing operation, a voice operation, a gesture operation and the like. The control completed virtual time point is a virtual time point reached when the control operation is completed, which can be determined by the position of the playback virtual time axis when the control operation is completed. The virtual time point corresponding to each position in the playback virtual time axis is set in advance, and the virtual time point reached by the control completed position can be determined according to the correspondence between the position and the virtual time point, thereby obtaining the control completed virtual time point. The control already played node is a played node at the control completed virtual time point. The control current playback node is a playback node at the control completed virtual time point. The playback content in the control execution result is a node execution result content displayed and played at the control completed virtual time point.
[0233] In this embodiment, the terminal obtains the query task playback control instruction, can first search for the control virtual time point in the cache, if the control virtual time point is not found in the cache, it indicates that the control completed virtual time point is a virtual time point for which the corresponding playback content has not been calculated, and the terminal can take the control completed virtual time point as the current virtual time point for calculation, to obtain the corresponding played node, the current playback node and the playback content in the current execution result corresponding to the current playback node. If the control virtual time point is not found in the cache, it indicates that the control completed virtual time point is a virtual time point for which the corresponding playback content has been calculated, and the terminal can directly obtain the control already played node, the control current playback node and the playback content of the control execution result corresponding to the control current playback node from the cache. The control already played node and the control current playback node are displayed in the playback page, and the playback content in the control execution result is synchronously displayed.
[0234] In one specific embodiment, in the process of searching for the task playback, the user can control the playback process of the query task through the playback virtual time axis, and the control operation includes but is not limited to a click operation, a sliding operation, a dragging operation, a pressing operation, a voice operation, a gesture operation and the like. Figure 8 The playback virtual timeline is controlled, such as dragging the current virtual time point corresponding control to the position of the playback virtual timeline, if the control is dragged to the position of 90 seconds, the control virtual time point is 90 seconds. Since the 90 seconds is a virtual time point corresponding to the calculated playback content, the corresponding playback content can be directly found from the cache and displayed in the playback page, and the playback from 90 seconds is continued.
[0235] In the above embodiment, by caching the content of the virtual time point that needs to be played back, the content of the playback display can be directly obtained from the cache when it is needed to be played back and displayed again, without the need to recalculate, that is, by caching and changing the detection strategy, the playback process can be ensured to be smooth, the page is stable, and the terminal resources are saved.
[0236] In one embodiment, as Figure 9 shown, a task execution playback method is provided. Taking a terminal in Figure 1 as an example for illustration, it can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is realized through the interaction of the terminal and the server. In this embodiment, the method includes the following steps:
[0237] S902, displaying a playback entry of a query task;
[0238] S904, in response to a trigger event for the playback entry, displaying a playback page;
[0239] S906, playing back and displaying the played node and the current playback node of the current virtual time point of the query task in the playback page, and synchronously displaying the playback content corresponding to the current playback node, the playback content being determined from the current execution result corresponding to the current playback node according to the current virtual time point.
[0240] The playback entry refers to a trigger entry for playing back the task execution process of the query task from the beginning to the end. The playback entry can be an interactive control, such as a clickable button, a clickable link control, etc. By triggering the playback entry, the corresponding playback page can be jumped to.
[0241] In this embodiment, the user can trigger the playback of the query task through the displayed playback entry of the query task. The query task is a content generation task that has been executed. At this time, the terminal displays the playback page in response to the trigger event for the playback entry, and starts playing back the query task in the playback page, that is, displays the played node, the current playback node and the playback content corresponding to the current playback node of each virtual time point of the query task in the order of the playback virtual time. Finally, the complete execution result corresponding to the query task is displayed.
[0242] It can be understood that the played node and the current playback node at the current virtual time point and the playback content can be obtained by using steps in any one of the above task execution playback methods.
[0243] In one specific embodiment, as shown in FIG. 7, a schematic diagram of a playback page is shown, in which the terminal plays back and displays the played node and the current playback node of the query task corresponding to the current virtual time point in the playback page, and synchronously displays the playback content in the current execution result corresponding to the current playback node. The terminal plays back and displays the execution process of the query task in the playback page in the order of virtual time, until the playback is completed. At this time, the controls for re-playing or exiting the playback can be displayed on the playback page through a floating layer, so as to enable the user to re-play or exit the playback page. Figure 10
[0244] The above task execution playback method, device, computer device, storage medium and computer program product display a playback entry of the query task. In response to a trigger event for the playback entry, a playback page is displayed. The played node and the current playback node of the query task corresponding to the current virtual time point are played back and displayed in the playback page, and the playback content corresponding to the current playback node is synchronously displayed. That is, the playback entry of the query task can trigger the playback of the task nodes and the execution result content generated in the execution process of the query task, so as to realize the playback display of the execution process of the query task, and further improve the accuracy of the display of the query task.
[0245] In some embodiments, the played node and the current playback node at the current virtual time point are determined based on the current virtual time point and the playback virtual time range corresponding to each task node, each task node is determined based on the task execution data corresponding to the query task, the playback virtual time range is determined according to the task execution time range of the task node, the playback content corresponding to the current playback node is determined based on the node execution result playback progress and the current execution result corresponding to the current playback node in the task execution data, and the node execution result playback progress is obtained by performing execution result playback progress calculation based on the current virtual time point and the playback virtual time range of the current playback node.
[0246] In the embodiment, the played node and the current played node are determined by comparing the current virtual time point with the playback virtual time range corresponding to each task node, and the progress ratio is determined by comparing the current virtual time point with the start virtual time point and the end virtual time point corresponding to the current played node, and then the progress ratio is used to determine the proportion of the execution result to be displayed. At this time, the task node and the execution result take the same current virtual time point as input, when the task node is in a running state, the task display is being executed, and the execution result associated therewith is displayed according to the progress ratio. When the virtual time point advances to the end virtual time point, the task node also displays a completed state, and the execution result is also completely presented, thereby ensuring the consistency of the task node and the execution result.
[0247] In the above embodiment, by calculating the played node and the content of the played node respectively, the accuracy and consistency of the calculated played node and content can be ensured.
[0248] In some embodiments, S902, the playback entrance of the query task is displayed, including:
[0249] The agent query page is displayed, and the playback entrance of the completed query task is displayed in the agent query page.
[0250] The agent query page refers to a page for query interaction through an agent, that is, the agent generates content according to the query task corresponding statement to obtain the output execution result by inputting the query task corresponding statement.
[0251] It can be understood that the playback entrance of the query task can be displayed after the current query task is completed, or the playback entrance of the historical query task can be displayed.
[0252] In a specific embodiment, as shown in Figure 11 FIG. 1 is a schematic diagram of an agent query page, wherein a playback button 1101 is displayed at a position corresponding to the task execution result of the query task in the agent query page, at this time, the user clicks the playback button 1101 to jump to the playback page to play back the query task.
[0253] In the above embodiment, the playback entrance of the completed query task is displayed in the agent query page, so that the query can be performed in the agent query page, and the execution process of the completed query task can be viewed through playback, so that the query process does not need to be re-executed to view the execution process, thereby improving the flexibility of the agent query and saving query resources.
[0254] In some embodiments, S902, the playback entrance of the query task is displayed, including:
[0255] displaying, in the intelligent agent query page, a query task playback entry to be shared in response to a playback establishment event for a completed query task; and displaying, in a sharing page, a shared query task playback entry in response to a sharing event for the query task playback entry to be shared.
[0256] The playback establishment event refers to a triggering event for establishing a query task playback entry, which can be a triggering event for generating a link address corresponding to a query task playback page. The query task playback entry to be shared refers to a query task playback entry that needs to be shared, which can be a link address corresponding to a query task playback page. The sharing event refers to a triggering event for sharing a query task playback entry. The sharing page refers to a page for sharing a query task playback entry with other users.
[0257] In this embodiment, a user can generate a query task playback entry through an intelligent agent query page. For example, a playback button and a playback establishment button can be displayed simultaneously in the intelligent agent query page, and a query task playback entry can be generated by clicking the playback establishment button. Then, the query task playback entry can be shared. For example, a user can copy a link address corresponding to a query task playback page and share it with other communication users through an instant messaging application. Figure 11 It can be understood that, if the intelligent agent query page is a page for interacting with an intelligent agent in an instant messaging application, the query task playback entry can be directly shared with other communication users in the instant messaging application.
[0258] In one specific embodiment, as shown in FIG. 6, a schematic diagram of a sharing page is shown, where the sharing page is a communication page of an instant messaging page, and a query task playback link address sent by a communication user A to a communication user B is displayed in the communication page. At this time, the communication user B can view the shared query task playback link address in the communication page, and then click the query task playback link address to jump to a query task playback page and play back the execution process of the query task through the playback page. The execution process viewed by the communication user A through the playback page is consistent with the execution process of the query task in the intelligent agent query page.
[0259] Figure 12
[0260] In the above embodiment, by establishing a query task playback entry and sharing the query task playback entry, a user who shares the query task playback entry can view the execution process of the query task through the playback entry, thereby improving the resource utilization rate of the query task.
[0261] In some embodiments, the playback page includes a node flow area and an execution result area.
[0262] S906, i.e., in the playback page, the display query task corresponding to the current virtual time point is played back to display the played node and the current playback node, and the playback content corresponding to the current playback node is synchronously displayed, including:
[0263] The played node and the current playback node are displayed in the node flow area, and the playback content corresponding to the current playback node is synchronously displayed in the execution result area.
[0264] The node flow area refers to an area for displaying information of a task node, which can include execution planning of the task node, execution status of the task node, node name of the task node, node description, etc. The execution result area refers to an area for displaying execution results of a task node, which preferentially displays execution results of a task node in an execution state.
[0265] It can be understood that the terminal can display the task node and the execution result of the task node in different areas in the playback page, wherein the positions of the different areas can be adjacent or non-adjacent, for example, the node flow area and the execution result area can be displayed adjacently in up and down, or can be displayed with a left-right interval, etc.
[0266] In some embodiments, the playback page can be the same as the agent query page, for example, the agent query page also includes an execution result display area, and the playback page can also include an execution result display area, and at the generation end time point of the query task, the execution result of the query task is displayed in the generation result display area.
[0267] In one specific embodiment, as shown in Figure 13 the playback page schematic diagram of the end virtual time point, wherein all the task nodes are displayed in the node flow area, the preview resource of the last agent message, i.e., the execution result of the last executed task node, is displayed in the execution result area, and the generated result is displayed in the generation result area.
[0268] In the above embodiments, by displaying different data in different areas in the playback page, the smoothness and stability of the playback page display can be ensured.
[0269] In some embodiments, the playback page includes a playback virtual time axis, and the playback virtual time axis includes a time control control at the current virtual time point.
[0270] The task execution method further includes:
[0271] In response to a control event for the time control control, a playback virtual timeline at a control completion virtual time point is displayed in the playback page, and playback content in the control completed virtual time point corresponding control has played nodes, control current playback nodes and control current playback nodes corresponding control execution results are displayed.
[0272] The playback virtual timeline refers to a virtual time axis displayed when the query task is played back. The time control control refers to a control for controlling the current virtual time. The control event refers to a triggering event for controlling the corresponding time control control, which can be triggered by a triggering operation.
[0273] It can be understood that the time control control included in the playback virtual timeline changes with the change of the virtual time point during the automatic playback of the query task, for example, from the time axis start position corresponding to the playback start virtual time point to the time axis end position corresponding to the playback end virtual time point.
[0274] In the embodiment, the user can control the time control control included in the playback virtual timeline, which can be controlled during playback or after playback is completed. Then the terminal displays the playback virtual timeline at the control completion virtual time point, and displays the playback page content taking the control completion virtual time point as the current virtual time point.
[0275] It can be understood that the page content of the playback page remains unchanged during the control. For example, when dragging, set isSeeking (dragging addressing) to true (indicating that it is in the process of dragging), and after releasing, determine the current virtual time point and play back and restore the setting of isSeeking. And no playback advance calculation is performed in the addressing.
[0276] In one specific embodiment, as Figure 14 shown, a schematic diagram for controlling the time control control, wherein the user can drag the time control button 1401 from the time axis end position to the time axis start position, and can stop dragging at any position of the playback virtual timeline. At this time, the terminal obtains the control completion virtual time point corresponding to the stop position, and then searches the cache for the control completion virtual time point to obtain the playback page content corresponding to the same virtual time point and display it.
[0277] In the above embodiment, by responding to the control event for the time control control, the playback virtual timeline at the control completion virtual time point can be displayed in the playback page,
[0278] In some embodiments, the task execution playback method further comprises:
[0279] In response to a viewing event for a played-back node in the playback page, a node execution result corresponding to the played-back node is displayed through a floating layer; and in response to a viewing event for a current playback node in the playback page, playback content in a current execution result corresponding to the current playback node is displayed through the floating layer.
[0280] The query event refers to a triggering event of viewing a task node displayed in the playback page, which can be triggered by a triggering operation on the task node.
[0281] In this embodiment, the user can view any task node displayed in the playback page during playback, that is, any played-back node or the current playback node. Different task nodes display different content through a floating layer. The played-back node displays a complete node execution result through the floating layer, and the current playback node displays the playback content that has been played back through the floating layer and does not display the content that has not been played back. In some embodiments, the user triggers a viewing event for the current playback node, and the complete node execution result corresponding to the current playback node can also be displayed through the floating layer.
[0282] It can be understood that the user can also view any task node displayed in the playback page after playback is completed. At this time, the complete node execution result corresponding to the viewed task node is displayed through the floating layer.
[0283] It can be understood that, since the node execution result corresponding to the viewing event is displayed through the floating layer, if the playback page is in the process of playback, the playback can be maintained and does not need to be stopped. In some embodiments, when the user views the task node, the playback of the playback page being performed can also be stopped, and the playback page at a virtual time point corresponding to the viewing event is displayed. Then, when the floating layer is exited, the playback is continued.
[0284] In the above embodiment, the content corresponding to the task node can be viewed during playback through the viewing event, thereby improving the flexibility of querying the playback of the task.
[0285] In a specific embodiment, as shown in FIG. 1, a flowchart of a task execution playback method is shown, which is executed by a computer device, which can be a terminal or a server. The computer device is taken as a terminal for example, and the method specifically includes the following steps. Figure 15
[0286] S1502, a query task playback instruction is acquired, and a query task playback request is sent to a server corresponding to a query task playback page address based on the query task playback instruction. Playback page data returned by the server is acquired, and the playback page data includes task execution data.
[0287] S1504, based on the task node identifier corresponding node attribute, the task execution data is split, the node process data corresponding to the query task and the node execution result data corresponding to the query task are obtained, and the node execution process data corresponding to the query task is stored in the preset execution process data source, and the node execution result data corresponding to the query task is stored in the preset execution result data source.
[0288] S1506, the playback start virtual time point and the playback end virtual time point are obtained from the playback page data, the playback start virtual time point is taken as the current virtual time point, the execution process data corresponding to the query task is obtained from the preset execution process data source, and the task execution time range corresponding to each task node is obtained from the execution process data, the task execution time range corresponding to each task node is mapped to the playback virtual time, and the playback virtual time range corresponding to each task node is obtained.
[0289] S1508, the to-be-detected playback virtual time range corresponding to the to-be-detected task node is determined from the playback virtual time range corresponding to each task node, if the current virtual time point is greater than or equal to the to-be-detected task start execution virtual time point and less than the to-be-detected task completion virtual time point, the to-be-detected task node is taken as the current playback node in the execution state.
[0290] If the current virtual time point is less than the to-be-detected task creation virtual time point, the to-be-detected task node is taken as an unplayed node, if the current virtual time point is greater than or equal to the to-be-detected task creation virtual time point and less than the to-be-detected task start execution virtual time point, the to-be-detected task node is taken as the current playback node in the waiting state, and if the current virtual time point is equal to the to-be-detected task completion virtual time point, the to-be-detected task node is taken as the current playback node in the completion state.
[0291] S1510, based on the planning sequence of each task node, the previous task node corresponding to the current playback node is obtained, and the previous task node is taken as a played node, if the current playback node is in the execution state, the duration between the current virtual time point and the task start execution virtual time point corresponding to the current playback node is calculated, and the current playback duration corresponding to the current playback node is obtained.
[0292] S1512, the duration between the task start execution virtual time point and the task completion virtual time point corresponding to the current playback node is calculated, and the execution virtual duration corresponding to the current playback node is obtained, based on the proportion information of the current playback duration in the execution virtual duration, the node execution result playback progress corresponding to the current playback node is obtained.
[0293] S1514, obtain the execution result data corresponding to the query task from the preset execution result data source. Obtain the current execution result corresponding to the current playback node from the execution result data. Determine the playback content in the current execution result based on the result type of the current execution result and the node execution result playback progress.
[0294] S1516, obtain the task virtual duration corresponding to the query task, calculate the duration between the current virtual time point and the starting virtual time point corresponding to the query task to obtain the played duration. Calculate the proportion information of the played duration and the task virtual duration to obtain the query task playback progress.
[0295] S1518, display the playback virtual timeline at the current virtual time point in the playback page corresponding to the playback page data, and display the query task playback progress, the played node and the current playback node corresponding to the current virtual time point, and the playback content in the current execution result corresponding to the current playback node.
[0296] S1520, if the current virtual time point is not consistent with the playback end virtual time point, obtain the playback advancing duration, determine the advancing virtual time point based on the current virtual time point and the playback advancing duration. Take the advancing virtual time point as the current virtual time point, and return to S1508 for iterative execution. If the current virtual time point is consistent with the playback end virtual time point, display a prompt information that the playback has ended.
[0297] Wherein, the query task playback speed adjustment instruction is obtained, and the query task playback speed adjustment instruction carries playback speed adjustment information. The playback advancing duration is adjusted based on the playback speed adjustment information to obtain an adjusted advancing duration, and the adjusted advancing duration is taken as the playback advancing duration.
[0298] Wherein, the query task playback pause instruction is obtained, and the query task playback pause instruction carries a pause time point. The pause played node, the pause playback node and the pause execution result playback content corresponding to the pause playback node corresponding to the pause time point displayed in the playback page are kept unchanged. The query task playback pause end instruction is obtained, and the query task playback pause instruction carries a pause time point. The advancing virtual time point is determined based on the pause time point and the playback advancing duration.
[0299] Wherein, the current playback state, the current playback speed and the current time control information corresponding to the query task are obtained based on the current virtual time point, and the current virtual time point, the current playback state, the current playback speed and the current time control information are saved in the playback state warehouse.
[0300] In the above embodiments, the execution process of the query task is reproduced by simulating the execution process of the query task according to the virtual time and the result type, that is, the playback of the implemented query task execution process, and the readability of the playback is significantly improved, and the fast positioning of any position can be supported by adjusting the playback speed and drag addressing, and the playback efficiency is improved. The playback process can be smooth and the page can be stable through the cache and the change detection strategy.
[0301] In a specific embodiment, the task execution playback method is applied in a deep search platform, specifically: Figure 16 As shown in the figure, the architecture diagram of the deep search platform, in which the user creates a query task in the front end of the deep search platform, the deep search platform backend plans the query task to obtain each task node, that is, Task and subTask, and executes each task node in turn to obtain the execution result. Finally, the task execution data corresponding to the query task is saved to the persistent storage redis. When the user performs query task playback, the task execution data can be obtained from the persistent storage redis to perform query task playback. Then as Figure 17 As shown in the figure, the architecture diagram of the task execution playback, in which the historical data corresponding to the query task, that is, the task execution data, is obtained through an external API interface in the front end of the deep search platform. Then the playback state is stored through state management, such as storing the current virtual time point, playback virtual time axis, playback state, playback speed, playback push time length, etc. Then the playback state of the playback page is displayed through the playback state of the playback page. Then the playback speed is controlled through the time engine, and the virtual time point is pushed and jumped. The playback and pause can also be controlled. Finally, the playback data source provides the data displayed in the playback process, including the execution process data source and the execution result data source. Then in the playback process, data processing is performed. That is, the task state generator uses the virtual time point to generate the state of the task node that needs to be played back, that is, the played back node and the current playback node, and the resource state generator uses the virtual time point to generate the resource state that needs to be played back, that is, the execution result playback content. Finally, the generated task node state is displayed in the form of a smooth graph in the playback page, and the execution result playback content corresponding to the task node being executed is displayed in the working area of the playback page. That is, by implementing the playback calculation in the front end, the resources of the backend can be saved, and the smoothness and stability of the playback can be ensured. It can be understood that the task execution playback method can be applied in various intelligent agents, such as vertical knowledge query intelligent agents, and the vertical knowledge query tasks performed by the intelligent agents can be played back through the playback page.
[0302] It should be understood that although each step in the flowchart involved in the above embodiments is shown in sequence according to the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately executed with other steps or steps or stages in other steps.
[0303] Based on the same inventive concept, the embodiments of the present application also provide a task execution playback device for implementing the above-mentioned task execution playback method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more task execution playback device embodiments provided below can refer to the limitations of the task execution playback method in the foregoing, which will not be repeated here.
[0304] In one embodiment, as shown in Figure 18 A task execution playback device 1800 is provided, including an instruction acquisition module 1802, a node determination module 1804, a progress determination module 1806, and a playback display module 1808, wherein:
[0305] The instruction acquisition module 1802 is configured to acquire a query task playback instruction, acquire a current virtual time point based on the query task playback instruction, and query task execution data corresponding to the query task in the playback page data according to the query task playback instruction;
[0306] The node determination module 1804 is configured to determine a current playback node and a played node corresponding to the current virtual time point based on the current virtual time point and a playback virtual time range corresponding to each task node corresponding to the query task in the task execution data, and determine the playback virtual time range according to the task execution time range of the task node;
[0307] The progress determination module 1806 is configured to perform execution result playback progress calculation based on the current virtual time point and the playback virtual time range of the current playback node, and obtain a node execution result playback progress corresponding to the current playback node;
[0308] The playback display module 1808 is configured to display the played node and the current playback node corresponding to the current virtual time point in the playback page corresponding to the playback page data, and synchronously display the playback content in the current execution result, which is determined based on the node execution result playback progress and the current execution result corresponding to the current playback node in the task execution data.
[0309] In one embodiment, the instruction obtaining module 1802 is further configured to obtain query task playback instructions, the query task playback instructions carrying a query task playback page address; obtain corresponding playback page data based on the query task playback page address, and obtain a playback start virtual time point and a playback end virtual time point, the playback start virtual time point being taken as the current virtual time point.
[0310] The task execution playback apparatus 1800 further includes:
[0311] The playback advancing module is configured to, if the current virtual time point is not consistent with the playback end virtual time point, obtain a playback advancing time length, determine an advancing virtual time point based on the current virtual time point and the playback advancing time length, take the advancing virtual time point as the current virtual time point, and iteratively execute the step of determining the current playback node and the played node corresponding to the current virtual time point based on the current virtual time point and the playback virtual time range of each task node corresponding to the query task in the task execution data, and if the current virtual time point is consistent with the playback end virtual time point, display prompt information that the playback has ended.
[0312] In some embodiments, the task execution playback apparatus 1800 further includes:
[0313] The speed adjusting module is configured to obtain query task playback speed adjusting instructions, the query task playback speed adjusting instructions carrying playback speed adjusting information; adjust the playback advancing time length based on the playback speed adjusting information to obtain an adjusted advancing time length, and take the adjusted advancing time length as the playback advancing time length.
[0314] In some embodiments, the task execution playback apparatus 1800 further includes:
[0315] The playback pausing module is configured to obtain query task playback pausing instructions, the query task playback pausing instructions carrying a pausing time point; keep the paused played node, the paused playback node and the paused execution result playback content corresponding to the paused playback node corresponding to the pausing time point displayed in the playback page unchanged.
[0316] The playback advancing module is further configured to obtain query task playback pausing end instructions, the query task playback pausing end instructions carrying a pausing time point; determine an advancing virtual time point based on the pausing time point and the playback advancing time length.
[0317] In some embodiments, the task execution playback device 1800 further comprises:
[0318] The state saving module is configured to obtain the current playback state, the current playback speed, and the current time control information corresponding to the query task based on the current virtual time point, and save the current virtual time point, the current playback state, the current playback speed, and the current time control information into the playback state repository.
[0319] In some embodiments, the instruction obtaining module 1802 is further configured to obtain a query task playback instruction, send a query task playback request to a corresponding server based on the query task playback instruction, the query task playback request carrying a query task identifier, the server being configured to find corresponding task execution data based on the query task identifier and return the same; obtain the task execution data returned by the server, the task execution data including key information, field information, and value information corresponding to each field information, the key information including the query task identifier, the field information including a task node identifier corresponding to the query task identifier, and the value information including a node attribute corresponding to the task node identifier; split the task execution data based on the node attribute corresponding to the task node identifier to obtain node process data corresponding to the query task and node execution result data corresponding to the query task; store the node process data corresponding to the query task into a preset process data source, and store the node execution result data corresponding to the query task into a preset result data source.
[0320] In some embodiments, the node determining module 1804 is further configured to obtain the execution process data corresponding to the query task from the preset process data source; obtain the task execution time range corresponding to each task node from the execution process data, perform playback virtual time mapping on the task execution time range corresponding to each task node to obtain a playback virtual time range corresponding to each task node; find the current virtual time point in the playback virtual time range corresponding to each task node, and if the current virtual time point is found, take the task node corresponding to the playback virtual time range in which the current virtual time point is found as the current playback node; obtain a precedent task node corresponding to the current playback node based on the planning sequence of each task node, and take the precedent task node as a playback node.
[0321] In some embodiments, the node determining module 1804 is further configured to determine, from the playback virtual time range corresponding to each task node, a to-be-detected playback virtual time range corresponding to a to-be-detected task node, the to-be-detected playback virtual time range including a to-be-detected task creation virtual time point, a to-be-detected task start execution virtual time point, and a to-be-detected task completion virtual time point; if the current virtual time point is less than the to-be-detected task creation virtual time point, the to-be-detected task node is determined as an unplayed node; if the current virtual time point is greater than or equal to the to-be-detected task creation virtual time point and less than the to-be-detected task start execution virtual time point, the to-be-detected task node is determined as a current playback node in a waiting state; if the current virtual time point is greater than or equal to the to-be-detected task start execution virtual time point and less than the to-be-detected task completion virtual time point, the to-be-detected task node is determined as a current playback node in an execution state; and if the current virtual time point is equal to the to-be-detected task completion virtual time point, the to-be-detected task node is determined as a current playback node in a completion state.
[0322] In some embodiments, the task execution playback apparatus 1800 further includes:
[0323] The viewing module is configured to acquire a viewing instruction for a target task node in the playback page, detect, based on the viewing instruction, whether the target task node is in an execution state, acquire target execution result playback content corresponding to the target task node if the target task node is in the execution state, and display the target execution result playback content through a floating layer in the playback page; and acquire a target node execution result corresponding to the target task node if the target task node is in a completion state, and display the target node execution result through the floating layer in the playback page.
[0324] In some embodiments, the progress determining module 1806 is configured to, if the current playback node is in an execution state, calculate a time length between the current virtual time point and a task start execution virtual time point corresponding to the current playback node to obtain a current playback time length corresponding to the current playback node; calculate a time length between the task start execution virtual time point and a task completion virtual time point corresponding to the current playback node to obtain an execution virtual time length corresponding to the current playback node; and obtain a node execution result playback progress corresponding to the current playback node based on proportion information of the current playback time length in the execution virtual time length.
[0325] In some embodiments, the playback display module 1808 is further configured to acquire execution result data corresponding to a query task from a preset execution result data source; acquire a current execution result corresponding to the current playback node from the execution result data; determine, based on a result type of the current execution result and a node execution result playback progress, playback content in the current execution result from the current execution result; and synchronously display the playback content in the current execution result in the playback page.
[0326] In some embodiments, the result type includes a text result type;
[0327] The playback display module 1808 is further configured to obtain a number of characters of each text character in the current execution result based on the text result type, and perform a playback quantity calculation based on the node execution result playback progress and the number of characters to obtain a playback character quantity; and determine, according to the playback character quantity, playback content in the current execution result from the text characters in the order of generation of the text characters.
[0328] In some embodiments, the result type includes a graph result type;
[0329] The playback display module 1808 is further configured to obtain generation stage information corresponding to each current graph in the current execution result based on the graph result type, and determine current generation stage information corresponding to each current graph based on the generation stage information and the node execution result playback progress; and determine, based on the current generation stage information corresponding to each current graph and each current graph, playback content in the current execution result.
[0330] In some embodiments, the result type includes a search result type;
[0331] The playback display module 1808 is further configured to obtain a total number of search entries in the current execution result based on the search result type, and perform a playback quantity calculation based on the node execution result playback progress and the total number to obtain a searched entry quantity; and determine, based on the searched entry quantity and each search entry, playback content in the current execution result.
[0332] In some embodiments, the result type includes a task planning result type;
[0333] The playback display module 1808 is further configured to obtain a planning character quantity of each task planning character in the current execution result based on the task planning result type, and perform a playback quantity calculation based on the node execution result playback progress and the planning character quantity to obtain a playback planning character quantity; and determine, according to the playback planning character quantity, playback content in the current execution result from the task planning characters in the order of generation of the task planning characters.
[0334] In some embodiments, the playback display module 1808 is further configured to obtain a task virtual duration corresponding to the query task, the task virtual duration being determined according to a task execution duration of the query task; calculate a duration between the current virtual time point and a starting virtual time point corresponding to the query task to obtain a played duration; calculate proportion information of the played duration and the task virtual duration to obtain a query task playback progress; display a playback virtual time axis at the current virtual time point in the playback page, and display the query task playback progress, a played node corresponding to the current virtual time point and a current playback node, and playback content in the current execution result corresponding to the current playback node.
[0335] In some embodiments, the task execution playback apparatus 1800 further comprises:
[0336] a cache module configured to store the playback content in the cache, from among the already played back node corresponding to the current virtual time point, the current playback node, and the current execution result corresponding to the current playback node;
[0337] The task execution playback apparatus 1800 further comprises:
[0338] a playback control module configured to obtain a query task playback control instruction, the query task playback control instruction carrying a control completed virtual time point; find the control virtual time point in the cache, and if the control virtual time point is found, obtain the control already played back node, the control current playback node, and the control execution result playback content corresponding to the control completed virtual time point from the cache; and display the control already played back node and the control current playback node in the playback page, and synchronously display the playback content in the control execution result.
[0339] In one embodiment, as shown in Figure 19 a task execution playback apparatus 1900 is provided, comprising an entry display module 1902, a triggering module 1904, and a playback display module 1906, wherein:
[0340] The entry display module 1902 is configured to display a playback entry of a query task;
[0341] The triggering module 1904 is configured to display a playback page in response to a triggering event for the playback entry;
[0342] The playback display module 1906 is configured to display an already played back node and a current playback node of a current virtual time point corresponding to the query task in the playback page, and synchronously display playback content corresponding to the current playback node.
[0343] In some embodiments, the already played back node and the current playback node of the current virtual time point are determined based on the current virtual time point and playback virtual time ranges corresponding to respective task nodes, the respective task nodes are determined based on task execution data corresponding to the query task, the playback virtual time ranges are determined according to task execution time ranges of the task nodes, the playback content corresponding to the current playback node is determined based on a node execution result playback progress and a current execution result corresponding to the current playback node in the task execution data, and the node execution result playback progress is obtained by performing execution result playback progress calculation based on the current virtual time point and the playback virtual time range of the current playback node.
[0344] In some embodiments, the entry display module 1902 is further configured to display an agent query page, and display a playback entry of a completed query task in the agent query page.
[0345] In some embodiments, the entry display module 1902 is further configured to display an agent query page, and display a to-be-shared query task playback entry in the agent query page in response to a playback establishment event of a completed query task, and display a shared query task playback entry in a sharing page in response to a sharing event of the to-be-shared query task playback entry.
[0346] In some embodiments, the playback page includes a node flow area and an execution result area.
[0347] The playback display module 1906 is further configured to display a played node and a current playback node in the node flow area, and synchronously display playback content corresponding to the current playback node in the execution result area.
[0348] In some embodiments, the playback page includes a playback virtual time axis, and the playback virtual time axis includes a time control control at a current virtual time point.
[0349] The task execution playback apparatus 1900 further includes:
[0350] The control module is configured to, in response to a control event of the time control control, display a playback virtual time axis at a control completion virtual time point in the playback page, and display playback content of a control played node, a control current playback node, and a control execution result corresponding to the control current playback node corresponding to the control completion virtual time point.
[0351] The above various modules in the task execution method and apparatus can be all or partially implemented by software, hardware, and combinations thereof. The above various modules can be embedded in or independent of a processor in a computer device in a hardware form, or stored in a memory in a computer device in a software form, so as to be called and executed by a processor to perform operations corresponding to the above various modules.
[0352] In one embodiment, a computer device, which can be a server, is provided, and an internal structure diagram of the computer device can be as shown in FIG. 8. Figure 20 As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through the system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control ability. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store task execution data, playback state, playback data source and other data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through network connection. The computer program is executed by the processor to implement a task execution playback method.
[0353] In one embodiment, a computer device which can be a terminal is provided, and its internal structure diagram can be as shown in the figure. Figure 21 As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through the system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control ability. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store task execution data, playback state, playback data source and other data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through network connection. The computer program is executed by the processor to implement a task execution playback method.
[0354] Those skilled in the art can understand that, Figure 20 Or Figure 21 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0355] In one embodiment, a computer device is also provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the steps in the above method embodiments when executing the computer program.
[0356] In one embodiment, a computer readable storage medium is provided, storing a computer program, and the computer program implements the steps in the above method embodiments when executed by a processor.
[0357] In one embodiment, a computer program product is provided, including a computer program, and the computer program implements the steps in the above method embodiments when executed by a processor.
[0358] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant national and regional laws, regulations and standards.
[0359] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, etc., without being limited thereto.
[0360] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist, it should be considered as the scope of the present application.
[0361] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.< / gencharttask> < / genimagetask>
Claims
1. A task execution playback method characterized by, The method comprises: obtaining a query task playback instruction, obtaining a current virtual time point based on the query task playback instruction, and the playback page data corresponding to the query task playback instruction comprising task execution data corresponding to a query task; determining a current playback node and a played node corresponding to the current virtual time point based on the current virtual time point and a playback virtual time range of each task node corresponding to the query task in the task execution data, the playback virtual time range being determined according to a task execution time range of a task node; performing execution result playback progress calculation based on the current virtual time point and a playback virtual time range of the current playback node, to obtain a node execution result playback progress corresponding to the current playback node; displaying the played node and the current playback node corresponding to the current virtual time point in a playback page corresponding to the playback page data, and synchronously displaying playback content in a current execution result, the playback content in the current execution result being determined based on the node execution result playback progress and a current execution result corresponding to the current playback node in the task execution data.
2. The method of claim 1, wherein, The method comprises: obtaining a query task playback instruction, obtaining a current virtual time point based on the query task playback instruction, and the playback page data corresponding to the query task playback instruction comprising task execution data corresponding to a query task; obtaining a query task playback instruction, the query task playback instruction carrying a query task playback page address; obtaining corresponding playback page data based on the query task playback page address, obtaining a playback start virtual time point and a playback end virtual time point, and taking the playback start virtual time point as the current virtual time point; after displaying the played node and the current playback node corresponding to the current virtual time point in a playback page corresponding to the playback page data, and synchronously displaying playback content in a current execution result, the method further comprises: if the current virtual time point is not consistent with the playback end virtual time point, obtaining a playback advancing time length, and determining an advancing virtual time point based on the current virtual time point and the playback advancing time length; taking the advancing virtual time point as the current virtual time point, and iteratively performing the step of determining a current playback node and a played node corresponding to the current virtual time point based on the current virtual time point and a playback virtual time range of each task node corresponding to the query task in the task execution data; 3. The method of claim 2, wherein, if the current virtual time point is consistent with the playback end virtual time point, displaying a prompt information that playback has ended. The method further comprises: obtaining a query task playback speed adjustment instruction, the query task playback speed adjustment instruction carrying playback speed adjustment information; 4. The method of claim 2, wherein, adjusting the playback advancing time length based on the playback speed adjustment information, to obtain an adjusted advancing time length, and taking the adjusted advancing time length as the playback advancing time length. The method further comprises: obtaining a query task playback pause instruction, the query task playback pause instruction carrying a pause time point; The paused replay node, the paused replay node, and the paused execution result replay content corresponding to the paused replay node displayed on the replay page remain unchanged; The process of determining the advancement virtual time point based on the current virtual time point and the playback advancement duration includes: Obtain the query task playback pause / end instruction, wherein the query task playback pause instruction carries the pause time point; The virtual time point for advancement is determined based on the pause time point and the replay advancement duration.
5. The method of claim 1, wherein, The method further includes: Based on the current virtual time point, obtain the current playback status, current playback speed, and current time control information corresponding to the query task, and save the current virtual time point, current playback status, current playback speed, and current time control information to the playback status repository.
6. The method of claim 1, wherein, The step of obtaining the query task replay instruction involves obtaining the current virtual time point based on the query task replay instruction. The replay page data corresponding to the query task replay instruction includes task execution data corresponding to the query task, including: Obtain a query task replay instruction, and send a query task replay request to the corresponding server based on the query task replay instruction. The query task replay request carries a query task identifier. The server is used to find the corresponding task execution data based on the query task identifier and return it. Obtain the task execution data returned by the server. The task execution data includes key information, field information, and value information corresponding to each field. The key information includes the query task identifier. The field information includes the task node identifier corresponding to the query task identifier. The value information includes the node attribute corresponding to the task node identifier. Based on the node attributes corresponding to the task node identifier, the task execution data is split to obtain the node process data and the node execution result data corresponding to the query task. The node execution process data corresponding to the query task is stored in a preset execution process data source, and the node execution result data corresponding to the query task is stored in a preset execution result data source.
7. The method of claim 1, wherein, The step of determining the current playback node and the already played-out node corresponding to the current virtual time point based on the current virtual time point and the playback virtual time range of each task node corresponding to the queried task in the task execution data includes: Obtain the execution process data corresponding to the query task from the preset execution process data source; The task execution time range corresponding to each task node is obtained from the execution process data, and the task execution time range corresponding to each task node is replayed virtual time mapping to obtain the replay virtual time range corresponding to each task node. The current virtual time point is searched within the playback virtual time range corresponding to each task node. If the current virtual time point is found, the task node corresponding to the playback virtual time range where the current virtual time point is found is taken as the current playback node. Based on the planning order of each task node, obtain the preceding task node corresponding to the current replay node, and use the preceding task node as the replay node.
8. The method of claim 7, wherein, The current virtual time point is searched in the playback virtual time range corresponding to each task node, and if the current virtual time point is found, a task node corresponding to a playback virtual time range in which the current virtual time point is found is taken as a current playback node, and the method comprises the following steps. A to-be-detected playback virtual time range corresponding to a to-be-detected task node is determined from the playback virtual time range corresponding to each task node, and the to-be-detected playback virtual time range comprises a to-be-detected task creation virtual time point, a to-be-detected task start execution virtual time point and a to-be-detected task completion virtual time point. If the current virtual time point is less than the to-be-detected task creation virtual time point, the to-be-detected task node is taken as an unplayed node. If the current virtual time point is greater than or equal to the to-be-detected task creation virtual time point and less than the to-be-detected task start execution virtual time point, the to-be-detected task node is taken as a current playback node in a waiting state. If the current virtual time point is greater than or equal to the to-be-detected task start execution virtual time point and less than the to-be-detected task completion virtual time point, the to-be-detected task node is taken as a current playback node in an execution state. If the current virtual time point is equal to the to-be-detected task completion virtual time point, the to-be-detected task node is taken as a current playback node in a completion state.
9. The method of claim 8, wherein, The method further comprises the following steps. A viewing instruction for a target task node in the playback page is acquired, and if the target task node is in an execution state, a target execution result playback content corresponding to the target task node is acquired, and the target execution result playback content is displayed on the playback page through a floating layer based on the viewing instruction; If the target task node is in a completion state, a target node execution result corresponding to the target task node is acquired, and the target node execution result is displayed on the playback page through a floating layer.
10. The method of claim 1, wherein, The execution result playback progress calculation is performed based on the current virtual time point and a playback virtual time range of the current playback node, and a node execution result playback progress corresponding to the current playback node is obtained, and the method comprises the following steps. If the current playback node is in an execution state, a time length between the current virtual time point and a task start execution virtual time point corresponding to the current playback node is calculated, and a current playback time length corresponding to the current playback node is obtained. A time length between the task start execution virtual time point and a task completion virtual time point corresponding to the current playback node is calculated, and an execution virtual time length corresponding to the current playback node is obtained. Based on proportion information of the current playback time length in the execution virtual time length, a node execution result playback progress corresponding to the current playback node is obtained.
11. The method of claim 1, wherein, The playback content in the current execution result is synchronously displayed, and the playback content in the current execution result is determined based on the node execution result playback progress and a current execution result corresponding to the current playback node in the task execution data, and the method comprises the following steps. Execution result data corresponding to the query task is acquired from a preset execution result data source. obtaining a current execution result corresponding to the current playback node from the execution result data; determining, based on a result type of the current execution result and the node execution result playback progress, playback content in the current execution result from the current execution result; synchronously displaying the playback content in the current execution result in the playback page.
12. The method of claim 11, wherein, The result type includes a text result type. The determining, based on the result type of the current execution result and the node execution result playback progress, playback content in the current execution result from the current execution result includes: obtaining a character quantity of each text character in the current execution result based on the text result type, and performing playback quantity calculation based on the node execution result playback progress and the character quantity to obtain a playback character quantity; determining the playback content in the current execution result from the text characters according to the generation order of the text characters based on the playback character quantity.
13. The method of claim 11, wherein, The result type includes a graph result type. The determining, based on the result type of the current execution result and the node execution result playback progress, playback content in the current execution result from the current execution result includes: obtaining generation stage information corresponding to each current graph in the current execution result based on the graph result type, and determining current generation stage information corresponding to each current graph based on the generation stage information and the node execution result playback progress; determining the playback content in the current execution result based on the current generation stage information corresponding to each current graph and the current graph.
14. The method of claim 11, wherein, The result type includes a search result type. The determining, based on the result type of the current execution result and the node execution result playback progress, playback content in the current execution result from the current execution result includes: obtaining a total quantity of each search entry in the current execution result based on the search result type, and performing playback quantity calculation based on the node execution result playback progress and the total quantity to obtain a searched entry quantity; determining the playback content in the current execution result based on the searched entry quantity and the search entries.
15. The method of claim 11, wherein, The result type includes a task planning result type. The determining, based on the result type of the current execution result and the node execution result playback progress, playback content in the current execution result from the current execution result includes: obtaining a planning character quantity of each task planning character in the current execution result based on the task planning result type, and performing playback quantity calculation based on the node execution result playback progress and the planning character quantity to obtain a playback planning character quantity; determining the playback content in the current execution result from the task planning characters according to the generation order of the task planning characters based on the playback planning character quantity.
16. The method of claim 1, wherein, The displaying, in the playback page corresponding to the playback page data, the already played node and the current playback node corresponding to the current virtual time point, and synchronously displaying the playback content in the current execution result includes: acquire a task virtual duration corresponding to the query task, the task virtual duration being determined according to a task execution duration of the query task; calculate a duration between the current virtual time point and a starting virtual time point corresponding to the query task to obtain a played duration; calculate proportion information of the played duration and the task virtual duration to obtain a query task playback progress; display a playback virtual time axis at the current virtual time point in the playback page, and display the query task playback progress, the played node corresponding to the current virtual time point, the current playback node, and playback content in the current execution result corresponding to the current playback node.
17. The method of claim 1, wherein, After the played node corresponding to the current virtual time point, the current playback node, and the playback content in the current execution result corresponding to the current playback node are displayed in the playback page corresponding to the playback page data, and the playback content in the current execution result is synchronously displayed, the method further includes: store the played node corresponding to the current virtual time point, the current playback node, and the playback content in the current execution result corresponding to the current playback node in the cache in association; The method further includes: acquire a query task playback control instruction, the query task playback control instruction carrying a control complete virtual time point; find the control virtual time point in the cache, and if the control virtual time point is found, acquire a control played node, a control current playback node, and playback content in a control execution result corresponding to the control current playback node corresponding to the control complete virtual time point from the cache; display the control played node and the control current playback node in the playback page, and synchronously display the playback content in the control execution result.
18. A task execution playback method characterized by comprising: The method includes: display a playback entry of a query task; in response to a trigger event for the playback entry, display a playback page; display a played node and a current playback node corresponding to a current virtual time point of the query task in the playback page, and synchronously display playback content corresponding to the current playback node, the playback content being determined from a current execution result corresponding to the current playback node according to the current virtual time point.
19. The method of claim 18, wherein, The played node and the current playback node of the current virtual time point are determined based on the current virtual time point and playback virtual time ranges corresponding to task nodes, the task nodes being determined based on task execution data of the query task, the playback virtual time ranges being determined according to task execution time ranges of the task nodes, the playback content corresponding to the current playback node being determined based on a node execution result playback progress and a current execution result corresponding to the current playback node in the task execution data, and the node execution result playback progress being obtained by performing execution result playback progress calculation based on the current virtual time point and a playback virtual time range of the current playback node.
20. The method of claim 18, wherein, The display of the playback entry of the query task includes: display an intelligent agent query page; display a playback entry of a completed query task in the intelligent agent query page.
21. The method of claim 18, wherein, The display query task playback entrance includes: Displaying an intelligent agent query page, and in response to a playback establishment event for a completed query task, displaying a query task playback entrance to be shared in the intelligent agent query page; In response to a sharing event for the query task playback entrance to be shared, displaying a shared query task playback entrance in a sharing page.
22. The method of claim 18, wherein, The playback page includes a node flow area and an execution result area; The playback display in the playback page displays an already played node and a current playback node corresponding to a current virtual time point of the query task, and synchronously displays playback content corresponding to the current playback node. The already played node and the current playback node are displayed in the node flow area, and the playback content corresponding to the current playback node is synchronously displayed in the execution result area.
23. The method of claim 18, wherein, The playback page includes a playback virtual time axis, and the playback virtual time axis includes a time control control at a current virtual time point; The method further includes: In response to a control event for the time control control, displaying a playback virtual time axis at a control completion virtual time point in the playback page, and displaying a control already played node, a control current playback node, and playback content in a control execution result corresponding to the control current playback node corresponding to the control completion virtual time point.
24. The method of claim 18, wherein, The method further includes: In response to a viewing event for an already played node in the playback page, displaying a node execution result corresponding to the already played node through a floating layer; In response to a viewing event for a current playback node in the playback page, displaying playback content corresponding to the current playback node through a floating layer.
25. A task execution playback apparatus characterized by comprising: The device includes: An instruction acquisition module configured to acquire a query task playback instruction, and acquire a current virtual time point based on the query task playback instruction, wherein the playback page data corresponding to the query task playback instruction includes task execution data corresponding to a query task; A node determination module configured to determine a current playback node and an already played node corresponding to the current virtual time point based on the current virtual time point and a playback virtual time range of each task node corresponding to the query task in the task execution data, wherein the playback virtual time range is determined according to a task execution time range of a task node; A progress determination module configured to perform execution result playback progress calculation based on the current virtual time point and a playback virtual time range of the current playback node, to obtain a node execution result playback progress corresponding to the current playback node; A playback display module configured to display the already played node and the current playback node corresponding to the current virtual time point in a playback page corresponding to the playback page data, and synchronously display playback content in a current execution result, wherein the playback content in the current execution result is determined based on the node execution result playback progress and a current execution result corresponding to the current playback node in the task execution data.
26. A task execution playback apparatus characterized by comprising: The device includes: An entrance display module configured to display a playback entrance of a query task; A trigger module configured to display a playback page in response to a trigger event for the playback entrance; The playback display module is configured to display, in the playback page, a played node and a current playback node corresponding to a current virtual time point of the query task, and synchronously display playback content corresponding to the current playback node, the playback content being determined from a current execution result corresponding to the current playback node according to the current virtual time point. 27.A computer device, comprising a memory and a processor, wherein the memory stores a computer program. The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 24.
28. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 24.
29. A computer program product comprising a computer program, characterised in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 24. The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 24.