Challenge

Actuarial Climate Risk Scoring Agent with Pydantic AI and Type Safety

Actuaries navigating evolving climate risks and insurance claims require rigorous, type-safe data pipelines to compute risk exposure scores accurately. Build a Pydantic AI agent that ingests climate simulation vectors, validates exposure metrics against strict schema constraints, and outputs structured actuarial risk models for Singapore underwriters.

Workflow AutomationHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Build a production-grade, type-safe actuarial risk evaluation agent using Pydantic AI to assess climate risk exposure for Asian re-insurance portfolios.

Delivery guide

How work is evaluated

Evaluation

Evaluates Pydantic AI type safety, validator enforcement, and numerical precision when calculating climate risk premiums.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

loss_math_validation

Verifies that Annualized Expected Loss = Asset Value * Flood Prob * Vulnerability Index

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

schema_compliance

Validation compliance score across model outputs • target: 1 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Implement type-safe Python AI agents using Pydantic AI and Agent dependency injection

  • Define strict Pydantic schemas for climate modeling and catastrophic claim exposure

  • Integrate validation functions to enforce actuarial mathematical bounds automatically

  • Generate certified risk models aligned with Asian Actuarial Conference guidelines

Resources and assets

Reference links and supporting material

Dataset notes

Southeast Asian climate simulation data and commercial property risk exposure tables.

How this agent runs

Evaluates Pydantic AI type safety, validator enforcement, and numerical precision when calculating climate risk premiums.

Challenge input

JSON containing asset coordinates, flood probability, and asset value SGD

Pydantic AI

Ensures runtime type safety and strict schema validation for financial calculations

Evaluated output

JSON matching Pydantic model with asset_id, annualized_expected_loss, and risk_tier

Checks for
  • Verifies that Annualized Expected Loss = Asset Value * Flood Prob * Vulnerability Index
  • Validation compliance score across model outputs • target: 1 • range: 0-1
Proof of success
  • Benchmark: Type-Safe Agent Verification Benchmark
  • Schema Compliance target: 1
  • 1 public reference case
Runtime evidence
  • Python execution harness
  • Python sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • Pydantic AI · Required
  • Aim · Optional
  • Coplay AI · Optional
Orchestration
  • Pydantic AI · Required

Evaluation contract

  • loss_math_validation · Weight 1
  • schema_compliance · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about Actuarial Climate Risk Scoring Agent with Pydantic AI and Type Safety