Workflow editing method and device, equipment and storage medium

CN121605384APending Publication Date: 2026-03-03DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202480004247.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

In the prior art, it is difficult to efficiently associate and call multiple child nodes when editing workflows, resulting in insufficient workflow editing efficiency and flexibility.

Method used

By presenting the node graph in the editing interface of the workflow and providing candidate ports and candidate nodes in response to user selection, the association between nodes is realized, so that the node can call the associated child nodes during the workflow operation.

Benefits of technology

Improves the efficiency and flexibility of workflow editing, allowing users to create and modify workflows more intuitively, and enhances the tunability of workflows.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121605384A_ABST
    Figure CN121605384A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a workflow editing method and device, equipment and a storage medium. The method comprises the following steps: presenting an editing interface of a workflow, wherein the editing interface is used for editing a node graph corresponding to the workflow; presenting a first group of candidate ports associated with a first node in the node graph in an editing interface, wherein the first group of candidate ports correspond to different types; in response to selection of a first port in the first group of candidate ports, providing a first group of candidate nodes corresponding to the first port; and in response to a selection of a second node in the first set of candidate nodes, associating the second node to the first node such that the first node can invoke the second node during operation of the workflow. According to the embodiment of the invention, the workflow editing efficiency can be improved, and the workflow editing flexibility is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment and storage medium for editing workflow Technical Field

[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to a method, apparatus, device, and computer-readable storage medium for editing a workflow. Background Art

[0002] Visual editing of workflows is a method of designing and organizing workflows through a graphical interface, which allows users to create, edit, and modify workflows in an intuitive way. How to edit workflows is a key issue.

[0003] Summary of the Invention

[0004] In a first aspect of the present disclosure, a method for editing a workflow is provided. The method includes: presenting an editing interface for the workflow, the editing interface being used to edit a node graph corresponding to the workflow; presenting a first group of candidate ports associated with a first node in the node graph in the editing interface, the first group of candidate ports corresponding to different types; in response to a selection of a first port in the first group of candidate ports, providing a first group of candidate nodes corresponding to the first port; and in response to a selection of a second node in the first group of candidate nodes, associating the second node with the first node, such that the first node can call the second node during execution of the workflow.

[0005] In a second aspect of the present disclosure, a device for editing a workflow is provided. The device includes: a first presentation module configured to present an editing interface of the workflow, the editing interface being used to edit a node graph corresponding to the workflow; a second presentation module configured to generate a target text based on a reference text and at least one media material, the target text having style information and / or content structure matching the reference text; a providing module configured to provide a first group of candidate nodes corresponding to the first port in response to a selection of a first port in a first group of candidate ports; and an associating module configured to associate a second node with the first node in response to a selection of a second node in the first group of candidate nodes, so that the first node can call the second node during the execution of the workflow.

[0006] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the device to perform the method of the first aspect.

[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.

[0008] In a fifth aspect of the present disclosure, a computer program product is provided, which includes computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method of the first aspect is implemented.

[0009] It should be understood that the content described in this summary section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0011] FIG1 shows a schematic diagram of an example environment in which embodiments of the present disclosure can be implemented;

[0012] 2A-2F illustrate schematic diagrams of example interfaces according to some embodiments of the present disclosure;

[0013] FIG3 shows a flowchart of a process for editing a workflow according to some embodiments of the present disclosure;

[0014] FIG4 shows a schematic structural block diagram of an apparatus for editing a workflow according to certain embodiments of the present disclosure;

[0015] FIG5 shows a block diagram of an electronic device capable of implementing various embodiments of the present disclosure. DETAILED DESCRIPTION

[0016] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0017] It should be noted that the titles of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and any type of embodiment may be included under any section / subsection. Furthermore, the embodiments described in any section / subsection may be combined in any manner with any other embodiments described in the same section / subsection and / or in different sections / subsections.

[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.

[0019] The embodiments of the present disclosure may involve user data, data acquisition and / or use, etc. These aspects shall comply with the corresponding laws, regulations and relevant provisions. In the embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are carried out on the premise that the user is aware of and confirms them. Accordingly, when implementing the various embodiments of the present disclosure, the types, scope of use, and usage scenarios of the data or information that may be involved should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with the relevant laws and regulations. The specific notification and / or authorization method may vary according to the actual situation and application scenario, and the scope of the present disclosure is not limited in this respect.

[0020] If this specification and the solutions in the examples involve the processing of personal information, such processing will be done only with a legitimate basis (such as with the consent of the subject of personal information or as necessary for the performance of a contract) and only within the prescribed or agreed scope. A user's refusal to process personal information other than that required for basic functions will not affect the user's use of basic functions.

[0021] An embodiment of the present disclosure proposes a solution for editing a workflow. According to the solution, a workflow editing interface can be presented, the editing interface being used to edit a node graph corresponding to the workflow; further, a first group of candidate ports associated with a first node in the node graph can be presented in the editing interface, the first group of candidate ports corresponding to different types; further, in response to selecting a first port in the first group of candidate ports, a first group of candidate nodes corresponding to the first port can be provided; and in response to selecting a second node in the first group of candidate nodes, the second node can be associated with the first node, so that the first node can call the second node during the execution of the workflow.

[0022] Based on this approach, embodiments of the present disclosure can associate multiple child nodes with a first node based on a set of candidate ports corresponding to the first node, so that the first node can call these multiple child nodes during the execution of the workflow. Thus, embodiments of the present disclosure can improve the efficiency and flexibility of workflow editing.

[0023] Sample Environment

[0024] FIG1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. As shown in FIG1 , the example environment 100 may include an electronic device 110 .

[0025] In this example environment 100, electronic device 110 may run an application 120 that supports interface interaction. Application 120 may be any suitable type of application for interface interaction, including, but not limited to, workflow editing applications. Workflows are used to define and automate a series of steps or tasks in a business process. User 140 may interact with application 120 via electronic device 110 and / or its attached devices.

[0026] In the environment 100 of Figure 1, if the application 120 is in an active state, the electronic device 110 can present an interface 150 for supporting interface interaction through the application 120. The interface 150 can be an editing interface for the workflow, and the editing interface is used to edit the node graph corresponding to the workflow. The node graph corresponding to the workflow is a graph that graphically represents each step / task in the workflow. In some embodiments, the node graph may include multiple nodes, and each node may correspond to a step or a task. For any two nodes in the node graph, the two nodes may or may not have an association relationship. Two nodes with an association relationship can be connected in the node graph with any appropriate relationship, for example, connected with a predetermined line element, and the line element can be a straight line, a curve, a broken line, etc., which will not be described in detail here.

[0027] In some embodiments, the electronic device 110 communicates with the server 130 to enable the provision of services for the application 120. The electronic device 110 can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a handheld computer, a portable game terminal, a VR / AR device, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface for the target user (such as a "wearable" circuit, etc.).

[0028] The server 130 may be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. For example, the server 130 may include a computing system / server such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. The server 130 may provide background services for the application 120 that supports interface interaction in the electronic device 110.

[0029] A communication connection may be established between the server 130 and the electronic device 110. The communication connection may be established in a wired or wireless manner. The communication connection may include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, etc., and the embodiments of the present disclosure are not limited in this respect. In the embodiments of the present disclosure, the server 130 and the electronic device 110 may implement signaling interaction through the communication connection between the two.

[0030] It should be understood that the structure and function of the various elements in the environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of the present disclosure.

[0031] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.

[0032] Example Interaction

[0033] 2A to 2F illustrate example interfaces 200A to 200F according to some embodiments of the present disclosure, which may be provided by the electronic device 110 shown in FIG1 .

[0034] As shown in Figure 2A, the electronic device 110 may present an interface 200A (workflow editing interface), which may present a node graph 210 corresponding to the workflow. The node graph 210 may include multiple nodes, such as node 211, node 212, node 213, and so on.

[0035] In node graph 210, two associated nodes can be connected using a target method, while two unassociated nodes can be left unconnected. The target method can be based on a predetermined line element or any other appropriate connection method. Line elements can be straight lines, broken lines, curves, etc., which are not described in detail here.

[0036] In certain embodiments, there are two nodes of associated relationship for calling relationship in sequence.Using Fig. 2 A as an example, the relationship corresponding to node 212 and node 213 is a calling relationship in sequence, and in the running process of workflow, node 212 can be called first, and then node 213 can be called.In other embodiments, there are two nodes of associated relationship for the relationship between parent node and child node, that is, there can be hierarchical relationship between two associated nodes, wherein parent node is the upper level corresponding to child node.Using Fig. 2 A as an example, child node 218 and node 212 are the relationship between parent node and child node, wherein node 212 is parent node in this relationship, and child node 218 is child node in this relationship.

[0037] In some embodiments, a parent node may include multiple child nodes, and the number of child nodes included in each parent node can be set according to needs, which will not be described in detail here. Taking Figure 2A as an example, node 212 may correspond to four child nodes.

[0038] In some embodiments, for a parent node (first node) in the node graph 210, the electronic device 110 may present a first set of candidate ports associated with the parent node. The first node may be any appropriate node, such as an agent. The first set of candidate ports may correspond to different types, and the number of the first set of candidate ports may be set as needed. For example, if the first node is an agent, the first set of candidate ports may include at least one of the following: a prompt port, a tools port, a language model port, and a memory port.

[0039] 2A as an example, for node 212, interface 200A may present a first group of candidate ports 214 associated with node 212. The first group of candidate ports 214 may include port 1, port 2, port 3, and port 4, and port 1, port 2, port 3, and port 4 correspond to different types.

[0040] It should be noted that the first group of candidate ports 214 associated with the node 212 presented in the interface 200A may be triggered to display after the node 212 is added to the node graph 210 of the interface 200A. Of course, the first group of candidate ports 214 may also be triggered to display under other triggering conditions. For example, after the node 212 is added, the electronic device 110 may trigger the display of the first group of candidate ports 214 in response to a predetermined trigger button being selected.

[0041] The process of adding node 212 is described below.

[0042] In some embodiments, the electronic device 110 may present a node add control in interface 200A, where the node add control is used to add a node to the node graph 210. In response to selecting the node add control in interface 200A, the electronic device 110 may present a second set of candidate nodes. The second set of candidate nodes may include all selectable parent nodes, including node 212, and may also include non-parent nodes, etc. Taking FIG. 2B as an example, the electronic device 110 may present a second set of candidate nodes 220 in interface 200B. This second set of candidate nodes may include node 212, and may also include node 1, node 2, node 3, etc. The electronic device 110 may also provide a search control in interface 200B to enable the user to search for the node to be added based on the search control. In response to selecting node 212 in the second set of candidate nodes 220 (e.g., by clicking or double-clicking), the electronic device 110 may add node 212 to the node graph 210 in interface 220B.

[0043] In other embodiments, node 212 may be both a parent node corresponding to multiple child nodes and a child node corresponding to other parent nodes. Taking Figure 2C as an example, the interface 200C may include node 230 (third node). The electronic device 110 may present a group of candidate ports 231 associated with the node 230 in the interface 200, wherein the group of candidate ports 231 includes port 5, port 6, and port 7. In response to the selection of port 7 corresponding to the node 230, the electronic device 110 may present a third group of candidate nodes corresponding to port 7, and the third group of candidate nodes includes node 212. In response to the selection of node 212, the electronic device 110 may add node 212 to the node graph 210 in the interface 200C, and at this time, node 212 is a child node corresponding to the parent node 230.

[0044] Taking Figure 2A as an example, for each of port 1, port 2, port 3 and port 4 corresponding to node 212, there is a selection control corresponding to the port (the corresponding selection control in Figure 2 is "+"). The user can click the selection control corresponding to port 4 so that the electronic device 110 can receive the selection of port 4 in the first candidate port 214. In response to the selection of port 4 in the first candidate port 214, the electronic device 110 can provide a first group of candidate nodes 215 corresponding to port 4. The first group of candidate nodes 215 includes child node 1, child node 2, child node 3 and child node 4, etc. It should be noted that this group of candidate nodes 215 can be displayed in any appropriate manner, such as being displayed in the form of a window in the interface 200A (as shown in Figure 2A), or being displayed by jumping from the interface 200A to another interface, etc., which will not be elaborated here.

[0045] In response to selecting child node 4 (second node) from the first group of candidate nodes 215, electronic device 110 may associate child node 4 with node 212, so that node 212 can call child node 4 during the execution of the workflow. In some embodiments, electronic device 110 may connect node 212 and child node 4 in a target manner in node graph 210 to indicate that node 212 is associated with child node 4. The target manner may be any appropriate manner, such as a manner of connection based on a predetermined line element, or any other appropriate connection manner. The line element may be a straight line, a broken line, a curve, or the like. In some embodiments, child node 4 may also be laid out in a predetermined layout manner in node graph 210, such as being laid out in a plurality of layout manners relative to node 212 in node graph 210, such as being laid out in a bottom layout, a left layout, an upper layout, or the like, which will not be described in detail herein.

[0046] In some embodiments, electronic device 110 may select a child node from a set of candidate nodes corresponding to each port of node 212 and associate it with node 212. In other words, node 212 may include multiple child nodes, with each port corresponding to one child node. Taking FIG2D as an example, node 212 may include child nodes 4, 10, 11, and 12, with child nodes 4, 10, 11, and 12 associated with node 212, respectively.

[0047] In some embodiments, the parent node is configured to call multiple child nodes corresponding to the parent node based on the target order during the operation of the workflow. Taking Figure 2D as an example, node 212 is configured to call child node 4, child node 10, child node 11 and child node 12 based on the target order during the operation of the workflow. For each child node in the multiple child nodes included in node 212, the child node can be called 0 times, can be called once or multiple times, etc., which will not be described in detail here. As an example, the electronic device 110 can call child node 10, child node 11, child node 4 and child node 12 in sequence. As another example, the electronic device 110 can call child node 10, child node 11, child node 4, child node 12 and child node 11 in sequence.

[0048] In some embodiments, the target order may be a predetermined order, ie, the system has a built-in logic implementation to set the target order.

[0049] In some other embodiments, the target order may also be an order indicated by configuration information of the node 212. The configuration information may be in any appropriate form, such as a code representation.

[0050] In some embodiments, the electronic device 110 provides a viewing control corresponding to each parent node in the node graph 210 to support the user to view the code representation corresponding to the parent node, where the code representation corresponding to the parent node represents the calling order corresponding to multiple child nodes included in the parent node.

[0051] Taking FIG2E as an example, electronic device 110 may provide a first viewing control 241 for node 212 in interface 200E. In response to selection of first viewing control 241, electronic device 110 may present a first code representation 242 for node 212. First code representation 242 indicates the target order in which the multiple child nodes included in node 212 are called, i.e., indicates the target order in which child node 4, child node 10, child node 11, and child node 12 are called.

[0052] In some embodiments, the electronic device 110 provides a viewing control corresponding to each subnode in the node graph 210 to enable the user to view the code representation corresponding to the subnode, where the code representation corresponding to the subnode represents the calling logic of the subnode.

[0053] 2F as an example, electronic device 110 may provide a second viewing control 251 for child node 4 in interface 200F. In response to selection of second viewing control 251, electronic device 110 may present a second code representation 252 for child node 4. Second code representation 252 indicates the call logic for child node 4.

[0054] It should be noted that the code representation corresponding to the parent node and the code representation corresponding to the child node can be displayed in any appropriate manner, such as in the form of a window, or by jumping from interface 200F or interface 200E to another interface for display, etc., which will not be elaborated here.

[0055] Based on this approach, embodiments of the present disclosure can associate multiple child nodes with a first node based on a set of candidate ports corresponding to the first node, so that the first node can call these multiple child nodes during the execution of the workflow. Thus, embodiments of the present disclosure can improve the efficiency and flexibility of workflow editing.

[0056] Example Process

[0057] FIG3 shows a flowchart of a process 300 for editing a workflow according to some embodiments of the present disclosure. The process 300 may be implemented at the electronic device 110. The process 300 is described below with reference to FIG1.

[0058] In block 310 , the electronic device 110 presents a workflow editing interface, where the editing interface is used to edit a node graph corresponding to the workflow.

[0059] In block 320 , the electronic device 110 presents a first group of candidate ports associated with a first node in the node graph in an editing interface, the first group of candidate ports corresponding to different types.

[0060] At block 330 , the electronic device 110 provides a first set of candidate nodes corresponding to the first port in response to selection of the first port in the first set of candidate ports.

[0061] In block 340 , in response to selecting the second node from the first group of candidate nodes, the electronic device 110 associates the second node with the first node, so that the first node can call the second node during execution of the workflow.

[0062] In some embodiments, process 300 further includes: presenting a second set of candidate nodes in response to selection of a node add control in the editing interface; and adding the first node to a node graph in the editing interface in response to selection of a first node in the second set of candidate nodes.

[0063] In some embodiments, the node graph includes a third node, and process 300 further includes: in response to a selection of a second port corresponding to the third node, presenting a third group of candidate nodes corresponding to the second port, the third group of candidate nodes including the first node; and in response to the selection of the first node, adding the first node to the node graph in the editing interface.

[0064] In some embodiments, the first node includes multiple child nodes, the multiple child nodes include the second node, and the first node is configured to call the multiple child nodes in a target-based order during the execution of the workflow.

[0065] In some embodiments, the target order includes: a predetermined order; or an order indicated by configuration information of the first node.

[0066] In some embodiments, process 300 further includes, in response to selection of a first view control of the first node, presenting a first code representation of the first node, the first code representation indicating a target order in which the plurality of child nodes are called.

[0067] In some embodiments, process 300 further includes presenting a second code representation of the second node in response to selection of a second viewing control of the second node, the second code representation indicating call logic for the second node.

[0068] In some embodiments, the first node corresponds to an agent, and the first set of candidate ports includes at least one of the following: a prompt port, a tool port, a language model port, and a memory port.

[0069] In some embodiments, process 300 further includes connecting the first node and the second node in a target manner in the node graph to indicate that the first node is associated with the second node.

[0070] Example devices and equipment

[0071] Embodiments of the present disclosure also provide corresponding apparatuses for implementing the above-described methods or processes. FIG4 shows a schematic structural block diagram of an apparatus 400 for editing a workflow according to certain embodiments of the present disclosure. Apparatus 400 may be implemented as or included in electronic device 110 as discussed above. The various modules / components in apparatus 400 may be implemented by hardware, software, firmware, or any combination thereof.

[0072] As shown in Figure 4, the device 400 includes a first presentation module 410, which is configured to present an editing interface of the workflow, and the editing interface is used to edit the node graph corresponding to the workflow; a second presentation module 420, which is configured to generate a target text based on a reference text and at least one media material, and the target text has style information and / or content structure that matches the reference text; a providing module 430, which is configured to provide a first group of candidate nodes corresponding to the first port in response to the selection of the first port in the first group of candidate ports; and an association module 440, which is configured to associate the second node with the first node in response to the selection of the second node in the first group of candidate nodes, so that the first node can call the second node during the execution of the workflow.

[0073] In some embodiments, the device 400 also includes a third presentation module, configured to: present a second group of candidate nodes in response to selection of a node addition control in the editing interface; and a first addition module, configured to: add the first node to the node graph in the editing interface in response to selection of the first node in the second group of candidate nodes.

[0074] In some embodiments, the node graph includes a third node, and the device 400 also includes a fourth presentation module, configured to: in response to the selection of the second port corresponding to the third node, present a third group of candidate nodes corresponding to the second port, the third group of candidate nodes including the first node; and a second adding module, configured to: in response to the selection of the first node, add the first node to the node graph in the editing interface.

[0075] In some embodiments, the first node includes multiple child nodes, the multiple child nodes include the second node, and the first node is configured to call the multiple child nodes in a target-based order during the execution of the workflow.

[0076] In some embodiments, the target order includes: a predetermined order; or an order indicated by configuration information of the first node.

[0077] In some embodiments, the apparatus 400 further includes a fifth presentation module configured to: in response to selection of a first viewing control of the first node, present a first code representation of the first node, wherein the first code representation indicates a target order in which the plurality of child nodes are called.

[0078] In some embodiments, the apparatus 400 further includes a sixth presentation module configured to: in response to selection of a second viewing control of the second node, present a second code representation of the second node, wherein the second code representation indicates a call logic of the second node.

[0079] In some embodiments, the first node corresponds to an agent, and the first set of candidate ports includes at least one of the following: a prompt port, a tool port, a language model port, and a memory port.

[0080] In some embodiments, the apparatus 400 further includes a connection module configured to connect the first node and the second node in a target manner in the node graph to indicate that the first node is associated with the second node.

[0081] The units included in the device 400 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units in the device 400 can be implemented at least in part by one or more hardware logic components. By way of example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0082] FIG5 shows a block diagram of an electronic device 500 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the electronic device 500 shown in FIG5 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 500 shown in FIG5 can be used to implement the electronic device 110 shown in FIG1 .

[0083] As shown in FIG5 , electronic device 500 is a general-purpose electronic device. Components of electronic device 500 may include, but are not limited to, one or more processors or processing units 510, memory 520, storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. Processing unit 510 may be a real or virtual processor and is capable of performing various processes according to programs stored in memory 520. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to enhance the parallel processing capabilities of electronic device 500.

[0084] The electronic device 500 typically includes a plurality of computer storage media. Such media can be any accessible media that can be obtained by the electronic device 500, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 520 can be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 530 can be a removable or non-removable medium and can include a machine-readable medium, such as a flash drive, a disk, or any other medium that can be used to store information and / or data (e.g., training data for training) and can be accessed within the electronic device 500.

[0085] The electronic device 500 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 5 , a disk drive for reading from or writing to a removable, non-volatile disk (e.g., a “floppy disk”) and an optical drive for reading from or writing to a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. The memory 520 may include a computer program product 525 having one or more program modules configured to perform various methods or actions of various embodiments of the present disclosure.

[0086] The communication unit 540 enables communication with other electronic devices via a communication medium. Additionally, the functions of the components of the electronic device 500 can be implemented in a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the electronic device 500 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0087] Input device 550 may be one or more input devices, such as a mouse, keyboard, or trackball. Output device 560 may be one or more output devices, such as a display, a speaker, or a printer. Electronic device 500 may also communicate with one or more external devices (not shown) via communication unit 540 as needed, such as a storage device, a display device, or the like, with one or more devices that allow a user to interact with electronic device 500, or with any device that allows electronic device 500 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0088] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

[0089] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0090] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0091] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0092] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple implementations of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part for a module, program segment or instruction, and a part for a module, program segment or instruction comprises one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0093] While various implementations of the present disclosure have been described above, the foregoing description is intended to be illustrative, not exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is selected to best explain the principles of the implementations, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the various implementations disclosed herein.

Claims

1. A method for editing a workflow, comprising: Presenting an editing interface of a workflow, wherein the editing interface is used to edit a node graph corresponding to the workflow; presenting in the editing interface a first group of candidate ports associated with a first node in the node graph, the first group of candidate ports corresponding to different types; In response to selecting a first port in the first group of candidate ports, providing a first group of candidate nodes corresponding to the first port; as well as In response to selecting a second node in the first group of candidate nodes, the second node is associated with the first node, so that the first node can call the second node during the execution of the workflow.

2. The method according to claim 1, further comprising: In response to a selection of a node adding control in the editing interface, presenting a second set of candidate nodes; as well as In response to selection of the first node in the second set of candidate nodes, the first node is added to the node graph in the editing interface.

3. The method according to claim 1, wherein the node graph includes a third node, the method further comprising: In response to a selection of a second port corresponding to the third node, presenting a third group of candidate nodes corresponding to the second port, wherein the third group of candidate nodes includes the first node; as well as In response to the selection of the first node, the first node is added to the node graph in the editing interface.

4. The method according to claim 1, wherein the first node includes a plurality of child nodes, the plurality of child nodes includes the second node, and The first node is configured to call the plurality of sub-nodes based on a target sequence during the running process of the workflow.

5. The method according to claim 4, wherein the target sequence comprises: Predetermined order; or The order indicated by the configuration information of the first node.

6. The method according to claim 4, further comprising: In response to selection of a first view control of the first node, a first code representation of the first node is presented, the first code representation indicating the target order in which the plurality of child nodes are invoked.

7. The method according to claim 1, further comprising: In response to selection of a second viewing control of the second node, a second code representation of the second node is presented, the second code representation indicating call logic of the second node.

8. The method according to claim 1, wherein the first node corresponds to an agent, and the first set of candidate ports includes at least one of the following: a prompt port, a tool port, a language model port, and a memory port.

9. The method according to claim 1, further comprising: The first node and the second node are connected in a target manner in the node graph to indicate that the first node is associated with the second node.

10. An apparatus for editing a workflow, comprising: A first presentation module is configured to present an editing interface of a workflow, wherein the editing interface is used to edit a node graph corresponding to the workflow; A second presentation module is configured to generate a target text based on the reference text and at least one media material, wherein the target text has style information and / or content structure matching the reference text; A providing module, configured to provide a first group of candidate nodes corresponding to a first port in the first group of candidate ports in response to selection of the first port; as well as The associating module is configured to, in response to selecting a second node in the first group of candidate nodes, associate the second node with the first node, so that the first node can call the second node during the execution of the workflow.

11. An electronic device, comprising: at least one processing unit; as well as at least one memory coupled to the at least one processor The electronic device further comprises a processing unit and stores instructions for execution by the at least one processing unit, wherein the instructions, when executed by the at least one processing unit, cause the electronic device to execute the method according to any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 9 when executed by a processor.

13. A computer program product comprising computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 9.