Tap into CrewAI events to build custom integrations and monitoring
BaseEventListener
setup_listeners
methodmy_custom_listener.py
, define your listener class and create an instance:__init__.py
, import the listener instances to ensure they’re loaded:BaseEvent
and include:
CrewKickoffCompletedEvent
includes crew_name
and output
fields.
scoped_handlers
context manager: