← Agentic Architectural Patter… Latent Shelf · Ch.13

Chapter Study Guide · Part 3

Use Case: A Single Agent for Loan Processing

An effective agent is not merely prompted; it is engineered — with planning, safety, and explainability built into its core.

— the chapter's lesson

The book's first hands-on build: a complete, autonomous single agent for loan processing. It takes a real business challenge from architectural design through implementation with Google's ADK and Gemini, producing a functional agent whose cognition is governed by the FCoT pattern and whose reasoning is fully observable.

FCoT-driven monolithADK + Geminiobservable reasoning13 quiz questions
01Design

A monolithic agent, engineered not prompted

The challenge is a high-stakes, multi-step workflow: assess a loan application. The design is a single monolithic agent whose "mind" is guided by the Fractal Chain-of-Thought (FCoT) framework — embedding planning, safety, and explainability directly into the agent's instructions rather than hoping a bare prompt produces them.

Key concept · Pattern-driven design is key to reliability

An effective agent is engineered. By building the agent's instructions on the FCoT pattern, the design embeds structured reasoning, guardrails, and transparency into its core — making behavior both reliable and auditable. This is the difference between "a clever prompt" and a dependable production agent.

02Implementation

Building it with ADK

The agent is built in a Google Colab notebook using the google-adk library and Gemini models (via a Google AI Studio API key). Two ADK mechanisms do the heavy lifting.

FunctionTool
Wraps a standard Python function with a name and description so the agent can call it — the tools are the agent's "hands" onto external APIs and real data.
ThinkingConfig
Exposes the agent's internal monologue, making its reasoning inspectable rather than a black box.

Key concept · Tools are the bridge to the real world; observability is non-negotiable

An agent's capabilities are defined by its tools: ordinary Python functions, properly described and wrapped as ADK FunctionTool objects, become the agent's hands — letting it call APIs and act on real data. And its reasoning must never be opaque: ADK's ThinkingConfig exposes the internal monologue, which is essential for debugging, trust, and confirming the agent acts in line with its instructions.

03The milestone

A Level-3 agent, and the road to Level 6

The result is a functional Level 3 agent that uses a sophisticated cognitive framework and a toolbelt to complete a complex, multi-step task end-to-end. The chapter closes by pointing toward improvement — the roadmap from a single competent agent (Level 5) toward a collaborating multi-agent system (Level 6).

Key concept · The monolith is a valuable milestone

The single-agent architecture is not a compromise — it is a powerful and necessary step in the maturity journey. It is often the fastest way to deliver an end-to-end autonomous solution and serves as the foundation on which more complex, resilient, and scalable multi-agent systems are built (the subject of Chapter 14).

★Test yourself

Chapter 13 quiz

Thirteen questions on the FCoT-driven design, the ADK implementation, and the single-agent milestone. Answer first, then expand Show answer.

Part A · Multiple choice

Q1

Which pattern governs the loan agent's cognition in this build?

  • A Supervisor Architecture
  • B Fractal Chain-of-Thought (FCoT)
  • C Contract-Net
  • D Watchdog Timeout
Show answer

B — FCoT. It embeds planning, safety, and explainability into the agent's instructions.

Q2

In ADK, what turns a standard Python function into something the agent can call?

  • A ThinkingConfig
  • B A FunctionTool wrapper (with name and description)
  • C A vector database
  • D A system prompt
Show answer

B — FunctionTool. Tools are the agent's "hands" onto real data and APIs.

Q3

What does ADK's ThinkingConfig provide?

  • A Faster inference
  • B Exposure of the agent's internal monologue for observability
  • C Automatic fine-tuning
  • D A billing dashboard
Show answer

B. It makes reasoning inspectable — crucial for debugging and trust.

Q4

The finished single agent reaches which maturity level?

  • A Level 1
  • B Level 3
  • C Level 6
  • D Level 0
Show answer

B — Level 3, a functional agent using a cognitive framework and a toolbelt for a multi-step task.

Q5

Which models and environment does the build use?

  • A GPT-4 in a local IDE
  • B Gemini via google-adk in a Google Colab notebook
  • C Llama on-premises
  • D Claude in a browser
Show answer

B. Gemini models with an AI Studio API key, using the google-adk library in Colab.

Q6

Why is the monolithic single-agent architecture described as a valuable milestone?

  • A It never fails
  • B It's the fastest path to an end-to-end solution and the foundation for more complex systems
  • C It requires no tools
  • D It's the final production architecture
Show answer

B. It delivers value quickly and sets up the Level-4 multi-agent evolution.

Part B · True or false

Q7

An effective agent is simply a well-written prompt.

Show answer

False. It is engineered — planning, safety, and explainability are built into its core via patterns like FCoT.

Q8

An agent's reasoning should be treated as an opaque black box in production.

Show answer

False. Observability is non-negotiable — exposing the internal monologue supports debugging and trust.

Q9

Tools define an agent's capabilities to act on its environment.

Show answer

True. Properly described tools are the agent's hands onto APIs and real data.

Q10

The chapter treats the single agent as the end of the maturity journey.

Show answer

False. It points toward moving from Level 5 to Level 6 — a multi-agent system (Chapter 14).

Part C · Short answer

Q11

Name the two ADK mechanisms central to this build and what each does.

Show answer

FunctionTool — wraps Python functions as callable tools; ThinkingConfig — exposes the agent's reasoning for observability.

Q12

What three properties does FCoT embed into the agent's instructions?

Show answer

Planning, safety, and explainability — making behavior reliable and transparent.

Q13

What business workflow does the agent automate?

Show answer

Loan processing — a high-stakes, multi-step assessment workflow.