import talk_box as tb
bot = tb.ChatBot().avoid(["medical_advice", "financial_planning"])
bot.get_avoid_topics()['medical_advice', 'financial_planning']
Configure topics or behaviors the chatbot must refuse to engage with.
Usage
The avoid list feeds into both the system prompt (instructing the LLM to decline requests on these topics) and the autotest_avoid_topics() testing framework that validates compliance.
avoid_list: list[str]["medical_advice", "legal_advice"]).
ChatBot