← Back to Home
πŸ€–

Introduction to Agentic AI

From answering questions to taking action β€” AI that actually does the work.

⏱9 min readπŸ“šDevOps Fundamentals

A chatbot answers your question. An AI agent takes a goal, decides on the steps, uses tools to carry them out, and checks its own progress until the goal is done. That shift β€” from answering to acting β€” is what β€œagentic AI” means, and it’s rapidly changing how DevOps and engineering teams work.


🎯 Learning Objectives

By the end of this lesson you will:


LLMs in One Minute

A large language model is a system trained on vast amounts of text to predict and generate language. Given some input (a prompt), it produces a useful response. Modern LLMs can write code, summarise logs, explain errors, and follow instructions.

πŸ’‘ The mental model

Think of an LLM as an extremely well-read assistant that reasons in text. It doesn’t β€œknow” live facts about your systems unless you give it that context β€” which is exactly what agents and tools do.


Chatbot vs Agent

Chatbot Agent
Input A question A goal
Output An answer Completed actions
Tools None Can call tools/APIs
Steps One turn Many steps, looping
Example β€œHow do I restart a pod?” β€œFind and restart the crashing pods”

The agent doesn’t just tell you what to do β€” given the right tools and permissions, it can do it.


The Agent Loop

An agent works in a cycle until the goal is met:

text
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
       β–Ό                              β”‚
 1. REASON  β†’  2. ACT  β†’  3. OBSERVE β”€β”˜
 (plan next   (use a       (read the
  step)        tool)        result)
  1. Reason β€” decide the next step toward the goal.
  2. Act β€” call a tool (run a command, query an API, read a file).
  3. Observe β€” take in the result and update the plan.

It repeats this loop, adapting as it goes, until the task is complete or it needs human input.


Where It Fits in DevOps

Agentic AI is showing up across the DevOps lifecycle:

⚠ Agents need guardrails

An agent that can act can also act wrongly. Production systems require guardrails: least-privilege access, human approval for risky actions, and full audit logs. Never give an agent unrestricted power over live infrastructure.


See the Idea in Code

At its core, an agent loop is simple. This pseudocode captures the shape:

python
goal = "Find why the checkout service is erroring"
while not done:
  thought = llm.reason(goal, history)      # decide next step
  action  = thought.tool_call              # e.g. read_logs("checkout")
  result  = run_tool(action)               # execute it
  history.append(result)                   # observe
  done    = llm.is_goal_met(goal, history) # check progress

The LLM provides the reasoning; the tools give it the ability to actually inspect and change the world.


πŸ§ͺ Hands-on Lab

πŸ“

Design an Agent Loop on Paper

  1. Pick a DevOps goal, e.g. β€œdiagnose a failing deployment”
  2. List the tools the agent would need (read logs, list pods, describe events)
  3. Write out three iterations of reason β†’ act β†’ observe

🧠 Knowledge Check

Knowledge Check

What is the key difference between an AI agent and a chatbot?

Knowledge Check

What are the three phases of the agent loop?


πŸ’Ό Interview Preparation

Interview Q&A

How could agentic AI help a DevOps team, and what are the risks?


Summary

You now understand LLMs at a high level, how agents differ from chatbots, the reason–act–observe loop, and where agentic AI fits into DevOps. Next, you’ll learn to actually communicate with these models through effective prompting.

Up Next

Working with LLMs & Prompting

You've mastered this lesson. Continue your journey to becoming a DevOps Engineer.

Start Next Lesson→