Function: verifyAndRecoverAgents()
Makaio Framework / services-core / verifyAndRecoverAgents
Function: verifyAndRecoverAgents()
Section titled “Function: verifyAndRecoverAgents()”verifyAndRecoverAgents(
bus,agents,recoveryConfig):Promise<{recoveredAgentIds:Set<string>;verifiedAgents:object[]; }>
Defined in: ../../../packages/services/core/src/session/utils/agent-recovery.ts:132
Verify liveness of agents and recover any that are dead. Queries each agent via getAgent; if unresponsive, triggers connector swap via recoverAgent.
Parameters
Section titled “Parameters”Bus instance
agents
Section titled “agents”object[]
Agents to verify
recoveryConfig
Section titled “recoveryConfig”Configuration for recovering dead agents
Returns
Section titled “Returns”Promise<{ recoveredAgentIds: Set<string>; verifiedAgents: object[]; }>
Verified/recovered agents and set of recovered agent IDs