mindmeld.components.custom_action module¶
-
class
mindmeld.components.custom_action.
CustomAction
(name: str, config: dict, merge: bool = True)[source]¶ Bases:
object
- This class allows the client to send Request and Responder to another server and return the
- the directives and frame in the response.
-
invoke
(request, responder, async_mode=False)[source]¶ Invoke the custom action with Request and Responder and return True if the action is executed successfully, False otherwise. Upon successful execution, we update the Frame and Directives of the Responder object.
Parameters: - request (Request) --
- responder (DialogueResponder) --
- async_mode (bool) --
Returns: (bool)
-
invoke_async
(request, responder)[source]¶ Asynchronously invoke the custom action with Request and Responder and return True if the action is executed successfully, False otherwise. Upon successful execution, we update the Frame and Directives of the Responder object.
Parameters: - request (Request) --
- responder (DialogueResponder) --
Returns: (bool)
-
class
mindmeld.components.custom_action.
CustomActionSequence
(actions, config, merge=True)[source]¶ Bases:
object
This class implements a sequence of custom actions