AstraAI

Agentic AI

An AI that reaches the goal

In the curriculum:Agentic AISee the map β†’
πŸŽ“ School maths Β· Years 4–6Coordinates & movement β€” Move on a grid using coordinates and direction (translation).Maths by year β†’

The Case. The latest AI ‘agents’ don't just talk β€” they act. They sense where they are, decide a step, do it, and repeat until the goal is reached.

Your tools. Plain Python runs the perceive β†’ decide β†’ act loop; matplotlib traces the agent's path to the treasure.

Investigate. Press Run. Watch the agent step toward the treasure one move at a time.

  • That loop β€” look, decide, act, repeat β€” is the heart of every AI agent.
  • Move the GOAL and the agent finds its own way there.
your_code.py
Starting Python…
The Reveal

Starting Python… (first time only β€” a few seconds)

πŸ—’οΈ Detective's notes

Bundles your findings, chart and code into one PDF you can keep, print or hand in.

🧩 How this code works

The tools it uses

  • Matplotlib β€” your crayon box β€” it turns numbers into charts and pictures.

What this one does

  • β€’ It draws a line chart β€” great for change over time.
  • β€’ It draws a scatter graph β€” great for one thing vs another.
  • β€’ It repeats a step many times with a loop.

How to read it, top to bottom

  1. 1. Import β€” bring in the tools (listed above).
  2. 2. The data β€” the lists and numbers near the top. These are the bits you change.
  3. 3. The work β€” a little maths, or a loop that repeats a step.
  4. 4. Show it β€” print(...) writes words; plt.show() draws the picture.

Use it for your own problems

  • Change the numbers at the top and press Run β€” nothing breaks, so experiment!
  • Ask your own version of the question β€” swap in your family, your scores, your week.
  • The same tools work on any numbers β€” that's the superpower you're learning.
Need a hint?

Each time round the loop the agent takes just one step. The loop keeps going until it lands on the goal.