When the Right Model Turns an Agent from “Trying” to “Doing”
How a Model Swap Changed Reliability, Coordination, and UX in Our Analytics Agent

We’ve been building a product at Polynomial AI that relies and leans heavily on agentic behaviour. It isn’t just a chat interface that paraphrases answers. It performs multi-step reasoning, calls tools, executes SQL, derives and prepares insights, and learns from corrections. It kinda lives beyond its output.
[Product Context]: It’s an Agent powered chat with data platform, which helps businesses analyse/visualise their data using natural language. All a business has to do is a simple 5 step onboarding process, involving connecting your database securely, which roughly takes 5-10 mins, and then you start chatting with your data. If you’re interested to know more, let’s chat separately.
Anyways!
Recently, I swapped the core model that powered an instance of it, which hadn’t been performing great lately. I replaced Amazon’s Nova Pro with an OpenAI model. The difference wasn’t subtle. It was the kind of improvement that makes you rethink where the real bottleneck in agentic systems lives.
This post breaks down what the agent does, what broke with Nova Pro, what improved with OpenAI, and what I think this implies for builders working at the layer between LLMs and software systems.
The Agent’s Actual Job
The agent operates inside a workflow that resembles a data analyst with a memory and a terminal. At a high level, it does six things:
Assimilate Context: User conversation history, instructions, and relevant schema
Generate SQL: Based on intent, data layout, and constraints
Sanitise: Ensures no DDL or DML slips through to the executor:
Execute: Uses a separate SQL execution tool
Probe: If needed, call specific probing tools, e.g., distinct values
Synthesize Insights: Package the result into textual insights and a graph payload
Learn: Store small adjustments if users correct or override the result
It’s not a single shot. It’s stateful, procedural, and requires the model to obey a contract with tools.
The Problem With Nova Pro Wasn’t Intelligence, It Was Discipline
When I first wired Nova Pro into the system, I expected the usual warm-up period: prompt adjustments, minor format tuning, clarifying instructions. What I actually wrestled with were deeper structural issues that broke the orchestration layer itself. Adjusting more felt like punching into the wall.
Here were the main failure modes I noted:
1. Response Structure Non-Compliance
The model frequently ignored the required output schema. When it was expected to produce structured tool calls and messages, it would instead produce free-form text, sometimes some XML tags. This sounds like a small issue until you realize that the Agent runs into an infinite loop, trying to correct its response until it times out, that too at a massive token usage.
It’s like a robotic arm that sometimes decides a brushstroke is more meaningful than picking up a bolt.
2. Tool Call Skipping or Collapse
In several runs, the model chose to skip designated tools entirely. For example, instead of:
intent → generate_sql → execute → probe → insight
Nova Pro would do:
intent → hallucinate SQL (mostly incorrect)→ insight
The agent absorbed steps that were outsourced to deterministic operations. It treated tools as conveniences instead of boundaries. This breaks correctness, safety, and interpretability.
3. Context Loss
Multi-turn state and schema context were dropped often enough to matter. Conversations that required perspective across turns were handled as if they were isolated single messages. The SQL was often valid for the wrong table or the wrong scope because the model lost the trail.
4. Tone and Presentation Degradation
Even after specifying tone, persona, and phrasing, Nova Pro defaulted back to plain, neutral outputs. UX matters more than engineers admit in analytics products. If the persona collapses, the product feels brittle even when technically correct.
5. PII Placeholder Violations
Despite explicit and repeated instructions not to modify placeholders such as <PII_NAME> or <PII_PHONE>, Nova Pro occasionally replaced them with synthetic values. This is not just wrong behavior, it’s disqualifying for enterprise deployments.
To summarize: the model was capable, but orchestration unraveled that it couldn’t maintain structural discipline across steps.
The OpenAI Model Dropped In Like It Actually Understood The Contract
Then I switched to the OpenAI model. The difference wasn’t only that it produced “better looking answers.” The difference was that it behaved like it understood that tools, schemas, placeholders, and instructions exist for a reason.
Tool Grammar Fidelity
Tool calls were:
correct
ordered
complete
well-formatted
It never skipped the execution tool just because it felt confident. It respected abstraction boundaries. This is the single most important trait for agents: listening is more valuable than knowing.
State Cohesion
Conversation state, schema context, and prior system messages were retained. When the user asked a follow-up question, it built on the earlier output rather than resetting mentally.
Statefulness transforms an agent from a vending machine into a collaborator.
Self-Correction Over Improvisation
If a query needed distinct probing or summarization, the model didn’t hand-wave or guess. It triggered the correct tools. In failure scenarios, it self-corrected instead of rerouting around protocol.
Tone Adherence
When instructed to adopt a certain style of output, it did so consistently. Small, but important. Good UX is not about decoration, it’s about alignment.
PII Placeholder Respect
This sounded unglamorous until I saw the contrast. OpenAI models never touched sensitive placeholders. The chain of custody stayed intact. Compliance and correctness are counterparts, or cousins maybe!
What This Suggests About Agentic Model Requirements
After building systems like this, I’m convinced that while we keep evaluating models on:
accuracy
creativity
coding ability
reasoning
latency
price
For agents, the criteria shifts toward:
structural obedience
tool discipline
protocol adherence
state memory
persona retention
safety compliance
execution determinism
An agent doesn’t need to be inventive, it needs to be reliable.
Chat models optimise for conversation. Agent models optimise for cooperation.
We’ve been asking chat models to pretend to be agents. Some do it gracefully. Others do it poetically. Some refuse.
The Broader Point: Intelligence Is Not Enough
I used to think better reasoning models would automatically translate into better agents. They don’t.
Reasoning is table stakes. Coordination is the real bottleneck.
Agents live at the intersection of three constraints:
correctness
composability
controllability
A model that becomes too creative breaks correctness.
A model that becomes too literal breaks UX.
A model that becomes too clever breaks protocol.
Finding the balance is less about IQ and more about temperament.
Where This Leaves Me Going Forward
After switching, I’m:
reducing prompt complexity (less glue)
increasing tool surface area (more delegation)
experimenting with micro-memory for corrections
tracking turn-level agent execution metrics instead of just output correctness
The migration was not just a model swap. It was a hint about how much future infrastructure will depend on models that are good teammates, not just good writers.
Closing
The product I’m building taught me this unintentionally: the frontier of agents isn’t about making the model smarter, it’s about making the system more structured. And structure demands models that cooperate.
When I changed the model, I didn’t upgrade intelligence. I upgraded compliance.
That alone changed the success curve of the agent.
Thanks for reading.
Godspeed. Dot!
About the author
A dumb AI Engineer.
Comments
Join the discussionNo comments yet. Be the first to comment.



