minor updates to change structures
Browse files
app.py
CHANGED
|
@@ -70,7 +70,8 @@ class Structure(str, Enum):
|
|
| 70 |
class Soil(BaseModel):
|
| 71 |
description: str = Field(..., title="Description", description="A general description of the soil")
|
| 72 |
structure: List[Structure] = Field(..., title="Structure", description="The structure of the soil using options from the major soil texture classes (sand, clay, silt)")
|
| 73 |
-
|
|
|
|
| 74 |
class Log(BaseModel):
|
| 75 |
convention: List[Convention] = Field(..., title="Logs", description="This log's convention (i.e. this log's category or type)")
|
| 76 |
date: str = Field(..., title="Date", description="Date the log (i.e. action of the activity or input) was performed")
|
|
@@ -82,8 +83,7 @@ class Planting(BaseModel):
|
|
| 82 |
crop: List[str] = Field(..., title="Crop", description="A list of the crops in this planting")
|
| 83 |
variety: List[str] = Field(..., title="Variety", description="A list of the crop varieties in this planting")
|
| 84 |
logs: List[Log] = Field(..., title="Logs", description="A list of all the logs that are associated with the farm activities")
|
| 85 |
-
structure: List[
|
| 86 |
-
biology: str = Field(..., title="Biology", description="Biological activity levels of the soil, including fluffiness, worms and bugs, and other evidence of soil biological activity")
|
| 87 |
|
| 88 |
class Yield(BaseModel):
|
| 89 |
quantity: str = Field(..., title="Quantity", description="A description of the total yield (harvested amount) from this planting, including units when available")
|
|
|
|
| 70 |
class Soil(BaseModel):
|
| 71 |
description: str = Field(..., title="Description", description="A general description of the soil")
|
| 72 |
structure: List[Structure] = Field(..., title="Structure", description="The structure of the soil using options from the major soil texture classes (sand, clay, silt)")
|
| 73 |
+
biology: str = Field(..., title="Biology", description="Biological activity levels of the soil, including fluffiness, worms and bugs, and other evidence of soil biological activity")
|
| 74 |
+
|
| 75 |
class Log(BaseModel):
|
| 76 |
convention: List[Convention] = Field(..., title="Logs", description="This log's convention (i.e. this log's category or type)")
|
| 77 |
date: str = Field(..., title="Date", description="Date the log (i.e. action of the activity or input) was performed")
|
|
|
|
| 83 |
crop: List[str] = Field(..., title="Crop", description="A list of the crops in this planting")
|
| 84 |
variety: List[str] = Field(..., title="Variety", description="A list of the crop varieties in this planting")
|
| 85 |
logs: List[Log] = Field(..., title="Logs", description="A list of all the logs that are associated with the farm activities")
|
| 86 |
+
structure: List[Soil] = Field(..., title="Soil", description="Information about the soil associated with or observed during the time of this planting")
|
|
|
|
| 87 |
|
| 88 |
class Yield(BaseModel):
|
| 89 |
quantity: str = Field(..., title="Quantity", description="A description of the total yield (harvested amount) from this planting, including units when available")
|