Skip to content
Quantoros

What is an AI agent vs a simple LLM call?

LLM & AILevel: FoundationAgent Fundamentals

What is an AI agent vs a simple LLM call?

Hints
  • Identify the stage: pretraining, adaptation, generation or evaluation.
  • Name the inputs, constraints and a case where the approach fails.

Answer

An LLM call is stateless: input → output, done. An AI agent wraps an LLM in a loop:

while not done:
    action = LLM(observations, memory, tools)
    observation = execute(action)
    memory.update(observation)

Key additions:

FeatureLLM CallAI Agent
StateStatelessMaintains state across steps
ExecutionReturns textExecutes real actions
IterationOne passMultiple reasoning-action cycles
ToolsNoneAccesses APIs, databases, code
MemoryContext onlyShort + long-term memory

Agents unlock tasks impossible with a single LLM call: web research, code execution, database queries, multi-step workflow automation.

Source and licence: JustInCache & contributors — Awesome AI Interviews · Apache-2.0

Related questions