Mohammad Dahab

Mohammad Dahab

Serial Entrepreneur ยท Product Builder ยท Munaaseb CTO (PropTech)

ML Fundamentals Agentic AI Autonomous Agents
๐Ÿ”— linkedin.com/in/mohammad-dahab

โ† Use arrow keys or scroll to navigate โ†’

1 / 8

Agenda

From ML fundamentals to autonomous agents โ€” a 30-minute introduction

๐Ÿง 

1. Fundamentals of ML

What is machine learning? Types, core concepts, and why it matters.

๐Ÿ”„

2. The Agentic Loop

Agents, tools, harnesses โ€” how an agent reasons, acts, and observes.

๐Ÿค–

3. Autonomous Agents

Where ML meets the agentic loop โ€” what makes an agent truly autonomous.

โ“

4. Conclusion & Q&A

Key takeaways, open questions, and discussion.

2 / 8

๐Ÿง  Fundamentals of Machine Learning

The core idea: teaching computers to learn from experience, not rules.

Classic programming: Rules + Data โ†’ Answers
Machine learning: Data + Answers โ†’ Rules (the model learns the rules itself)

๐Ÿ“Š

Supervised Learning

Learn from labelled examples (input โ†’ output pairs). Like studying with answer keys.

Regression ยท Classification
๐Ÿ”

Unsupervised Learning

Find hidden patterns in unlabeled data. Clustering, dimensionality reduction.

Clustering ยท Anomaly Detection
๐ŸŽฎ

Reinforcement Learning

Learn by trial and error โ€” agent takes actions, gets rewards, improves policy.

Games ยท Robotics ยท Control

Key ingredients: Data (representative, clean) ยท Model (the learnable function) ยท Loss (measure of error) ยท Optimization (minimising the loss)

3 / 8

๐Ÿง  How Models Learn

Training = the process of adjusting a model to reduce error on data.

๐Ÿ“ฆ Training Data

Split into training (the textbook), validation (practice exams), and test (final exam) sets. The model never sees the test set during training.

โš–๏ธ Overfitting vs Underfitting

Overfitting: memorising the data, failing on new inputs.
Underfitting: too simple to capture real patterns. Balance is everything.

๐Ÿ“ˆ The Loss Function

A mathematical measure of "how wrong the model is." Training = minimizing this number across all examples.

๐Ÿ”„ Gradient Descent

The engine of learning โ€” take small steps downhill on the loss surface. Each step adjusts model parameters slightly.

Key insight: ML models don't "understand" โ€” they approximate statistical patterns. An LLM is a very large function that predicts the next token based on trillions of observed examples.

4 / 8

๐Ÿ”„ The Agentic Loop

What separates an "agent" from a plain LLM? The loop: Perceive โ†’ Reason โ†’ Act โ†’ Observe.

๐Ÿ’ฌUser Input
โ†’
๐Ÿง LLM Reason
โ†’
๐Ÿ”งTool Call
โ†’
๐Ÿ‘๏ธObserve
โ†’
๐Ÿ’ฌRespond
๐Ÿง 

LLM as the Brain

The model decides what to do next โ€” write an answer, call a tool, ask for clarification. It's not just generating text; it's reasoning about actions.

๐Ÿ”ง

Tools

Functions the agent can call: search the web, read files, run code, send messages. Tools give the agent agency over the real world.

๐ŸŽฏ

The Harness

The runtime that orchestrates the loop: parse the LLM's tool request โ†’ execute โ†’ return result โ†’ let LLM continue. This loop is what makes it an agent.

Definition: An agent = LLM + Tools + Loop. Without the loop and tools, you just have a chatbot.

5 / 8

๐Ÿค– Autonomous Agents

Bridging ML fundamentals and the agentic loop โ†’ a system that acts independently toward goals.

๐ŸŽฏ

Goal-Oriented

Given a high-level goal, the agent decomposes it into sub-tasks and executes them autonomously โ€” deciding tool calls, order, and when to stop.

๐Ÿ’พ

Memory & Context

Persistent memory (from ML's learned representations) + session context (from the agentic loop) = the agent remembers across turns, sessions, and restarts.

๐Ÿ› ๏ธ

Skills & Tooling

Reusable workflows (skills) and diverse tools (file I/O, web, code execution, API calling) let the agent operate across domains without human hand-holding.

๐Ÿ”

Self-Correction

When a tool call fails or returns unexpected data, the agent re-evaluates and tries a different approach โ€” closed-loop feedback, just like gradient descent in ML.

The synthesis: ML gave us models that can learn patterns from data. The agentic loop gave us action and feedback. An autonomous agent is both โ€” it learns from its environment and acts upon it, independently.

6 / 8

๐Ÿ—๏ธ Anatomy of an Autonomous Agent

What happens when you give a trained LLM the keys to its own toolset?

๐Ÿง 

LLM Core

Trained on vast data (ML step). Generates reasoning and decides next action.

Planning
๐Ÿ”ง

Tool Registry

Every tool is described to the LLM as a function with name, inputs, outputs.

APIs
๐Ÿ”„

Orchestrator

The harness that runs the loop: parse โ†’ execute โ†’ observe โ†’ loop/respond.

Runtime
๐Ÿ’พ

Memory Store

Facts, user preferences, learned skills โ€” persists across sessions.

Persistence
๐Ÿ—‚๏ธ

Skills

Procedural knowledge โ€” reusable instructions for the agent to follow.

Reusability
โฐ

Scheduling

Cron jobs, watchdogs โ€” the agent acts without being asked.

Proactivity
๐Ÿ”—

Multi-Channel

Speaks over Telegram, WhatsApp, Discord, Slack, email โ€” meets users where they are.

Connectivity
๐Ÿ‘ฅ

Delegation

Spawns sub-agents for parallel work โ€” coordination at scale.

Scale
7 / 8

Thank You โœจ

Questions & Discussion

๐Ÿ“Œ Key Takeaways

  • ML is about learning patterns from data โ€” not writing rules
  • An agentic loop adds action + feedback to a model
  • Autonomous agents = ML + Agentic Loop + Tools + Memory
  • The harness is what makes it all run in a closed loop

๐Ÿ’ฌ Open Questions

  • How autonomous is too autonomous? (safety, alignment)
  • Where does the model end and the tooling begin?
  • Do agents "understand" or just pattern-match at scale?
  • What happens when agents delegate to other agents?
Discussion Q&A
๐Ÿ”— linkedin.com/in/mohammad-dahab
8 / 8