notice

This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.1.x).

Version: Master/Unreleased

rasa.core.brokers.file

FileEventBroker Objects

class FileEventBroker(EventBroker)

Log events to a file in json format.

There will be one event per line and each event is stored as json.

from_endpoint_config

| @classmethod
| async from_endpoint_config(cls, broker_config: Optional["EndpointConfig"], event_loop: Optional[AbstractEventLoop] = None) -> Optional["FileEventBroker"]

Creates broker. See the parent class for more information.

publish

| publish(event: Dict) -> None

Write event to file.