A Tour of Agents
LearnCompareBlog
Source

Lesson 1: The Agent Function — A Tour of Agents

An AI agent is just a function that POSTs to an LLM API. Build one from scratch in Python and see what LangChain AgentExecutor, CrewAI, and AutoGen abstract away.

An Agent is a Function Every time you send a message in ChatGPT or Claude, here's what actually happens: your browser sends an HTTP POST to an API, and a response comes back. That's it. The fancy UI, the streaming text, the typing indicator — all cosmetics around one function call. Strip away LangChain's AgentExecutor, CrewAI's Agent, AutoGen's ConversableAgent. At the bottom of every one: a function that sends an HTTP POST and returns the response. That's what you'll build now.

Concepts covered

  • agent
  • function
  • HTTP POST
  • system prompt
  • messages

Framework comparison: LangChain's AgentExecutor, CrewAI's Agent, AutoGen's ConversableAgent — wrappers around one function.

All lessons in this course

  1. Lesson 1: The Agent Function
  2. Lesson 2: Tools = Dict
  3. Lesson 3: The Agent Loop
  4. Lesson 4: Conversation
  5. Lesson 5: State = Dict
  6. Lesson 6: Memory
  7. Lesson 7: Policy = Guardrails
  8. Lesson 8: Self-Scheduling
  9. Lesson 9: The Whole Thing
1 / 9