Version: 3.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 def 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
def publish(event: Dict) -> None
Write event to file.