Ask a question to get started
Enter to send•Shift+Enter new line
field_name: str = discriminator_field
The name of the discriminator field in the variant class, e.g.
class Foo(BaseModel): type: Literal['foo']
Will result in field_name='type'