Chapters 9 to 17

Every listing, runnable

The code from Parts III to V of Agentic AI for Actuaries. Nine chapters across pricing, reserving, life, and risk, each one runnable from this page.

In your browser

WebAssembly

Tool scripts run in the page. Edit them and run again.

Live on server

Agno + Gemini

Agent scripts run against Gemini. You watch the tool calls.

In Google Colab

Notebook

Any chapter, as a notebook, with your own free key.

9Chapter 9
Agentic architecture

What is Agentic AI?

Your first agents: a minimal Agno agent with a single tool, then a data quality agent that scans the defect-seeded motor India claims triangle and reports what it finds.

Case study: Building a data quality agent
2 live agents
10Chapter 10
Agentic architecture

Tool Use and Function Calling

Designing actuarial tools: a mortality lookup with a validation gate, a present-value tool with structured error handling, and the term life premium agent that chains them together.

Case study: An agent that runs actuarial calculations
2 browser demos1 live agent
11Chapter 11
Agentic architecture

Multi-Agent Systems and Collaboration

A fixed-path, three-step reserving review: a data quality agent checks the triangle, a reserving agent fits chain ladder and Bornhuetter-Ferguson and reconciles them, and a commentary agent drafts the memo.

Case study: A multi-agent actuarial review team
1 live agent
12Chapter 12
Agentic architecture

Memory, Planning, and Reasoning

Persistent and semantic memory: an agent that remembers the FY2024 Q3 experience adjustment across processes via SQLite, and a vector store over the synthetic experience study archive.

Case study: A learning experience study agent
1 live agent
13Chapter 13
Pricing and underwriting

Pricing and Underwriting

Commercial property underwriting for Meridian Re: COPE extraction from a broker submission PDF, GLM-vs-comparables premium reconciliation, and the three-agent underwriting workflow.

Case study: An agentic underwriting assistant for commercial lines
1 browser demo1 live agent
14Chapter 14
Reserving and claims

Reserving and Claims

Reserving with reflexion: a Cape Cod tool that derives its expected loss ratio from the data, movement commentary that cites its sources, and the full reflexion workflow that reconciles against the prior cycle.

Case study: A continuous reserving monitor
2 browser demos2 live agents
15Chapter 15
Life, health and pensions

Life, Health, and Pensions

A multi-scheme pension pipeline for closed UK DB schemes: a quality gate on member data, a funding valuation with a six-way sensitivity panel, and member statements whose every figure carries a citation.

Case study: An automated pension scheme valuation pipeline
3 browser demos3 live agents
16Chapter 16
Risk and compliance

Risk Management and Compliance

Regulatory monitoring, capital impact, and ORSA drafting: a source-of-truth registry guards authority, capital snapshots are read-only, and every quantitative claim in the draft carries a supervisor-grade citation.

Case study: A regulatory change impact agent
3 browser demos
17Chapter 17
Production and governance

Deploying and Governing Agentic AI in Practice

Governance in production: a monitoring dashboard that scores each agent against the firm's threshold registry, and a governance agent that reads the dashboard and escalates.

Case study: Building an actuarial AI governance framework
1 browser demo1 live agent

Before you run

Browser demos run on Pyodide, which is CPython compiled to WebAssembly. The first run downloads about 10 MB; after that it is quick, and nothing leaves your machine. The demo scripts follow the book code line for line.

Live agents run on our server with Gemini and Agno, and the tool calls stream back as they happen. There is a shared daily limit. If you hit it, the Colab notebook for the chapter has no limit.