Spaces:
Sleeping
Sleeping
Fix: Make action fields optional to resolve UI validation error
Browse files- 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(
|
| 19 |
-
final_answer: str = Field(
|
| 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):
|