code ai

Build a Working AI Agent

An agent is a loop, and you are going to write it yourself before you are shown a framework that hides it. Four modules and four artefacts: the loop with its own tools and step cap, a defensible model choice, an agent that reads vendor documents and assembles a VAT return without double-counting anything, and a phishing-link scorer running against a model on your own machine.

  • trending_upIntermediate
  • schedule6h 56m
  • menu_book12 درس
  • publicEnglish
  • workspace_premiumBasic
Build a Working AI Agent

الإحاطة

This segment is built out of agents that are actually in use, and it is the opposite of a tour. You write one file in module 1 and every later lesson imports it. You start with the loop, in about twenty lines, against a fake model, with the network unplugged — because everybody who begins with a real key spends the first hour debugging authentication instead of the thing they came to learn. Then you harden it until no reply a model can produce will kill a run, and only then do you put a key anywhere near it. Module 2 is the boring, valuable part: where a key must never live, what to do in the first ten minutes after one leaks, and how to choose a model on twenty cases and a threshold you wrote down beforehand rather than on how it felt when you tried it twice. Module 3 is where the agent touches something real. You build a reader over a folder of vendor agreements that hands back a page and not a document, and an invoice collector that assembles a VAT return from a folder — and you make it safe to run twice, because it will be run twice, by somebody who is not sure whether the first run worked. Module 4 is what happens when it goes wrong at four in the morning and nobody is awake. Retries that only retry what is worth retrying, a run log a stranger can read a week later, and then a model on your own machine so that nothing leaves the box at all. The segment ends on the build that ties it back to defence: a scorer for a link somebody was sent, whose output is not a number but a paragraph a non-technical colleague can act on. Everything is the Python standard library. No framework, no installed packages, and every check in every lesson runs offline, so a lesson never depends on a credential working. Segment A1, AI Without the Hype, is assumed: next-token prediction, the resend on every turn, and plan with the strong model, execute with the cheap one. None of it is repeated here. It is used. **Nothing in this segment is offensive.** The phishing material is a scorer. It weighs a link that somebody has already been sent and never produces a link, a lure, a page or a way past a filter, and the standing rules are printed in the lab that uses it.

مخطط المسار · 4 وحدة

lockيتاح مع الوصول
  1. 01 The Loop, Written By Hand
    3 درس·1h 32m

    An agent is a loop. Every framework you will be shown is that loop with features bolted on, and you cannot tell which of those features you need until you have written the loop yourself.

  2. 02 Keys, Models and Evidence
    3 درس·1h 29m

    Everybody picks a model on how it felt when they tried it twice. Twenty cases and a mechanical check take an afternoon once and five minutes whenever anything changes, and only one of the two…

  3. 03 Tools That Touch The Real World
    3 درس·1h 50m

    Most tool-call failures are documentation failures. And any tool that changes something will be called twice, by a person who is not sure whether the first run worked, so calling it twice has to be…

  4. 04 The Failed Run, the Local Model, and the Link You Were Sent
    3 درس·2h 5m

    Four in the morning. Eight invoices are recorded, the ninth call fails, the process exits and nobody is awake. Should it have retried, what did it already do, and how would anyone find out.

الأسئلة الشائعة

ماذا سأتعلم في Build a Working AI Agent؟
An agent is a loop, and you are going to write it yourself before you are shown a framework that hides it. Four modules and four artefacts: the loop with its own tools and step cap, a defensible model choice, an agent that reads vendor documents and assembles a VAT return without double-counting any
هل أحتاج إلى خبرة سابقة؟
يُنصح ببعض المعرفة السابقة قبل البدء في Build a Working AI Agent.
كم من الوقت يستغرق Build a Working AI Agent؟
Build a Working AI Agent يتضمن 4 وحدات و12 دروس. تتعلم بسرعتك الخاصة.
كيف أحصل على الوصول؟
Build a Working AI Agent مضمن في أي اشتراك مدفوع.

المزيد في البرمجة

Binary, Hex and Data Units
Beginner Binary, Hex and Data Units The topic that costs more marks than any other on the paper, taught by hand. Bits and bytes, binary and hex in all six directions, the 1000-versus-1024 trap, file sizes, transmission times, overflow, two's complement and character sets. Every module ends in a timed drill marked the way an examiner marks it.
Python من ورقة بيضاء
Beginner Python من ورقة بيضاء المسار الدقيق الذي سار فيه تسعة طلاب بالفعل، من ملف فارغ إلى برنامج يطرح أسئلة ويتحقق من الإجابات ويرفض المدخلات السيئة. بدون خبرة برمجية سابقة. بدون رياضيات. ستكسره مراراً، وعن قصد.
First Program — Scratch for ages 5–9
Beginner First Program — Scratch for ages 5–9 Nine Scratch blocks, three sessions of about twenty-five minutes, and one small program a child of five to nine builds themselves. Written for the parent sitting beside them: what to click, what they will get stuck on, what to say when it goes wrong, and when to keep your hands off the mouse.
الذكاء الاصطناعي بدون ضجة إعلامية
Beginner الذكاء الاصطناعي بدون ضجة إعلامية ما الذي يفعله النموذج فعليًا عندما يجيب عليك، ولماذا ينتج عن ذلك ما يبدو أنه تفكير، ولماذا يختلق اقتباسات، وآلية التكلفة التي لا يشرحها أحد تقريبًا: الدردشة تعيد إرسال المحادثة بأكملها في كل دور. ستجري العمليات الحسابية بنفسك.
IGCSE و GCSE علوم الحاسوب — النظرية التي تُحقق علامات فعلاً
Intermediate IGCSE و GCSE علوم الحاسوب — النظرية التي تُحقق علامات فعلاً النصف النظري من الورقة، تُدرّس لكي تصمد في قاعة الامتحان. تسلسل الذاكرة وما يحدث فعلاً عند الإقلاع. المترجمات والمفسّرات والمجمّعات، بما فيها الإجابة التي تبدو صحيحة ولا تحقق شيئاً. قواعد البيانات من جدول البيانات إلى المفاتيح والتطبيع. DNS والمسار الكامل من الضغط على Enter إلى رؤية الصفحة. برامج النظام، والقسم الأخلاقي والقانوني الذي يعطيك أسهل عشر علامات في الورقة.
Programming for the Exam — Python Answers That Score
Intermediate Programming for the Exam — Python Answers That Score The programming half of the paper, taught at exam pitch. Pseudocode translated both ways, because the mark scheme is written in a notation nobody practises. Trace tables done column by column, including the ones with a loop and a condition inside it. Linear and binary search, bubble and insertion sort, what each costs and the comparison questions boards love. Validation against verification, and the boundary test data everybody forgets. Procedures against functions, and a systematic method for finding your own error with four minutes left.