notice
This is unreleased documentation for Rasa Documentation Main/Unreleased version.
For the latest released documentation, see the latest version (3.x).
rasa.core.nlg.callback
nlg_response_format_spec
Expected response schema for an NLG endpoint.
Used for validation of the response returned from the NLG endpoint.
nlg_request_format
Create the json body for the NLG json body for the request.
CallbackNaturalLanguageGenerator Objects
Generate bot utterances by using a remote endpoint for the generation.
The generator will call the endpoint for each message it wants to generate. The endpoint needs to respond with a properly formatted json. The generator will use this message to create a response for the bot.
generate
Retrieve a named response from the domain using an endpoint.
validate_response
Validate the NLG response. Raises exception on failure.
fetch_response_id
Fetch the response id for the utter action.
The response id is retrieved from the domain responses for the utter action given the tracker state and channel.