Signals
Signals for plugin app.
- smarter.apps.plugin.signals.broker_ready = <django.dispatch.dispatcher.Signal object>
Signal sent when a broker achieves a ready state.
- Parameters:
broker – The broker instance that is ready.
Example:
broker_ready.send(sender=self.__class__, broker=self)
- smarter.apps.plugin.signals.plugin_called = <django.dispatch.dispatcher.Signal object>
Signal sent when a plugin is called.
- Parameters:
plugin – The plugin instance that was called.
inquiry_type – The type of inquiry made to the plugin.
Example:
plugin_called.send( sender=self.tool_call_fetch_plugin_response, plugin=self, inquiry_type=inquiry_type, )
- smarter.apps.plugin.signals.plugin_cloned = <django.dispatch.dispatcher.Signal object>
Signal sent when a plugin is cloned.
- Parameters:
plugin – The plugin instance that was cloned.
Example:
plugin_cloned.send(sender=self.__class__, plugin=self)
- smarter.apps.plugin.signals.plugin_created = <django.dispatch.dispatcher.Signal object>
Signal sent when a plugin is created.
- Parameters:
plugin – The plugin instance that was created.
Example:
plugin_created.send(sender=self.__class__, plugin=self)
- smarter.apps.plugin.signals.plugin_deleted = <django.dispatch.dispatcher.Signal object>
Signal sent when a plugin is deleted.
- Parameters:
plugin – The plugin instance that was deleted.
plugin_meta – The plugin meta information.
plugin_name – The name of the plugin.
Example:
plugin_deleted.send( sender=self.__class__, plugin=self, plugin_meta=self.plugin_meta, plugin_name=plugin_name )
- smarter.apps.plugin.signals.plugin_deleting = <django.dispatch.dispatcher.Signal object>
Signal sent before a plugin is deleted.
- Parameters:
plugin – The plugin instance that is about to be deleted.
plugin_meta – The plugin meta information.
Example:
plugin_deleting.send(sender=self.__class__, plugin=self, plugin_meta=self.plugin_meta)
- smarter.apps.plugin.signals.plugin_ready = <django.dispatch.dispatcher.Signal object>
Signal sent when a plugin achieves a ready state.
- Parameters:
plugin – The plugin instance that is ready.
Example:
plugin_ready.send(sender=self.__class__, plugin=self)
- smarter.apps.plugin.signals.plugin_responded = <django.dispatch.dispatcher.Signal object>
Signal sent when a plugin responds.
- Parameters:
plugin – The plugin instance that responded.
inquiry_type – The type of inquiry made to the plugin.
response – The response returned by the plugin.
Example:
plugin_responded.send( sender=self.tool_call_fetch_plugin_response, plugin=self, inquiry_type=inquiry_type, response=retval, )
- smarter.apps.plugin.signals.plugin_selected = <django.dispatch.dispatcher.Signal object>
Signal sent when a plugin is selected for use. That is, when the Plugin selection logic results in this Plugin being included in the set of Plugins to be presented to the LLM for a given text completion request.
- Parameters:
plugin – The plugin instance that was selected.
user – The user who selected the plugin (optional).
input_text – The input text provided to the plugin (optional).
search_term – The search term associated with the plugin selection (optional).
Example:
plugin_selected.send( sender=self.selected, plugin=self, user=self.user_profile.cached_user if self.user_profile else None, input_text=input_text, search_term=search_term, )
- smarter.apps.plugin.signals.plugin_updated = <django.dispatch.dispatcher.Signal object>
Signal sent when a plugin is updated.
Example:
plugin_updated.send(sender=self.__class__, plugin=self)