MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / RunState

Class RunState

demo/ai_scientists/web/app.py:130–146  ·  view source on GitHub ↗

Tracks one agent run.

Source from the content-addressed store, hash-verified

128
129@dataclass
130class RunState:
131 """Tracks one agent run."""
132 run_id: str
133 domain: str
134 intent: str
135 task_name: str
136 yaml_path: str
137 process: Optional[subprocess.Popen] = None
138 event_log_path: Optional[str] = None
139 workspace_output_dir: Optional[str] = None
140 steps: List[Dict[str, Any]] = field(default_factory=list)
141 status: str = "starting"
142 error: Optional[str] = None
143 started_at: float = 0.0
144 # Paths to downloadable artefacts (set after completion)
145 zip_path: Optional[str] = None
146 pdf_path: Optional[str] = None
147
148
149RUNS: Dict[str, RunState] = {}

Callers 1

api_generateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected