notice
This is documentation for Rasa Open Source Documentation v2.0.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2.3.x).
rasa.server
ensure_loaded_agent
Wraps a request handler ensuring there is a loaded and usable agent.
Require the agent to have a loaded Core model if require_core_is_ready
is
True
.
requires_auth
Wraps a request handler with token authentication.
event_verbosity_parameter
Create EventVerbosity
object using request params if present.
get_tracker
Get tracker object from MessageProcessor
.
validate_request_body
Check if request
has a body.
authenticate
Callback for authentication failed.
create_ssl_context
Create an SSL context if a proper certificate is passed.
Arguments:
ssl_certificate
- path to the SSL client certificatessl_keyfile
- path to the SSL key filessl_ca_file
- path to the SSL CA file for verification (optional)ssl_password
- SSL private key password (optional)
Returns:
SSL context if a valid certificate chain can be loaded, None
otherwise.
configure_cors
Configure CORS origins for the given app.
add_root_route
Add '/' route to return hello.
create_app
Class representing a Rasa HTTP server.