File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
minitap/mobile_use/agents/cortex Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ async def __call__(self, state: State):
119119 update = {
120120 "agents_thoughts" : [agent_thought ],
121121 "structured_decisions" : response .decisions ,
122- "complete_subgoals_by_ids" : response .complete_subgoals_by_ids or [] ,
122+ "complete_subgoals_by_ids" : response .complete_subgoals_by_ids ,
123123 "screen_analysis_prompt" : response .screen_analysis_prompt ,
124124 "latest_screenshot_base64" : None ,
125125 "latest_ui_hierarchy" : None ,
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ class CortexOutput(BaseModel):
1010 default = None ,
1111 description = "The reason for the goals completion, if there are any goals to be completed." ,
1212 )
13- complete_subgoals_by_ids : list [str ] | None = Field (
14- default = None , description = "List of subgoal IDs to complete"
13+ complete_subgoals_by_ids : list [str ] = Field (
14+ default_factory = list , description = "List of subgoal IDs to complete"
1515 )
1616 screen_analysis_prompt : str | None = Field (
1717 default = None ,
You can’t perform that action at this time.
0 commit comments