Pratap-K commited on
Commit
a553bf0
·
1 Parent(s): 7813169

Fix: Make action fields optional to resolve UI validation error

Browse files
Files changed (1) hide show
  1. env/models.py +2 -2
env/models.py CHANGED
@@ -15,8 +15,8 @@ from openenv.core.env_server.types import Action, Observation
15
  class AutomathreasonerAction(Action):
16
  """Action for the AutoMathReasoner environment - containing reasoning and final answer."""
17
 
18
- reasoning: str = Field(..., description="The step-by-step mathematical reasoning.")
19
- final_answer: str = Field(..., description="The final numerical or algebraic answer.")
20
 
21
 
22
  class AutomathreasonerObservation(Observation):
 
15
  class AutomathreasonerAction(Action):
16
  """Action for the AutoMathReasoner environment - containing reasoning and final answer."""
17
 
18
+ reasoning: str = Field(default="", description="The step-by-step mathematical reasoning.")
19
+ final_answer: str = Field(default="", description="The final numerical or algebraic answer.")
20
 
21
 
22
  class AutomathreasonerObservation(Observation):