notice
This is unreleased documentation for Rasa Documentation Main/Unreleased version.
For the latest released documentation, see the latest version (3.x).
Version: Main/Unreleased
rasa.core.channels.console
print_buttons
def print_buttons(
message: Dict[Text, Any],
is_latest_message: bool = False,
color: Text = rasa.shared.utils.io.bcolors.OKBLUE
) -> Optional[questionary.Question]
Create CLI buttons from message data.
send_message_receive_block
async def send_message_receive_block(server_url: Text, auth_token: Text,
sender_id: Text,
message: Text) -> List[Dict[Text, Any]]
Posts message and returns response.
record_messages
async def record_messages(sender_id: Text,
server_url: Text = DEFAULT_SERVER_URL,
auth_token: Text = "",
max_message_limit: Optional[int] = None,
use_response_stream: bool = True,
request_timeout: Optional[int] = None) -> int
Read messages from the command line and print bot responses.