Babar Hayat
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Babar
Contact Babar, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck RackActions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Articles
The Hidden Math: Why "Cheapest Model" Doesn't Mean Cheapest Execution
You're building an AI agent. Smart cost strategy: route to GPT-4o when you need reasoning, Haiku for simple classification, Groq when it's available and fast. In your head, the math is simple: pick the cheapest model per task. In practice, you ship code and never really know if it worked. Here's the gap: cheapest model ≠ cheapest execution. A single agent run might span multiple model calls. One task uses Anthropic's Sonnet ($3 / 1M input, $15 / 1M output).
Your Agent Returned 200 and Did Nothing: Detecting Silent Failures with Token Counts
Your agent returned HTTP 200, zero errors in the logs, and then did nothing. The failure wasn't loud — it was silent. This happens more than you'd think. An agent invokes a model, gets back a response, processes it, returns success. But somewhere in that flow the actual output — the thing that was supposed to happen — vanished. No exception. No timeout. Just an empty response where a decision or action should have been.
Delegation Masking: Why Your LangChain Callbacks Lie About Sub-Agent Failures
You delegate a task from Agent A to Agent B in LangChain. Agent B fails. Agent A's callback chain fires 'success' anyway. This is the observability blind spot most builders miss in agentic workflows: delegation masking. A sub-agent fails silently, but the parent agent's callback layer never knows because it only watches the delegation call itself, not what the delegated agent actually did. Let's walk the mechanism.
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Babar
Contact Babar, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack