The Agent Must Choose a Path
The problem
A question-driven visualization system cannot begin with a chart type. It must decide whether to retrieve metadata, inspect the schema, search for definitions, write code, query a database, ask for clarification, or iterate after seeing an unexpected result. The first design choice is therefore architectural: should the system follow a predictable pipeline, or should the model decide dynamically what to do next?
Anthropic’s architectural distinction between workflows and agents provides the useful baseline. Fixed workflows offer predictability and easier testing, while autonomous loops offer flexibility when the number and order of analytical steps cannot be known in advance. OpenAI’s internal data agent shows why the latter can be valuable: open-ended questions require table discovery, contextual interpretation, query execution, and course correction rather than a single text-to-SQL conversion.
The tension is not autonomy versus simplicity in the abstract. It is whether the uncertainty lies in the user’s question, the data environment, or the analytical path. The next session examines how much of that uncertainty can be reduced before the model ever starts reasoning.
Readings