Right now Python maintains a handwritten veneer layer for key types such as ModelRequest, ModelResponse. We did that because Pydantic code generation didn't support omitting fields in the ways we needed, and sanitizing Pydantic's output became a whole mess.
Now the problem is that we risk divergence as fields get added to genkit.
We wrote our own generation script. Now we need to wire it up.
Right now Python maintains a handwritten veneer layer for key types such as ModelRequest, ModelResponse. We did that because Pydantic code generation didn't support omitting fields in the ways we needed, and sanitizing Pydantic's output became a whole mess.
Now the problem is that we risk divergence as fields get added to genkit.
We wrote our own generation script. Now we need to wire it up.