notice

This is documentation for Rasa Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).

Version: 2.x

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.