platypush/platypush/message
Fabio Manganiello e982c02524
Set a plugin argument on AssistantEvents besides assistant.
`assistant` contains the assistant plugin object that triggered the
event, but you can't create event hook conditions on attributes that are
plugins.

The event should also store a `plugin` attribute which contains the
unique plugin name, so hooks like these can be built:

```
from platypush import hook
from platypush.events.assistant import ConversationStartEvent

@when(ConversationStartEvent, plugin="assistant.google")
def on_google_conversation_start():
  ...
```

It wouldn't be possible to construct a hook condition like the one above
on the plugin object reported on the `assistant` attribute.
2024-05-31 19:29:50 +02:00
..
event Set a plugin argument on AssistantEvents besides assistant. 2024-05-31 19:29:50 +02:00
request [#366] Context variables should be dynamically assigned through locals() instead of exec(). 2024-02-26 21:29:35 +01:00
response [#398] Removed custom Response objects from Tensorflow and response docs generation logic. 2024-05-15 09:55:58 +02:00
__init__.py [#398] Refactored esp plugin. 2024-05-15 01:29:45 +02:00