code: func (c *Cluster) IsAgent() bool {
  	c.mu.RLock()
  	defer c.mu.RUnlock()
  	return c.currentNodeState().status == types.LocalNodeStateActive
  }
docs: // IsAgent returns true if Cluster is participating as a worker/agent.