Instructor RFC proposes typed decision models with Pydantic and OpenRouter

jxnlco · x · 2026-09-27

Instructor maintainer jxnl-oai opened an RFC to add decision model support to Instructor, starting with Jev via TypeSafe and OpenRouter. The idea: define questions in a Pydantic model, evaluate them against shared context, and get typed answers with probabilities. A content moderation example shows a Category class built on Choices, with Choice entries describing policy categories like HARASSMENT plus examples, returning structured scores/levels/probabilities. The API is illustrative for now.

Original post →

More from coding & agent

coding & agent channel →