Update app.py
Browse files
app.py
CHANGED
|
@@ -66,28 +66,28 @@ class Structure(str, Enum):
|
|
| 66 |
LOAMYSAND = 'loamy sand'
|
| 67 |
SAND = 'sand'
|
| 68 |
SILT = 'silt'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
-
class Yield(BaseModel):
|
| 71 |
-
quantity: str = Field(..., title="Quantity", description="A description of the total yield (harvested amount) from this planting, including units when available")
|
| 72 |
-
quality: str = Field(..., title="Quality", description="The product quality of the harvest. For example, small or large fruits, sweet or tart flavor, easily molding or containing mold, high number of product seconds, etc.")
|
| 73 |
-
|
| 74 |
class Soil(BaseModel):
|
| 75 |
description: str = Field(..., title="Description", description="A general description of the soil")
|
| 76 |
structure: List[Structure] = Field(..., title="Structure", description="The structure of the soil using options from the major soil texture classes (sand, clay, silt)")
|
| 77 |
biology: str = Field(..., title="Biology", description="Biological activity levels of the soil, including fluffiness, worms and bugs, and other evidence of soil biological activity")
|
| 78 |
|
| 79 |
-
class
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
class Planting(BaseModel):
|
| 85 |
name: str = Field(..., title="Name", description="The name of the planting")
|
| 86 |
status: Status = Field(..., title="Status", description="The status of the planting. \"active\" is a planting which is currently still in the field. \"archived\" is a planting which is no longer in the field (has been terminated or harvested)")
|
| 87 |
crop: List[str] = Field(..., title="Crop", description="A list of the crops in this planting")
|
| 88 |
variety: List[str] = Field(..., title="Variety", description="A list of the crop varieties in this planting")
|
| 89 |
logs: List[Log] = Field(..., title="Logs", description="A list of all the logs that are associated with the farm activities")
|
| 90 |
-
soil: Soil = Field(..., title="Soil", description="Information about the soil associated with
|
| 91 |
harvestYield: Yield = Field(..., title="Yield", description="Quantitative and qualitative observations regarding the yield of harvest")
|
| 92 |
|
| 93 |
class FarmActivities(BaseModel):
|
|
|
|
| 66 |
LOAMYSAND = 'loamy sand'
|
| 67 |
SAND = 'sand'
|
| 68 |
SILT = 'silt'
|
| 69 |
+
|
| 70 |
+
class Log(BaseModel):
|
| 71 |
+
convention: Convention = Field(..., title="Logs", description="This log's convention (i.e. this log's category or type)")
|
| 72 |
+
date: str = Field(..., title="Date", description="Date the log (i.e. action of the activity or input) was performed")
|
| 73 |
+
description: str = Field(..., title="Description", description="A description of the details of the log (i.e. details about farm activity performed")
|
| 74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
class Soil(BaseModel):
|
| 76 |
description: str = Field(..., title="Description", description="A general description of the soil")
|
| 77 |
structure: List[Structure] = Field(..., title="Structure", description="The structure of the soil using options from the major soil texture classes (sand, clay, silt)")
|
| 78 |
biology: str = Field(..., title="Biology", description="Biological activity levels of the soil, including fluffiness, worms and bugs, and other evidence of soil biological activity")
|
| 79 |
|
| 80 |
+
class Yield(BaseModel):
|
| 81 |
+
quantity: str = Field(..., title="Quantity", description="A description of the total yield (harvested amount) from this planting, including units when available")
|
| 82 |
+
quality: str = Field(..., title="Quality", description="The product quality of the harvest. For example, small or large fruits, sweet or tart flavor, easily molding or containing mold, high number of product seconds, etc.")
|
| 83 |
+
|
|
|
|
| 84 |
class Planting(BaseModel):
|
| 85 |
name: str = Field(..., title="Name", description="The name of the planting")
|
| 86 |
status: Status = Field(..., title="Status", description="The status of the planting. \"active\" is a planting which is currently still in the field. \"archived\" is a planting which is no longer in the field (has been terminated or harvested)")
|
| 87 |
crop: List[str] = Field(..., title="Crop", description="A list of the crops in this planting")
|
| 88 |
variety: List[str] = Field(..., title="Variety", description="A list of the crop varieties in this planting")
|
| 89 |
logs: List[Log] = Field(..., title="Logs", description="A list of all the logs that are associated with the farm activities")
|
| 90 |
+
soil: Soil = Field(..., title="Soil", description="Information about the soil associated with this planting")
|
| 91 |
harvestYield: Yield = Field(..., title="Yield", description="Quantitative and qualitative observations regarding the yield of harvest")
|
| 92 |
|
| 93 |
class FarmActivities(BaseModel):
|