MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / buildFallbackAgentStatus

Function buildFallbackAgentStatus

src/stores/aiChat.ts:493–502  ·  view source on GitHub ↗
(state: AIChatSessionState)

Source from the content-addressed store, hash-verified

491 }
492
493 function buildFallbackAgentStatus(state: AIChatSessionState): AgentRuntimeStatus {
494 return {
495 phase: 'preparing',
496 round: 0,
497 toolsUsed: state.toolsUsedInCurrentRound.length,
498 contextTokens: 0,
499 totalUsage: { ...state.sessionTokenUsage },
500 updatedAt: Date.now(),
501 }
502 }
503
504 function setAgentPhase(
505 state: AIChatSessionState,

Callers 1

setAgentPhaseFunction · 0.85

Calls 1

nowMethod · 0.45

Tested by

no test coverage detected