Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Christoffer Noring

Rating No ratings yet

Design, orchestrate, and deploy scalable AI agents with real-world patterns, multi-agent systems, and evaluation frameworks. Key Features Filled with real-world agentic web application examples using LLMs, RAG, and tool calling Design and implement AI assistants with reasoning patterns like ReAct Architect scalable agent systems with planning, orchestration, and autonomy Book Description AI is no longer just about generating text. It’s about building autonomous, goal-driven systems that can reason, act, and collaborate. Hands-On AI Agents for the Web is your practical guide to designing and deploying agentic web applications powered by Large Language Models (LLMs). Starting with the fundamentals of agentic thinking and responsible AI, this book walks you through integrating LLMs into real-world web apps. You’ll progressively enhance your systems with tool calling, Retrieval-Augmented Generation (RAG), and advanced reasoning patterns like ReAct, before moving into the design of fully autonomous agents. As you advance, you’ll explore agent architectures, planning systems, orchestration, and multi-agent collaboration, learning how modern frameworks and protocols like Model Context Protocol (MCP) enable scalable, interoperable AI systems. The book emphasizes hands-on learning, with practical examples that demonstrate how to build AI assistants, coordinate multiple agents, and apply proven design patterns, while avoiding common pitfalls. By the end, you’ll have the skills to build production-ready, intelligent web experiences powered by autonomous agents. What you will learn Understand agentic thinking and responsible AI principles Integrate LLMs into web applications and build prompt-driven systems Enhance LLM capabilities with tool calling and external integrations Implement RAG pipelines for context-aware, accurate AI responses Implement planning systems for goal-driven agents Orchestrate autonomous agents and manage workflows at scale Identify agent design patterns…

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on field guide for web developers who want to move past "chat with an LLM" demos and build autonomous, tool-using agents that actually ship. Read it if you already write web apps and want a practical path from prompt engineering to orchestrated multi-agent systems. 【Book Arc】 - **Opening (~0%–10%)**: Frames the shift from text generation to goal-driven agentic systems, then sets up the toolchain — hosted playgrounds like GitHub Models and local runtimes like Ollama — so you can experiment before committing to an architecture. - **Early (~10%–30%)**: Builds the prompting and responsibility foundation: steering output with parameters, tokens/context/cost trade-offs, decomposition and self-correction techniques (e.g., maieutic prompting), and a chapter on responsible AI that asks whether AI belongs in a given task at all. - **Middle (~30%–55%)**: The core capability layer — tool calling (schemas, execution loops, error handling, API and database examples) followed by RAG: chunking strategies, embeddings, vector storage, and similarity search. - **Late (~55%–85%)**: Moves from single assistants to agent systems — reasoning patterns like ReAct, agent architectures, planning, orchestration, multi-agent collaboration, and MCP as the interoperability layer. - **Ending (~85%–100%)**: Production concerns: testing and evaluating LLMs and agents, building an "agent harness" of context, tools, guardrails, and infrastructure, plus runtime checkpoints and failure-pattern detection before deploying a candidate. 【Key Takeaways】 - **Agents are goal-driven systems, not chat wrappers** (Opening): the book's framing is that reasoning, acting, and collaborating are the product, and everything else is scaffolding. - **Tool calling is the hinge between LLM and real world** (Middle): define a function, expose its schema, intercept the model's call, execute, and feed results back — the same loop transfers across SDKs like Ollama and Copilot SDK. - **RAG is a pipeline with tunable trade-offs, not a checkbox** (Middle): chunking choices (fixed-size, semantic, overlap, dynamic, hierarchical) directly determine retrieval quality, and there is no universal right chunk size. - **Prompting is engineering, not magic** (Early): decomposition, self-reflection, and parameter tuning (temperature, top-p) shape reliability, and the book shows models can still ignore instructions — so test across models. - **Responsibility scales with consequence** (Early): the book argues for asking "does this task need AI at all?" and matching safeguards — confirmation, permission, human review — to how reversible and sensitive an action is. - **MCP is positioned as the interoperability layer** (Late): it connects agents to tools, resources, and capabilities so systems stay composable rather than bespoke. - **Evaluation and harnesses are what make agents production-ready** (Ending): testing, runtime checkpoints, and guardrails are treated as first-class engineering, not afterthoughts. - **Failure detection is a design concern** (Ending): the book discusses determining whether a failure is a pattern and detecting when that pattern needs attention. 【Reading Tips】 - Deep-read the tool calling and RAG chapters (~30%–55%); they are the load-bearing skills everything later assumes. Skim the environment setup and playground sections if you already have a working LLM stack. - Treat the responsible AI chapter as a decision framework, not compliance boilerplate — its "does this need AI?" question will save you architecture time later. - Work the assignments and checkpoints rather than reading passively; the book's value is in the round-trip loops you build yourself. - When you reach multi-agent and orchestration material, keep asking "could one agent with better tools do this?" — the book's patterns are options, not mandates. - Note the model-portability warnings (e.g., instruction-following differences between models) and test your prompts against at least two models before locking in. 【Coverage Limits】 This guide is synthesized from stratified excerpts and the book's front matter; specific chapter-level detail on planning systems, multi-agent orchestration, and the agent harness is thinner in the available material than the tool calling and RAG sections, so those later stages are mapped at a higher level.
Excerpt 1
y, intelligent web experiences powered by autonomous agents. What you will learn Understand agentic thinking and responsible AI principles Integrate LLMs int...
View in text
Excerpt 2
annot prevent unnecessary collection of passport details. A confirmation step can prevent an unwanted purchase, but it cannot make an inaccurate price truthf...
View in text
Excerpt 3
etting a limit on the number of output tokens the model can generate, but you also need to be mindful of the number of input tokens you are sending, as that...
View in text
Excerpt 4
pproach involves breaking the text into chunks based on its semantic structure, such as paragraphs, sections, or sentences. This can be more effective in cap...
View in text
Excerpt 5
tart with a simple SQLite-backed graph storage for learning purposes and then move to Neo4j, a popular graph database. To make this approach work, we need gr...
View in text
Excerpt 6
re are a few important ideas packed into this small snippet. First, classify() is used to produce classification, not to execute anything directly. Second, f...
View in text
Excerpt 7
straints"], decisions_so_far=state["decisions_made"], ) • Constraints as schema validation: After LLM generates a plan, validate it against constraints befor...
View in text
Excerpt 8
, to, and type tell us exactly what kind of handoff this is • Shared meaning: the payload contains the minimum state the next agent needs You can think of th...
View in text
Tags
AI categories
Artificial IntelligenceAIWeb Technology
ISBN: 1806103338
Publisher: Packt Publishing
Publish Year: 2026
Language: English
Pages: 578
File Format: PDF
File Size: 4.6 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…