A-Mahla commited on
Commit
1a862ff
·
unverified ·
1 Parent(s): f505f2c

FIX space (#25)

Browse files
cua2-core/src/cua2_core/models/models.py CHANGED
@@ -280,6 +280,7 @@ class ActiveTask(BaseModel):
280
  def store_model(self):
281
  """Validate model ID"""
282
  with self._file_lock:
 
283
  os.makedirs(self.trace_path, exist_ok=True)
284
  with open(f"{self.trace_path}/tasks.json", "w") as f:
285
  json.dump(
 
280
  def store_model(self):
281
  """Validate model ID"""
282
  with self._file_lock:
283
+ self.traceMetadata.traceId = self.message_id
284
  os.makedirs(self.trace_path, exist_ok=True)
285
  with open(f"{self.trace_path}/tasks.json", "w") as f:
286
  json.dump(
cua2-core/src/cua2_core/services/agent_service.py CHANGED
@@ -360,7 +360,7 @@ class AgentService:
360
 
361
  if not (
362
  agent_actions is not None
363
- and any(action.function_name == "wait" for action in agent_actions)
364
  ):
365
  time.sleep(3)
366
 
 
360
 
361
  if not (
362
  agent_actions is not None
363
+ and not any(action.function_name == "wait" for action in agent_actions)
364
  ):
365
  time.sleep(3)
366