Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ class Role(str, Enum):
|
|
| 22 |
|
| 23 |
class Person(BaseModel):
|
| 24 |
name: str = Field(..., title="Name", description="Name of this person")
|
| 25 |
-
role:
|
| 26 |
|
| 27 |
class Interactions(BaseModel):
|
| 28 |
people: List[Person] = Field(..., title="People", description="People involved or mentioned during interaction")
|
|
@@ -73,7 +73,7 @@ class Structure(str, Enum):
|
|
| 73 |
|
| 74 |
class Soil(BaseModel):
|
| 75 |
description: str = Field(..., title="Description", description="A general description of the soil")
|
| 76 |
-
structure:
|
| 77 |
|
| 78 |
class Log(BaseModel):
|
| 79 |
convention: str[Convention] = Field(..., title="Logs", description="This log's convention (i.e. this log's category or type)")
|
|
@@ -82,7 +82,7 @@ class Log(BaseModel):
|
|
| 82 |
|
| 83 |
class Planting(BaseModel):
|
| 84 |
name: str = Field(..., title="Name", description="The name of the planting")
|
| 85 |
-
status:
|
| 86 |
crop: List[str] = Field(..., title="Crop", description="A list of the crops in this planting")
|
| 87 |
variety: List[str] = Field(..., title="Variety", description="A list of the crop varieties in this planting")
|
| 88 |
logs: List[Log] = Field(..., title="Logs", description="A list of all the logs that are associated with the farm activities")
|
|
|
|
| 22 |
|
| 23 |
class Person(BaseModel):
|
| 24 |
name: str = Field(..., title="Name", description="Name of this person")
|
| 25 |
+
role: Role = Field(..., title="Role", description="Role of this person")
|
| 26 |
|
| 27 |
class Interactions(BaseModel):
|
| 28 |
people: List[Person] = Field(..., title="People", description="People involved or mentioned during interaction")
|
|
|
|
| 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 |
|
| 78 |
class Log(BaseModel):
|
| 79 |
convention: str[Convention] = Field(..., title="Logs", description="This log's convention (i.e. this log's category or type)")
|
|
|
|
| 82 |
|
| 83 |
class Planting(BaseModel):
|
| 84 |
name: str = Field(..., title="Name", description="The name of the planting")
|
| 85 |
+
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)")
|
| 86 |
crop: List[str] = Field(..., title="Crop", description="A list of the crops in this planting")
|
| 87 |
variety: List[str] = Field(..., title="Variety", description="A list of the crop varieties in this planting")
|
| 88 |
logs: List[Log] = Field(..., title="Logs", description="A list of all the logs that are associated with the farm activities")
|