匠人学院 JR Academy
  • Position

    Where am I now, and where should I go?

    A few questions show how much AI affects your current role and where the openings are. Free, no sign-up.

    Check where I stand, free

    How AI changes careers

    Will AI replace my job?AI impact and transition paths for common careersNew jobs in the AI eraWhat they do, what they need, how to move inAI impact checkA few questions on the risks and openings in your role

    Self-checks

    Readiness assessmentHow ready you are for AI Engineer interviewsCareer personality testDirections that suit how you workCareer planningAnswer a few questions to see careers that may fitReturning to China checkJob prospects in China by school, major and graduation date
  • Skill

    Not sure which AI skills to learn?

    Start with a free learning path that goes from basics to hands-on work; move to a bootcamp or a mentor when you want structure.

    Start a free learning path

    Free learning paths

    Vibe CodingWrite code with AI, no background neededAI for office workDocuments, spreadsheets and reports with AIPrompt MasterHow to state what you need clearlyAI EngineerRAG, agents and MCP in practiceAI data analysisQueries, cleaning and reports with AIAll learning paths →

    Bootcamps and courses

    All bootcampsFilter by career path, level and formatAI Engineer BootcampEngineering bootcamp from LLM apps to agentsAI Coding for everyoneHands-on AI coding for non-technical learnersAI Workflow BootcampAI workflows for working professionalsInstructorsPractising engineers and industry mentorsAll courses →

    Practice and reference

    Interactive labsPrompt, frontend, Python and AWS practice onlineLearning roadmapsOne map of what to learn in which orderCheat sheetsQuick references for languages and toolsWikiAI tools and concepts explainedVideosTalks, open classes and student storiesFree resources →
  • Evidence

    What will convince an employer?

    Certifications, projects, team work and competition entries, collected into one portfolio.

    See the portfolio

    Certifications

    Cert Master · all certificationsPrep and mock exams for AWS, Azure, GCP, Claude and moreAWS SAA-C03Entry certification for cloud architectsAzure AI-102Microsoft AI engineer certificationClaude certificationsAnthropic Claude certification seriesMock examsTimed practice in the real exam interfaceAll certifications →

    Projects and team work

    P3 team projectsBuild a project with real teammates in a simulated team workflowP3 project experienceThe parts of a P3 project that go on your resumeDemo DayProject showcaseP3 certificatesProof once a project is completeAll of P3 →

    Competitions and work

    HackathonsBuild something against the clockSubmit your workAdd your project to the showcaseCareerOS portfolioDo tasks in the desktop app; your results become portfolio pieces
    Cert MasterBrowser extension, app and mini programScreenshot a question for analysis and practise anywhereAbout Cert Master
  • Connect

    How do I get myself in front of employers?

    Resume, interviews, referrals and mentors. See how far you are from the target role first, then decide what to fix.

    Start with Job Hunter

    Resume and openings

    Job HunterAI job search workspace: resume, roles, applicationsAI resumeRewrite your resume against a job descriptionReferralsRoles shared by students and mentorsOpportunitiesInternships, projects and collaborationsOffer boardOffers students have received

    Interviews

    AI mock interviewPractise by text or voice and see the gapsInterview centreQuestions by company and roleInterview storiesReal interview experiencesSystem Design handbookPrepare for system design interviewsAll interview prep →

    Mentors

    1:1 mentorsBook AI, career and technical mentors by the hourGroup tutoringShare a tutor with a few others and pay less eachCareer coachingResume, interview and direction packagesBecome a mentorJoin the JR Academy mentor team
    Job Hunter desktopOne workspace for the whole job searchOrganise real experience and refine resume versions for target roles on macOS or Windows.About Job Hunter
BusinessMembershipDownload CareerOS
匠人学院 JR Academy

Follow Us

linkedinfacebooktwitterinstagramyoutube

We Accept

/image/layout/pay-paypal.png/image/layout/pay-visa.png/image/layout/pay-master-card.png/image/layout/pay-airwallex.png/image/layout/pay-alipay.png
EN
Products

CareerOS and tools

  • CareerOS
  • Cert Master
  • Job Hunter
  • Job Hunter web
  • Job Hunter report
  • Job Hunter desktop download
  • My job search reports
  • Buy report credits
  • Job Hunter billing
  • AI Toolbox
  • AI Skill Marketplace

Membership and courses

  • Membership
  • AI membership
  • AI Engineer VIP
  • Bootcamps
  • Training Camp
  • Kanban learning
  • AI Builder course
  • MCP course
  • NotebookLM workshop
  • Business Analyst course
  • Web Full-Stack Bootcamp
  • DevOps Bootcamp
  • Data Engineering Bootcamp
  • Data Analysis Bootcamp
  • Coding for Beginners
  • Algorithm Bootcamp

Career services

  • 1:1 coaching
  • Career coaching
  • BA & PM Internship
  • Data Science Internship
  • Data Analysis Internship
  • Marketing Internship
  • Resume Review
  • Interview Coaching
  • Job Application Service
  • Job Monitoring
  • LinkedIn Management
  • LinkedIn Networking
Library

Learning paths

  • All Learning Paths
  • AI Engineer
  • Context Engineering
  • Vibe Coding
  • Prompt Master
  • AI Builder
  • AI Product Manager
  • Python Basics
  • AI Productivity
  • AI Data Analysis
  • AI Finance
  • AI Content Creation
  • AI Image Creation
  • Frontend Development
  • Hermes Agent
  • OpenClaw Local Agent

Interactive labs

  • Prompt Lab
  • Frontend Lab
  • JavaScript Lab
  • Python Lab
  • AWS Lab
  • Azure Lab
  • LLM Lab
  • Git Lab

Reference and guides

  • Wiki
  • Learning wiki
  • Cheat sheets
  • Roadmaps
  • AI roadmaps
  • Videos
  • Blog
  • Interview handbook
  • Mock exams
  • Free resources

Cities

  • Sydney
  • Melbourne
  • Brisbane
  • Adelaide
  • Singapore
  • Kuala Lumpur
  • London
  • New York
  • San Francisco
  • Los Angeles
  • Seattle
  • Toronto
  • Vancouver

Immigration

  • Australia Immigration
  • Skilled Visa 189/190/491
  • Employer Sponsored 482/186/494
  • Business Visa 188/888
  • UK Immigration
  • US Immigration
  • Canada Immigration
  • Singapore immigration
  • Malaysia immigration
Business

For business

  • AI for Business
  • Business portal sign-in
  • Corporate Training
  • Internship Partnership
  • Recruitment Partnership
  • Enterprise (EN)

Metatree AI Lab

  • Metatree AI Lab (Chinese)
  • AI solutions (Chinese)
  • Digital employees (Chinese)
  • Case studies (Chinese)
  • Metatree AI Lab
  • AI services
  • Digital employees
  • Case studies

AI education for kids

  • Airbotix — AI Coding for Kids
  • AU Family Resource Hub
  • NAPLAN Report Guide
  • My School Data Guide
  • Sydney Private School Fees 2026
  • Kids Coding Programs
About

Company

  • About Us
  • Our Mentors
  • Become a Mentor
  • News & Blog
  • Metaverse Classroom
  • JR Careers
  • JR Store J3.Club
  • Contact Us

Help and policies

  • FAQs
  • Terms & Conditions
  • Privacy Policy
  • Cancellation & Refund Policy
  • Site map

Contact

  • hello@jiangren.com.au
  • 0421-672-555

Offices

Level 10b, 144 Edward Street, Brisbane CBD (Headquarter)
Level 2, 171 La Trobe St, Melbourne VIC 3000
45A13, Block B, Oriental Hope Tianxiang Plaza, 500 Tianfu Avenue Middle Section, Wuhou District, Chengdu, Sichuan, China
Business Hub, 155 Waymouth St, Adelaide SA 5000

Disclaimer

footer-disclaimerfooter-disclaimer

JR Academy acknowledges Traditional Owners of Country throughout Australia and recognises the continuing connection to lands, waters and communities. We pay our respect to Aboriginal and Torres Strait Islander cultures; and to Elders past and present. Aboriginal and Torres Strait Islander peoples should be aware that this website may contain images or names of people who have since passed away.

All content on the JR Academy website, including course materials, logos, and information provided, is protected under Australian intellectual property laws. Unauthorized use, sale, distribution, reproduction, or modification is strictly prohibited. Violations may result in legal action. By accessing our website, you agree to respect our intellectual property. JR Academy Pty Ltd reserves all rights, including patents, trademarks, and copyrights. Any infringement will be subject to legal prosecution. View Terms of Service

© 2017-2026 JR Academy Pty Ltd. All rights reserved.

ABN 26621887572

HomeLearnCoursesCerts
Skip to article
Engineering handbook
AI Agent Engineering Handbook

Start with tool calls. Understand how an agent acts, reads observations and stops when something fails. Verify each boundary with complete code and offline tests.

5 chapters·16 guides·Open access
Start reading ↓View test receipt ↗
A complete result, firstOffline reading
  1. 01
    Validated tool requestlookup_order({"order_id":"DEMO-1001"})
  2. 02
    Read the synthetic orderstatus: shipped
Final outputDEMO-1001: shipped (synthetic_fixture)
9 tests passed
Agent 101: From Chat to Action

AI Agent Engineering Handbook

Chapter 1: Foundations

  • Agent 101: From Chat to Action
  • Agent Architecture
  • The Agent Ecosystem in 2026

Chapter 2: Design Patterns

  • Advanced Prompt Engineering
  • Planning and Reasoning
  • Memory System Design

Chapter 3: Frameworks and Protocols

  • The MCP Protocol Guide
  • LangGraph: State Machines and Loops
  • Multi-agent Orchestration

Chapter 4: Practical Exercises

  • Exercise 1: Build a Tool-calling Agent
  • Exercise 2: A RAG Knowledge Assistant
  • Exercise 3: Mini-Coder
  • Exercise 4: A Multi-agent Research Team

Chapter 5: Production and Operations

  • Evaluation and Testing
  • Observability
  • Security and Guardrails

Related Links

  • ↗MCP Documentation
  • ↗Anthropic Blog
  1. Home
  2. Learn
  3. Wiki
  4. AI Agent Engineering Handbook
On this page
What changes when a chatbot can use tools?Run your first exerciseChoose the smallest architecture that solves the taskFour boundaries to explain before adding featuresPractice review: validate tool calls before executionWhere does MCP fit?Your next step

Build an AI Agent: Tool Calling, Execution Limits and Tests

Start with one read-only tool and a four-turn limit. Verify which actions the model requests, which actions your program allows, and how failures stop execution before adding memory or multiple agents.

This handbook begins with a Python exercise, then connects tool execution to MCP, RAG and evaluation. The public tutorials can be read without signing in; course access follows the course's own rules.

#What changes when a chatbot can use tools?

A tool-calling model can request lookup_order({"order_id":"DEMO-1001"}). The application validates the tool name and arguments, performs the lookup and returns the result to the model. The model then answers or requests another action.

The model proposes actions; your application controls execution. Never turn tool arguments into code through eval() or a shell.

text
Question → model tool request → allowlist and argument checks ↓ Answer ← model reads observation ← data or explicit error ↓ Repeat only within the turn limit

#Run your first exercise

Open the Python tool-calling lab. Download tool_agent.py↗ and test_tool_agent.py↗ into one folder:

bash
python3 tool_agent.py python3 -m unittest -v test_tool_agent.py

Python 3.10+ is required; no third-party packages are needed. Default mode uses a scripted model substitute and a synthetic order, with no API calls or usage charges:

json
{"mode": "fixture", "answer": "DEMO-1001: shipped (synthetic_fixture)", "steps": 2}

This verifies the execution loop, not LLM reasoning quality. The lab includes a separate live-model adapter and explains what remains unverified.

Want to pick up AI Agent Engineering Handbook? See where your gaps are first

Tell us what you do now and where you want to go. See your gaps in skills, evidence, experience, expression and positioning, and what to work on first. No sign-in needed.

Compare with my situation

#Choose the smallest architecture that solves the task

TaskStart withReason
Fixed steps and structured inputProgram or workflowNo model is needed to choose the sequence
Answer from specified documentsRAGThe main challenge is finding evidence
Choose tools based on intermediate resultsBounded agentObservations determine the next action
Independently specialised workConsider multiple agents after a single-agent baselineHandoffs add retries and conflict handling

This is engineering guidance, not a requirement to replace stable workflows with agents.

#Four boundaries to explain before adding features

  1. Tool permissions: this exercise reads synthetic orders. It cannot refund, send messages or modify a database.
  2. Evidence: an unknown order produces order_not_found, never an invented delivery status.
  3. Limits: one tool call per turn, at most four turns; a live HTTP request has a 20-second timeout.
  4. Validation: offline tests check program behaviour. Live-model accuracy, cost and provider availability need separate checks.

#Practice review: validate tool calls before execution

JR Academy publishes this downloadable teaching example. Orders and model responses are scripted. The results below were reproduced locally on 2026-10-26; they demonstrate execution boundaries, not Lightman's commercial delivery or customer outcomes.

Input or failureObserved resultDesign trade-off
Call delete_orderunknown_toolThe model cannot add permissions beyond the registered lookup tool
Look up missing order MISSINGorder_not_foundExpose missing evidence rather than inventing a delivery status
Pass only { as argumentsinvalid_jsonReturn the parse error instead of guessing a repair
Add delete: true to a lookupinvalid_argumentsReject extra fields even when the tool name is allowed
A scripted model keeps calling tools, with a two-turn limitstep_limit_reachedStop within the explicit budget; longer tasks need a deliberate budget change

execute_tool checks the tool name, parses JSON, validates fields and types, then reads the order. run_agent accepts one tool call per turn and retains the call and observation. The single-call restriction sacrifices parallel throughput for a sequence that is easier to inspect and test in this introductory exercise.

The normal path completes in two steps with DEMO-1001: shipped (synthetic_fixture). Nine passing tests cover rejection paths, empty answers, multiple calls and model failures. Read the test receipt, exact outputs and source SHA-256 hashes. Compare the hashes with your downloaded Python files to check the version you run.

How this addition was produced: AI-assisted writing with locally executed Python tests. No live model was called. Production accuracy, concurrency performance and real business outcomes were not evaluated; specialist human review has not been registered.

#Where does MCP fit?

MCP connects an AI application with services that expose tools and context. It does not require one particular model or replace your application's authorisation rules. Continue with the MCP chapter after understanding tool execution. Official MCP architecture↗

#Your next step

  • Run the tool-calling lab, then try a missing order.
  • Explore RAG and check that answers map to evidence.
  • Build an evaluation set from observed failures.
  • Review the AI Engineer Bootcamp curriculum and trial information to assess the projects and prerequisites.

Technical references: OpenAI function calling↗, MCP architecture↗. Original guide check: 2026-09-07. Practice addition and offline regression: 2026-10-26, with nine passing tests. Exact outputs and source hashes are in the receipt above; live-model mode was not executed.

About this guide

See who is responsible, what you can reproduce and where the technical references come from.

Publisher and founder

JR Academy publishes these learning resources. Lightman Wang is its founder; public programs list him as a speaker on AI agents, with sources below. This article is credited to the publishing team.

View the founder profile
Personal website and projectsLinkedIn

Reproducible practice

The Python lab uses synthetic orders to demonstrate tool allowlists, argument checks, execution limits and explicit errors. This offline check completed in two steps and passed nine tests.

Open the full lab and codeDEMO-1001: shipped (synthetic_fixture)
Read the test receipt and source hashes

Technical references

Official documentation supports the tool-calling workflow and MCP architecture. Check the original definitions; these references do not imply endorsement of this guide.

OpenAI: function callingMCP: architecture
Public speaker records and sources

These records support the listed activities. They do not establish authorship or review of this article.

  • How We Build Effective AI Agents

    The AFAA program lists Lightman as a speaker on AI agents at a Canva Event Space venue.

  • AI Agent & Web3

    The Melbourne program for 29 May 2025 lists Lightman for an AI agents talk and panel discussion.

  • Zoe Zhou

    Fellow speaker Zoe Zhou publicly describes joining Lightman on a JR Academy career-event panel.

The Luma pages are AFAA event programs; Zoe's post is a fellow speaker's personal account. They are not technical reviews, outcome audits or venue endorsements, and do not establish an annual speaking count. Sources checked on 2026-10-26.

Page checked: 2026-10-26

Scope: this page, reference links and the accompanying offline scripts. Synthetic results do not establish live-model quality. Individual chapter authorship and specialist review records have not yet been registered. JR Academy also sells courses linked from this guide.

Report an error or suggest evidence
System Design

Core system design concepts and practical case studies

Learn the trade-offs and patterns that matter in technical interviews.

Open System Design →
Next
Agent Architecture
→

Related Guides

Antigravity GuideAntigravity Guide→
Cursor GuideCursor Guide→
LangChain GuideLangChain Guide→

Related Roadmaps

ai-engineer→
vibe-coding→

FAQ

Which language should I use?
Python and TypeScript both work. Start with the language you can debug; the first exercise uses Python 3.10+ and its standard library.
Does MCP require a specific model?
No. MCP connects applications to tools and context services. Compatibility depends on the host client, transport, protocol version and authorisation; model tool-calling support is a separate check.
Does learning agents guarantee employment?
No. Use a small project to demonstrate requirements analysis, permissions, testing and maintenance. Employment outcomes depend on the role market and your actual skills.

Done reading? Next steps

Want to pick up AI Agent Engineering Handbook? See where your gaps are first

Tell us what you do now and where you want to go. See your gaps in skills, evidence, experience, expression and positioning, and what to work on first. No sign-in needed.

Compare with my situation
  • PositioningLearning roadmaps by roleFrontend, backend, data, AI and more, laid out stage by stage in the order to learn them.All roadmaps →
  • SkillCommands and syntax at a glanceGit, Linux, Python, SQL and more on one page each, to check while you code.View Cheat Sheets →
  • SkillLearn AI for free by pathVibe Coding, AI at work, prompting, AI engineering and more, chapter by chapter from the basics.All learning paths →

Contents

  • Build an AI Agent: Tool Calling, Execution Limits and Tests
  • What changes when a chatbot can use tools?
  • Run your first exercise
  • Choose the smallest architecture that solves the task
  • Four boundaries to explain before adding features
  • Practice review: validate tool calls before execution
  • Where does MCP fit?
  • Your next step

Do you need this skill?

Take this page's topic with you and see where your gaps are.

Compare with my situation