factor_agent.web.run_view.Health#
- class Health(phase, round, max_rounds, process, crashed, last_call, stalled, calls, time_left, tokens, round_tokens)[source]#
Bases:
objectWhat a run is doing now, as its events file and its process tell.
phaseis"planning"(a round is written, or the run was just opened, and no call of the next round has been sent),"asking"(the LLM is being asked for the round in progress) or"evaluating"(the Evaluator scores the round’s candidates);Nonewhen the run has stopped or crashed, or has no events file.roundis the round in progress andmax_roundsthe round limit,Nonewhen the run has stopped or the limit is unknown.processis"running"or"gone"when the campaign’s process is checked on this host, and"unknown"when the campaign ran on another host or the run has no events file;crashedis true when the process is gone and the run recorded no stop.last_callis when the latest LLM call came back (UTC).stalledis true when the run looks stuck: no call was sent or came back forSTALL_ASKINGwhile asking. An evaluation never looks stuck: its length follows the data (an intraday round’s takes hours), so no limit tells a slow one from a stuck one.callscounts the calls of the round in progress by role, since the run was last opened; a run without an events file has only these counts, from its call files.tokensare the tokens of every call of the run, a round a resume dropped included, andround_tokensthe same by round;Noneand empty without an events file.time_leftestimates the seconds until the round or trial limit stops the run, from the mean length of its lastRECENT_ROUNDSrounds;Nonewhile no round was timed, and once the run has stopped or crashed.
Attributes#
- Health.phase#
- Health.round#
- Health.max_rounds#
- Health.process#
- Health.crashed#
- Health.last_call#
- Health.stalled#
- Health.calls#
- Health.time_left#
- Health.tokens#
- Health.round_tokens#