← Back to hub

Foundations — what an AI agent is

Status CoveredUpdated 27 Jun 2026

In one line

An agent runs a loop: think, pick a tool, run it, look at the result, repeat until done.

Key idea

A chatbot answers once. An agent works in steps. Four parts make it work:

Smallest agent

from langchain.agents import create_agent
agent = create_agent(model="claude-sonnet-4-6", tools=[], system_prompt="Be helpful.")
agent.invoke({"messages": [{"role":"user","content":"Hi"}]})

Links

My notes

Add your own findings here as you learn.