rasa_sdk v0.0.1 RasaSdk.Actions.Context
Link to this section Summary
Functions
Return the conversation_id of the conversation
Return the currently set values of the slots
Get entity values found for the passed entity name in latest msg.
Retrieves the value of a slot.
Get the name of the input_channel of the latest UserUttered event
Link to this section Types
Specs
t() :: %RasaSdk.Actions.Context{ error: RasaSdk.Model.ResponseRejected.t() | nil, request: RasaSdk.Model.Request.t(), response: RasaSdk.Model.ResponseOk.t() }
Link to this section Functions
Link to this function
add_event(context, event)
Link to this function
conversation_id(context)
Return the conversation_id of the conversation
Link to this function
current_slot_values(context)
Return the currently set values of the slots
Link to this function
get_latest_entities(context, entity_type, opts \\ [])
Get entity values found for the passed entity name in latest msg.
If you are only interested in the first entity of a given type use
get_latest_entities(tracker, "my_entity_name") |> List.first()
.
If no entity is found nil
is the default result.
Link to this function
get_slot(context, key)
Retrieves the value of a slot.
Link to this function
latest_event_time(context)
Link to this function
latest_input_channel(context)
Get the name of the input_channel of the latest UserUttered event
Link to this function
new(request)
Link to this function
set_active_form(context, name, validate)
Link to this function
set_error(context, action_name, error)
Link to this function
set_slot(context, key, value)
Link to this function