Skip to content

[PY] Unify types with genkit-schema.json #4945

@jeffdh5

Description

@jeffdh5

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpythonPython

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions