Practical AI
Practical AI

While loops with tool calls

Dan and Chris sit down (again) with Jared Zoneraich, co-founder and CEO of PromptLayer, to discuss how prompt engineering has evolved into context engineering (and while loops with tool calls). Jared shares insights on building flexible AI applications, managing tool calls, testing and versioning pr

Featured Speakers

Jared Zonerijk Guest

Topics Discussed

Episode Summary

Executive Summary: PromptLayer CEO Jared Zonerijk discusses how LLM development has shifted from prompt crafting and rigid workflows toward context engineering and tool-using agents. He argues that teams must test models against their own use cases, monitor agent behavior with practical heuristics, and combine engineering discipline with domain expertise. He recommends starting small and iterating, while noting coding agents are already speeding up both software and nontechnical work.

Main Topics: From prompt engineering to context engineering: Prompting remains central, but larger contexts and more available tools make it important to manage what information reaches a model, how it is structured, and whether it distracts from the task. Zonerijk views the terminology shift as partly substantive and partly a rebranding. Rigid workflows give way to tool-using agents: Earlier systems relied on directed workflows to constrain unpredictable outputs. Better instruction following and structured tool calls now support agent loops that let models choose actions, inspect results, and try again, as in coding agents. Testing agents through evaluation and behavioral signals: Flexible agents are harder to test than fixed prompt chains. Zonerijk recommends combining tests of individual states and full conversations with simple behavioral checks such as tool-call counts, retries, and runtime, rather than waiting for perfect coverage. Domain expertise and engineering must work together: Engineers bring product-building and iteration practices, while domain experts judge whether outputs are useful and appropriate. PromptLayer aims to make versioning, testing, and production logging accessible to both groups. Start small and build in stages: Teams should avoid ambitious, all-at-once pilots. Begin with limited tasks, internal releases, or a single tool call; learn from results and expand. Evaluation can also progress from basic checks to more nuanced quality criteria. Coding agents and broader access to AI engineering: Zonerijk says coding agents have accelerated PromptLayer's development and help with tasks beyond coding, including data processing and research. He expects these capabilities to enable more people to build AI products using their domain knowledge.

Key Arguments: There is no universally best model or prompt for a given application; teams must test options against their own requirements and data. A practical understanding of model behavior is more valuable for builders than exhaustive academic knowledge of neural networks, though useful intuitions about model tendencies help guide testing. Agent tool calls can be tested as individual functions, while the agent loop needs additional checks of intermediate decisions, end-to-end results, and behavior such as retries or unusually high tool use. Perfect evaluation coverage is not a prerequisite for shipping. Useful heuristics can reveal regressions while allowing teams to learn and improve iteratively. Successful AI products depend on the combination of engineering execution and domain-specific judgment about what counts as a good result. Starting with a constrained, achievable use case reduces the risk of stalled pilots and creates evidence for deciding what to build next.

Data Points: Reference to prior interview: March 2024; episode 261 - The hosts note that their previous conversation with Jared Zonerijk took place in March 2024. AI pilot failure figure: 95% - A host refers to recent discussion of a report claiming that 95% of AI pilots fail; the episode does not independently verify the figure. Time to build a documentation agent: About two hours - Zonerijk says he built an agent to review recent code commits and update documentation in roughly two hours. Coding-agent task threshold: Less than two hours - PromptLayer's team rule is to handle tasks that take less than two hours with a coding agent without waiting for separate prioritization. Code-review window for the documentation agent: The previous 24 hours - The agent checks code written by the team over the prior 24 hours to determine whether documentation should change.

Pivotal Quotes: "The only person who can know the answer is you for your own use case by building tests and checking and seeing what works." — Jared Zonerijk: He explains why model selection and application design must be validated empirically for each use case. "If anything, if you're trying to make a perfect test for your agents, you're probably never going to ship." — Jared Zonerijk: He advocates practical evaluation heuristics instead of delaying deployment in pursuit of complete test coverage. "The engineers often know how to ship a product and how to do agile or iterative design, and the non-technical understand what makes it good." — Jared Zonerijk: He summarizes why AI product development benefits from collaboration between engineers and domain experts.

Implications: AI teams should treat model behavior as something to test, not assume; instrument agent loops and iterate from small deployments. Pair engineering skills with domain judgment, and use coding agents to broaden who can build useful AI workflows.

🔓 Sign Up for Unlimited Episode Search

About Practical AI

View all episodes from Practical AI