ChatBot.get_config()

Return a copy of the full chatbot configuration dictionary.

Usage

Source

ChatBot.get_config()

The returned dictionary includes all settings applied through the fluent API (model, temperature, persona, tools, etc.). Because it is a shallow copy, mutations do not affect the chatbot’s internal state.

Returns

dict[str, Any]
A copy of the configuration dictionary with keys such as "model", "temperature", "persona", "tools", "verbose", and others.

Examples

import talk_box as tb

bot = tb.ChatBot().model("gpt-4").temperature(0.2)
config = bot.get_config()
print(config["model"], config["temperature"])
gpt-4 0.2