nemoguardrails.actions.core

View as Markdown

Module Contents

Functions

NameDescription
create_eventCreates an event for the bot based on the provided data.

Data

log

API

nemoguardrails.actions.core.create_event(
event: dict,
context: typing.Optional[dict] = None
)
async

Creates an event for the bot based on the provided data.

Parameters:

event
dict

The input event data.

context
Optional[dict]Defaults to None

The context for the action. Defaults to None.

Returns:

An action result containing the created event.

nemoguardrails.actions.core.log = logging.getLogger(__name__)