def get_bot_conversation()

in src/lambda_functions/bot_tester/bot_conversations.py [0:0]


def get_bot_conversation(bot_logical_name="BankerBot", locale="en_US"):
    """Get Bot Conversation Definition"""
    bot = None
    if bot_logical_name == "BankerBot":
        bot = BankerBot(locale=locale)

    if not bot:
        raise ValueError(f"unknown bot logical name: {bot_logical_name}")

    conversations = bot.get_bot_conversations()
    conversation = random.choice(conversations)  # nosec

    return conversation