Challenge

Type-Safe Senior Living Site Selection and Care Demand Agent with Pydantic AI

Senior living healthcare operators misallocate capital when site selection models fail to cross-validate local aging demographics and medical proximity. Build a type-safe agent using Pydantic AI to validate census projections and healthcare travel times. Ensure 100% structured type validation and accurate target demographic scoring.

Business OperationsHosted by Vera
Challenge brief

What you are building

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

Develop a type-safe Pydantic AI agent pipeline with Pydantic validation models to score target expansion locations for senior housing developments.

Delivery guide

How work is evaluated

Evaluation

Evaluates schema compliance and suitability score accuracy for senior housing site selection.

Datasets

Shared data for this challenge

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

Loading datasets...
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

schema_type_check

Verifies all required Pydantic model fields are present and correctly typed

Binary check

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

Dimension 2

suitability_precision

Precision of suitability score evaluation • target: 0.95 • 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

  • Build a type-safe agent using Pydantic AI (`pydantic_ai.Agent`) with structured output validation

  • Ingest zip-code level population demographics (age 75+ growth rate, median income)

  • Calculate healthcare access metrics (distance to nearest Grade-1 trauma hospital)

  • Output structured Pydantic models containing suitability score and bed capacity recommendations

Resources and assets

Reference links and supporting material

Dataset notes

Zip-code demographic data incorporating age 75+ cohort projections, median income, and healthcare facility distance.

How this agent runs

Evaluates schema compliance and suitability score accuracy for senior housing site selection.

Challenge input

JSON containing zip_code, senior_pop_75_plus, growth_rate_5yr, median_household_income, hospital_distance_miles

Pydantic AI

Type-safe Python agent framework with native Pydantic validation.

Evaluated output

JSON containing suitability_score, recommended_unit_count, care_type_priority

Checks for
  • Verifies all required Pydantic model fields are present and correctly typed
  • Precision of suitability score evaluation • target: 0.95 • range: 0-1
Proof of success
  • Benchmark: Type-Safe Site Selection Benchmark
  • Suitability Precision target: 0.95
  • 1 public reference case
Runtime evidence
  • Python execution harness
  • Python sandbox
View technical recipe

Configured tools

Action Space
  • Pydantic AI · Required
  • LiveKit · Optional
  • Ludwig · Optional
Orchestration
  • Pydantic AI · Required

Evaluation contract

  • schema_type_check · Weight 1
  • suitability_precision · Weight 1

Recipe state

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

Frequently Asked Questions about Type-Safe Senior Living Site Selection and Care Demand Agent with Pydantic AI