Structured queries (often JSON) replace improvisation; Parlant is one implementation story.
Here’s the core problem with current techniques that this new approach solves.
We have enough research to conclude that LLMs often struggle to assess what truly matters in a particular stage of a long, multi-turn conversation.
For instance, when you give Agents a 2,000-word system prompt filled with policies, tone rules, and behavioral dos and don’ts, you expect them to follow it word by word.
But here’s what actually happens:
And finally, the LLM that was supposed to “never promise a refund” is happily offering one.
This means they can easily ignore crucial rules (stated initially) halfway through the process.
We expect techniques like Chain-of-Thought will help.
But even with methods like CoT, reasoning remains free-form, i.e., the model “thinks aloud” but it has limited domain-specific control.
That’s the exact problem the new technique, called Attentive Reasoning Queries (ARQs), solves.
Instead of letting LLMs reason freely, ARQs guide them through explicit, domain-specific questions.
Essentially, each reasoning step is encoded as a targeted query inside a JSON schema.
For example, before making a recommendation or deciding on a tool call, the LLM is prompted to fill structured keys like:
This type of query does two things:
By the time the LLM generates the final response, it’s already walked through a sequence of controlled reasoning steps, which did not involve any free text exploration (unlike techniques like CoT or ToT).
Here’s the success rate across 87 test scenarios:
This approach is actually implemented in Parlant, a recently trending open-source framework to build instruction-following Agents.
ARQs are integrated into three key modules:
The core insight applies regardless of what tools you use:
When you make reasoning explicit, measurable, and domain-aware, LLMs stop improvising and start reasoning with intention. Free-form thinking sounds powerful, but in high-stakes or multi-turn scenarios, structure always wins.
ARQ solves the problem of uncontrolled reasoning by adding structure.
But there’s another challenge: many aligned LLMs stop exploring alternative answers altogether.
Even with good reasoning steps, the model may collapse into the same safe, typical responses.
To regain that lost diversity without retraining the model, we use Verbalized Sampling.