you can just do `agentId = otherAgent.agentId`, no need for memcpy