Function calling method and device, equipment and storage medium
By determining the calling parameters based on configuration information and trigger mode in function calls, the problem of single function calling methods in the prior art is solved, flexible applications under multiple calling modes are realized, and the efficiency of function usage and application scenario expansion is improved.
Patent Information
- Application Number
- CN202411133011.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-18
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-08-18
AI Technical Summary
The prior art is difficult to meet the flexible calling needs of the same function under different calling methods. Traditional functions are usually built for specific calling methods, making it difficult to expand the usage scenarios of multiple calling methods.
By responsive to the call of the target function, the call parameters are determined based on its configuration information, and the parameter values are obtained according to the trigger mode, function calls in multiple predetermined modes are supported.
It realizes flexible calling of functions in different trigger modes, expands application scenarios, simplifies processing logic, and improves the application efficiency of functions.
Smart Images

Figure CN119135667A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for function calling. Background Art
[0002] With the development of information technology, various terminal devices can provide various services to people in work and life. Applications that provide services can be deployed in terminal devices. Terminal devices present corresponding content and interact with users through the user interface of the application to meet various needs of users. In some cases, users may initiate function call requests within the application. Therefore, how to improve the efficiency of function calls is a concern. Summary of the invention
[0003] In a first aspect of the present disclosure, a method for function calling is provided. The method includes: in response to triggering a call to a target function, determining at least one call parameter of the target function based on configuration information of the target function; acquiring a parameter value of at least one call parameter based on a trigger mode of the call, the trigger mode being one of a plurality of predetermined modes for triggering the call of the target function; and calling the target function based on the parameter value of the at least one call parameter.
[0004] In a second aspect of the present disclosure, a device for function calling is provided. The device includes: a determination module configured to determine at least one calling parameter of the target function based on configuration information of the target function in response to triggering the calling of the target function; an acquisition module configured to acquire a parameter value of at least one calling parameter based on a trigger mode of the calling, wherein the trigger mode is one of a plurality of predetermined modes for triggering the calling of the target function; and a calling module configured to call the target function based on the parameter value of at least one calling parameter.
[0005] 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, 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. When the instructions are executed by the at least one processing unit, the electronic device executes the method of the first aspect.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the medium, and when the computer program is executed by a processor, the method of the first aspect is implemented.
[0007] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.
[0008] It should be understood that the content described in this 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
[0009] 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:
[0010] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0011] Figure 2 A flowchart showing a process for function calling according to some embodiments of the present disclosure is shown;
[0012] Figure 3 A schematic diagram showing an example of a configuration interface according to some embodiments of the present disclosure;
[0013] Figure 4A and Figure 4B Flowcharts of signaling flows for function calls according to some embodiments of the present disclosure are respectively shown;
[0014] Figure 5 A schematic diagram showing an example of a call relationship construction interface according to some embodiments of the present disclosure;
[0015] Figure 6 A flow chart showing a signaling flow for function calling according to some embodiments of the present disclosure;
[0016] Figure 7 A schematic structural block diagram of an apparatus for function calling according to some embodiments of the present disclosure is shown; and
[0017] Figure 8 A block diagram of an electronic device in which one or more embodiments of the present disclosure may be implemented is shown. DETAILED DESCRIPTION
[0018] 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 set forth herein. On the contrary, 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 only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0019] 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 also be included below.
[0020] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
[0021] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0022] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.
[0023] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.
[0024] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.
[0025] It is understandable that the above notification and the process of obtaining user authorization are only illustrative and do not limit the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure. The activation of the digital assistant related functions, the acquired data, the processing and storage of the data, etc. in the embodiment of the present disclosure shall obtain the prior authorization of the user and other rights holders associated with the user, and shall comply with the relevant laws and regulations and the agreement rules between the rights holders.
[0026] As used herein, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the corresponding output can be generated for a given input. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multi-layer processing units. A neural network model is an example of a model based on deep learning. In this article, "model" may also be referred to as "machine learning model", "learning model", "machine learning network" or "learning network", and these terms are used interchangeably in this article.
[0027] The term "function" as used herein should be understood to refer to a functional module that has a specific capability, can perform a specific task, and / or can provide a specific service. For example, a "function" may have the ability to call a model to generate specific content, or a "function" may have the ability to perform a specific task alone.
[0028] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. The environment 100 involves a server 110 , terminal devices 120 , 150 , and a target model 140 .
[0029] like Figure 1 As shown, the server 110 is deployed with a function management platform 111, which may include a function creation part and a function application part. The function creation part may provide a function creation, publishing and management environment for the user 160. In some embodiments, the function management platform 111 may be a low-code platform that provides a collection of tools for function creation. The function management platform 110 may support visual development of functions. The function management platform 111 may support any appropriate platform for users to develop functions.
[0030] The function management platform 111 may be deployed on the server 110, or may be deployed locally on the terminal device 120 of the user 130, and / or may be supported by a remote server. For example, the terminal device 120 of the user 130 may run a client of the function management platform 111, and the client may support the interaction between the user 130 and the function management platform 111. In the case where the function management platform runs locally on the terminal device 120 of the user 130, the user 130 may directly use the client to interact with the local function management platform. In the case where the function management platform 111 runs on the server 110, the server 110 may provide services to the client running in the terminal device 120 based on the communication connection with the terminal device 120.
[0031] The terminal device 120 may be deployed with a digital assistant 121, and the user 130 may interact with the digital assistant 121 through the terminal device 120 or an attached device of the terminal device 120. The digital assistant 121 is provided to assist the user 130 in various task processing requirements in different applications and scenarios. The digital assistant 121 generally has intelligent dialogue and task processing capabilities. During the interaction with the digital assistant 121, the user 130 inputs an interactive message (such as text, voice, image, video or other modal dialogue content), and the digital assistant 121 provides a reply message in response to the user input. Generally, the digital assistant 121 can support the user 130 to input questions in natural language, and perform tasks and provide replies based on the understanding of natural language input and logical reasoning ability. The digital assistant 121 can also be configured to call a matching interface to provide a reply message based on the user input, thereby improving the processing capability of the digital assistant 121.
[0032] In an embodiment of the present disclosure, the user 160 can create functions as needed on the function creation part of the function management platform 111 and publish the functions. The functions can be published to any appropriate function application part, as long as the function application part can support the call of the function by the digital assistant 121. The function application part can be deployed on the server 110, or it can be deployed on the terminal device 120 of the user 130. After the function is published, the digital assistant 121 can call the function to provide services to the user 130. For example, the user 130 can enter a conversation message in the conversation window of the digital assistant 121, and the digital assistant 121 can request the function management platform 111 to assist in calling the function, and obtain feedback information from the function, determine the reply message based on the feedback information and present it to the user in the conversation window.
[0033] In some embodiments, the digital assistant 121 can utilize the target model 140 to support interaction with the user 130. For example, the digital assistant 121 can utilize one or more target models to provide question-and-answer services to the user 130.
[0034] In some embodiments, one or more target models 140 can be constructed based on a language model (LM). The machine learning model used is a content generation model that can generate corresponding outputs based on model inputs. In some embodiments, a machine learning model based on a language model can accept model inputs in textual modalities (e.g., natural language and / or machine language) and / or model inputs in non-textual modalities (e.g., images, voice, video, etc.), and can generate desired outputs based on model inputs and prompt words. The prompt words here are used to guide the machine learning model to generate user needs that can solve the model inputs. In an application scenario for supporting user dialogue, user input can be provided to the machine learning model as at least a part of the model input (other parts may include prompt words). The user input is considered a question. Based on the model output, a corresponding response can be generated to provide to the user 130.
[0035] The function management platform 111 can run on appropriate electronic devices. The electronic devices here can be any type of device with computing capabilities, including terminal devices or server devices. The terminal device can be any type of mobile terminal, fixed terminal or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, gaming devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The server 110 can, for example, include a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. In some embodiments, the function management platform 111 can be implemented based on cloud services.
[0036] It should be understood that the structure and function of the various elements in the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.
[0037] As mentioned above, an application or digital assistant that provides services can be deployed in the terminal device, and a call to the function can be initiated through the application or digital assistant. With the development of information technology, the application of functions is becoming more and more diversified. In order to meet the use requirements of the same function in different application scenarios, it is expected to be able to call the same function using multiple calling methods. However, the calling logic and the method of obtaining calling parameters of different calling methods are usually different. Traditionally, functions are usually built for specific calling methods, and it is usually difficult to meet the use requirements of calling using multiple calling methods.
[0038] In view of this, an embodiment of the present disclosure provides an improved solution for function calling. In this solution, in response to triggering the calling of a target function, at least one calling parameter of the target function is determined based on the configuration information of the target function. Based on the trigger mode in which the target function is called, a parameter value of at least one calling parameter is obtained, and the trigger mode is one of multiple predetermined modes for triggering the calling of the target function. Based on the parameter value of at least one calling parameter, the target function is called.
[0039] In an embodiment of the present disclosure, at least one calling parameter required for calling a function is specified in the configuration information. In use, the parameter value of the at least one calling parameter is obtained according to the trigger mode that specifically triggers the calling of the function. This enables the function to support the use requirements of triggering the calling using different trigger modes, which is conducive to expanding the application scenarios of the function.
[0040] Some example embodiments of the present disclosure will be described in detail below with reference to examples of the accompanying drawings.
[0041] Figure 2 1 is a flowchart of a process 200 for function calling according to some embodiments of the present disclosure. The process 200 may be implemented at the server 110, for example, by a function application part of a function management platform 110 deployed at the server 110. Figure 1 To describe Figure 2 Process 200 is shown.
[0042] In box 210, the server 110 determines at least one calling parameter of the target function based on the configuration information of the target function in response to triggering the call to the target function. The functions here may include functional modules with different capabilities, and the target function may include but is not limited to content generation functions using language models, data analysis functions, data processing functions, etc. The tasks performed by the functions, the capabilities they have, or the services they provide are not limited here. The at least one calling parameter may include one or more parameters required to perform the call operation on the target function. The at least one calling parameter may include one calling parameter or multiple calling parameters.
[0043] It is understandable that the at least one call parameter corresponds to a function. In the case of different functions, the specific parameters included in the at least one call parameter may be different. For example, the target function can be used to generate online promotion content, and the at least one call parameter of the target function may include a title and a promotion channel, etc. For another example, the target function can be used to query the weather, and the at least one call parameter of the target function may include time and place, etc.
[0044] In the process of creating the target function, at least one call parameter of the target function may be configured, and the at least one call parameter may be stored in a data storage unit of, for example, the server 110 as at least a part of the configuration information. In some embodiments, the server 110 may present a configuration interface of the target function in response to a configuration request for the target function. Afterwards, the server 110 may receive attribute information of at least one call parameter through the configuration interface. The attribute information here is used to describe the basic attributes of the call parameter, and the attribute information may include but is not limited to the parameter name, type, description, etc. of the call parameter.
[0045] refer to Figure 3 Describe an example. Figure 3 A schematic diagram of an example 300 of a configuration interface according to some embodiments of the present disclosure is shown. Example 300 shows a configuration interface of an "ABCD function", which can be used to generate marketing materials for a specified commodity distribution "channel". Example 300 includes a call parameter input entry 310, which may include at least one group of input boxes corresponding to the at least one call parameter. Specifically, the at least one call parameter may include a "title" of the marketing material and a distribution "channel" for the marketing material. At this time, the at least one group of input boxes may include a group of input boxes 311 corresponding to the "title" and a group of input boxes 312 corresponding to the "channel". The group of input boxes 311 and the group of input boxes 312 respectively include input boxes for inputting parameter names, types, and descriptions. The user can input attribute information of the at least one call parameter into the call parameter input entry 310. Of course, the above configuration interface is only an example. In actual application, the interface elements and interface layout contained in the configuration interface can be selected according to actual needs.
[0046] In some embodiments, the server 110 may further include a data storage unit for storing metadata of functions. After determining the target function to be called, the function management platform 111 may send an information acquisition request to the data storage unit based on the function identifier of the target function. The function metadata storage unit may respond to the information acquisition request and feedback configuration information of the target function to the function management platform, and the configuration information may include at least one calling parameter of the target function. The at least one calling parameter is used to perform a calling operation on the target function.
[0047] In box 220, the server 110 obtains a parameter value of at least one calling parameter based on the trigger mode of the call. The target function here can be configured to be triggered by multiple predetermined modes, and the trigger mode is one of multiple predetermined modes for triggering the call of the target function. Alternatively or additionally, the multiple predetermined modes can have corresponding multiple parameter value acquisition methods. When the trigger mode of the call is determined, the parameter value of at least one calling parameter can be obtained by the corresponding acquisition method.
[0048] The following will exemplify the process of the server 110 obtaining parameter values under different trigger modes in combination with some specific trigger modes, but it should not be understood that the target function is limited to the trigger modes included below, nor should it be understood that under each trigger mode shown below, the parameter value of the call parameter is obtained only by the acquisition method shown below.
[0049] In some embodiments, the target function can be configured to be triggered by a session trigger mode. Specifically, the server 110 can determine a function that matches the user input from at least one function in response to receiving user input. If it is determined that the function matches the user input, the trigger mode is determined to be a session trigger mode, and the call to the target function is triggered based on the session trigger mode. Afterwards, the server 110 can obtain configuration information of the target function in response to the call to the target function triggered by the session mode. Based on the configuration information, a clarification mode of the at least one call parameter is determined, and a parameter value of the at least one call parameter is obtained based on the clarification mode. Alternatively or additionally, the clarification mode may include but is not limited to a dialogue mode, a form mode, and the like. The dialogue mode and the form mode will be described in detail later in conjunction with specific examples and will not be elaborated here.
[0050] During the process of creating the target function, a clarification mode of at least one call parameter of the target function may be configured. In some embodiments, the server 110 may receive a selection of a clarification mode of at least one call parameter through a configuration interface, and the clarification mode indicates a method of obtaining the at least one call parameter.
[0051] For example, Figure 3 As shown, the configuration interface shown in example 300 may also include a mode selection entry 320, and the mode selection entry 320 may include one or more option boxes corresponding to one or more predetermined clarification modes. In example 300, an option box 321 corresponding to the dialogue mode and an option box 322 corresponding to the form mode are respectively set. In response to the user's selection operation of the form mode, the server 110 may switch the option box 322 to a selected state (for example, switch the line of the option box to a thick line) and switch the option box 321 to a non-selected state (for example, switch the line of the option box to a thin line).
[0052] Furthermore, the configuration interface shown in the example 300 may also include a structure information input entry 330, which is used to receive the structure information of the form, and the structure information of the form includes but is not limited to the title of the form, call parameters, etc. The server 110 may present the structure information input entry 330 in the configuration interface in response to the selection operation of the option box 322 corresponding to the form mode, and the structure information input entry 330 may include a form title input entry 331 and a call parameter configuration entry 332. The user (for example, the creator of the function) may input a title for the form into the form title input entry. The call parameter configuration entry 332 may include multiple input boxes, such as an input box for inputting the parameter name of the call parameter, an input box for inputting the parameter value, and an element for characterizing the mapping relationship between the parameter name and the parameter value, etc. The user may configure the call parameter that needs to be clarified through the call parameter configuration entry 332.
[0053] In some embodiments, the server 110 may present a parameter input interface including a form in response to the configuration information indicating that the clarification mode of at least one call parameter is a form mode, based on the structural information of the form, and the form may include a parameter value input entry for at least one call parameter. The server 110 may receive a parameter value for at least one call parameter through the parameter input entry. The parameter value input entry here may be pre-filled with a parameter value for user confirmation, or may be set to an empty value to wait for user input. Exemplarily, the server 110 may present a form similar to the structural information input entry 330 in Example 300, which may include, for example, a title, a parameter name, an input box for entering a parameter value, and an element for characterizing a mapping relationship between a parameter name and a parameter value, and the like.
[0054] It should also be noted that the parameter input interface is not limited to obtaining the parameter value of the at least one call parameter through the form data structure, but can also obtain the parameter value of the at least one call parameter through other data structures, as long as the parameter input interface includes the parameter value input entrance of the at least one call parameter and the parameter value of the at least one call parameter can be received through the parameter value input entrance.
[0055] In some embodiments, the server 110 may generate prompt information of the target model 140 based on the user input and the at least one call parameter, and the server 110 may provide the prompt information to the target model 140 to obtain the output of the target model 140. Afterwards, the server 110 may determine the parameter values of at least part of the at least one call parameter based on the output of the target model 140.
[0056] Exemplarily, the server 110 may further include a flow manager, a flow engine, and a business engine. The function management platform 111 of the server 110 may generate prompt information of the target model 140 based on user input and at least one call parameter. The function management platform 111 sends the prompt information to the flow manager, the flow manager sends the prompt information to the flow engine, and the flow engine sends the prompt information to the business engine. Afterwards, the business engine may provide the prompt information to the target model 140 in response to receiving the prompt information. The business engine may also receive the output of the target model 140, and send the output of the target model 140 to the function management platform 111 through the flow engine and the flow manager. The function management platform 111 may determine the parameter values of at least part of the call parameters based on the output of the target model 140.
[0057] It is understandable that the user input may include parameter values of all call parameters, or may only include parameter values of some call parameters. In view of the situation that the target model 140 determines the parameter values of some call parameters from the user input, and some call parameters lack parameter values, in some embodiments, the server 110 can present structured content for at least one call parameter in response to determining that some call parameters in at least one call parameter lack parameter values. The structured content includes parameter values determined based on the output of the target model 140 and parameter value input entries for some call parameters. Parameter values of some call parameters are received through the parameter value input entries for some call parameters.
[0058] Exemplarily, the server 110 may present a form similar to the structural information input entry 330 in example 300, which may include, for example, a title, a parameter name, an input box for inputting parameter values, and elements for characterizing the mapping relationship between parameter names and parameter values, etc. The server 110 may fill in the parameter values determined based on the output of the target model 140 into the corresponding parameter input entry in the form. For call parameters whose parameter values are not determined, the corresponding input box may be set to empty, or, for example, "Please enter" may be presented in the corresponding input box. It should be noted that although the above example takes the form as an example of structured content, it should not be understood that the structured content is limited to the form. The structured content here may include various data contents with a predetermined data format.
[0059] In some embodiments, the server 110 may perform a dialogue operation with the terminal device 120 via the target model 140 in response to the configuration information indicating that the clarification mode of the at least one calling parameter is a dialogue mode to obtain the parameter value of the at least one calling parameter.
[0060] In some embodiments, the server 110 provides prompt information generated based on the user input and at least one call parameter to the target model 140 to obtain the output of the target model 140. The server 110 can obtain a clarification question for at least one call parameter based on the output of the target model 140. In response to receiving a clarification reply from the user to the clarification question, the server 110 can provide prompt information generated based on the clarification reply to the target model 140 to obtain the output of the target model 140. Afterwards, the server 110 can determine the parameter value of at least one call parameter based on the output of the target model 140.
[0061] Exemplarily, the server 110 may send a clarification question to the terminal device 120, and the terminal device 120 may present the clarification question. The user may input a clarification reply to the clarification question through the terminal device 120 or an attached device of the terminal device 120. In response to receiving the clarification reply, the terminal device 120 may feed back the clarification reply to the server 110. The server 110 may provide prompt information generated based on the clarification reply to the target model 140, and extract the parameter value of the at least one call parameter from the clarification reply through the target model. In this way, the dialogue capability and parameter extraction capability of the target model are utilized to realize the generation of clarification questions and the extraction of parameter values, which is conducive to simplifying the processing logic.
[0062] In some embodiments, the server 110 may obtain a first clarification question for a first call parameter in the at least one call parameter based on the output of the target model 140. In response to receiving a first clarification answer from the user to the first clarification question, the server 110 may provide prompt information based on the first clarification answer to the target model 140 to obtain the output of the target model 140. Based on the output of the target model 140, the parameter value of the first call parameter is determined. The first call parameter here may include all or part of the parameters of the at least one call parameter.
[0063] To illustrate the use of session trigger mode to trigger the target function, we will combine Figure 4A The process of triggering a target function by using a session trigger mode is exemplified. Figure 4A A flow chart of a signaling flow 400A for function invocation according to some embodiments of the present disclosure is shown. The signaling flow 400A involves a terminal device 120, a server 110, and a target model 140. The server 110 includes a target interface 112, a dialog manager 113, and a function management platform 111. The function management platform 111 may pre-create at least one function.
[0064] As shown in signaling flow 400A, user 130 may input user input to terminal device 120 through terminal device 120 or an attached device of terminal device 120. In response to receiving the user input, terminal device 120 sends (401) the user input by dialogue manager 113. Alternatively or additionally, the user input may include multimodal content such as text, voice, picture, video, etc. The dialogue manager 113 receives (402) the user input from terminal device 120. In response to receiving the user input, the dialogue manager 113 determines (403) a target function that matches the user input from at least one pre-created function.
[0065] Regarding the manner in which the dialogue manager 113 determines the target function that matches the user input, in one example, the dialogue manager 113 may generate prompt information based on the user input and the description information of the at least one function, and provide the prompt information to the target model 140 or other models to obtain the output of the target model 140. The dialogue manager 113 may determine the function that matches the user input based on the output of the target model 140. Of course, the dialogue manager 113 is not limited to determining the function that matches the user input using the target model 140, and the dialogue manager 113 may also determine the function that matches the user input based on, for example, semantic recognition or other methods.
[0066] As shown in the signaling flow 400A, the dialog manager 113 may trigger (404) a call to the target function to the function management platform 111. The function management platform 111 may respond (405) to the call to the target function, obtain (406) configuration information, and determine at least one call parameter of the target function based on the configuration information. The function management platform 111 generates prompt information 407 based on the user input and the at least one call parameter. The function management platform 111 may then provide (408) the prompt information 407 to the target model 140 through, for example, a flow manager, a flow engine, and a business engine. In response to receiving (409) the prompt information 407, the target model 140 generates an output 411 of the target model. The target model 140 may feed back (410) the output 411 to the function management platform 111 through, for example, a flow manager, a flow engine, and a business engine. In response to receiving (412) the output 411, the function management platform 111 obtains a clarification question 414 based on the output 411. The function management platform 111 may send ( 415 ) the clarification question 414 to the dialogue manager 113 , and the dialogue manager 113 may send ( 417 ) the clarification question 414 to the terminal device 120 in response to receiving ( 416 ) the clarification question 414 .
[0067] As shown in the signaling flow 400A, the terminal device 120 may present the clarification question 414 in response to receiving the clarification question 414. The user may enter a clarification answer 420 for the clarification question 414. In response to receiving the clarification answer 420, the terminal device 120 sends (419) the clarification answer 420 to the dialogue manager 113. In response to receiving (421) the clarification answer 420, the dialogue manager 113 sends (422) the clarification answer 420 to the function management platform 111. In response to receiving (423) the clarification answer 420, the function management platform 111 generates prompt information 425 based on the clarification answer 420. The function management ticket 111 provides (425) the prompt information 425 to the target model 140, and the target model 140 receives (426) the prompt information 425 and generates an output 428 based on the prompt information 425. Thereafter, the target model 140 may feed back ( 427 ) the output 428 to the function management platform 111 , and the function management platform 111 , in response to receiving ( 429 ) the output 428 , determines ( 430 ) a parameter value of the at least one call parameter.
[0068] Due to the randomness of the user dialogue, here all parameter values of the at least one call parameter may be obtained based on the first clarification reply, or part of the parameter value of the at least one call parameter may be obtained. On this basis, the server 110 may also determine whether there is a call parameter with a missing parameter value in the at least one call parameter. If it is determined that there is a second call parameter with a missing parameter value in the at least one call parameter, the server 110 may generate prompt information based on the second call parameter, and provide the prompt information to the target model 140 to obtain the output of the target model 140. Based on the output of the target model 140, determine the second clarification question for the second call parameter. In response to receiving the second clarification reply of the user to the second clarification question, the server 110 may provide the prompt information generated based on the second clarification reply to the target model 140 to obtain the output of the target model 140. Thereafter, based on the output of the target model 140, determine the parameter value of the second call parameter.
[0069] For example, Figure 4B As shown, Figure 4B A flow chart of a signaling flow 400B for function call according to some embodiments of the present disclosure is shown. The signaling flow 400B involves the terminal device 120, the server 110 and the target model 140, and the server 110 includes a target interface 112, a dialog manager 113 and a function management platform 111. The function management platform 111 can pre-create at least one function. The signaling flow 400B occurs after the signaling flow 400A, and the signaling flow 400A and the signaling flow 400B together constitute a complete signaling flow.
[0070] As shown in the signaling flow 400B, the function management platform 111 can determine (431) whether there is a call parameter lacking a parameter value in the at least one call parameter. If it is determined that there is a call parameter lacking a parameter value, a prompt message 433 can be generated based on the call parameter lacking a parameter value. Afterwards, a process similar to that of boxes 408 to 430 in the signaling flow 400A can be performed. Since the process of boxes 408 to 430 has been explained in the signaling flow 400A, it is not elaborated here in detail, and reference can be made to the aforementioned explanation. In box 455, the function management platform 111 extracts the parameter value again based on the output 453 of the target model 140. Afterwards, the signaling flow 400B can return to box 431 again to determine whether there is a call parameter lacking a parameter value in the at least one call parameter. If it is determined that all parameter values of the at least one call parameter have been obtained, it is determined that the operation of obtaining the parameter value is completed.
[0071] In some embodiments, the target function can also be configured to be triggered using a task trigger mode. If the server 110 receives a call request for the target function from the target interface, the server 110 can determine that the trigger mode of the call is a task trigger mode in response to the call request, and trigger the call to the target function based on the task trigger mode. The tasks here may include but are not limited to tasks executed by the application, tasks triggered by links, tasks triggered by processing flows, and the like. That is, during the application execution of the task, a call request can be sent to the target interface of the server 110 to trigger the call to the target function. Alternatively, when the link is triggered, a call request can also be sent to the target interface of the server 110. Alternatively, during the execution of the processing flow, the operation of sending a call request to the target interface can be triggered in response to the processing result of the previous processing node. Of course, the above tasks are only exemplary. In actual applications, the task of sending a call request to the target interface can be selected and configured according to actual needs.
[0072] In some embodiments, a call relationship between a task and a target function may be pre-built, and a call to the target function may be triggered based on the call relationship in response to the execution of the task. Figure 5 As shown, Figure 5A schematic diagram of an example 500 of a call relationship construction interface according to some embodiments of the present disclosure is shown. The call relationship construction interface shown in example 500 is used to construct a call relationship between a processing node (e.g., XXX application) of a target application and a target function (e.g., ABCD function). Example 500 includes an application input box 501, an operation input box 502, and a function input box 503. The application identifier of the target application (e.g., the application name "XXX application") can be input through the application input box 501, the function identifier of the target function (e.g., the function name "ABCD function" of the target function) can be input through the function input box 503, and the call relationship between the target application and the target function (e.g., call function) can be input through the operation input box 502. In this way, if the processing node corresponding to example 500 is triggered during the execution of the target application, a call request will be sent to the target interface to trigger the call of the target function. Further, example 500 may also include a parameter transmission configuration entry 504, which is used to configure the call parameters and parameter values required for the target application to call the target function. The parameter configuration entry 504 may include multiple input boxes, such as an output box for inputting parameter names, types, and parameter values. A user (eg, a developer) may input parameter names, types, and the like of call parameters into the parameter configuration entry 504 .
[0073] In order to illustrate the use of task trigger mode to trigger the target function, we will combine Figure 6 The process of triggering a target function using a task trigger mode is exemplified. Figure 6 A flowchart of a signaling flow 600 for function calling according to some embodiments of the present disclosure is shown. The signaling flow 600 involves a terminal device 120 and a server 110 . The server 110 includes a target interface 112 , a dialog manager 113 , and a function management platform 111 .
[0074] As shown in the signaling flow 600, the terminal device 120 may send (601) a call request for a target function to the target interface 112 of the server 110, and the target interface 112 receives the call request for the target function from the terminal device 120. For example, the terminal device 120 may run a target application, and the terminal device 120 may send a call request for the target function to the target interface in response to the target application triggering a predetermined processing node. For another example, the terminal device 120 may present an application interface, and the application interface may include a function trigger control. The terminal device 120 may send a call operation for the target function to the target interface in response to receiving a trigger operation for the function trigger control.
[0075] As shown in the signaling flow 600, the target interface 112 sends (603) the call request to the function management platform 111, and the function management platform 111 receives (604) the call request from the target interface. Afterwards, the function management platform 111 may determine (605) the target function corresponding to the call request. For example, the function management platform 111 may determine the corresponding target function based on the interface number of the target interface 112. For another example, the call request may carry a function identifier (e.g., a number for identifying the function) for identifying the target function, and the function management platform 111 may determine the corresponding target function based on the function identifier.
[0076] As shown in signaling flow 600, function management platform 111 may obtain (606) configuration information of the target function. For example, function management platform 111 may send an information acquisition request to a data storage unit based on the function identifier, and receive configuration information of the target function from the data storage unit. Function management platform 111 may determine at least one calling parameter of the target function based on the configuration information.
[0077] Since the parameter values of the call parameters required to be transmitted when the task calls the target function have been preconfigured, the call request sent by the terminal device 120 may already carry the parameter values of the call parameters. On this basis, the function management platform 111 can obtain (607) the parameter value of the at least one call parameter from the call request. If the function management platform 111 cannot obtain all the parameter values of the at least one call parameter from the call request, it can send a notification message to the terminal device to notify the terminal device 120 that the target function call has failed.
[0078] In block 230, the server 110 calls the target function based on the parameter value of the at least one calling parameter. It is understandable that when the capabilities, operations performed, or services provided by the target function are different, the function management platform 111 may call the target function in different ways based on the parameter value of the at least one calling parameter.
[0079] For example, when the target function requires the capability of the target model 140, the function management platform 111 may generate prompt information based on the at least one call parameter, provide the prompt information to the target model 140, and obtain the output of the target model 140. Based on the output of the target model 140, the execution result of the target function is determined.
[0080] Exemplarily, the configuration information of the target function may also include a call address of the target function. The function management platform 111 may call the target function based on the call address and the at least one call parameter. For example, the function management platform 111 may obtain weather information by calling an interface.
[0081] In some embodiments, the server 110 may also determine feedback information based on the trigger mode of the target function. Figure 4B As shown, when the trigger mode is the session trigger mode, the function management platform 111 can call (456) the target function to obtain the execution result of the target function. The function management platform 111 can determine the response to the user input based on the execution result of the target function. For example, the function management platform 111 can provide the execution result of the target function to the target model 140 again, and generate a response to the user input through the target model 140. The function management platform 111 can send (457) the response to the dialogue manager 113, and the dialogue manager 113 can send (459) the response to the terminal device 120 in response to receiving (458) the response. The terminal device 120 can present the response in response to receiving (460) the response.
[0082] For example, Figure 6 As shown, when the trigger mode is the task trigger mode, the function management platform can send (609) the execution result of the target function to the target interface 112. In response to receiving (610) the execution result of the target function, the target interface 112 can feedback (611) the execution result to the terminal device 120. After receiving (612) the execution result, the terminal device 120 can present the execution result or trigger another processing node.
[0083] To summarize, according to the embodiments of the present disclosure, by specifying at least one calling parameter required for calling a function in the configuration information, the parameter value of the at least one calling parameter is obtained according to the trigger mode that specifically triggers the call to the function, so that the function can support the use requirements of triggering the call using different trigger modes, which is conducive to expanding the application scenarios of the function.
[0084] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 7 A schematic structural block diagram of an apparatus 700 for function calling according to some embodiments of the present disclosure is shown. The apparatus 700 may be implemented in or included in the server 110, for example. Each module / component in the apparatus 700 may be implemented by hardware, software, firmware, or any combination thereof.
[0085] As shown in the figure, the device 700 includes a determination module 710, an acquisition module 720 and a calling module 730. The determination module 710 is configured to determine at least one calling parameter of the target function based on the configuration information of the target function in response to triggering the calling of the target function. The acquisition module 720 is configured to acquire a parameter value of at least one calling parameter based on a trigger mode of the calling, where the trigger mode is one of a plurality of predetermined modes for triggering the calling of the target function. The calling module 730 is configured to call the target function based on the parameter value of at least one calling parameter.
[0086] In some embodiments, the determination module 710 is configured to determine the trigger mode in the following manner: in response to receiving user input, determining a function that matches the user input from at least one function; and in response to determining that the target function matches the user input, determining that the trigger mode is a session trigger mode.
[0087] In some embodiments, the acquisition module 720 is further configured to: present a parameter input interface based on the call trigger mode being a session trigger mode, the parameter input interface including a parameter value input entry for at least one call parameter; and receive a parameter value of at least one call parameter through the parameter value input entry.
[0088] In some embodiments, the configuration information indicates that the clarification mode of at least one calling parameter includes a form, and the configuration information includes structural information of the form; the acquisition module 720 is further configured to: based on the structural information of the form, present a parameter input interface including a form, and the form includes a parameter value input entry for at least one calling parameter.
[0089] In some embodiments, the acquisition module 720 is further configured to: provide prompt information generated based on user input and at least one calling parameter to the target model to obtain the output of the target model; and determine the parameter values of at least part of the calling parameters in at least one calling parameter based on the output of the target model.
[0090] In some embodiments, the acquisition module 720 is further configured to: in response to determining that some of the at least one call parameter lacks parameter values, present structured content for at least one call parameter, the structured content including parameter values determined based on the output of the target model and parameter value input entries for some of the call parameters; and receive parameter values for some of the call parameters through the parameter value input entry for some of the call parameters.
[0091] In some embodiments, the configuration information indicates that the clarification mode of the at least one call parameter comprises a dialog mode.
[0092] In some embodiments, the acquisition module 720 is further configured to: provide prompt information generated based on user input and at least one call parameter to the target model to obtain the output of the target model; based on the output of the target model, obtain a clarification question for at least one call parameter; in response to receiving a clarification reply from the user to the clarification question, provide prompt information generated based on the clarification reply to the target model to obtain the output of the target model; and determine the parameter value of at least one call parameter based on the output of the target model.
[0093] In some embodiments, the acquisition module 720 is further configured to: obtain a first clarification question for a first call parameter among at least one call parameter based on the output of the target model; in response to receiving a first clarification reply from the user to the first clarification question, provide prompt information generated based on the first clarification reply to the target model to obtain the output of the target model; and determine the parameter value of the first call parameter based on the output of the target model.
[0094] In some embodiments, the acquisition module 720 is further configured to: in response to determining that a second call parameter has a missing parameter value in at least one call parameter, provide prompt information generated based on the second call parameter to the target model to obtain the output of the target model; based on the output of the target model, determine a second clarification question for the second call parameter; in response to receiving a second clarification reply from the user to the second clarification question, provide prompt information generated based on the second clarification reply to the target model to obtain the output of the target model; and determine the parameter value of the second call parameter based on the output of the target model.
[0095] In some embodiments, the determination module 710 determines the trigger mode in the following manner: receiving a call request for a target function from a target interface; and in response to the call request, determining that the trigger mode of the call is a task trigger mode.
[0096] In some embodiments, the acquisition module 720 is further configured to: acquire a parameter value of at least one calling parameter from the calling request.
[0097] In some embodiments, the apparatus 700 further includes: a presentation module configured to present a configuration interface of the target function in response to a configuration request for the target function; and receive attribute information of at least one calling parameter through the configuration interface.
[0098] In some embodiments, the apparatus 700 further includes: a receiving module configured to receive a selection of a clarification mode of at least one calling parameter through a configuration interface, where the clarification mode indicates a method of obtaining the at least one calling parameter.
[0099] The units and / or modules included in the device 700 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units and / or modules 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 and / or modules in the device 700 can be implemented at least in part by one or more hardware logic components. As an 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0100] Figure 8 8 is a block diagram of an electronic device 800 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 8 The electronic device 800 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 8 The electronic device 800 shown may include or be implemented as Figure 1 The server 110, or Figure 7 Device 700.
[0101] like Figure 8 As shown, the electronic device 800 is in the form of a general electronic device. The components of the electronic device 800 may include, but are not limited to, one or more processors or processing units 810, a memory 820, a storage device 830, one or more communication units 840, one or more input devices 850, and one or more output devices 860. The processing unit 810 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 820. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 800.
[0102] The electronic device 800 typically includes a plurality of computer storage media. Such media can be any accessible media that can be obtained by the electronic device 800, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 820 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 830 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, which can be used to store information and / or data and can be accessed within the electronic device 800.
[0103] The electronic device 800 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 8 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. The memory 820 may include a computer program product 825 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0104] The communication unit 840 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 800 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 800 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.
[0105] The input device 850 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 860 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 800 may also communicate with one or more external devices (not shown) through the communication unit 840 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 800, or communicate with any device that allows the electronic device 800 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).
[0106] 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.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] The above descriptions of various implementations of the present disclosure are exemplary, 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 market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A method for function calling, comprising: In response to triggering a call to a target function, determining at least one call parameter of the target function based on configuration information of the target function; acquiring a parameter value of the at least one calling parameter based on a trigger mode of the calling, the trigger mode being one of a plurality of predetermined modes for triggering the calling of the target function; as well as The target function is called based on a parameter value of the at least one calling parameter.
2. The method according to claim 1, wherein the trigger mode is determined by: In response to receiving a user input, determining a function that matches the user input from at least one function; and In response to determining that the target function matches the user input, the trigger mode is determined to be a session trigger mode.
3. The method according to claim 2, wherein obtaining the parameter value of the at least one calling parameter comprises: Based on the trigger mode of the call being the session trigger mode, presenting a parameter input interface, the parameter input interface including a parameter value input entry for the at least one call parameter; as well as The parameter value of the at least one calling parameter is received through the parameter value input entry.
4. The method according to claim 3, wherein the configuration information indicates that the clarification mode of the at least one call parameter includes a form, and the configuration information includes structural information of the form; and The parameter input interface includes: Based on the structural information of the form, a parameter input interface including the form is presented, wherein the form includes a parameter value input entry of the at least one calling parameter.
5. The method according to claim 2, wherein obtaining the parameter value of the at least one calling parameter comprises: Providing prompt information generated based on the user input and the at least one calling parameter to the target model to obtain an output of the target model; as well as Based on the output of the target model, the parameter value of at least part of the at least one call parameter is determined.
6. The method according to claim 5, wherein obtaining the parameter value of the at least one calling parameter further comprises: In response to determining that some of the at least one call parameter lack parameter values, presenting structured content for the at least one call parameter, the structured content including the parameter value determined based on the output of the target model and parameter value input entries of the some of the call parameters; as well as The parameter values of the part of the calling parameters are received through the parameter value input entrance of the part of the calling parameters.
7. The method of claim 2, wherein the configuration information indicates that the clarification mode of the at least one call parameter comprises a dialog mode.
8. The method according to claim 7, wherein obtaining the parameter value of the at least one calling parameter comprises: Providing prompt information generated based on the user input and the at least one calling parameter to the target model to obtain an output of the target model; Based on the output of the target model, obtaining a clarification question for the at least one call parameter; In response to receiving a clarification reply from the user to the clarification question, providing prompt information generated based on the clarification reply to the target model to obtain an output of the target model; as well as Based on the output of the target model, a parameter value of the at least one call parameter is determined.
9. The method of claim 7, wherein obtaining a clarification question for the at least one call parameter comprises: Based on the output of the target model, obtaining a first clarification question for a first calling parameter of the at least one calling parameter; and Determining the parameter value of the at least one calling parameter includes: In response to receiving a first clarification reply from the user to the first clarification question, providing prompt information generated based on the first clarification reply to the target model to obtain an output of the target model; as well as Based on the output of the target model, a parameter value of the first calling parameter is determined.
10. The method of claim 9, wherein obtaining a clarification question for the at least one call parameter further comprises: In response to determining that the at least one calling parameter has a second calling parameter with a missing parameter value, providing prompt information generated based on the second calling parameter to the target model to obtain an output of the target model; determining a second clarification question for the second call parameter based on an output of the target model; In response to receiving a second clarification answer from the user to the second clarification question, providing prompt information generated based on the second clarification answer to the target model to obtain an output of the target model; as well as Based on the output of the target model, a parameter value of the second calling parameter is determined.
11. The method according to claim 1, wherein the trigger mode is determined by: receiving a call request for the target function from a target interface; as well as In response to the calling request, determining that the triggering mode of the calling is a task triggering mode.
12. The method according to claim 11, wherein obtaining the parameter value of the at least one calling parameter comprises: A parameter value of the at least one calling parameter is obtained from the calling request.
13. The method according to claim 1, further comprising: In response to a configuration request for the target function, presenting a configuration interface for the target function; as well as Receive attribute information of the at least one calling parameter through the configuration interface.
14. The method according to claim 13, further comprising: A selection of a clarification mode for the at least one calling parameter is received through the configuration interface, the clarification mode indicating a method for obtaining the at least one calling parameter.
15. A device for function calling, comprising: a determination module, configured to determine at least one calling parameter of the target function based on configuration information of the target function in response to triggering a call to the target function; an acquisition module configured to acquire a parameter value of the at least one call parameter based on a trigger mode of the call, wherein the trigger mode is one of a plurality of predetermined modes for triggering the call of the target function; as well as The calling module is configured to call the target function based on a parameter value of the at least one calling parameter.
16. An electronic device, comprising: at least one processing unit; as well as 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 causing the electronic device to perform the method according to any one of claims 1 to 14 when executed by the at least one processing unit.
17. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 14.
18. A computer program product comprising a computer program, wherein the computer program implements the method according to any one of claims 1 to 14 when executed by a processor.
Citation Information
Patent Citations
Method and device for regulating and controlling functions and terminal equipment
CN108279842A
Dialogue interaction processing method and computer readable storage medium
CN113468303A
Data processing method and device
CN113762949A
Function calling method and device, medium, embedded equipment and operating system
CN114281431A
Function calling method and device and device for calling function
CN114740985A
