anonajay commited on
Commit
cbcd551
·
verified ·
1 Parent(s): 0f1ef35

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. models.py +13 -6
models.py CHANGED
@@ -18,19 +18,26 @@ class LintCodingAgentAction(Action):
18
  """
19
  Action schema for the Lead Architect.
20
  The agent provides the fix and an explanation that tracks orchestration intent.
 
21
  """
22
- code_solution: str = Field(..., description="The full code or specific fix for the repo")
23
- explanation: str = Field(..., description="Reasoning for the fix; used to track sub-agent spawning")
 
 
 
 
 
 
24
 
25
  class LintCodingAgentObservation(Observation):
26
  """
27
  Observation schema for the VFS Search Space.
28
  Provides the multi-file repository state and environment feedback.
29
  """
30
- level: int = Field(..., description="Current difficulty level (1-15)")
31
- language: str = Field(..., description="Programming language context")
32
- problem_statement: str = Field(..., description="The mission objective or bug description")
33
- code_context: str = Field(..., description="JSON-stringified Virtual File System (VFS) map")
34
  last_test_results: Optional[str] = Field(default=None, description="Linter output or execution logs")
35
 
36
  # Mandatory for OpenEnv SDK to track episode state
 
18
  """
19
  Action schema for the Lead Architect.
20
  The agent provides the fix and an explanation that tracks orchestration intent.
21
+ Optional fields prevent 422 Validation Errors during manual UI testing.
22
  """
23
+ code_solution: Optional[str] = Field(
24
+ default="",
25
+ description="The full code or specific fix for the repo"
26
+ )
27
+ explanation: Optional[str] = Field(
28
+ default="Direct intervention",
29
+ description="Reasoning for the fix; used to track sub-agent spawning or taxation"
30
+ )
31
 
32
  class LintCodingAgentObservation(Observation):
33
  """
34
  Observation schema for the VFS Search Space.
35
  Provides the multi-file repository state and environment feedback.
36
  """
37
+ level: int = Field(default=1, description="Current difficulty level (1-15)")
38
+ language: str = Field(default="Python", description="Programming language context")
39
+ problem_statement: str = Field(default="", description="The mission objective or bug description")
40
+ code_context: str = Field(default="{}", description="JSON-stringified Virtual File System (VFS) map")
41
  last_test_results: Optional[str] = Field(default=None, description="Linter output or execution logs")
42
 
43
  # Mandatory for OpenEnv SDK to track episode state