匠人学院 JR Academy学AI来匠人
匠人学院 JR Academy学AI来匠人

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

Company

About UsMetaverse ClassroomNews & BlogJR CareersBecome a MentorOur MentorsContact UsJR Store J3.Club

Resources

Job ReferralsEvents1-on-1 TutoringIndustry WhitepapersOnline LearningInterview CenterShare Interview ExperienceInternshipMembership

AI Tools

AI ToolboxCert MasterJob HunterUniMate AI

AI Learning Paths

All Learning PathsAI EngineerContext EngineeringVibe CodingPrompt MasterAI BuilderAI Product ManagerPython Basics

AI in Practice

AI ProductivityAI Data AnalysisAI FinanceAI Content CreationAI Image CreationFrontend DevelopmentHermes AgentOpenClaw Local Agent

University Resources

University of MelbourneUniversity of QueenslandUNSW SydneyUniversity of SydneyMonash UniversityUniversity of AdelaideRMITQUTUTS

Kids AI Education

Airbotix — AI Coding for KidsAU Family Resource HubNAPLAN Report GuideMy School Data GuideSydney Private School Fees 2026Kids Coding Programs

Immigration Services

Australia ImmigrationSkilled Visa 189/190/491Employer Sponsored 482/186/494Business Visa 188/888UK ImmigrationUS ImmigrationCanada Immigration

Enterprise

P3 Career IncubatorEnterprise (EN)Corporate TrainingInternship PartnershipRecruitment PartnershipApply for Partnership

Job Application Agent

Job Application ServiceJob MonitoringLinkedIn ManagementLinkedIn NetworkingLearn about P3

Support

FAQsTerms & ConditionsPrivacy PolicyCancellation & Refund PolicySite map

Top Categories

Web Full-Stack BootcampDevOps BootcampData Engineering BootcampData Analysis BootcampCoding for BeginnersBusiness Analyst InternshipAlgorithm Bootcamp

Career Services

BA & PM InternshipData Science InternshipData Analysis InternshipMarketing InternshipResume ReviewInterview CoachingVIP Mentor Guidance

Addresses

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

Contact

hello@jiangren.com.au0421-672-555

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

AI Agent Engineering Handbook
AI Engineer
AI Agent Engineering Handbook

Build production-grade AI agents with MCP, planning, memory, orchestration, and evaluation patterns.

MCP Documentation↗Anthropic Blog↗
AI Agent Engineering HandbookAgent 101:从 Chat 到 Action
AI Agent Engineering Handbook

AI Agent Engineering Handbook

Reviewer
Lightman Wang
Lightman Wang
Founder of JR Academy

第一章:基础认知

  • Agent 101:从 Chat 到 Action
  • 认知架构详解
  • 2026 Agent 生态全景

第二章:核心设计模式

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

第三章:主流框架与协议

  • The MCP Protocol Guide
  • LangGraph:状态机与循环
  • Multi-agent Orchestration

第四章:实战演练

  • 实战一:构建你的第一个工具调用 Agent
  • 实战二:RAG 知识库助手
  • 实战三:Mini-Coder
  • 实战四:多 Agent 调研团队

第五章:生产化与运维

  • Evaluation and Testing
  • Observability
  • Security and Guardrails

Related Links

  • ↗MCP Documentation
  • ↗Anthropic Blog
WikiAI Agent Engineering Handbook

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.

#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.

#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↗. Checked on 2026-09-07: the offline script and nine tests ran successfully; live-model mode was not executed during this verification.

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
认知架构详解
→

Related Guides

Google Antigravity 指南Google Antigravity 指南→
Cursor 完整指南Cursor 完整指南→
LangChain 框架指南LangChain 框架指南→

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.

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
  • Where does MCP fit?
  • Your next step