Function Invocation Parameter Handling Across Multiple Trigger Modes
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing technologies face challenges in efficiently invoking functions across multiple invocation methods due to differing invocation logic and parameter acquisition requirements, limiting the versatility of function applications in various scenarios.
Innovation Solution
A method and apparatus that determine and obtain invocation parameters based on configuration information and trigger modes for a function, enabling invocation across multiple modes by specifying parameter values for different trigger scenarios.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If multiple invocation methods are supported with different invocation logic, then the versatility of function applications is improved, but the complexity of parameter acquisition processes increases
Solution Approach 1:
The patent implements a universal parameter acquisition mechanism that handles multiple invocation methods (voice, text, gesture, button click) through a unified interface. The system defines standard parameter types (location, time, contact info, etc.) that can be acquired regardless of the trigger mode, making the function invocation system multi-functional and adaptable to different scenarios without increasing complexity for each new invocation method
Solution Approach 2:
The patent segments the parameter acquisition process into distinct, independent modules: trigger mode detection, parameter type identification, and parameter value acquisition. Each invocation method has its own dedicated acquisition logic that follows the same structured approach. This segmentation allows the system to support multiple invocation methods while keeping each method's complexity manageable and isolated
2Measurement precision
If invocation parameters are acquired based on different trigger modes, then the precision of parameter acquisition is improved, but the complexity of invocation logic increases
Solution Approach 1:
The patent applies local quality by optimizing parameter acquisition for each specific trigger mode while maintaining a unified overall structure. Each invocation method (voice, text, gesture, button) has tailored acquisition logic suited to its characteristics -例如, voice invocation uses speech recognition, while button clicks use direct event detection. This allows precise parameter acquisition for each mode without requiring the entire system to be complex
Solution Approach 2:
The patent changes the parameter representation format based on the trigger mode while maintaining consistent data structures. Different trigger modes produce different types of input data (audio signals, text strings, gesture coordinates, button identifiers), and the system transforms these into a unified parameter format. This parameter transformation approach enables precise acquisition adapted to each mode's characteristics while keeping the invocation logic manageable through standardization
Data Source
AI summary
Embodiments of the disclosure provide a method, apparatus, device and storage medium for function invocation. The method includes: determining, in response to invocation of a first function being triggered, at least one invocation parameter of the first function based on configuration information of the first function; obtaining a parameter value of the at least one invocation parameter based on a trigger mode of the invocation, the trigger mode being one of a plurality of predetermined modes for triggering invocation of the first function; and invoking the first function based on the parameter value of the at least one invocation parameter. In this way, the function is enabled to support invocation through different trigger modes, thereby meeting different usage requirements.


