import talk_box as tb
bot = tb.ChatBot().persona("a senior Python developer")
bot.get_config()["persona"]'a senior Python developer'
Set a persona that shapes the chatbot’s tone and behavior.
Usage
The persona string becomes the opening identity statement in the constructed system prompt (e.g., “You are {persona_description}”). It occupies the highest-attention primacy position, so it strongly influences all subsequent responses.
persona_description: str"a helpful assistant") to a multi-sentence character brief.
ChatBot