GuglielmoTor commited on
Commit
5eef7c3
·
verified ·
1 Parent(s): 41fa83f

Update features/insight_and_tasks/data_models/tasks.py

Browse files
features/insight_and_tasks/data_models/tasks.py CHANGED
@@ -122,7 +122,8 @@ class KeyResult(BaseModel):
122
  A measurable outcome that contributes to an Objective.
123
  """
124
  key_result_description: str = Field( # Renamed from 'key_result'
125
- description="A clear, specific, and measurable description of the key result."
 
126
  )
127
  tasks: List[Task] = Field(
128
  default_factory=list,
@@ -159,7 +160,8 @@ class OKR(BaseModel):
159
  Defines an Objective and its associated Key Results (OKRs).
160
  """
161
  objective_description: str = Field( # Renamed from 'objective'
162
- description="A high-level, qualitative goal that the team aims to achieve. Should be aspirational and motivating."
 
163
  )
164
  key_results: List[KeyResult] = Field(
165
  default_factory=list,
@@ -170,7 +172,8 @@ class OKR(BaseModel):
170
  )
171
  objective_owner: Optional[str] = Field(
172
  default=None,
173
- description="The team or individual primarily responsible for this objective."
 
174
  )
175
 
176
 
 
122
  A measurable outcome that contributes to an Objective.
123
  """
124
  key_result_description: str = Field( # Renamed from 'key_result'
125
+ description="A clear, specific, and measurable description of the key result.",
126
+ min_length=100
127
  )
128
  tasks: List[Task] = Field(
129
  default_factory=list,
 
160
  Defines an Objective and its associated Key Results (OKRs).
161
  """
162
  objective_description: str = Field( # Renamed from 'objective'
163
+ description="A high-level, qualitative goal that the team aims to achieve. Should be aspirational and motivating.",
164
+ min_length=100
165
  )
166
  key_results: List[KeyResult] = Field(
167
  default_factory=list,
 
172
  )
173
  objective_owner: Optional[str] = Field(
174
  default=None,
175
+ description="The team or individual primarily responsible for this objective.",
176
+ max_length=50
177
  )
178
 
179