ChatBot.verbose()

Enable or disable verbose diagnostic output during chat interactions.

Usage

Source

ChatBot.verbose(enabled=True)

When verbose mode is active the chatbot prints additional diagnostic information (e.g., prompt construction details, model parameters) to stdout during each call to chat() or show().

Parameters

enabled: bool = True
Set to True to turn on verbose output, False to silence it. Defaults to True.

Returns

ChatBot
The same instance for method chaining.

Examples

import talk_box as tb

bot = tb.ChatBot().verbose()
bot.get_config()["verbose"]
True