Understanding Modes in Toolpack SDK
An AI agent that can read files, run shell commands, and hit external APIs is useful. An AI agent that does all of that when you only asked it to answer a question is a problem.
Modes are how Toolpack SDK draws that line. A mode defines three things: which tools the AI can access, what system prompt shapes its behavior, and whether the workflow engine (planning, step execution, retries) is active. You set the mode once at init or switch it at runtime, and the SDK enforces the constraints on every request.