LLMs (Large Language Models) are text-generating models that cannot directly make API calls or perform actions, while AI agents are systems that can execute actions by calling external tools and APIs. In practice, agents use LLMs as decision-making components to determine which tools to call, but the actual API calls are made by the agent system with proper permissions and authentication. Agents operate in a loop where they decide when to continue making tool calls or exit based on whether they have sufficient context to answer the user's query.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
AI Interview Questions - LLMs vs. Agents with @aloo_explains
Added:Hello, sir. Hi. Hi, Gaurav.
Please don't call me sir. You can call me.
So, can we start with a short intro first?
So I am applying for an engineer position at your company.
I have some experience as a software engineer.
I have built some AI applications and some workflows have automated in my company.
So basically you are telling me that you have automation experience along with some software dev? Yes. Yes. Okay.
So by automation, if I ask you this question, you know that you might have heard about agents and all of that because you have tried out AI agents and stuff.
Sometimes. Yeah. Yeah.
So can you tell me what is the basic difference between an LLM and an agent?
An agent is something which can perform actions.
And so the API calls that it makes is can be to external systems, can be to our own internal system.
Also while an LLM cannot make API calls.
Yeah.
Can you take it to whiteboard.
Then we can have an explanation there.
Let's say you have a user who says, plan my trip itinerary.
I'm going to someplace for a vacation.
This query reaches your system.
So we have a TripAdvisor system.
What we can do is go and ask an LLM to make the plan for us.
But there is a problem.
The trip query can be something as simple as I am going to Austria, please plan a trip itinerary.
But I do not know about the user.
I don't know who they are, whether they're going with family, what are their flight preferences?
What are the hotel preferences? Various things that are necessary.
What would be ideal is if the LM could counter question the user, asking them for a form to be filled with their details, like what flights are you looking for? What are the dates?
All of this stuff.
After this form has been filled, the LM will go and make a search.
Let's say a flight system which tells me the prices.
So this would be my query to the flight system.
And I would also connect with, let's say, a hotel system, which would tell me which rooms are available and at what price.
Once I have the relevant context along with the prompt, that's when the LM can actually make a decision as to how should I plan the itinerary of this user, which would be forwarded to our system.
And our system is going to give that as a response to the user.
So, Gaurav, can you tell me, like you said, that LM is doing this query to the flight system, let's say any, any website or LM is doing this query to the hotel system or any website.
So is LM making the call or is like LM deciding to make the call.
The LM is deciding to make the call. That's a good point.
This hotel system that we have, and the flight system is actually not being directly called by the the LM cannot make API calls.
You have to have this interaction between your system, which has the right permissions to call the hotel management system, and your system which has the right permissions or context.
This can be a system prompt on how to call.
When should you call?
These rules can be given and also you might need auth keys.
You might need a way to pass this response.
All of those things are tools.
The best way to describe a tool is like a function call.
Instead of thinking of this as an API call, it's going to be called a tool.
And the LM decides that okay, I got the user query.
I need more context.
I need to know which flights the user can book so they can make a call to the flight system.
Then they say, I also need some context around the hotel system.
Is the LM making the call?
Know they are telling the system in the response.
That tool call search flights.
Okay, but searchlights is like a function.
It's actually a tool where we have described what the search flights do, which parameters it needs, the description of every parameter, and also what kind of values can be passed in.
Once you get a response of those flights, like a function call, you take that and you pass it back to the LM.
So all of the information of, you know, what are to what tools are available.
And you just said that you need the description out of that.
Where are you actually going to tell the LM about all the description or what all tools are available.
That definition is there in the system prompt.
And this system prompt can change for every single interaction that you have with the LM.
Usually it is static though. Okay okay, cool.
So can you also tell me that you said that it is going to call multiple tools, right.
Is deciding to call multiple tools.
So it should be in like what format is it sequential.
Is it loop.
Oh yeah it could be I mean it's a loop in the sense that the LM is deciding should I continue making tool calls or should I exit the loop.
And here's the response with the exit.
So the final way for LM to exit the loop is to either say, I can't get this answer sorry, or I got the answer.
Great. I have enough context to answer you.
That's the time when you actually forward this plan to the user.
And this loop has multiple parts.
As you can see, if there is a hotel call and a flight call, these are not related to each other.
So they can be asynchronous.
But if the flight call depends on the hotel call or the hotel call depends on the flight call, then you want it to be ordered and synchronous.
Cool. Yeah. Thank you so much.
It was a good answer.
I cleared. Is it? Yeah.
Yeah, boy.
Hello, sir.
So can we start with a short intro first? Yes.
My name is Gaurav.
I have more than 700 K subscribers on YouTube.
I'm a very famous person, but I don't have any money.
So I was looking to become an AI engineer now.
Getting a response.
And what's the difference between both of them?
Sure.
And LM is like made by OpenAI or let's say Hugging Face has some models.
We can actually just call those models to get some text.
While an agent is something that we usually billed as the engineers.
And yeah, so an agent is what the end user interacts with and the LM is what we interact with.
So yeah, you're clearly you don't have any.
Clearly you are.
So clearly you have worked more with your software.
Be more explanatory like try to include some examples and all of that.
Agent is like a person.
You can have a water.
Related Videos

Expanding Stikbot thumbnails
leopoldshorts
2K views•2023-09-24

Digital Discrimination: Cognitive Bias in Machine Learning
redmonktechevents2974
4K views•2019-12-18

Evolutionary Approach to Clustering by Ujjwal Maulik
ICTStalks
279 views•2019-06-26

Rose Yu "Learning from Large-Scale Spatiotemporal Data"
networkscienceinstitute
2K views•2019-03-04

Stanford Seminar - Generalization through Task Representations with Foundation Models
stanfordonline
4K views•2025-07-14

Satellite-Based Wheat Yield Forecasting using GEE & Transformer Neural Network
gisrsinstitute
634 views•2025-06-15

Paradigm Shifts in Data Processing for the Generative AI Era: Robert Nishihara of Anyscale & Ray.io
GradientFlow
2K views•2025-01-02

How to Build Your Own GenAI-Based Knowledge Management System
2150GmbH
360 views•2025-06-03
Trending

Ben Crump dealt MAJOR BLOW after His Own Nolan Wells Autopsy FACT CHECKS him
DeVoryDarkins
50K views•2026-07-23

Gremlin Arrives… While Dorothy May Takes Another Step Forward
The-moons
10K views•2026-07-23

Trump War Chief SCREWS UP by Posting Video Leading Judge to ORDER an EXPLANATION!!!
LegalAFMTN
110K views•2026-07-23

Playstation NO DISC/NO BUY Fight Is Over...
DavidJaffeGames
4K views•2026-07-23