MCPcopy Create free account
hub / github.com/InternScience/InternAgent / _track_session

Method _track_session

internagent/mas/interface.py:351–361  ·  view source on GitHub ↗

Add session to tracking.

(self, session_id: str, goal: str, domain: str, ref_code_path: str)

Source from the content-addressed store, hash-verified

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."""

Callers 1

create_sessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected