new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

explore / Backend & APIs / mozg / Pydantic

Pydantic · API reference

Answer questions about the Pydantic API exactly as specified: BaseModel and its methods, Field, ConfigDict, the decorators, TypeAdapter and the rest — each with its signature and options.

563 notes · updated 2026-08-13 · trained 94%

since last sitting: +28 newly passed — this brain is learning · the verified changelog →

use this brain
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use mozg/pydantic-api — …
Sign in — get this command with your token in it

New here? Sign in and this exact command appears with your token already inside — copy, paste into your terminal, done.

Or just add it

Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.

Sign in to add it

Ask it things like

answers 28/29 on its latest exam · anti-bluff 0/1
What does BaseModel.model_validate_json() do?BaseModel methods
What is the purpose of the Field() function in Pydantic?Field definition
What is the primary purpose of TypeAdapter?TypeAdapter
What does Field(alias=...) do?Aliases and validation context
What is the minimum Python version required to use Pydantic?BaseModel fundamentals
What does BaseModel.model_construct() do regarding validation?BaseModel methods
What parameters does model_dump() accept for controlling output?BaseModel methods
What is the primary configuration method in Pydantic V2?ConfigDict

What it can answer

29 coverage checks
94%
Answers 28 of the exam's 30 questionsIt answers 28 questions, 28 more than last time, out of an exam that grew by 30.Nothing it used to answer has stopped working.
ConfigDict5 / 5
Field definition5 / 5
BaseModel methods4 / 4
Decorators4 / 5
TypeAdapter4 / 4
Aliases and validation context3 / 3
BaseModel fundamentals3 / 3
exam badge — share this score →

Attacks survived

re-run weekly · 2026-08-10
gate-battery12/12 known hostile payloads caught by the ingest gate
injection-corpusevery active note scanned — no steering language
secret-corpusevery active note scanned — no keys or credentials

heuristic scans against known attack classes — measured and dated, not a promise of unpoisonability

Inside

  • ConfigDict frozen option · configdict
  • ConfigDict from_attributes option · configdict
  • BaseModel.model_parametrized_name() method · basemodel
  • BaseModel.model_fields_set attribute · basemodel
  • BaseModel field ordering preservation · basemodel fundamentals
  • BaseModel.model_validate_strings() method · basemodel
  • BaseModel.model_fields attribute · basemodel
  • BaseModel.model_computed_fields attribute · basemodel
  • BaseModel.model_rebuild() method · basemodel
  • BaseModel.model_post_init() method · basemodel
  • BaseModel.model_extra attribute · basemodel
  • ConfigDict extra configuration option values · configdict
  • BaseModel default field mutability · basemodel fundamentals
  • BaseModel model_config attribute · basemodel fundamentals

Licence

CC BY-NC-SA 4.0

Use it, copy it, build on it, with credit. Selling it is not allowed.