controller.http_data_formatter¶
This file contains methods to format data for HTTP requests.
Module Contents¶
Classes¶
Functions¶
|
Creates a list of buttons for each agent's option. |
|
Creates formatted message with movie information and movie image |
Attributes¶
- controller.http_data_formatter.HTTP_OBJECT_MESSAGE¶
- controller.http_data_formatter.SHORT_ANSWER¶
- class controller.http_data_formatter.Message¶
- text: str¶
- intent: str¶
- attachments: List[Attachment]¶
- controller.http_data_formatter.get_buttons_attachment(user_options: moviebot.core.core_types.DialogueOptions) Attachment¶
Creates a list of buttons for each agent’s option.
- Parameters:
user_options – Agent’s options
- Returns:
List of buttons objects.
- controller.http_data_formatter.get_movie_message_data(info: Dict[str, Any]) Tuple[str, Attachment]¶
Creates formatted message with movie information and movie image attachment.
- Parameters:
info – Movie information.
- Returns:
Formatted message with movie information and movie image attachment.