griptape-ai / griptape

Modular Python framework for AI agents and workflows with chain-of-thought reasoning, tools, and memory.
https://www.griptape.ai
Apache License 2.0
1.95k stars 160 forks source link

Signal `EventListener` to drop an event from the `handler` method #1130

Open vachillo opened 3 weeks ago

vachillo commented 3 weeks ago

Is your feature request related to a problem? Please describe. In my event handler, I want to drop events from being processed by the listener driver. right now, returning None from the handler results in the event object getting processed, and returning {} results in an empty dict getting processed.

Describe the solution you'd like A way to signal to the event listener that i dont want a particular event to be processed by the driver

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.