Braj Kishore
JourneyVaultML FoundationsAI PM GuideAgenticNewsWork With MeMentorshipPulseNow
Say hi

Hiring · Building · Investing

Have a system — or a team —that needs to scale?

info@avyxon.ai

Usually replies within a day · track record here

JourneyVaultML FoundationsAI PM GuideAgenticNewsWork With MeMentorshipPulseNow
LinkedInXYouTubeSubstackInstagramThreadsFacebookDiscordGitHubTopmate
© 2026 Braj Kishore · Bengaluru, INThink Big · Start Small · Scale Fast
ML Foundations
15Track 4 · The bridge to GenAI

From model to agent

A model is a function; an agent is a loop around it with tools, memory and a stopping condition — and every fundamental from Track 2 decides whether it works.

40 min1 interactive5 sources

An LLM cannot check today's stock price, and it cannot reliably multiply two ten-digit numbers. Give it a search tool and a calculator and both problems disappear — not because the model got smarter, but because the system around it got better designed.

The intuition

The model is a very well-read colleague who has been locked in a room since their training data ended, with no phone, no calendar and no ability to check anything. An agent is that colleague with a laptop, an expenses card and a note on the desk saying what they're trying to achieve.

Unlearn this

That agentic means autonomous. In production, the systems that work are mostly constrained loops with a small set of tools, hard step limits, and a human gate before anything irreversible. Anthropic's own engineering guidance is explicit that most 'agent' use cases are better served by a fixed workflow, and choosing the simpler pattern is the senior move.

01The loop: model, tools, memory, stopping condition

A model maps an input to an output. An agent wraps that in a loop: given a goal, decide the next action, execute it via a tool, observe the result, and decide again — until the goal is met or a limit is hit. The ReAct pattern named the interleaving of reasoning and acting, and it's still the backbone of most implementations.

Four components. Tools give it hands — search, code execution, database queries, API calls — and each one is a function signature the model emits a structured call against. Memory gives it continuity, from the conversation in the context window to retrieved documents to a scratchpad it writes to itself. The stopping condition is the part people forget, and it's what turns an experiment into a system: a step budget, a cost budget, a confidence threshold, or a human gate.

The failure modes are systems failure modes rather than model ones: loops that never terminate, compounding errors where step three builds on a wrong step two, cost blowouts from unbounded tool calls, and tool outputs that the model trusts more than it should.

Building Effective AI AgentsAnthropicReAct: Synergizing Reasoning and Acting in Language ModelsYao et al., ICLR · 2022Toolformer: Language Models Can Teach Themselves to Use ToolsSchick et al., NeurIPS · 2023

02Where every fundamental resurfaces

This is the point of having done the pre-series, so it's worth making the mapping explicit.

Loss functions become evaluation design: you still have to define what 'correct' means and measure it, except now the output is free text and the metric is an eval suite, an LLM judge, or a task success rate. The discipline is identical and the difficulty is higher.

The precision/recall trade-off becomes the autonomy decision. How confident must the agent be before it acts without a human? That's a threshold, set from the cost of each error type, exactly as in Lesson 8 — with the difference that the cost of a false positive might be a refunded order.

Generalisation becomes robustness: your agent was built against the prompts you thought of, and users will send it something else. Overfitting to a demo set is the same mistake in a new costume.

Inference cost becomes unit economics, and now compounds — an agent making eight tool calls per request pays for eight round-trips plus a growing context each time. Understanding that tokens are the unit of cost is what lets you predict the bill before you ship.

And drift still applies. The model version changes underneath you, the tools change their outputs, users change their behaviour. A deployed agent needs the same monitoring discipline as a deployed classifier, for the same reason.

Try it

Where each fundamental resurfaces

Same problems, new vocabulary. Click a row to see what goes wrong when it's skipped.

03What actually changed, and what didn't

What changed: you can now get a useful system without training anything. The default build is a pre-trained model shaped by prompts, retrieval and tools, which moves the work from data collection and training to specification, evaluation and orchestration.

What didn't: data still shapes parameters, training still minimises a loss, evaluation still decides whether the thing is useful, and inference is still the cost you pay forever. A model that hallucinates is a model whose training objective never rewarded saying 'I don't know'. A retrieval system that misses is a nearest-neighbour search with a recall problem. An agent that loops is an unbounded optimisation.

Which is the argument for this whole pre-series: the abstractions on top get replaced every eighteen months, and the layer underneath has been stable since the 1980s. Learn the layer that doesn't move.

Building A Generative AI PlatformChip HuyenPractical Deep Learning for Codersfast.ai
The vocabulary, defined once
Agent
A loop around a model: decide, act via a tool, observe, repeat, until a goal or a limit. Not the same as autonomous.
Tool / function calling
The model emits a structured call your code executes. How it reaches anything outside its weights.
ReAct
Interleaving reasoning traces with actions so the model can plan, act and revise. The backbone pattern for agents.
Stopping condition
Step, cost or confidence budget, or a human gate. What separates a system from a demo.
Workflow vs agent
A fixed sequence of model calls vs a model choosing its own path. Prefer the workflow whenever it fits.

The lab

Everything above, with the dials exposed. Break it deliberately — the failure modes are where the understanding is.

Try it

Where each fundamental resurfaces

Same problems, new vocabulary. Click a row to see what goes wrong when it's skipped.

What they actually ask

From model to agent — the interview questions

QWhen would you build an agent rather than a fixed workflow?Answer it out loud first, then open this

Only when the sequence of steps genuinely can't be determined up front — open-ended research, debugging, anything where the next action depends on what the last one returned. If I can enumerate the steps, I write the workflow: it's cheaper, deterministic, far easier to evaluate, and it fails in ways I can debug. I'd also insist on a step budget, a cost cap and a human gate before anything irreversible.

What they're listening for
Interviewers are listening for someone who will not build an agent by default. Reaching for the constrained pattern is the signal.

QHow do you evaluate an agent?Answer it out loud first, then open this

Task success rate on a fixed suite of realistic scenarios, first — end-to-end, not per-step. Then the operational metrics the loop introduces: steps per task, cost per task, tool error rate, and how often it hits the step limit. Then trajectory-level review of failures to see whether the model chose wrong tools or the tools returned bad data. It's the same discipline as evaluating a classifier, with a harder-to-score output, so I'd build the eval set before the agent.

Before you move on

Recall beats re-reading, every time. Answer before you flip.

From model to agent · self-test1 / 3

What's the difference between a model and an agent?

Go to the primary sources

Where each claim above comes from. Open them alongside the lesson rather than after it — the papers are shorter than you think, and the figures usually carry the whole argument.

Paper
  • ReAct: Synergizing Reasoning and Acting in Language Models(2022)Yao et al., ICLRThe pattern almost every agent framework implements: interleave a reasoning trace with tool actions so the model can revise its plan.
  • Toolformer: Language Models Can Teach Themselves to Use Tools(2023)Schick et al., NeurIPSWhere the tool-calling idea gets its clearest early statement — a model deciding for itself which API to call and when.
Read
  • Building Effective AI AgentsAnthropicThe most practical engineering guidance available on agents — including an explicit argument for choosing a fixed workflow over an agent whenever you can.
  • Building A Generative AI PlatformChip HuyenThe system-level view: where retrieval, guardrails, routing, caching and observability sit around the model. The architecture diagram to steal.
Course
  • Practical Deep Learning for Codersfast.aiIf this series made you want to build rather than read: top-down, code-first, free, and it gets you to a working model in lesson one.

External links open in a new tab. Every URL was reachable when this page was written; links rot, so treat the list as a map rather than a guarantee.

Connects to

Inside an agent's loop, for PMsRAG & grounding, for PMs

Got it? Tick it off — progress saves on this device.

← PreviousMultimodal: one space for pixels and wordsNext →The interview gauntlet
Where each fundamental resurfaces
the fundamentalwhat it's called nowLoss functionsEval suites and LLM judgesPrecision / recall thresholdHow much autonomy the agent getsGeneralisationRobustness to prompts nobody wroteInference costUnit economics, compoundedDistribution shiftThe model version changed under youThe training loopFine-tuning, LoRA, RLHFInductive biasChoosing a model and a context strategysame problem, new vocabulary

Lesson 4 · revisit it
Loss functions → Eval suites and LLM judges. You still have to define what 'correct' means and produce a number for it. The output is now free text, so the metric is a graded eval set, a rubric-driven judge model, or a task success rate — but the discipline is identical and the difficulty is higher, because nobody hands you a label.

Skip it and: Teams that skip this ship on vibes, cannot tell whether a prompt change helped, and discover regressions from users.

The abstractions on top turn over every eighteen months. The layer underneath has been stable since the 1980s — which is the whole argument for learning it first.

Where each fundamental resurfaces
the fundamentalwhat it's called nowLoss functionsEval suites and LLM judgesPrecision / recall thresholdHow much autonomy the agent getsGeneralisationRobustness to prompts nobody wroteInference costUnit economics, compoundedDistribution shiftThe model version changed under youThe training loopFine-tuning, LoRA, RLHFInductive biasChoosing a model and a context strategysame problem, new vocabulary

Lesson 4 · revisit it
Loss functions → Eval suites and LLM judges. You still have to define what 'correct' means and produce a number for it. The output is now free text, so the metric is a graded eval set, a rubric-driven judge model, or a task success rate — but the discipline is identical and the difficulty is higher, because nobody hands you a label.

Skip it and: Teams that skip this ship on vibes, cannot tell whether a prompt change helped, and discover regressions from users.

The abstractions on top turn over every eighteen months. The layer underneath has been stable since the 1980s — which is the whole argument for learning it first.