ChatBot.get_avoid_topics()
Get the list of topics or behaviors this chatbot is configured to avoid.
Usage
ChatBot.get_avoid_topics()This method provides access to the original avoid topics configuration, which is essential for testing frameworks that need to validate whether the bot properly adheres to its avoid topics constraints.
Returns
list[str]- A copy of the avoid topics list to prevent external modification
Examples
>>> bot = ChatBot().avoid(["medical_advice", "financial_planning"])
>>> topics = bot.get_avoid_topics()
>>> print(topics)
['medical_advice', 'financial_planning']