Callback Function API
The CallbackFunctionExecutor provides a mechanism to trigger a function from its
event dictionary, then execute a callback function.
CallbackFunctionExecutor Class
class CallbackFunctionExecutor:
event_dict: dict[str, Callable]
def callback_function(
self,
trigger_function_name: str,
callback_function: Callable,
callback_function_param: Optional[Union[dict, list]] = None,
callback_param_method: str = "kwargs",
**kwargs
) -> Any: ...
callback_function()
Execute a trigger function from event_dict, then call the callback function.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
|
Name of function in |
|
|
Callback function to execute after the trigger |
|
|
Parameters for callback (dict for kwargs, list for args) |
|
|
|
|
— |
Parameters passed to the trigger function |
Returns: Return value of the trigger function.
Raises: CallbackExecutorException — If trigger function not found or invalid
param method.
Available Trigger Functions
Trigger Name |
Function |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Global instance: callback_executor