base_notifier

Base notifier interface for Pipecat.

class pipecat.utils.sync.base_notifier.BaseNotifier[source]

Bases: ABC

Abstract base class for notification mechanisms.

Provides a standard interface for implementing notification and waiting patterns used for event coordination and signaling between components in the Pipecat framework.

abstractmethod async notify()[source]

Send a notification signal.

Implementations should trigger any waiting coroutines or processes that are blocked on this notifier.

abstractmethod async wait()[source]

Wait for a notification signal.

Implementations should block until a notification is received from the corresponding notify() call.