Add session to tracking.
(self, session_id: str, goal: str, domain: str, ref_code_path: str)
| 349 | raise RuntimeError("System is not ready. Call startup() first.") |
| 350 | |
| 351 | def _track_session(self, session_id: str, goal: str, domain: str, ref_code_path: str) -> None: |
| 352 | """Add session to tracking.""" |
| 353 | self.active_sessions[session_id] = { |
| 354 | "id": session_id, |
| 355 | "goal": goal, |
| 356 | "domain": domain, |
| 357 | "ref_code_path": ref_code_path, |
| 358 | "created_at": datetime.now().isoformat(), |
| 359 | "last_updated": datetime.now().isoformat(), |
| 360 | "state": WorkflowState.INITIAL.value |
| 361 | } |
| 362 | |
| 363 | def _update_session_tracking(self, session_id: str, state: str = None) -> None: |
| 364 | """Update session tracking information.""" |