Method, apparatus, device, medium and program product for arranging components

By generating a collection of multiple interaction modes for the target component and selecting appropriate interaction modes according to the operating environment, the inefficiency of orchestration caused by inconsistent interaction modes between components is solved, and more efficient and flexible component orchestration is achieved.

CN119718271APending Publication Date: 2025-03-28FACE CUTE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411844653.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the application development framework, inconsistent interaction modes between components lead to inefficient orchestration, and developers need to manually handle data format conversion and interaction mode unification.

Method used

By generating an interactive mode collection for the target component, it supports multiple combinations of streaming input, non-streaming input, streaming output, and non-streaming output, select an interactive mode suitable for the operational environment to orchestrate the components.

Benefits of technology

It improves the speed and flexibility of component orchestration, reduces the work of orchestration personnel in handling interaction mode unification and data format conversion, and significantly improves orchestration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718271A_ABST
    Figure CN119718271A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method, device and equipment for arranging components, a storage medium and a computer program product. The method includes determining at least one defined interaction mode of a target component according to a type of a parameter of the target component. The method further includes generating a set of interaction modes for the target component based on the at least one defined interaction mode, the set of interaction modes supporting various combinations of streaming input, non-streaming input and streaming output, non-streaming output. The method further includes selecting a target interaction mode of the target component from the set of interaction modes based on the operating environment of the target component to orchestrate the target component. According to the method disclosed by the embodiment of the invention, the data processing capability of the component can be expanded, the streaming data and the non-streaming data can be received, and the streaming data and the non-streaming data can be output, so that the efficiency of arranging the component is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to the field of computers, and more particularly to methods, apparatuses, devices, computer-readable storage media, and computer program products for orchestrating components. Background Art

[0002] An application development framework is a framework designed to simplify and accelerate the application creation process. Such frameworks usually integrate multiple functions, allowing developers to focus on building intelligent logic and business rules instead of implementing infrastructure from scratch. The application development framework provides a graph structure for developing applications from the perspective of component orchestration. For example, an application development framework can be an artificial intelligence application development framework.

[0003] The AI ​​application development framework supports organizing these components in a graph. This means that users can build the workflow of the entire application by defining nodes (representing each component) and edges (representing dependencies or data flows between components). Such graphical orchestration capabilities allow developers to more intuitively understand and design complex application architectures, while also facilitating debugging and optimization. Summary of the invention

[0004] According to example embodiments of the present disclosure, a method, apparatus, device, computer storage medium, and computer program product for orchestrating components are provided.

[0005] In a first aspect of the present disclosure, a method for orchestrating components is provided, the method comprising determining at least one defined interaction mode of a target component according to a type of a parameter of the target component. The method further comprises generating an interaction mode set of the target component based on the at least one defined interaction mode, the interaction mode set supporting multiple combinations of streaming input, non-streaming input and streaming output, non-streaming output. The method further comprises selecting a target interaction mode of the target component from the interaction mode set based on a running environment of the target component to orchestrate the target component.

[0006] In a second aspect of the present disclosure, there is provided an apparatus for orchestrating components, the apparatus comprising a determination module configured to determine at least one defined interaction mode of a target component according to a type of a parameter of the target component. The apparatus further comprises a generation module configured to generate an interaction mode set of the target component based on at least one defined interaction mode, the interaction mode set supporting multiple combinations of streaming input, non-streaming input and streaming output, non-streaming output. The apparatus further comprises a selection module configured to select a target interaction mode of the target component from the interaction mode set based on an operating environment of the target component to orchestrate the target component.

[0007] In a third aspect of the present disclosure, an electronic device is provided, comprising: at least one processing unit; and at least one memory, wherein the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the instructions are executed by the at least one processing unit, the electronic device executes the method described in the first aspect of the present disclosure.

[0008] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, which has machine-executable instructions stored thereon, and when the machine-executable instructions are executed by a device, the device performs the method described in the first aspect of the present disclosure.

[0009] In a fifth aspect of the present disclosure, a computer program product is provided, comprising computer executable instructions, wherein the computer executable instructions implement the method described according to the first aspect of the present disclosure when executed by a processor.

[0010] The invention summary is provided to introduce a series of concepts in a simplified form, which will be further described in the specific embodiments below. The invention summary is not intended to identify the key features or essential features of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 A schematic diagram illustrating an example environment in which embodiments of the present disclosure can be implemented;

[0012] Figure 2 A flowchart of a method for orchestrating components according to an embodiment of the present disclosure is shown;

[0013] Figure 3A A schematic diagram showing a first interaction mode of completion according to an embodiment of the present disclosure is shown;

[0014] Figure 3B A schematic diagram showing a second interaction mode of completion according to an embodiment of the present disclosure is shown;

[0015] Figure 3C A schematic diagram showing a third interaction mode of completion according to an embodiment of the present disclosure is shown;

[0016] Figure 3D A schematic diagram showing a fourth interaction mode of completion according to an embodiment of the present disclosure is shown;

[0017] Figure 4A A schematic diagram of generating a target interaction mode set for multiple components according to an embodiment of the present disclosure is shown;

[0018] Figure 4BA schematic diagram showing a target selection interaction mode according to an embodiment of the present disclosure is shown;

[0019] Figure 5 A schematic diagram of a method for orchestrating components according to an embodiment of the present disclosure is shown;

[0020] Figure 6 A schematic diagram of a method for orchestrating components according to an embodiment of the present disclosure is shown;

[0021] Figure 7 A schematic diagram of a method for orchestrating components according to an embodiment of the present disclosure is shown;

[0022] Figure 8 A schematic block diagram showing an example apparatus according to some embodiments of the present disclosure is shown;

[0023] Fig. 9 A block diagram of an example device that may be used to implement embodiments of the present disclosure is shown.

[0024] Throughout the drawings, the same or similar reference numbers denote the same or similar elements. DETAILED DESCRIPTION

[0025] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information. It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the type, scope of use, and usage scenarios of the personal information involved in the present disclosure should be informed to the user in an appropriate manner in accordance with relevant laws and regulations and the user's authorization should be obtained.

[0026] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server or storage medium that performs the operation of the technical solution of the present disclosure based on the prompt message. As an optional but non-limiting implementation method, in response to receiving an active request from a user, the method of sending a prompt message to the user can be, for example, a pop-up window, and the prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0027] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0028] Embodiments of the present disclosure will be described in more detail below 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 being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0029] 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 terms "first", "second", etc. may refer to different or the same objects, unless explicitly stated. Other explicit and implicit definitions may also be included below.

[0030] When choreographing components in an application development framework, developers of each component usually define the interaction mode of the components without prior communication, and different components often have different interaction modes. For example, component A is defined as receiving non-streaming data and outputting non-streaming data, and component B is defined as receiving streaming data and outputting streaming data. However, according to the business logic (e.g., function) of component A and component B, component A needs to be placed downstream of component B, resulting in component A and component B being unable to interact. There are many such situations in the process of choreographing multiple components together to form an orchestration product (i.e., the product obtained after choreographing the components, such as a graph including multiple components). The choreographer needs to select the appropriate component according to the interaction mode of each component, or add a special data conversion component to the orchestration product. This results in lower orchestration efficiency when choreographing components.

[0031] In this regard, the present disclosure proposes a method for choreographing components. The method generates an interaction mode set for the target component by fine-tuning the interaction mode defined by the target component, so that the target component can support multiple interaction modes without changing its own business logic, thereby being able to flexibly respond to various requirements for the form of input data and output data, and the choreographer does not need to consider the unification and conversion of the interaction modes between components, which can significantly improve the efficiency of choreographing components.

[0032] The embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. Figure 1A schematic diagram of an example environment 100 in which an embodiment of the present disclosure can be implemented is shown. The example environment 100 includes a computing device 110 and a computing device 120. The computing device 110 can process data and deploy an application development framework, such as a development framework for artificial intelligence applications, to provide orchestration services for user devices (such as computing device 120) accessing the computing device 110. In some embodiments, the computing device 120 communicates with the computing device 110 via a network 130. The network 130 may include a wired network, a wireless network, or a combination thereof, to provide communication between the computing device 120 and the computing device 110. In some embodiments, the computing device 120 may be connected to the computing device 110 via a data line, and the present disclosure does not limit the connection method between the computing device 110 and the computing device 120.

[0033] The computing device 120 can provide multiple components to the computing device 110. Developers can complete the definition of various components on the computing device 120, and this definition can be implemented through a variety of programming languages. These programming languages ​​cover different levels from low-level to high-level and are suitable for different programming paradigms, including but not limited to Golang language, C language, JAVA language, etc. For example, for application scenarios that require tightly coupled hardware resources, you can choose to use C language for development. As a process-oriented programming language, C language not only provides the ability to operate the underlying hardware, but also has good portability and execution efficiency. For another example, when the design of an application tends to utilize modularity, inheritance, and polymorphism, an object-oriented programming language can be used.

[0034] In this embodiment, the computing device 110 may determine at least one defined interaction mode of the target component based on the type of the parameter of the target component 112-1. Figure 1 As shown, the target component 112-1 itself can be set with a first interaction mode, which allows the target component 112-1 to receive non-streaming data, and generate output after processing the input through business logic code. The output is output in a non-streaming manner, for example, to a downstream component or as the final output of the orchestration product.

[0035] The computing device 110 can use an application development framework to generate an interaction mode set of the target component 112-2 based on the at least one defined interaction mode, and the interaction mode set supports multiple combinations of streaming input, non-streaming input and streaming output, and non-streaming output. The generated interaction mode set includes a first interaction mode, a second interaction mode, a third interaction mode, and a fourth interaction mode. The interaction mode set can receive input data in various forms and generate output data in various forms. For example, the first interaction mode indicates that the input is non-streaming and the output is non-streaming, the second interaction mode indicates that the input is non-streaming and the output is streaming, the third interaction mode indicates that the input is streaming and the output is non-streaming, and the fourth interaction mode indicates that the input is streaming and the output is streaming. After the generation operation, the target component 112-1 is updated to the target component 112-2.

[0036] It should be noted that the generated interaction mode component may not make any modifications to the code logic of the target component itself, that is, the code content (or business logic) of the target component 112-1 and the target component 112-2 are the same, and the interaction mode set (such as multiple calling functions) can only be encapsulated outside the target component 112-1, so that when the target component 112-1 is called, the encapsulated function is first called according to the target interaction mode to process the input or output data to convert the form of the data. When encapsulating, the computing device 110 can use data form conversion operations (such as streaming operations and package operations), and then combine them with the defined interaction mode of the target component 112-1 to obtain a specific interaction mode. For example, the streaming operation can be combined with the output data in the first interaction mode to form a second interaction mode.

[0037] The computing device 110 can select the target interaction mode of the target component 112-2 from the interaction mode set based on the operating environment of the target component to arrange the target component. In the operating environment of the target component, the target component can flexibly set which interaction mode the component uses according to the needs of the environment. The computing device 110 will select the most suitable one from the above-generated interaction mode set as the target interaction mode according to the actual operating environment requirements of the target component 112-1. The selection basis may come from multiple aspects, such as user instructions, system configuration files, or automatically detected environmental characteristics. For example, if the operating environment requires the component to both receive and output streaming data, then the computing device 110 will select the fourth interaction mode as the target interaction mode.

[0038] The user can also select "streaming data" or "non-streaming data" through the interface on the computing device 120, and convey this selection to the computing device 110 through the network 130, and the latter adjusts the interaction mode of the target component accordingly. For example, if the operating environment hopes that the target component can receive streaming input and generate streaming output, the interaction mode of this component can be set to the fourth interaction mode, that is, the fourth interaction mode is selected from the interaction mode set as the target interaction mode. The basis for selecting the interaction mode can be determined according to the input provided by the computing device 120. For example, the user can choose between "streaming data" and "non-streaming data" on the computing device 120. If the user selects "streaming data", the user instruction is sent to the computing device 110 through the network 130, and the application development framework on the computing device 110 selects the fourth interaction mode as the target interaction mode.

[0039] According to the method disclosed in the present invention, by preparing various interaction mode options for the target component 112-1 in advance, the orchestrator does not need to worry about the consistency of interaction modes between different components or additional data format conversion work. This design greatly simplifies the system integration process and improves the speed and flexibility of component orchestration. Whether under static or dynamically changing workload conditions, the components can quickly adapt to new input / output requirements to ensure the efficient operation of the entire orchestration product.

[0040] like Figure 1 As shown, in environment 100, network 130 can be used to transmit data between computing device 110 and computing device 120. Network 130 has a theoretical bandwidth, which refers to the maximum transmission speed supported by network 130, which indicates the maximum amount of data that can be transmitted by network 130 under ideal conditions, usually measured in bits per second (bps). For example, if the theoretical bandwidth of network 130 is 100Mbps, it means that it can transmit one hundred megabits of data per second under ideal conditions. However, in reality, due to other factors that may exist in the network (e.g., signal interference, bandwidth sharing, transmission delay, etc.), the actual transmission speed of 100Mbps may not be achieved.

[0041] As understood by those skilled in the art, an instance of the computing device 110 may be an independent physical server, a server cluster or a distributed system composed 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, CDN, and big data and artificial intelligence platforms. The server may be directly or indirectly connected via wired or wireless communications, which is not limited in this application.

[0042] The computing device 120 may be any type of mobile computing device, including a mobile computer (e.g., a personal digital assistant (PDA), a laptop computer, a notebook computer, a tablet computer, a netbook, etc.), a mobile phone (e.g., a cellular phone, a smart phone, etc.), a wearable computing device (e.g., a smart watch, a head-mounted device, including smart glasses, etc.), or other types of mobile devices. In some embodiments, the computing device 120 may also be a stationary computing device, such as a desktop computer, a game console, a smart TV, etc.

[0043] It should be understood that the architecture and functions in the example environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure. Embodiments of the present disclosure may also be applied to other environments with different structures and / or functions.

[0044] The process according to the embodiment of the present disclosure will be described in detail below in conjunction with other drawings. For ease of understanding, the specific data mentioned in the following description are exemplary and are not intended to limit the scope of protection of the present disclosure. It is understood that the embodiments described below may also include additional actions not shown and / or the actions shown may be omitted, and the scope of the present disclosure is not limited in this respect.

[0045] Figure 2 A flowchart of a method 200 for orchestrating components according to certain embodiments of the present disclosure is shown. In this embodiment, the method can be performed by a computing device 110. In box 202, at least one defined interaction mode of the target component is determined based on the type of the parameter of the target component. When defining a function, the target component needs to set the type of the parameter to be processed and its identifier as a parameter. The parameters here can be the parameters in each function or method defined in the target component. For example, the computing device 110 can read the parameters of the function of the target component involving receiving data in the application development framework, and determine whether the input data that the target component can receive is streaming data or non-streaming data by the type of the parameter.

[0046] In box 204, based on the at least one defined interaction mode, an interaction mode set of the target component is generated, and the interaction mode set supports multiple combinations of streaming input, non-streaming input and streaming output, and non-streaming output. The target component can be a node that performs a certain function, or it can be a relatively independent module, which can be embodied as a separate code file, for example. The interaction mode of the target component refers to the form of data that the component can receive, such as streaming data or non-streaming data. In the target component, since the target component usually needs to receive the output data of the upstream component, and generate and output the output data after processing the data, the target component defines how to receive input data and output data. These functions constitute the interaction mode of the target component.

[0047] Streaming input refers to continuously sending a data stream to the target component. Non-streaming input refers to providing all input data at once, such as file upload or form submission. Streaming output refers to continuously returning the processing results in segments to the user or other system components. Non-streaming output refers to outputting all data at once. Since components usually only have a few interaction modes set, orchestration based only on the interaction modes provided by the components themselves will reduce the efficiency of orchestrating components. In this operation, the computing device 110 generates a set of interaction modes that support multiple data forms for the target component, which means that the target component can flexibly receive various forms of data according to actual needs and generate corresponding outputs.

[0048] In box 206, based on the operating environment of the target component, a target interaction mode of the target component is selected from the set of interaction modes to orchestrate the target component. In an embodiment, the target interaction mode can be selected according to the requirements of the operating environment, such as whether real-time processing capabilities or application scenarios that are sensitive to delays are required. In an embodiment, the target interaction mode can be selected according to the adjustment of the operating environment by user instructions, such as allowing the user to select "streaming data" or "non-streaming data" through the interface, and conveying it to the computing device 110 through the network 130, which adjusts the interaction mode of the target component accordingly. In an embodiment, the target interaction mode can be selected by automatically detecting the operating environment, for example, the computing device 110 can identify the optimal interaction mode through an automatic detection mechanism without manual intervention.

[0049] According to the method of the embodiment of the present disclosure, a set of interaction modes is generated for the target component by fine-tuning the defined interaction mode of the target component, so that the target component can support multiple interaction modes without changing the business logic of the target component itself, thereby being able to flexibly respond to various requirements for the form of input data and output data. The orchestrator does not need to consider the unification and conversion of interaction modes between components, which can significantly improve the efficiency of orchestration components.

[0050] With respect to generating an interaction pattern set, in an embodiment, a difference interaction pattern set for a target component is determined based on at least one defined interaction pattern and an interaction pattern set to be generated. The interaction pattern set to be generated represents a variety of combinations (such as 4) of input and output data forms, which may be a complete set of interaction patterns. By comparing the interaction pattern set with the defined interaction patterns of the target component, omissions may be found and filled. It should be noted that the target interaction pattern set to be generated is not an interaction pattern set with complete and specific definitions of each interaction pattern, but a statement indicating a combination of various interaction patterns supported by the target interaction pattern. For example, the target interaction pattern set to be generated may indicate the need to generate an interaction function including a first interaction pattern, a second interaction pattern, a third interaction pattern, a fourth interaction pattern, and each interaction pattern.

[0051] In an embodiment, the interaction mode of the target component is supplemented by using a difference interaction mode set to obtain an interaction mode set. The missing interaction mode can be supplemented based on at least one defined interaction mode of the target component. In this embodiment, by determining the difference interaction mode set, the interaction mode that needs to be supplemented can be determined, so that an interaction mode set covering various combinations can be generated for the target component, which can facilitate the generation of the interaction mode set.

[0052] In an embodiment, the interaction mode set includes multiple interaction modes of a first interaction mode, a second interaction mode, a third interaction mode, and a fourth interaction mode, the first interaction mode indicates that the input is non-streaming and the output is non-streaming, the second interaction mode indicates that the input is non-streaming and the output is streaming, the third interaction mode indicates that the input is streaming and the output is non-streaming, and the fourth interaction mode indicates that the input is streaming and the output is streaming. For the interaction mode set covering the first to fourth interaction modes, the target component can receive both streaming data and non-streaming data, and can output both streaming data and non-streaming data. By generating a set covering more interaction modes, the efficiency of the orchestration component can be improved.

[0053] When generating a target interaction mode set by supplementing the interaction modes of each component based on the defined interaction mode of the component, there is no need to modify the code content of the component. Instead, you can use the function (or method) that implements the defined interaction mode to encapsulate some operations on the component, such as streaming operations and packaging operations, and combine the functions that implement the defined interaction mode with the encapsulated functions to form a new interaction mode.

[0054] Figure 3A A schematic diagram of completing a first interaction mode according to an embodiment of the present disclosure is shown. In an embodiment, if the set of difference interaction modes includes a second interaction mode and at least one defined interaction mode includes a first interaction mode, a streaming operation is used to process data output by a target component through the first interaction mode to obtain a second interaction mode. Figure 3A As shown, for component 302, the data output by component 302 through the first interaction mode is processed using a streaming operation to obtain streaming data. In this way, component 302 can support non-streaming input and streaming output.

[0055] In an embodiment, if the set of difference interaction modes includes a third interaction mode and at least one defined interaction mode includes a first interaction mode, a wrapping operation is used to process data input by the target component through the first interaction mode to obtain a third interaction mode. Figure 3AAs shown, for component 302, a wrapping operation is used to process input data and the processed input data is input into the first interaction mode of component 302. The output function of component 302 (i.e., the function supporting the first interaction mode) can generate non-streaming output, so that component 302 can support streaming input and non-streaming output.

[0056] In an embodiment, if the set of difference interaction modes includes a fourth interaction mode and at least one defined interaction mode includes a first interaction mode, a wrapping operation is used to process input data and input the processed input data to the first interaction mode of the target component, and a streaming operation is used to process data output by the target component through the first interaction mode to obtain a fourth interaction mode. Figure 3A As shown, for component 302, a package operation is used to receive streaming data and convert it into non-streaming data, which is then transmitted to the input function of component 302, and a streaming operation is used to process the non-streaming data output by the output function of component 302 to generate streaming output. In this way, component 302 can support streaming input and streaming output.

[0057] Figure 3B A schematic diagram of completing the second interaction mode according to an embodiment of the present disclosure is shown. In an embodiment, if the difference interaction mode set includes the first interaction mode and at least one defined interaction mode includes the second interaction mode, a wrapping operation is used to process the data output by the target component through the second interaction mode to obtain the first interaction mode. Figure 3B As shown, for component 304, a wrapping operation is used to process the data output by the output function of component 304, thereby outputting non-streaming data, so that component 304 can support non-streaming input and non-streaming output.

[0058] In an embodiment, if the set of difference interaction modes includes a third interaction mode and at least one defined interaction mode includes a second interaction mode, a wrapping operation is used to process input data and input the processed input data to the second interaction mode of the target component, and a wrapping operation is used to process data output by the target component through the second interaction mode to obtain a third interaction mode. Figure 3B As shown, for component 304, a packetization operation is used to receive streaming data and convert it into non-streaming data, which is then transmitted to the input function of component 304, and a packetization operation is used to process the streaming data output by the output function of component 304 to generate non-streaming output. In this way, component 304 can support streaming input and non-streaming output.

[0059] In an embodiment, if the set of difference interaction modes includes a fourth interaction mode and at least one defined interaction mode includes a second interaction mode, the input data is processed using a wrapping operation and the processed input data is input to the second interaction mode of the target component to obtain a fourth interaction mode. Figure 3B As shown, for component 304, a package operation is used to receive streaming data and package it into non-streaming data, and then the non-streaming data is transmitted to the input function of component 304. Component 304 can generate streaming output based on its own output function, so that component 304 can support streaming input and streaming output.

[0060] Figure 3C A schematic diagram of completing the third interaction mode according to an embodiment of the present disclosure is shown. In an embodiment, if the difference interaction mode set includes the first interaction mode and at least one defined interaction mode includes the third interaction mode, the input data is processed using a streaming operation and the processed input data is input to the third interaction mode of the target component to obtain the first interaction mode. Figure 3C As shown, for component 306, non-streaming input data is processed using streaming operations and converted into streaming data to be transmitted to the input function of component 306, so that component 306 can support non-streaming input. The output function of component 306 can generate non-streaming data, so component 306 can support non-streaming output.

[0061] In an embodiment, if the set of difference interaction modes includes a second interaction mode and at least one defined interaction mode includes a third interaction mode, a streaming operation is used to process input data and input the processed input data to the third interaction mode of the target component, and a streaming operation is used to process data output by the target component through the third interaction mode to obtain the second interaction mode. Figure 3C As shown, for component 306, non-streaming input data is processed using a streaming operation and converted into streaming data to be transmitted to the input function of component 306, so that component 306 can support non-streaming input. The output function of component 306 can generate non-streaming data, and the non-streaming data is processed using a streaming operation to generate streaming output, so that component 306 can support streaming output.

[0062] In an embodiment, if the set of difference interaction modes includes a fourth interaction mode and at least one defined interaction mode includes a third interaction mode, the data output by the target component through the third interaction mode is processed using a streaming operation to obtain the fourth interaction mode. Figure 3C As shown, for component 306, the output function of component 306 can generate non-streaming data, and use streaming operations to process the non-streaming data to generate streaming output, so component 306 can support streaming input and streaming output.

[0063] Figure 3DA schematic diagram of completing the fourth interaction mode according to an embodiment of the present disclosure is shown. In an embodiment, if the difference interaction mode set includes the first interaction mode and at least one defined interaction mode includes the fourth interaction mode, a streaming operation is used to process input data and input the processed input data to the fourth interaction mode of the target component, and a wrapping operation is used to process data output by the target component through the fourth interaction mode to obtain the first interaction mode. Figure 3D As shown, for component 308, the non-streaming input data is processed using a streaming operation to obtain streaming data, which is transmitted to the input function of component 308. The output function of component 308 can generate streaming data, and the streaming data is processed using a package operation to generate a non-streaming output, so component 308 can support non-streaming input and non-streaming output.

[0064] In an embodiment, if the set of difference interaction modes includes the second interaction mode and the at least one defined interaction mode includes the fourth interaction mode, the input data is processed using a streaming operation and the processed input data is input to the fourth interaction mode of the target component to obtain the second interaction mode. Figure 3D As shown, for component 308, non-streaming input data is processed using streaming operations to obtain streaming data, which is transmitted to the input function of component 308. The output function of component 308 can generate streaming data, so component 308 can support non-streaming input and streaming output.

[0065] In an embodiment, if the set of difference interaction modes includes the third interaction mode and at least one defined interaction mode includes the fourth interaction mode, the data output by the target component through the fourth interaction mode is processed using a wrapping operation to obtain the third interaction mode. Figure 3D As shown, for component 308, the output function of component 308 can generate streaming data, and use the packing operation to process the streaming data to generate non-streaming output, so component 308 can support streaming input and non-streaming output.

[0066] The above-mentioned embodiments provide a solution to complete and cover all interaction modes based on different defined interaction modes, which can expand the interaction mode of the target component without modifying the code content (or business logic) of the component, making the interaction of the target component more flexible. In an embodiment, each interaction mode in the set of difference interaction modes is encapsulated into the target component. For example, the computing device 110 can set a target structure according to at least one defined interaction mode. The target structure can provide how to provide a streaming function or a package function for different interaction modes. If the target component includes any interaction mode in at least one defined interaction mode, the computing device 110 can encapsulate the target structure into the target component. This implementation method can simply and quickly expand the interaction mode of the component without adding too much coding content to the component.

[0067] In an embodiment, the packing operation may be to use a packing function to sequentially combine multiple first data blocks into second data. In an embodiment, the streaming operation may be to use a streaming function to sequentially split the third data block into multiple fourth data blocks.

[0068] Figure 4A A schematic diagram of generating a target interaction mode set for multiple components according to an embodiment of the present disclosure is shown. This embodiment shows the processing of four components, namely components 402, 412, 422, and 432. According to the types of parameters of each component, it can be determined that component 402 itself defines a first interaction mode, component 412 itself defines a first interaction mode and a second interaction mode, component 422 itself defines a first interaction mode and a fourth interaction mode, and component 432 itself defines a third interaction mode and a fourth interaction mode. In an embodiment, the form of data that can be received can be determined according to the type of parameter passed in the function that receives input in components 402, 412, 422, and 432, and the form of data that can be output can be determined according to the type of parameter passed in the function that generates output, thereby determining which interaction modes have been defined for each component.

[0069] When the target interaction mode set is generated by completing the interaction modes of each component based on the interaction modes defined by the component, if the component has multiple interaction modes, other interaction modes can be completed according to any interaction mode. For component 402, the defined interaction modes only include the first interaction mode, so the interaction mode set for component 402 can be obtained according to the completion indicated by 416. For component 412, the defined interaction modes include the first interaction mode and the second interaction mode, so the interaction mode set for component 412 can be obtained according to the completion indicated by 414, wherein the third interaction mode is completed based on the first interaction mode, and the fourth interaction mode is completed based on the second interaction mode.

[0070] For component 422, the defined interaction modes include the first interaction mode and the fourth interaction mode, so the interaction mode set for component 422 can be obtained according to the completion indicated by 424, wherein the second interaction mode is completed based on the fourth interaction mode, and the fourth interaction mode is also completed based on the fourth interaction mode. For component 432, the defined interaction modes include the third interaction mode and the second interaction mode, so the interaction mode set for component 432 can be obtained according to the completion indicated by 434, wherein the first interaction mode is completed based on the third interaction mode, and the second interaction mode is completed based on the fourth interaction mode.

[0071] Figure 4B A schematic diagram of selecting a target interaction mode according to an embodiment of the present disclosure is shown, including components 406 , 416 , 426 , and 436 . Figure 4B An example is Figure 4A A continuation of the embodiment of . When selecting the target interaction mode, it can be determined according to the operating environment of the target component. If the user indicates that the operating environment of the target component is a non-streaming environment, for the sake of simplicity, the target interaction modes of each component can be uniformly set to non-streaming input and non-streaming output. For example, component 406 can use the first interaction mode, component 416 can use the first interaction mode, component 426 can use the first interaction mode, and component 436 can use the first interaction mode obtained by combining the streaming operation and the third interaction mode, wherein the streaming operation is used to process the input data and transmit the generated streaming data to the input function of component 436 (which can only receive streaming input), so that component 436 can support non-streaming input and generate non-streaming output.

[0072] If the user indicates that the operating environment of the target component is a streaming environment, for the sake of simplicity, the target interaction modes of each component can be uniformly set to streaming input and streaming output. For example, component 406 can use a combination of a package operation, a first interaction mode, and a streaming operation to implement a fourth interaction mode, wherein the package operation is used to process input data and input the processed input data to the first interaction mode of component 406, and the streaming operation is used to process the output data of the first interaction mode. For example, component 416 can use a combination of a package operation and a second interaction mode to implement a fourth interaction mode, wherein the package operation is used to process input data and input the processed input data to the second interaction mode of component 408. For example, component 426 can use the fourth interaction mode. Component 436 can use the fourth interaction mode. In this embodiment, the target interaction mode that adapts to the operating environment is selected based on the interaction modes defined by each component, which improves the flexibility of the component and improves the efficiency of adapting the operating environment.

[0073] Figure 5A schematic diagram of a method for arranging components according to an embodiment of the present disclosure is shown. In this embodiment, component 502 and component 506 need to be arranged to form an arrangement product. However, the code content of component 502 itself only supports the second interaction mode, and the code content of component 506 itself only supports the first interaction mode. In order to achieve the desired effect, for example, component 502 involves the use of a large language model, at branch 504, when the data generated by component 502 needs to be presented, streaming data is required to be output. At branch 504, when component 502 needs to call component 506, component 502 needs to generate non-streaming output, otherwise component 506 cannot receive the output data of component 502.

[0074] In this case, the interaction mode of component 502 and component 506 can be expanded according to the embodiment of the present disclosure, and the target interaction mode of component 502 and component 506 can be determined as the fourth interaction mode according to the operating environment. In this way, component 502 can generate streaming output and directly present the output, and can also directly transmit the streaming output to component 506, and component 506 can directly receive the streaming output and process it. Developers do not need to adapt any independent components for converting data forms based on components 502 and 506. Therefore, the efficiency of orchestration components can be significantly improved.

[0075] Figure 6 A schematic diagram of a method for arranging components according to an embodiment of the present disclosure is shown. The embodiment includes components 602, 604, 606, 610, 612, and 614. Components 602 and 604 define a first interaction mode, component 606 defines a fourth interaction mode, and components 610, 612, and 614 define a second interaction mode. In this case, component 606 cannot receive the output data generated by component 604 because the output data is non-streaming data. At branch 608, if the output data generated by component 606 needs to be presented, the output data is required to be streamed. At branch 608, if component 606 needs to call any one or more of components 610, 612, and 614, component 606 needs to transmit the output data to components 610, 612, and 614, and component 606 needs to generate non-streaming output, otherwise components 610, 612, and 614 cannot receive the output data generated by component 606.

[0076] After expansion based on the defined interaction modes of each component, each component can have a set of interaction modes. As an example, for component 602, the first interaction mode can be selected as the target interaction mode. For component 604, the second interaction mode can be selected as the target interaction mode. For component 606, the fourth interaction mode can be selected as the target interaction mode. For components 610, 612, and 614, the fourth interaction mode can be selected as the target interaction mode. In this way, each upstream and downstream component can interact without obstacles, thereby achieving the corresponding tasks.

[0077] Figure 7 A schematic diagram of a method for orchestrating components according to an embodiment of the present disclosure is shown. In this embodiment, component 704 itself may also be an orchestration product, that is, component 704 is orchestrated by multiple components. When selecting a target interaction mode according to the operating environment, the interaction mode of component 704 may be determined as a first interaction mode or a second interaction mode. This means that the defined interaction modes of component 704 include a first interaction mode and a fourth interaction mode. Although component 704 is also an orchestration product, the interaction mode of component 704 can still be expanded using the embodiment described above, that is, an interaction mode set is generated based on the defined interaction mode, and a target interaction mode is selected from the exchange mode set according to the operating environment.

[0078] For example, when expanding the second exchange mode, the non-streaming input data can be processed using a streaming operation to generate streaming data, and the streaming data can be transmitted to the fourth interaction mode of component 704 to generate streaming output, so that component 704 can support non-streaming input and streaming output. For another example, when expanding the third interaction mode, component 704 can use the fourth interaction mode to receive input data and generate streaming output, and can use a package operation to receive the output of component 704, thereby generating non-streaming data as non-streaming output, so that component 704 can support streaming output and non-streaming output. According to an embodiment of the present disclosure, the interactive mode of the orchestration product can be expanded, thereby improving the efficiency of the orchestration component.

[0079] Figure 8 800 is a schematic block diagram of an example device 800 according to some embodiments of the present disclosure. The device 800 may be implemented in software, hardware, or a combination of both. Figure 8 As shown, the apparatus 800 includes a determination module 810 , a generation module 820 and a selection module 830 .

[0080] In some embodiments, the acquisition module 810 can be configured to determine at least one defined interaction mode of the target component according to the type of the parameter of the target component. The generation module 820 can be configured to generate an interaction mode set of the target component, and the interaction mode set supports multiple combinations of streaming input, non-streaming input and streaming output, non-streaming output. The selection module 830 can be configured to select a target interaction mode of the target component from the interaction mode set based on the operating environment of the target component to arrange the target component.

[0081] In some embodiments, the generation module 820 includes a second determination module configured to determine a difference interaction pattern set for the target component according to at least one defined interaction pattern and the interaction pattern set to be generated. The generation module 820 also includes a difference supplementation module configured to supplement the interaction pattern of the target component by using the difference interaction pattern set to obtain the interaction pattern set.

[0082] In some embodiments, the interaction mode set includes multiple interaction modes from among a first interaction mode, a second interaction mode, a third interaction mode, and a fourth interaction mode, the first interaction mode indicating that the input is non-streaming and the output is non-streaming, the second interaction mode indicating that the input is non-streaming and the output is streaming, the third interaction mode indicating that the input is streaming and the output is non-streaming, and the fourth interaction mode indicating that the input is streaming and the output is streaming.

[0083] In some embodiments, the generation module 820 includes a first supplementary module, which is configured to, in response to the difference interaction mode set including the second interaction mode and at least one defined interaction mode including the first interaction mode, use a streaming operation to process the data output by the target component through the first interaction mode to obtain the second interaction mode; or in response to the difference interaction mode set including the third interaction mode and at least one defined interaction mode including the first interaction mode, use a wrapping operation to process the input data and input the processed input data to the first interaction mode of the target component to obtain the third interaction mode; or in response to the difference interaction mode set including the fourth interaction mode and at least one defined interaction mode including the first interaction mode, use a wrapping operation to process the input data and input the processed input data to the first interaction mode of the target component, and use a streaming operation to process the data output by the target component through the first interaction mode to obtain a fourth interaction mode.

[0084] In some embodiments, the generation module 820 includes a second supplementary module, which is configured to, in response to the difference interaction mode set including the first interaction mode and at least one defined interaction mode including the second interaction mode, use a wrapping operation to process the data output by the target component through the second interaction mode to obtain the first interaction mode; or, in response to the difference interaction mode set including the third interaction mode and at least one defined interaction mode including the second interaction mode, use a wrapping operation to process the input data and input the processed input data to the second interaction mode of the target component, and use a wrapping operation to process the data output by the target component through the second interaction mode to obtain the third interaction mode; or, in response to the difference interaction mode set including the fourth interaction mode and at least one defined interaction mode including the second interaction mode, use a wrapping operation to process the input data and input the processed input data to the second interaction mode of the target component to obtain the fourth interaction mode.

[0085] In some embodiments, the generation module 820 includes a third supplementary module configured to, in response to the difference interaction mode set including the first interaction mode and at least one defined interaction mode including the third interaction mode, use a streaming operation to process input data and input the processed input data to the third interaction mode of the target component to obtain the first interaction mode; or, in response to the difference interaction mode set including the second interaction mode and at least one defined interaction mode including the third interaction mode, use a streaming operation to process input data and input the processed input data to the third interaction mode of the target component, and use the streaming operation to process data output by the target component through the third interaction mode to obtain the second interaction mode; or, in response to the difference interaction mode set including the fourth interaction mode and at least one defined interaction mode including the third interaction mode, use a streaming operation to process data output by the target component through the third interaction mode to obtain the fourth interaction mode.

[0086] In some embodiments, the generation module 820 includes a fourth supplementary module, which is configured to, in response to the difference interaction mode set including the first interaction mode and at least one defined interaction mode including the fourth interaction mode, use a streaming operation to process input data and input the processed input data to the fourth interaction mode of the target component, and use a wrapping operation to process data output by the target component through the fourth interaction mode to obtain the first interaction mode; or, in response to the difference interaction mode set including the second interaction mode and at least one defined interaction mode including the fourth interaction mode, use a streaming operation to process input data and input the processed input data to the fourth interaction mode of the target component to obtain the second interaction mode; or, in response to the difference interaction mode set including the third interaction mode and at least one defined interaction mode including the fourth interaction mode, use a wrapping operation to process data output by the target component through the fourth interaction mode to obtain the third interaction mode.

[0087] In some embodiments, the packing operation is a packing function that sequentially combines a plurality of first data blocks into second data.

[0088] In some embodiments, the streaming operation is a streaming function that sequentially splits the third data block into a plurality of fourth data blocks.

[0089] In some embodiments, the difference supplementation module includes a first packaging module configured to package each interaction mode in the difference interaction mode set into a target component.

[0090] In some embodiments, the first encapsulation module includes a setting module configured to set the target structure according to at least one defined interaction mode. The first encapsulation module also includes a second encapsulation module configured to encapsulate the target structure into the target component in response to the target component including any interaction mode of at least one defined interaction mode.

[0091] According to the device of the embodiment of the present disclosure, a set of interaction modes is generated for the target component by fine-tuning the defined interaction mode of the target component, so that the target component can support multiple interaction modes without changing its own business logic, thereby being able to flexibly respond to various requirements for the form of input data and output data. The orchestrator does not need to consider the unification and conversion of interaction modes between components, which can significantly improve the efficiency of orchestration components.

[0092] The division of modules or units in the embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in the disclosed embodiments may be integrated into one unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0093] Fig. 9 900 is a block diagram of an example device that can be used to implement an embodiment of the present disclosure. It should be understood that Fig. 9 The device 900 shown is merely an example and should not constitute any limitation on the functionality and scope of the implementation described herein. Figure 1 The computing device 120 described above can be used to perform the above-described Figures 1 to 7 process.

[0094] like Fig. 9As shown, the device 900 is in the form of a general-purpose computing device. The components of the computing device 900 may include, but are not limited to, one or more processors or processing units 910, a memory 920, a storage device 930, one or more communication units 940, one or more input devices 950, and one or more output devices 960. The processing unit 910 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 920. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to increase the parallel processing capabilities of the computing device 900.

[0095] The computing device 900 typically includes a plurality of computer storage media. Such media may be any available media accessible to the computing device 900, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 920 may be a volatile memory (e.g., register, cache, random access memory (Random Access Memory, RAM)), a non-volatile memory (e.g., read-only memory (Read Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read Only Memory, EEPROM), flash memory) or some combination thereof. The storage device 930 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the computing device 900.

[0096] The computing device 900 may further include additional removable / non-removable, volatile / non-volatile storage media. Fig. 9 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. Memory 920 may include a computer program product 925 having one or more program modules that are configured to perform various methods or actions of various implementations of the present disclosure.

[0097] The communication unit 940 implements communication with other computing devices through a communication medium. Additionally, the functions of the components of the computing device 900 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the computing device 900 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.

[0098] Input device 950 may be one or more input devices, such as a mouse, keyboard, tracking ball, etc. Output device 960 may be one or more output devices, such as a display, a speaker, a printer, etc. Computing device 900 may also communicate with one or more external devices (not shown) through communication unit 940 as needed, such as storage devices, display devices, etc., communicate with one or more devices that allow users to interact with computing device 900, or communicate with any device that allows computing device 900 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0099] According to an example 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 example implementation of the present disclosure, a computer program product is also provided, the computer program product 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. According to an example implementation of the present disclosure, a computer program product is provided, on which a computer program is stored, and when the program is executed by a processor, the method described above is implemented.

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

[0101] 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, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0102] 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, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0103] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square 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.

[0104] The above descriptions of various implementations of the present disclosure are illustrative, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.

Claims

1. A method for orchestrating a component, comprising: Determining at least one defined interaction mode of the target component according to a type of a parameter of the target component; Based on the at least one defined interaction mode, generating an interaction mode set of the target component, wherein the interaction mode set supports multiple combinations of streaming input, non-streaming input and streaming output, non-streaming output; as well as Based on the operating environment of the target component, a target interaction mode of the target component is selected from the interaction mode set to orchestrate the target component.

2. The method according to claim 1, wherein generating the set of interaction modes of the target component based on the at least one defined interaction mode comprises: Determining a set of different interaction patterns for the target component according to the at least one defined interaction pattern and the interaction pattern set to be generated; as well as The interaction pattern set is obtained by supplementing the interaction pattern of the target component with the difference interaction pattern set.

3. The method according to claim 2, wherein the interaction mode set includes multiple interaction modes from among a first interaction mode, a second interaction mode, a third interaction mode and a fourth interaction mode, the first interaction mode indicates that the input is non-streaming and the output is non-streaming, the second interaction mode indicates that the input is non-streaming and the output is streaming, the third interaction mode indicates that the input is streaming and the output is non-streaming, and the fourth interaction mode indicates that the input is streaming and the output is streaming.

4. The method according to claim 3, wherein supplementing the interaction mode of the target component by using the difference interaction mode set to obtain the interaction mode set comprises: In response to the set of difference interaction modes including the second interaction mode and the at least one defined interaction mode including the first interaction mode, processing data output by the target component through the first interaction mode using a streaming operation to obtain the second interaction mode; or In response to the set of difference interaction modes including the third interaction mode and the at least one defined interaction mode including the first interaction mode, processing input data using a wrapping operation and inputting the processed input data to the first interaction mode of the target component to obtain the third interaction mode; or In response to the set of different interaction modes including the fourth interaction mode and the at least one defined interaction mode including the first interaction mode, the input data is processed using the wrapping operation and the processed input data is input to the first interaction mode of the target component, and the data output by the target component through the first interaction mode is processed using the streaming operation to obtain the fourth interaction mode.

5. The method according to claim 3, wherein supplementing the interaction mode of the target component by using the difference interaction mode set to obtain the interaction mode set comprises: In response to the set of different interaction modes including the first interaction mode and the at least one defined interaction mode including the second interaction mode, processing the data output by the target component through the second interaction mode using a wrapping operation to obtain the first interaction mode; or In response to the set of difference interaction modes including the third interaction mode and the at least one defined interaction mode including the second interaction mode, using the wrapping operation to process input data and input the processed input data to the second interaction mode of the target component, and using the wrapping operation to process data output by the target component through the second interaction mode to obtain the third interaction mode; or In response to the set of difference interaction modes including the fourth interaction mode and the at least one defined interaction mode including the second interaction mode, the input data is processed using the wrapping operation and the processed input data is input to the second interaction mode of the target component to obtain the fourth interaction mode.

6. The method according to claim 3, wherein supplementing the interaction mode of the target component by using the difference interaction mode set to obtain the interaction mode set comprises: In response to the set of differential interaction modes including the first interaction mode and the at least one defined interaction mode including the third interaction mode, processing input data using a streaming operation and inputting the processed input data to the third interaction mode of the target component to obtain the first interaction mode; or In response to the set of difference interaction modes including the second interaction mode and the at least one defined interaction mode including the third interaction mode, using the streaming operation to process the input data and input the processed input data to the third interaction mode of the target component, and using the streaming operation to process data output by the target component through the third interaction mode to obtain the second interaction mode; or In response to the set of difference interaction modes including the fourth interaction mode and the at least one defined interaction mode including the third interaction mode, the data output by the target component through the third interaction mode is processed using the streaming operation to obtain the fourth interaction mode.

7. The method according to claim 3, wherein supplementing the interaction mode of the target component by using the difference interaction mode set to obtain the interaction mode set comprises: In response to the set of difference interaction modes including the first interaction mode and the at least one defined interaction mode including the fourth interaction mode, using a streaming operation to process input data and input the processed input data to the fourth interaction mode of the target component, and using the wrapping operation to process data output by the target component through the fourth interaction mode to obtain the first interaction mode; or In response to the set of differential interaction modes including the second interaction mode and the at least one defined interaction mode including the fourth interaction mode, processing the input data using the streaming operation and inputting the processed input data to the fourth interaction mode of the target component to obtain the second interaction mode; or In response to the set of difference interaction modes including the third interaction mode and the at least one defined interaction mode including the fourth interaction mode, the data output by the target component through the fourth interaction mode is processed using the wrapping operation to obtain the third interaction mode. 8 . The method according to claim 4 , wherein the packing operation is a packing function for sequentially combining a plurality of first data blocks into second data. 9 . The method according to claim 4 , wherein the streaming operation is a streaming function that sequentially splits the third data block into a plurality of fourth data blocks.

10. The method according to claim 2, wherein supplementing the interaction mode of the target component by using the difference interaction mode set to obtain the interaction mode set comprises: Each interaction mode in the set of different interaction modes is encapsulated into the target component.

11. The method according to claim 10, wherein encapsulating each interaction mode in the set of different interaction modes into the target component comprises: setting a target structure according to the at least one defined interaction mode; In response to the target component including any one of the at least one defined interaction mode, the target structure is packaged into the target component.

12. An apparatus for orchestrating a component, comprising: a determination module configured to determine at least one defined interaction mode of the target component according to a type of a parameter of the target component; A generating module configured to generate an interaction mode set of a target component, wherein the interaction mode set supports a plurality of combinations of streaming input, non-streaming input and streaming output, non-streaming output; as well as The selection module is configured to select a target interaction mode of the target component from the interaction mode set based on the operating environment of the target component to orchestrate the target component.

13. An electronic device comprising: at least one processing unit; At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to any one of claims 1 to 11.

14. A computer program product having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 11.