Pydantic AI Reinsurance M&A Portfolio Integration Engine
Merging reinsurance brokers must reconcile conflicting treaty structures and binder limits across disparate databases with total type safety. Implement a Pydantic AI agent system with strict schema validation to harmonize acquired portfolio schedules and flag overlapping treaty coverage.
What you are building
Utilize Pydantic AI structured outputs and dependency injection to standardize acquired reinsurance binder records.
How work is evaluated
Evaluates type validation enforcement and identification of overlapping treaty exposure layers.
Datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
pydantic_validation
Ensures model output validates without Pydantic ValidationError
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
field_extraction_f1
F1 score of extracted treaty field attributes • target: 0.95 • range: 0-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Learning goals
Build a Pydantic AI agent featuring strong type validation for treaty mapping
Utilize Pydantic AI dependency injection for database integration during processing
Detect and log duplicate or conflicting excess-of-loss binder layers across merged portfolios
Resources
Dataset of 400 unformatted reinsurance treaty schedules from BMS Re / Willis Re merger files.
Challenge setup
Evaluates type validation enforcement and identification of overlapping treaty exposure layers.
Challenge input
Unstructured string of binder terms
Pydantic AI
Ensures Python data validation and structured outputs for agent pipelines
Evaluated output
Validated JSON matching TreatySchema with overlap flags
- Ensures model output validates without Pydantic ValidationError
- F1 score of extracted treaty field attributes • target: 0.95 • range: 0-1
- Benchmark: Schema-Extract-Bench
- Field Extraction F1 target: 0.95
- 1 public reference case
- Python execution harness
- Python sandbox (unavailable on Versalist)
Shows the first task, up to three tools, and up to three evidence items.
View technical recipe
Configured tools
- Pydantic AI · Required
- LocalAI · Optional
- DeepSeek V3 · Optional
- Pydantic AI · Required
Evaluation contract
- pydantic_validation · Weight 1
- field_extraction_f1 · Weight 1
Metrics
- field_extraction_f1 · Target 0.95
Benchmarks
- Schema-Extract-Bench
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: Unstructured string of binder terms
Output: Validated JSON matching TreatySchema with overlap flags
Execution harness: Python
Evaluation tools
- Pydantic AI · Type-Safe Agent Framework
Recipe freeze marker
No recipe freeze time is recorded.