NeuralNotwork's picture
Update MyModel.py
3729cb1 verified
raw
history blame
291 Bytes
"""Template for custom function or Pydantic model."""
from pydantic import BaseModel
from pydantic import Field
class MyModel(BaseModel):
"""My model."""
attr1: str = Field(..., description="The first attribute.")
attr2: int = Field(..., description="The second attribute.")